Time for action – using footnotes in text and in headings

Let's go back to the very first example of this chapter. We shall insert one footnote in the body text and one in a section heading:

  1. Modify the example inserting a footnote, as shown in the highlighted line:
    \documentclass[a4paper,12pt]{book}
    \usepackage[english]{babel}
    \usepackage{blindtext}
    \begin{document}
    \chapter{Exploring the page layout}
    In this chapter we will study the layout of pages.
    \section{Some filler text}
    \blindtext
    \section{A lot more filler text}
    More dummy text\footnote{serving as a placeholder} will follow.
    \subsection{Plenty of filler text}
    \blindtext[10]
    \end{document}
  2. Typeset to see how the footnote looks in print:
  3. Insert a footnote in the second section header. This ...

Get LaTeX Beginners Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.