Page Layoutline numbering for two columns

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
neumannturing
Posts: 32
Joined: Sun Mar 01, 2009 8:29 am

line numbering for two columns

Post by neumannturing »

Hello,
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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

line numbering for two columns

Post by gmedina »

Hi,

one possible solution would be to increase the separation between columns, as the following example suggests:

Code: Select all

\documentclass[twocolumn]{book}
\usepackage{lineno}
\usepackage{lipsum}% just to generate some text

\setlength\columnsep{25pt}

\begin{document}

\linenumbers
\lipsum[1-20]

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
neumannturing
Posts: 32
Joined: Sun Mar 01, 2009 8:29 am

line numbering for two columns

Post by neumannturing »

gmedina wrote:Hi,

one possible solution would be to increase the separation between columns, as the following example suggests:

Code: Select all

\documentclass[twocolumn]{book}
\usepackage{lineno}
\usepackage{lipsum}% just to generate some text

\setlength\columnsep{25pt}

\begin{document}

\linenumbers
\lipsum[1-20]

\end{document}
But increasing \columnsep will lead to more pages. But I almost reach the maximal pages I can have for a conference paper. Any other workaround?
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

line numbering for two columns

Post by gmedina »

Can you decrease the margins of your document? If so, then use the geometry package to reduce the margins.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply