Changes

Jump to navigation Jump to search
861 bytes added ,  16:11, 13 March 2015
Footnotes at the end of each chapter example
\stoptext
</context>
 
==== Footnotes at the end of each chapter ====
 
Another elegant example (given by Hans on the mailing list) places all footnotes in a subject (unnumbered section) at the end of each chapter. It is intelligent and will not create an empty subject when there are no footnotes to be placed. At no extra cost, the subject title "Footnote" will be singular or plural depending if there is only one or several footnotes to be placed:
 
<texcode>
\startsetups chapter:after
\ifcase\rawcountervalue[footnote]\relax
\or
\startsubject[title=Footnote]
\placefootnotes
\stopsubject
\else
\startsubject[title=Footnotes]
\placefootnotes
\stopsubject
\fi
\stopsetups
 
\setupnotes[location=none]
\setupnotation[way=bychapter]
 
\setuphead[chapter][aftersection=\setups{chapter:after}]
</texcode>
==Footnote Formatting==
148

edits

Navigation menu