Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [lineno]

The tag has no usage guidance.

1
vote
0answers
64 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
23 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 ...
0
votes
1answer
54 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
59 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 ...
5
votes
2answers
195 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 ...
0
votes
0answers
15 views

clashing line numbering of algorithm2e and lineno

I am using the line numbering package via \usepackage[left,pagewise]{lineno} and the algorithm2e package via \usepackage[ruled, linesnumbered]{algorithm2e} The numberings for both clash. For ...
2
votes
0answers
54 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
46 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
59 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
30 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
139 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
48 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 ...
0
votes
0answers
77 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
91 views

Mysterious missing content

Given the following LaTeX \documentclass{article} \usepackage{cuted} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{lineno} \usepackage{scrextend} \begin{document} \changefontsizes[...
1
vote
1answer
262 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 ...
3
votes
1answer
369 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
79 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 ...
5
votes
1answer
95 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
54 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
969 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
44 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
87 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
179 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 ...
5
votes
1answer
72 views

cleveref and lineno

How can I get cleveref to work with \linelabel from lineno? \documentclass{article} \usepackage{lineno} \usepackage{cleveref} \begin{document} \linenumbers Bla bla bla bla bla bla bla bla bla bla ...
1
vote
1answer
37 views

Can't set a toggle based on class option value

I'm trying to toggle linenumbers when the class option man is passed. So far I've tried the recommended answer from this answer but it doesn't work. LaTeX complains with an Undefined Control Sequence ...
6
votes
0answers
289 views

lineno option switch not working for 2 column along with ltxgrid

When I tried to use the package lineno alongwith ltxgrid under two-column layout, it causes line number clash in the text part. I tried using option switch (Lineno for 2 column) but still no luck. ...
1
vote
0answers
81 views

Command for getting number of lines in another file

My goal is to combine several documents into one, so maybe someone can recommend a different solution. More specifically, I need to input about 20 files in a master file, all from line 4 to the second-...
3
votes
1answer
47 views

Comparing linenumbers derived from \linelabel as numeric variables in XeTeX

I have a document with transcripts of interviews and I'd like to automate the process of getting the right linenumbers as a reference. So compiling with XeTeX I use \linelabel in a lineno environment ...
1
vote
1answer
59 views

Adaptation of “lineno” package

I'm having some trouble with a special referencing I'm trying to produce, due to its specificity. So, first, I'm trying to compile two paragraphes (the first one with line numbering on its side), ...
2
votes
1answer
171 views

Refer to line number in note

I want to add comments to a manuscript and refer to the line number I am commenting about. Is it possible to do that? I am using the standard article class, package lineno for numbering the lines and ...
4
votes
0answers
423 views

two column latex line number for revtex4-1

I want to move the line numbers of right column to the right side of column (I already tried switch and columnwise line numbers). I need line numbers for figure and table captions This is a minimal ...
3
votes
1answer
98 views

lineno with multicols in an enumerate list environment

I am using the lineno package but have run into a problem when I created a double column list (enumerate) environment. lineno counts each entry in the list as a line so that in the example below the ...
3
votes
0answers
199 views

Cross referencing line numbers between multiple documents with the pagewise option set

I am using the lineno package with pagewise numberings set. I would like to reference these line numbers from another file, so I am using the xr package. However, it doesn't seem to pick up on the ...
1
vote
1answer
353 views

Line number inside line “lineno” package

I have issue with this MWE \documentclass{article} \usepackage{lineno} \parindent=0pt \renewcommand{\thelinenumber}{-\arabic{linenumber}-} \begin{document} \linenumbers Text \thelinenumber\ text \\...
4
votes
1answer
324 views

Problem in defining new environment [duplicate]

Since I want to add line number in my manuscript, I have to wrap align environment into linenomath environment to have right numbering. I wanted to define new environment in preamble in which I want ...
1
vote
0answers
613 views

Missing some lines in adding line number of latex

I have used "lineno" package with "switch" and "pagewise" options to add line number in my document. But there is an interesting problem. Some lines in the documents have not been numbered. Could ...
0
votes
0answers
378 views

Lineno and figures

I am writing a document to submit to a journal and I am facing this weird problem : I am using the lineno package before submitting the paper and when I am loading it the last two figures of my ...