Currently, Glyph does not provide any native way to format text and pages. The reason is that there's absolutely no need for that: CSS does the job just fine. In particular, CSS3 offers specific attributes and elements that can be used specifically for paginated documents. That's no replacement for LaTeX by any means, but it is enough if you're not looking for advanced typographical features.
You can embed CSS files using the
style macro, like this:
In this case, the
style macro looks for a
default.css file in the
/styles folder of your Glyph project and among the default Glyph stylesheets, and embeds it within a
<style> tag. If you supply a file with a
.scss extension, it will interpret it as a Sass file and convert it to CSS automatically (if the Haml gem is installed).
Glyph provides the following default stylesheets, that can be referenced directly using the
||The stylesheet used for this book.|
||A CSS3-compliant stylesheet used for pagination, suitable for PDF generation using Prince.|
||The default Coderay stylesheet, used for syntax highlighting.|
||This folder contains the following Ultraviolet stylesheets, used for syntax highlighting: