24.08.2015 Views

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

Oxygen XML Author plugin 13.2.0

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

font-size: 2.0em;}* * * title{font-size: 1.6em;}* * * * title{font-size: 1.2em;}<strong>Author</strong> Developer Guide | 192It's useful to have before the title a constant text, indicating that it refers to a section. This text can include also thecurrent section number. The :before and :after pseudo elements will be used, plus the CSS counters.First declare a counter named sect for each book or article. The counter is set to zero at the beginning of eachsuch element:book,article{counter-reset:sect;}The sect counter is incremented with each section, that is a direct child of a book or an article element.book > section,article > section{counter-increment:sect;}The "static" text that will prefix the section title is composed of the constant "Section ", followed by the decimal valueof the sect counter and a dot.book > section > title:before,article > section > title:before{content: "Section " counter(sect) ". ";}To make the documents easy to read, you add a margin to the sections. In this way the higher nesting level, the largerthe left side indent. The margin is expressed relatively to the parent bounds:section{margin-left:1em;margin-top:1em;}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!