lineno can do the line numbering. I download it and try the example. But the introductory example use \pagewiselinenumbers but it does not work under tow columns. The line-numbering for the right column overwrites the text. There is a note on the user manual about two columns mode but I can not understand which read as follows. Anybody can give me a simple example how I can use the line numbering for two columns mode? Thanks a lot.
Code: Select all
377 \AtBeginDocument{% v4.2, revtex4.cls (e.g.).
378 % <- TODO v4.4+: Or better in \LineNoLaTeXOutput!?
379 \let\@LN@orig@makecol\@makecol}
380 \def\@LN@makecol{%
381 \@LN@orig@makecol
382 \setbox\@outputbox \vbox{%
383 \boxmaxdepth \@maxdepth
384 \protected@write\@auxout{}{%
385 \string\@LN@col{\if@firstcolumn1\else2\fi}%
386 }%
387 \box\@outputbox
388 }% \vbox
389 } %% TODO cf. revtexln.sty.
390
391 \def\@LN@col{\def