Reputation: 85
There are weird footnote numbers that I did not intend to generate. I added only two footnotes, but there are footnotes number 2 and 4 that I did not write.
I cannot figure out the solution. Did anyone experience the same problem or know the solution?
The below is the Latex code of this. Even if I don't use any of usepackage options, the problem still happens.
\documentclass{article}
\begin{document}
blablablalba\footnotemark
\\
\\
\\
\footnote{firstfootnote}
\\
\\
\\
wordswordswords\footnotemark
\\
\\
\\
\footnote{secondfootnote}
\end{document}
Upvotes: 1
Views: 4340
Reputation: 85
I just found the solution.
Using \footnote was the problem. Changing it to \footnotetext solves the problem.
\documentclass{article}
\begin{document}
blablablalba\footnotemark[1]
\\
\\
\\
\footnotetext[1]{firstfootnote}
\\
\\
\\
wordswordswords\footnotemark[2]
\\
\\
\\
\footnotetext[2]{secondfootnote}
\end{document}
Upvotes: 1
Reputation: 38873
The additional numbers are added by using both \footnotemark
and \footnote
. To avoid this problem, only use \footnote{...}
where you want your footnotemarker to be:
\documentclass{article}
\begin{document}
blablablalba\footnote{firstfootnote}
wordswordswords\footnote{secondfootnote}
\end{document}
Upvotes: 0