LaTeX by Example: Footnotes
Footnotes provide additional context without cluttering the main text. This sample shows how to add footnotes.
Code
\documentclass{article}
\begin{document}
LaTeX is a document preparation system\footnote{It was created by Leslie Lamport in 1984.}.
It is widely used in academia.
You can also refer to the same footnote twice, though it requires extra packages like \texttt{footmisc} or manual counter manipulation for complex cases.
Here is another point\footnote{This is the second footnote.}.
\end{document}Explanation
Creating a footnote in LaTeX is incredibly simple: just use the \footnote{text} command at the point where you want the marker to appear. LaTeX automatically handles the numbering, places the marker (usually a superscript number) in the text, and puts the footnote text at the bottom of the page.
If you insert a new footnote in the middle of the document, LaTeX automatically renumbers all subsequent footnotes. This dynamic numbering is a huge advantage over manual typesetting.
Footnotes work well in most standard text areas. However, using them inside tables or minipages can be tricky, as the footnote text might not appear where you expect (e.g., at the bottom of the table cell instead of the page). In such cases, the \footnotemark and \footnotetext commands can be used to manually separate the marker placement from the text definition.
Code Breakdown
\footnote{...} creates the footnote. The argument contains the text that goes at the bottom of the page.
