Questions tagged [lineno]
{lineno} is about questions regarding the package lineno.
100
questions
1
vote
0
answers
32
views
Line numbers didn't show correctly using lineno package with 2 columns
I encountered an issue while submitting a manuscript to a journal under Elsevier. I used the lineno package to add line numbers to my document. When compiling locally using Overleaf, the line numbers ...
0
votes
0
answers
18
views
Two column linenumbers in outer margin does not work with Revtex4-2
If I use lineno with the switch option in \documentclass[twocolumn]{article}, the output is what I would expect, the line numbers appear on the outer margins.
But, using
\documentclass[twocolumn]{...
2
votes
0
answers
35
views
Balance columns on last page of two-column article [duplicate]
I am working on the two column document. I am using the flushend package to automatically balance the columns on the last page. If I add the lineno package, the last page is not balanced.
If I remove ...
1
vote
1
answer
82
views
Lineno line numbers render incorrectly with 2 columns, Polyglossia and RTL language
I'm trying to produce a 2-column paper with line numbers on the sides using the lineno package. However, I need to include some examples written in a right-to-left language (Urdu in my case, but any ...
0
votes
0
answers
51
views
Line numbers for displayed maths inside boxed minipage
I need to add line numbers to things like the following, probably inside the box and at the right-hand side, with numbers on all the lines, including the maths. I see that there is a package called ...
0
votes
0
answers
35
views
Linenumbers include title, author using lualatex
I have got proper linenumbers in the twocolumn mode, except title and authornames . I have using LuaLaTeX Version 1.17.1. How to get auto linenumbers include all the texts(like title, author etc...). ...
5
votes
1
answer
72
views
is there a lineno.sty interactions with \widowpenalty and \clubpenalty?
I stumbled upon an interaction effect between lineno.sty and \widowpenalty and \clubpenalty. It's good to put this into a record that is searchable here:
\documentclass[12pt]{article}
\widowpenalty=...
0
votes
0
answers
91
views
Option clashing Latex error while using "switch" option for lineno package
I am working in two column paper. The line numbers for both columns are coming left side. It is fine for the left column whereas the line numbers for the right column is merging with the text. To ...
4
votes
1
answer
170
views
Line numbers in \captionof
I would like to prepare a dcument of class article with line numbers. Calling \linenumbers numbers the lines within the text as expected. However, I would also like to number the lines of captions ...
0
votes
0
answers
41
views
Seeing line number
I am writing a paper with double column. When I use \packages{lineno} and \linenumbers, it shows every line of each column.
I just want to see line numbers on the left of empty space. How can I do ...
1
vote
0
answers
77
views
Line Numbers inside a Tikz Environment
I'm trying to split my page into 4 subparts, similar to How to split a page into four areas in tex. I wish to number the lines of text inside each of these parts, using the lineno package. But the ...
0
votes
1
answer
106
views
"lineno" not compatible with "balance" [duplicate]
In the file with two columns by twocolumn options, the last page can't be balanced by balance package if lineno package works.
\documentclass[twocolumn]{book}
\usepackage{lipsum,balance}
\usepackage[...
0
votes
0
answers
65
views
lineno inside a minipage
I need to number every line (or by multiple of 2 or 5) of the Greek text. The problem is... lineno is not working inside a minipage.
Before you ask: I am not using Reledmac because One of the two ...
1
vote
0
answers
46
views
Line numbering fail in Standalone class
In the manual of standalone, it is written, that the margins are removed, so that the page ist croped to the content. In addition, we can use multiple pages thanks to "multi=my", which is ...
2
votes
2
answers
131
views
Save LAST number of line as setcounter/newcommand (lineno)
My goal is to save the last number of the line in the enviroment \begin{linenumbers} ... \end{linenumbers} (which is in this example 3) as a counter or newcommand (or something similar). How can i get ...
0
votes
1
answer
42
views
Commenting out lineno and disabling commands related to it via ltxcmds fails to compile unless I manually delete the aux file
From a previous question, take this example
\documentclass{book}
\usepackage{lipsum}
\usepackage[left, pagewise]{lineno} % LINE
\usepackage{ltxcmds}
\makeatletter
\newcommand{\OnlyIfPackageLoaded}[...
0
votes
0
answers
18
views
Trick with lineno on both sides can't be "compiled-out" via ltxcmds [duplicate]
Some time ago I took the solution from this answer to show lineno's line numbers on both sides of the page.
However, I want numbers to be in place only sometimes (say when I need to send the document ...
0
votes
1
answer
90
views
lineno iteracts badly with tcolorbox
The result of the following MWE:
\documentclass{book}
\usepackage{lipsum}
\usepackage[left, pagewise]{lineno}
\usepackage[most]{tcolorbox}
\newtcolorbox{foo}[1][]{
blanker,
breakable,
left=...
0
votes
0
answers
42
views
Line numbering lineno and empheq
In my preamble,
I use
\usepackage[mathlines,right]{lineno}
for line numbering.
I use empheq for equation system, since I need the left bracket.
\begin{empheq}[left=\empheqlbrace]{align}
2x+y &...
0
votes
0
answers
28
views
Referring to line numbers and citations in another document [duplicate]
In revisions to a manuscript, we need to make references to where some text has been added in the main document (manuscript.tex), in our response document (response.tex). As can be expected in ...
2
votes
0
answers
183
views
Very weird interaction between lineno and mathtools
The following:
\documentclass{article}
\usepackage{lineno}
\modulolinenumbers[1]
\usepackage{mathtools}
\begin{document}
\linenumbers
Test, hi!
\end{document}
gives multiple errors about e.g., \...
0
votes
0
answers
38
views
Where to find a "CTAN Package Documentation" like template [duplicate]
I need to write a formal document, with numbered lines (package lineno) and with some particular "float" out of paragraph margins.
I found that the CTAN package documentation style is ...
0
votes
0
answers
183
views
Index Entry with its line info (lineno package)
I want to show line number in index entry, like this question showing-line-number-in-glossaries. The Test Code below
\documentclass{report}
\usepackage{xcolor}
%%%%%%%%LINE NUMBER
\usepackage[...
1
vote
2
answers
209
views
line numbers (lineno) with non-standard paragraphs
I am using the article class with the lineno package, to provide line numbers, and would like to highlight certain paragraphs with a vertical bar, as in the example below. How can I keep the line ...
1
vote
1
answer
85
views
Counting lines within tabulary
I am trying to add line numbers to an article that I am writing, using the lineno package. For the most part this works well, except for tables (using tabulary): Counting the whole table as a single ...
1
vote
1
answer
87
views
How to avoid an extra line number when breaking page (lineno package)
I'm using lineno to number lines, but sometimes I have to force a page break inside a paragraph and for that I use \break\newpage\noindent. The page break is perfect, but
lineno adds an extra line ...
2
votes
1
answer
1k
views
Turning line numbering off in the lineno package
I would like to find a way to number the lines of a text and add references to specific lines, while at the same time retaining the ability to turn line numbering off. (This is useful when one writes ...
4
votes
1
answer
155
views
How not to select line number for copy and paste in lineno?
I am using the lineno package to number the lines. However when I select a paragraph of text for copy and paste, the line numbers also get copied. How can I avoid this?
I did some searches but came ...
0
votes
1
answer
954
views
Continuous line numbers in the output pdf
I am using the following code :
\documentclass[11pt]{amsart}
\setlength{\textheight}{23cm}
\setlength{\textwidth}{16cm}
\setlength{\topmargin}{-0.8cm}
\setlength{\parskip}{0.3\...
1
vote
1
answer
373
views
lineno exclude section subsection etc
This question was asked before where the accepted answer patches relevant LaTeX macros involved. This accepted answer does not work for me - the code has no effect. Anyway, the lineno documentation ...
1
vote
1
answer
194
views
Why \centerline does not count the line number
I am using \centerline to center text, and I need to count the line numbers. I use the lineno package, but I found that the content contained in \centerline will not be included in the line number. ...
1
vote
1
answer
222
views
Why are some lines in the title not included in the line number?
for example:
\documentclass{article}
\usepackage{lineno}
\title{My Title}
\author{%
Author One$^1$ \\ Author Two$^2$
\\
\normalsize{$^1$Organization 1}\\
\normalsize{$^2$Organization 2}\\...
1
vote
1
answer
254
views
How to adjust the line number count of a double-column document to start from the title?
I have observed that in latex, the line number count of a single-column document starts from the title, but the line number count of a double-column document starts from the main text. I hope that the ...
0
votes
1
answer
291
views
In this example, why some lines are not marked with line numbers
\documentclass[12pt, reqno]{amsart}
\usepackage{ amsmath,amsthm, amscd, amsfonts, amssymb, graphicx, color}
\usepackage[bookmarksnumbered, colorlinks, plainpages]{hyperref}
\usepackage[running]{lineno}...
1
vote
1
answer
47
views
Using \immediate\write18 when lineno package yields spurious text
I am getting spurious text in the output of \immediate\write18 when the lineno package is used. The MWE below yields the following in the file foo.tex:
If one comments out the line that includes ...
0
votes
1
answer
93
views
lineno from chapter title onwards in two column document
i need to print the line numbers on from chapter title onwards for twocolumn document, but currently it is printing from the start of the text
how to get the line numberes from chapter title onwards? ...
2
votes
1
answer
331
views
Number all lines including figures, empty lines ,title and authors
I need to number all lines for paper submission but no available answer until now covers this.
the closest one is this one How to number all lines in a draft? but there is no available code.
Lineno as ...
1
vote
1
answer
70
views
Why is there an extra link box for long URLs when using hyperref and lineno?
Please consider this MWE:
\documentclass{article}
\usepackage{lineno}
\usepackage{hyperref}
% \linenumbers
\begin{document}
\url{https://www.this-is-a-very-long-url.com/this-is-a-very-long-url/this-is-...
3
votes
1
answer
319
views
No linenumbers inside the multicolumn text
Good Evening,
I need to remove linenumbers from inside the multi-column text.
Source:
\begin{multicols}{2}
\begin{enumerate}[\rm(a)]
\item Item 1
...
0
votes
1
answer
249
views
Hyperref isn't working right with lineno
For my end-of-year stats notes, I cite everything in line numbers because it makes everything much more specific, and it's relevant to my needs. I tried adding in hyperlinks so that it would be easier ...
5
votes
0
answers
148
views
Breakable tcolorbox and internallinenumbers
Consider the following example:
\documentclass{article}
\usepackage[many]{tcolorbox}
\usepackage{lineno}
\usepackage{blindtext}
\begin{document}
\blindtext[3]
\begin{tcolorbox}[breakable]
\...
0
votes
1
answer
487
views
Table of contents with line numbers?
For my AP Stats notes this year, I've been citing everything with line numbers instead of page numbers, as most sections wind up being less than a page and I want to be able to find things quickly. I'...
3
votes
1
answer
530
views
How can I add lines numbers (with Lineno) in the Abstract environment as defined in an Overleaf template
Problem:
How can I add lines numbers (with lineno) in the Abstract environment as defined in this Overleaf template?
The following piece of code is the Abstract definition, which is included in the ...
2
votes
3
answers
2k
views
How to put line numbers at the right side of the right column by combining multicol and lineno?
I would like to move the line numbers from the left side of the right column to its right side using lineno and multicol. Could you please help me how to reach this goal? My example is the following:
\...
3
votes
1
answer
1k
views
Extra \endgroup when using the Biometrika template
I recently downloaded the Biometrika 2020 template to use to typeset a paper (please see: Stylistic Requirement here: https://academic.oup.com/biomet/pages/General_Instructions ).
When typesetting, I ...
1
vote
2
answers
111
views
Lineno numbers left arabic right roman, same line
I can manage to get line numbers in roman (as it is explain in the documentation) but what I want is to be able to have the lines numbered on both sides of the text, left and right, but I would like ...
0
votes
1
answer
2k
views
latex linenumbers do not work properly
I am having some problem with lineno. Specifically, this happens when I introduce the first equation in my document. I the following example I get a wrong numbering of text lines in the latex ...
0
votes
1
answer
530
views
Disabling Line Number in Section Titles not Working
I am trying to apply the answer to this question in Overleaf. I want to number my lines but I don't want the chapter/section titles to be numbered. I'm running into errors when applying the answer. ...
1
vote
1
answer
48
views
mathools with lineno
The following MWE
\documentclass{article}
\usepackage{lineno,lipsum}
\usepackage{mathtools} % commenting this resolves the issue
\linenumbers
\begin{document}
\lipsum[1]
\lipsum[2] \[A=B\]
\...
2
votes
1
answer
136
views
Is there a way to use the line number (lineno) in makeidx?
Is it possible to use the numbers from the lineno package as the counter in imakeidx? As the MWE below shows, I tried using xpatch to change the counter for the index to thelinenumber, but without ...