TransWikia.com

How to print footnote at the end of a chapter

TeX - LaTeX Asked by topkek on May 11, 2021

As the title says. Instead of printing it at the bottom of the current page, print it at the end of the current chapter.

One Answer

You can use packages like enotez, endnotes or maybe pagenotes for stuff like this. Since no MWE was provided the following examples show how to get the result for sections but the usage is analoguous for chapters.

enotez

documentclass{article}
usepackage{enotez,lipsum}

setenotez{
  reset ,
  list-heading = subsection*{#1}
}

begin{document}

section{Foo}

lipsum[1]endnote{test a}
lipsum[1]endnote{test a}

lipsum[1]endnote{test a}

printendnotes

section{Bar}

lipsum[1]endnote{test b}

lipsum[1]endnote{test b}
lipsum[1]endnote{test b}

printendnotes

end{document}

endnotes

documentclass{article}
usepackage{endnotes,lipsum}

counterwithin{endnote}{section}
renewcommandtheendnote{arabic{endnote}}

begin{document}

section{Foo}

lipsum[1]endnote{test a}
lipsum[1]endnote{test a}

lipsum[1]endnote{test a}

theendnotes

section{Bar}

lipsum[1]endnote{test b}

lipsum[1]endnote{test b}
lipsum[1]endnote{test b}

theendnotes

end{document}

pagenote

documentclass{article}
usepackage{pagenote,lipsum}

makepagenote
renewcommand*{notedivision}{subsection*{notesname}}
renewcommand*{pagenotesubhead}[2]{}


begin{document}

section{Foo}

lipsum[1]pagenote{test a}
lipsum[1]pagenote{test a}

lipsum[1]pagenote{test a}

printnotes*

section{Bar}

lipsum[1]pagenote{test b}

lipsum[1]pagenote{test b}
lipsum[1]pagenote{test b}

printnotes*

end{document}

Correct answer by cgnieder on May 11, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP