Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [lineno]

{lineno} is about questions regarding the package lineno.

Filter by
Sorted by
Tagged with
2 votes
0 answers
33 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 ...
Rajasekar's user avatar
1 vote
1 answer
66 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 ...
Tuetschek's user avatar
  • 253
0 votes
0 answers
32 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 ...
Aster's user avatar
  • 1
0 votes
0 answers
30 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...). ...
Kavi's user avatar
  • 101
5 votes
1 answer
70 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=...
ivo Welch's user avatar
  • 3,788
0 votes
0 answers
73 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 ...
Rajasekar's user avatar
4 votes
1 answer
103 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 ...
Mareike's user avatar
  • 105
0 votes
0 answers
36 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 ...
이영규's user avatar
1 vote
0 answers
65 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 ...
Aditya's user avatar
  • 21
0 votes
1 answer
65 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[...
Y. zeng's user avatar
  • 1,983
0 votes
0 answers
51 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 ...
Teodoro's user avatar
  • 587
1 vote
0 answers
42 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 ...
Bilal Yilmaz's user avatar
2 votes
2 answers
119 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 ...
Bilal Yilmaz's user avatar
0 votes
1 answer
40 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}[...
Enlico's user avatar
  • 2,612
0 votes
0 answers
17 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 ...
Enlico's user avatar
  • 2,612
0 votes
1 answer
74 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=...
Enlico's user avatar
  • 2,612
0 votes
0 answers
34 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 &...
user289959's user avatar
0 votes
0 answers
27 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 ...
user2751530's user avatar
  • 1,102
2 votes
0 answers
178 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., \...
Clément's user avatar
  • 5,611
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 ...
Dawson's user avatar
  • 257
0 votes
0 answers
169 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[...
Marcus's user avatar
  • 91
1 vote
2 answers
144 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 ...
Ingmar's user avatar
  • 6,700
1 vote
1 answer
73 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 ...
Ingmar's user avatar
  • 6,700
1 vote
1 answer
75 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 ...
yannis's user avatar
  • 2,003
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 ...
Jingo Loba's user avatar
4 votes
1 answer
145 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 ...
zmkm's user avatar
  • 379
0 votes
1 answer
787 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\...
HARRY's user avatar
  • 115
1 vote
1 answer
314 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 ...
Timmy's user avatar
  • 95
1 vote
1 answer
173 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. ...
happy's user avatar
  • 149
1 vote
1 answer
213 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}\\...
happy's user avatar
  • 149
1 vote
1 answer
199 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 ...
happy's user avatar
  • 149
0 votes
1 answer
231 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}...
happy's user avatar
  • 149
1 vote
1 answer
45 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 ...
Peter Grill's user avatar
0 votes
1 answer
89 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? ...
pdy-ind's user avatar
  • 2,102
2 votes
1 answer
287 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 ...
D.A.'s user avatar
  • 41
1 vote
1 answer
69 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-...
rmolina's user avatar
  • 183
3 votes
1 answer
295 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 ...
Latex new user's user avatar
0 votes
1 answer
231 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 ...
generallyconfuzzled's user avatar
4 votes
0 answers
135 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] \...
Jinwen's user avatar
  • 8,568
0 votes
1 answer
450 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'...
generallyconfuzzled's user avatar
3 votes
1 answer
481 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 ...
Ommo's user avatar
  • 827
1 vote
2 answers
1k 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: \...
TobiR's user avatar
  • 594
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 ...
agkg's user avatar
  • 31
1 vote
2 answers
109 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 ...
Bpi's user avatar
  • 188
0 votes
1 answer
1k 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 ...
diedro's user avatar
  • 1
0 votes
1 answer
498 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. ...
WnGatRC456's user avatar
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\] \...
Tohiko's user avatar
  • 1,823
2 votes
1 answer
126 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 ...
linenonono's user avatar
0 votes
1 answer
271 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} \...
Richard Torres's user avatar
5 votes
1 answer
3k 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/...
priyabrata ray's user avatar