Saturday, 17 August 2013

Line Numbering from .tex file lines

Line Numbering from .tex file lines

Is it possible to have a feature similar to the lineno package that
outputs the .tex file line number that the pdf line came from?
\documentclass[11pt]{article}
\usepackage[english]{babel}
\usepackage{lineno, blindtext}
\begin{document}
\blindtext
\begin{linenumbers}
\blindtext % the lineno output numbers here show 8
\blindtext % the lineno output numbers here show 10
\end{linenumbers}
\end{document}
In other words, I do not want the paragraph to number the lines 1..N, just
show 8 on the first numbered paragraph line (or all of the associated pdf
output lines) and 10 for the following paragraph.
I realize this gets difficult with \input or \include entries also. I
believe this feature does not exist right now, but I am curious if it is
even possible with pdflatex.

No comments:

Post a Comment