Sha256: 6c3535822f0bc60850a0a022b4c897e7712090f56ecea97c6396ff0a8ebb7747
Contents?: true
Size: 1.76 KB
Versions: 1
Compression:
Stored size: 1.76 KB
Contents
p[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.] p[You can embed CSS files using the %>[style], like this:] p[code[= style[default.css] =]] txt[In this case, the %>[style] 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 @.sass@ extension, it will interpret it as a Sass file and convert it to CSS automatically (if the _Haml_ gem is installed).] tip[ By default, stylesheets are embedded within text files. If necessary, you can choose to link them or import them by changing the values of the $>[document.styles]. ] section[ @title[Default Stylesheets] @id[default_stylesheets] p[Glyph provides the following default stylesheets, that can be referenced directly using the %>[style]:] table[ tr[ th[File name] th[Notes] ] tr[ td[code[default.css]] td[The stylesheet used for this book.] ] tr[ td[code[pagination.css]] td[A CSS3-compliant stylesheet used for pagination, suitable for PDF generation using &[prince].] ] tr[ td[code[coderay.css]] td[The default &[coderay] stylesheet, used for syntax highlighting.] ] tr[ td[code[ultraviolet/*]] td[This folder contains the following &[uv] stylesheets, used for syntax highlighting: code[%[(Glyph::HOME/"styles/ultraviolet").children.sort.map{\|c\| c.basename}.join(", ")]]] ] ] ]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
glyph-0.4.0 | book/text/text_editing/stylesheets.glyph |