Footnotes
Footnotes are pieces of information placed at the bottom of the page. A footnote has a number that is left in the content (the footnote call) and the same value placed before the footnote text (the footnote marker).
Footnotes - Built-in CSS
Footnote properties are defined in [PLUGIN_DIR]css/print/p-foot-notes.css.
How to Change Style of the Footnote Markers and Footnote Calls
To bold the footnotes numbers and use some colors, add the following rules to your customization CSS:
*[class ~= "topic/fn"]:footnote-call { font-weight: bold; color:red; } *[class ~= "topic/fn"]:footnote-marker { font-weight: bold; color:red; }
How to Add a Separator Above the Footnotes
The @footnote part of a @page declaration controls the
style of the separator between the page content and the footnotes. For the content, you should
set a leader. The leader uses a letter or a line style to fill the entire
width of the page.
@page { margin:0.5in; .... @footnote { content: leader(solid); color:silver; } }
To create a dotted line, you can use the dot character: leader('.'). Other
commonly used characters are: "-" (dash) and "_" (underscore).
How to Reset the Footnotes Counter
There are cases where you want to reset the footnote counter.
For example, if you need to reset it at the beginning of each chapter, add the following rules to your customization CSS:
*[class ~= "bookmap/chapter"], *[class ~= "topic/topic"][is-chapter] { counter-reset: footnote 1; }
Or you can mark any element with an @outputclass value, match that value, and
reset the counter at any point in your counter:
<p outputclass="reset-footnotes"/>
*[outputclass ~= "reset-footnotes"] { counter-reset: footnote 1; }