Sha256: 75a9c750e00ffd16e39158c87ed55361a7b78434963c3b235f658db92fceac09

Contents?: true

Size: 1.86 KB

Versions: 4

Compression:

Stored size: 1.86 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@ or @.scss@ 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

4 entries across 4 versions & 1 rubygems

Version Path
glyph-0.5.3.1 book/text/text_editing/stylesheets.glyph
glyph-0.5.2 book/text/text_editing/stylesheets.glyph
glyph-0.5.1 book/text/text_editing/stylesheets.glyph
glyph-0.5.0 book/text/text_editing/stylesheets.glyph