Questions tagged [lineno]
The lineno tag has no usage guidance.
76
questions
1
vote
1
answer
15
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 ...
3
votes
1
answer
39
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
62
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\...
0
votes
0
answers
18
views
Misplaced line number in a custom theorem style
I defined a theorem style that has a line break after the theorem title. However, the line number of the first line is then misplaced (possibly because the \medskip is placed in an inappropriate place,...
1
vote
1
answer
33
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
37
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
33
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
31
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
47
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
41
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
38
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
61
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 ...
0
votes
0
answers
31
views
Using references to line numbers of lineno package to do calculations
In a text with lines numbered (page-wise and every five lines) I would like to place labels into the text and then use the line numbers of those places for the following calculation: I'm marking a ...
1
vote
1
answer
45
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-...
2
votes
1
answer
69
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
86
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 ...
4
votes
0
answers
58
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
121
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'...
1
vote
0
answers
90
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 ...
1
vote
2
answers
200
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
507
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
67
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
98
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
193
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
31
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
50
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 ...
0
votes
1
answer
70
views
How to have line numbering inside of page frame?
When using lineno for linenumbering, the following code
\documentclass{article}
\usepackage[columnwise]{lineno}
\usepackage{lipsum}
\usepackage{showframe}
\usepackage{multicol}
\usepackage{blindtext}
\...
1
vote
0
answers
890
views
Command \@parboxrestore has changed
I am working on a college project and to be specific we are using Another's template in Overleaf. so I don't know that much about LaTeX or Overleaf. There is an error showing up:
/usr/local/texlive/...
0
votes
1
answer
175
views
set margin 7 mm from left lineno internal line numbers
I am trying to set a 7 mm margin from the left on my pseudocode. I am using lineno package and this is what I wrote:
\lipsum[2-4]
\begin{alltt}{\footnotesize{\internallinenumbers
S = \(\emptyset\)
...
0
votes
1
answer
145
views
How to add title on line numbers?
So I am using the function \linenumbers which by default puts a number for each line at the left for the written text. But I somehow need a unit/title on the number but I can't find anything about ...
1
vote
1
answer
51
views
How to insert a special page without conflict with lineo package
I need to be able to insert independent pages within a chapter.
The goal is to be able to interrupting the reading a poem with the use of the 'lineno' package and its number the lines so that you can ...
2
votes
1
answer
111
views
How to insert a symbol to left of a line
I'm trying to find a solution to be able to insert a symbol (asterisk) at the beginning of the line of text without altering its length, that is, as for the line numbers with the lineno package, ...
1
vote
0
answers
25
views
Line numbers in paragraphs containing displayed equations and the graphbox and mathtools packages
I am using the packages mathtools and graphbox, and these seem to be interferring with lineno - numbers do not print for paragraphs that contain displayed equations.
This is similar to this problem,...
3
votes
1
answer
436
views
Elsarticle problem - overlapping footer when using lineno
I am having issues with the elsarticle latex template. My abstract is long (over 2 pages due to spacing and font size which is designated by the journal), and when I use lineno the footer becomes ...
2
votes
1
answer
456
views
Columnwise line numbering in a two column environment (with multicol)
In a two column environment, I need
columnwise line numbering and
the possibility to get the actual column number.
Now, columnwise line numbering is possible with lineno and the option columnwise.
...
0
votes
1
answer
1k
views
Change fontsize on line numbers in lineno package
Can't see anything in the documentation about this, but wondering if anyone knows if it's possible / how it is done.
My eyes hurt!
CTAN: Package lineno
0
votes
0
answers
136
views
standalone and lineno producing big white spaces
With line numbering on a 95 lines text inside a longer document, I have bad interactions between line numbering and the standalone package.
I have huge (and unwanted) white spaces added:
The text can ...
2
votes
0
answers
79
views
Line numbers for large(ish) continuous two-column document?
I have a ~30 page translation thesis where around 15 pages are in two columns with Chinese on the left and English on the right. Preferably I want line numbers for both columns on each side of the ...
3
votes
1
answer
759
views
Adding line numbers without lineno package
I've had several persistent issues with the lineno package and journal article templates (e.g., not numbering certain paragraphs). Is it possible to just add an "unaligned" column of line numbers on ...
4
votes
1
answer
151
views
How to avoid linenumbers in paragraph headers
I want to include line numbers(lineno) in an enumeration of paragraphs. How do I avoid line numbers in front of each paragraph header? What I need is something like
\newcommand{\myParagraph}[1]{\...
1
vote
0
answers
120
views
reledmac - no columns - different linenumbers in left and right margin
I don't know if this is even possible but it never hurts to ask: I am transcribing a medieval Dutch manuscript in which text is displayed in two columns. I have to display it in one continuous text. ...
3
votes
1
answer
163
views
usepackage[modulo]{lineno} - need also linenumber on line 1
I use lineno to number my lines, obviously.
I need a number every 5 lines so I enabled the option modulo.
But, because 1 mod 5 <> 0, the firstline does not get numbered.
And as you already ...
2
votes
1
answer
2k
views
elsarticle + Lineno: numbering abstract's lines
I'm using elsarticle class for preparing a manuscript for an Elsevier journal.
However, after I've compiled my document with pdfTeX 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian), the text written in ...
0
votes
1
answer
396
views
lineno workaround reset impossible using pagewise/switch etc
I'm having a difficulty/impossibility with the lineno package.
What I want to write is a book, so double-sided, with different sections each anew beginning at 1.
So the setup is quite simple and ...
15
votes
2
answers
3k
views
How to use lineno with amsmath align?
Is there a way to have lineno show line numbers for a paragraph that uses the align environment?
In the following example, the (first) paragraph that ends with \begin{align} ... \end{align} does not ...
2
votes
0
answers
245
views
Last page is blank when using lineno
When I include \usepackage{lineno} the last page always is rendered blank.
I used this template for the manuscript, but the error doesn't seem to occur with that alone. I couldn't figure out a MWE to ...
2
votes
2
answers
83
views
Simple "lineno" macro that doesn't work
I'm trying to automate the command \linelabel in a way that it could create its own label name. Here is a MWE:
\documentclass{article}
\usepackage[modulo]{lineno}
\newcounter{countone}
\newcounter{...
1
vote
1
answer
311
views
Conflict between revtex4-1, lineno and siunitx: Improper \prevdepth
Compiling this MWE
\documentclass{revtex4-1}
\usepackage{lineno}
\linenumbers
\usepackage{siunitx}
\begin{document}
Compilation fails
\end{document}
fails:
! Improper \prevdepth.
<recently ...
1
vote
1
answer
79
views
Line numbering doesn't work as expected
I'm currently working on a large document and want to add line numbers for proofreading purposes. I'd like to reset the current number after every new chapter/section/subsection. To achieve this I ...
3
votes
1
answer
1k
views
Lineno package in latex causes warning message
I'm trying to figure out why the line number package in latex causes a warning message. Once I add lineno package in my preamble, I receive the following message:
./lineno.sty: LaTeX Warning: Command ...