Questions tagged [lineno]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2
votes
1answer
20 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
0answers
20 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 ...
1
vote
0answers
16 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
1answer
43 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
0answers
37 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
2answers
42 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: \...
0
votes
0answers
28 views

How to restart line number for every new paragraph? [duplicate]

I use lineno packaage for line numbering. How to restart line number for every new paragraph? The only thing it can restart the numbering is for each new page. Is there any way in Latex that I can ...
0
votes
0answers
56 views

Conflict revtex and lineno with subfig

There seems to be conflict between the revtex class and the subfig package in the presence of lineno. Compilation is successful without the linenumbers call. It also works if the subfloats are ...
3
votes
1answer
197 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 ...
0
votes
1answer
34 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
1answer
59 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
1answer
51 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
1answer
28 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
1answer
34 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
1answer
37 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
0answers
427 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
1answer
82 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
1answer
85 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
1answer
40 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
1answer
74 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
0answers
22 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
1answer
265 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
1answer
252 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
1answer
684 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
0answers
94 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
0answers
65 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 ...
2
votes
1answer
569 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
1answer
122 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
0answers
106 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
1answer
107 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
1answer
1k 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
1answer
323 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 ...
14
votes
2answers
2k 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
0answers
204 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
2answers
78 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
1answer
233 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
1answer
65 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 ...
2
votes
1answer
827 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 ...
2
votes
0answers
78 views

lineno.sty not supported if use widetext.sty

I am using widetext.sty to span the equations over two columns. The output which is coming is perfect I would like to add linenumbers using lineno.sty, if I do so, the linenumbers is merging with the ...
2
votes
1answer
407 views

line numbers (of tex file)

I am looking for a way to annotate the pdf with line numbers (like we get with the lineno package). But I want these numbers to correspond to the line number in the source (tex) file, so I know where ...
2
votes
1answer
119 views

Mysterious missing content

Given the following LaTeX \documentclass{article} \usepackage{cuted} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{lineno} \usepackage{scrextend} \begin{document} \changefontsizes[...
6
votes
1answer
2k views

linenomath printing extra numbers on last line of multline, align, flalign environments

I am using \usepackage{lineno} to print line numbers on my document. My document has lots of equations. I use \usepackage{mathtools} and frequently use environments such as align, multline and ...
4
votes
1answer
2k views

Restart line numbers after every chapter

I am using the lineno package to add line numbers to my document. Is there a way to restart the numbering after every chapter? There is an option called pagewise which restarts line numbering on ...
2
votes
1answer
241 views

Aligning numbers from “lineno” package

So here's my problem (feel very sorry for not finding a solution on my own). \documentclass[10pt,paper=a4]{scrbook} \usepackage[modulo]{lineno} \usepackage{blindtext} \begin{document} This is a text ...
4
votes
1answer
221 views

atbegshi vs. lineno : retrieving the number of lines of a given page

I am trying to understand a bit better what atbegshi and lineno do (or accomplish). In the following example, I add the current linenumber to the shipout and am struggling to fully understand what's ...
5
votes
1answer
82 views

Test what number is \thePagewiseLineNumber

I want to test (not to print) if the actual line is the x line of a page. With the help of the lineno package I able to know if the actual line is the x line of the document, testing what number is ...
2
votes
1answer
3k views

Line numbers for 2 columns on the sides

How am I supposed to put line numbers in 2 columns, on the left side for the left one and on the right side for the right one? I've read a pdf there's on internet but there's nothing, I've tried ...
0
votes
0answers
52 views

Why there is a huge extra blank space at the beginning of this document? [duplicate]

After compiling following document, there is an extra blank space at the beginning of each page. I suspect there is an incompatibility between the lineno and pdfsync package. Is there a way to fix ...
2
votes
2answers
220 views

Using a line number reference as an argument for footnote

The \footnote{text goes in here} command takes an optional argument for numbering, so if I want to skip straight to footnote #5 or override the default numbering, I can do that: \documentclass{...
4
votes
1answer
610 views

Showing line numbers for text in tables

I was under the impression that this should be fairly simple. However, for texts put directly inside a table, line numbers are not being shown. Strangely, when texts are generated using lipsum, line ...