The \footnote{text goes in here}
command takes an optional argument for numbering, so if I want to skip straight to footnote #5 or override the default numbering, I can do that:
\documentclass{article}
\begin{document}
Polaris\footnote[5]{i.e. the North Star}.
\end{document}
However, what I am trying to do is use the relevant line number (with the lineno
package) for the footnote argument.
Also, because my footnotes will be extremely long and unwieldy in-context, I am using \footnotetext
with the line number itself as that optional argument. I do not want a \footnotemark
in the text itself. Simply to have a footnote appearing at the bottom of the relevant page, itself labeled with the number of the line it refers to on that page, is exactly what I want.
The problem is, LaTeX seems not to like it when I feed it the line reference as the argument. It wants a numeral instead. In other words, the following does not work:
\documentclass{article}
\usepackage{lineno}
\linenumbers
\begin{document}
Polaris\linelabel{label1}.
\footnotetext[\lineref{label1}]{i.e. the North Star}
\end{document}
I realize why this doesn't work, but I don't know enough about LaTeX to get around it. Most of my programming has been in Java where you can just plug in anything for anything and the compiler figures out what you mean.
Does anybody have suggestions? Thanks very much.