[Tex/LaTex] Lineno for 2 column

line-numberingtwo-column

How to add line number to a 2 column document where the line number must appear on the left for the left column and on the right for the right column. The lineno package does not seem to provide this option.

Best Answer

Use the switch option for the lineno package.

\documentclass[twocolumn]{article}
\usepackage[switch]{lineno} 
\usepackage{lipsum} %Creates example text
\begin{document}
\linenumbers
\lipsum[1-20]
\end{document}
Related Question