The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [lineno]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
16 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
20 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
46 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 ...
1
vote
1answer
53 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
39 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
83 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
35 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
302 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
105 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 ...
6
votes
2answers
542 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
83 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
51 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
101 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
37 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
277 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
59 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 ...
1
vote
0answers
135 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
102 views

Mysterious missing content

Given the following LaTeX \documentclass{article} \usepackage{cuted} \usepackage[english]{babel} \usepackage{blindtext} \usepackage{lineno} \usepackage{scrextend} \begin{document} \changefontsizes[...
2
votes
1answer
432 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
742 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
121 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
135 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
61 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
1k 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
49 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
118 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
235 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 ...
4
votes
1answer
81 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
40 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
343 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
98 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
54 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
67 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
292 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
469 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
104 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
215 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
437 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
368 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
707 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
445 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 ...