Questions tagged [lineno]
{lineno} is about questions regarding the package lineno.
89
questions
0
votes
1
answer
30
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
16
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
50
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
22
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
26
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
130
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
130
views
Elsevier’s CAS LaTeX Double-Column Template biography display error
I am using the Elsevier’s CAS LaTeX Double-Column Template. However, the biography part just go wrong. The biographies of the authors in the template are displayed correctly with or without images.
...
0
votes
0
answers
54
views
2 Column Line numbers left and right side - revtex4-1
I need to create linenumbers that appear throughout a two-column revtex4-1 document that appear in the outer margins of the page (left for left column, right for right column)
I have tried these ...
0
votes
0
answers
34
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
42
views
background color for quoted text
I am trying to use a colored background for quoted text and linenumbers in the document. I am trying to do that with the lineno and the tcolorbox packages, but they seem incompatible. Is there another ...
0
votes
0
answers
19
views
How to turn on line numbers only when a line is `\linelabel{}`ed?
I have a document with many pages.
I am using the lineno package to refer to lines inside the document.
I don't want to see line numbers everywhere.
Wrapping the \linelabel{}ed content with \begin{...
0
votes
0
answers
151
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
66
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
54
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
35
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
376
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
60
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
250
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
119
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
106
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
140
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
114
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
93
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
43
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
56
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
121
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
52
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
158
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
150
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
98
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
253
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
192
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
627
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
850
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
87
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
759
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
328
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
41
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
85
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
147
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}
\...
3
votes
1
answer
2k
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
262
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
178
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
70
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
198
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
28
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
662
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
707
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
2k
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
178
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 ...