{line-numbering} is about numbering the text lines of documents or parts of them. Popular packages are `lineno` and {ledmac}.

learn more… | top users | synonyms

6
votes
1answer
80 views

Linenumbers in longtable

I have to add line numbers to a document. It would be nice if the line numbers are also printed (and counted) inside tables. Consider the following example: \documentclass{scrartcl} \usepackage{...
2
votes
1answer
28 views

How to reinitialize the lines counter for algorithms?

I have four algorithms in a section but the problem is that the lines numbering doesn't start with 1 in each algorithm. For example, the first one is numbered from 1 to 11 but the second one start ...
1
vote
0answers
18 views

Disable automatic line numbering for ECCV2014 conference template

I'm writing a study report with ECCV2014 conference template, as the following image shows, this template automatically generates line numbering and I want to disable it so I can write some comments ...
1
vote
1answer
31 views

adjusting line spacing of line numbers within description list

How can I adjust line spacing of numbers to be in front of text lines within description list: I couldn't managed to solve the problem with lineno package. \documentclass[10pt]{article} \usepackage{...
2
votes
1answer
42 views

Line numbering for boxed multi-line equations using empheq package leaves extra blankspace

I'm using the empheq package to put boxes around equations that span multiple lines (using align). There are 6 lines to the equation, and the whole box should receive one number (1), for which I use ...
0
votes
0answers
16 views

lineno package skip some lines

I want to add line numbering in my tex file. As you can see sometimes numbering is skipped as follows: I tried many things For example, if I add following lines \usepackage[displaymath, mathlines]...
2
votes
1answer
31 views

Aligned equation environment with number at bottom that allows for page breaking

I'm looking for a better way of using aligned equations in my documents that allows for pagebreaks and numbers only the bottom equation like this: Although, I would prefer to be able to have the same ...
0
votes
0answers
57 views

Line number in manuscript

I am doing a manuscript submitted to the Elsevier Editorial System. It is suggested the manuscript with line numbers to guide the revision process as below. But, the \usepackage{lineno} skips some ...
3
votes
0answers
35 views

Getting line numbers in footnotes with bigfoot / manyfoot

I am using the bigfoot package for footnotes, and trying to use lineno / fnlineno for line numbers. I haven't been able to get them to work together. The documentation for fnlineno obliquely suggests ...
0
votes
1answer
45 views

How to put a vertical line with derivative [duplicate]

Dear All in attached image how I can put a vertical line with derivative .Any command for this please?
2
votes
0answers
70 views

how can I create a tcolorbox with line numbering?

I created the following tcolorbox: \documentclass{article} \usepackage{tcolorbox} \usepackage{lineno} \begin{document} \begin{tcolorbox}[middle=0mm,boxsep=0mm] Headers \tcblower \setlength\...
0
votes
0answers
10 views

labeling lines in text body [duplicate]

Is it possible to set "label markups" or a "placeholders" in a text, to refer to a particular line? I am thinking of this in the context of academic article revision, where usually people comment on ...
1
vote
1answer
63 views

lineno skips some lines containing equation environments

I am using TeXworks 0.5 r.1350 (Debian). My tex source is \documentclass[a4paper,11pt]{article} \usepackage{amsmath} % needed to get the command equation* to work \usepackage[a4paper]{geometry} % ...
2
votes
1answer
79 views

line numbers across multicols in scrartcl

The answer to the following question suggested by @IanThompson with left and right column numbers works sufficiently when we use \documentclass[twocolumn]{article} However I am using a different ...
2
votes
2answers
65 views

How to get continuos line numbers for minted code blocks

I use minted in following way: \documentclass[a4paper, 11pt, twoside]{article} \usepackage{xltxtra} \usepackage{xunicode} \usepackage{polyglossia} \usepackage[svgnames]{xcolor} % Syntax higlight \...
1
vote
1answer
31 views

Printing the line number with eledpar in facing pages only on the left page, but not on the right one

I am editing an ancient poem with an apparatus criticus and my own prose translation of it. So I want the line numbers only on the leftpage (poetry), but not on the the right one. As far as I have ...
2
votes
1answer
280 views

Adding line numbers to an IEEE Latex document

I would like to add line numbers to an IEEE paper style. I have tried using different approaches, however non was successful. For example, when using \usepackage[switch,columnwise]{lineno} there will ...
4
votes
1answer
99 views

Supressing the very first line number in the code

So I have looked at the following: Suppress line numbering for specific lines in listings package And the solution works great for the nth line of code. What if I want to suppress the very first ...
2
votes
1answer
191 views

Listings: Skip line number on current line

So I am trying to use the listings package to show some source code. However I would like to be able to skip line numbers for certain lines, such that the do not receive any line number, but does not ...
1
vote
0answers
48 views

Count lines of multiple files (Using minted for formatting.)

I am using minted to show source code in my document like this: \section{Image functions} \inputminted{python}{src/imagefuncs.py} \section{Matrix operations} \inputminted{python}{src/matrices.py} \...
2
votes
1answer
252 views

Left-align numbers in ToC

How do I lelft-align the chapter and section, number in the ToC? My code is: \documentclass[12pt]{report} \usepackage{tocloft} \makeatletter \renewcommand{\numberline}[1]{#1~} \begin{document} \...
6
votes
1answer
59 views

Command that outputs at the end of the document the pages and line numbers where it was used

I need to a command that outputs at the end of the document the pages and line numbers where it was used. I've tried different variants of the following code but my knowledge of latex is limited. I'm ...
1
vote
2answers
81 views

add line number to the algorithm2e [duplicate]

How can I add line number to my algorithm? I want to write line number in the front of the algorithm line. How can I get that with the \usepackage[ruled]{algorithm2e}? Code: \documentclass{article} \...
0
votes
0answers
118 views

Line numbers in listings (lstlisting) based on actual appearence in PDF file

I'm using the listings package to insert source code into my TeX files. I also set the option \lstset{numbers = left} in order to have the line numbers next to my source code and be able to refer to ...
4
votes
2answers
131 views

Programming code listing: enumeration and left margin

I'd like to inlcude programming codes in LaTeX by using the verbatim package. For the code I use, the enumeration is continous. So if a new code starts, the numbers are ongoing, which should not be ...
5
votes
1answer
282 views

Skipping line numbers in lstlisting

Referring to Skip line numbers and resume from specific number I tried to skip several line numbers in my listings and continue with a specific number. But in my case there is a really bad side effect:...
7
votes
1answer
60 views

How can you correctly combine lineno and paracol?

When a paragraph inside paracol is split up over multiple pages all the line numbers show up at the top of the page where the paragraph has ended instead of next to the line they belong to. The ...
3
votes
1answer
113 views

How to put a line number with levels in algorithm?

\documentclass[a4paper, 10pt, 3p, final, twocolumn, times]{elsarticle} \usepackage{algorithm} \usepackage{algorithmic} \begin{document} \begin{algorithm}[htbp] \caption{somealg} \label{alg} ...
1
vote
0answers
20 views

How to align algorithm with text [duplicate]

I am using the algorithm2e package for a paper, and I am using it as follows: \usepackage[ruled,linesnumbered]{algorithm2e} Everything works OK, however, when I added the linesnumbered directive (...
2
votes
1answer
68 views

Number equations and preserving alignment of equal signs

So as I have learned from a previous post that the \begin{aligned}... \end{aligned} with the usage of "&" before "=" will help arrange neatly the equations where the equal sign of each equation ...
2
votes
1answer
38 views

How do I cite a range of lines?

I want to be able to specify a short excerpt of text that can be cited as a range of lines in the output PDF, ideally with this kind of syntax: \documentclass{memoir} \usepackage{lineno} \begin{...
5
votes
0answers
115 views

line numbering in article class [closed]

I want to make numbering line even though they are blank lines in the article class, how can I do with package of lineno? You can wonder why I must numbering the blank line because that is ...
5
votes
1answer
53 views

Why does it appear that some lineno internal commands are never called?

At the end of lineno's cryptic documentation, the author lists certain "for wizards commands." I'm trying to implement a special tag for the first line number, so I thought I would probably begin by ...
0
votes
0answers
17 views

How to print numbers in both margins with lineno [duplicate]

It was said here that the package lineno is able to print numbers in both margins on a page. However, after reading the documentation I don't see how to do this.
1
vote
0answers
23 views

Linenumbering problem

When I am using line numbering I am getting to this problem: Basically the command for line numbering is perfectly working until page 8 from 11 of my document. It seems that from this point the ...
1
vote
1answer
175 views

two column with linenumber outer text-area

I would like to print the linenumbers in the outer-margin. How do get the linenumbers in the margin (in this example linenumbers 33 to 63 should be print in right column)? My LaTeX Code is: \...
1
vote
1answer
66 views

To linenumber at start of sentences without altering data?

I have data which I do not want to change or duplicate it. I would like to have a line number after each empty line. It would be great if this can be done by some presentation only. Data This is a ...
1
vote
1answer
54 views

How to switch between “ON” & “OFF” modes for printing line numbers in a modular document, using lineno package?

Background: I am using the modular document approach for writing my thesis. Since, the work is still in progress, I am also printing line numbers wherever needed, using the \linenumbers & \...
0
votes
1answer
47 views

Line number in cross reference without visible line number in the entire document

My question is related to Line number in cross reference. I would like to give a reference to the line number of an specific line without any visible line number on the entire document. The below ...
2
votes
1answer
143 views

Can I change linenumber colour?

I've tried adding the lineno package to my document. It's nice but I would like to make the numbers a different colour, like a light grey or blue, if possible. Can I do this in my style document ...
1
vote
0answers
73 views

How to number lines (per page and on the inner margin) without lineno?

I have been experimenting a lot lately to find a cure to the question I asked in December but as of yet I have been unsuccessful. Now, while this is entirely due to the fact that I do not have enough ...
2
votes
2answers
306 views

Increase the maximum line numbers of a page

I am trying to achieve an ieee draft to meet the requirements: Double spacing, single-column format, 12 point font, 1 inch margins and no more than 25 lines of text per page. I am using the following ...
4
votes
1answer
48 views

Typesetting verse with line numbers directly adjacent (not in margin)

When I quote verse (in a document typeset by XeLaTeX), I would like to be able to place line numbers directly adjacent to the lines, not in the margin to the left. For example: \documentclass[12pt,...
4
votes
0answers
267 views

\inputminted: distinct file parts in one listing (equivalent to linerange in listings)

I want to include code from a file into my document. However, several distinct line ranges should appear in the same listing. Also, I want to use gobbling, and it would be nice to include some blank ...
4
votes
3answers
116 views

Incompatibility between lineno and equation*

In addition to a lot of others incompatibilities, also there is one between lineno and equation*. Is there any chance to have the lineno package updated to solve this problem? Does anybody here knows ...
3
votes
1answer
164 views

Listings: line number separator rule

Here I found a similar question with horizontal rule, which answer I don't understand to a degree I could use it to solve my problem: Adding a horizontal rule between caption and lstlisting inside a ...
3
votes
0answers
45 views

How to get listings package line number behavior of v1.3 in v1.5?

In the listings package v1.3, when including lines from a file, the numbering is that from the file, even if lines are omitted (absolute numbers). But in v1.5, the numbering ignores the location in ...
7
votes
0answers
71 views

lineno package has different output in pdflatex and lualatex [closed]

Using line label references from the lineno package prevents lines from being broken at explicit hyphens in words adjacent to the label. Consider the following MWE: \documentclass{article} \...
10
votes
2answers
129 views

Paragraph numbering (lineno for paragraphs)

How can I add margin numbering for paragraphs? It should be alternating (left and right) for odd and even pages. So basically like lineo with the switch option but for paragraphs instead of lines.
5
votes
1answer
118 views

Line numbering across verses in memoir

I'm typesetting some poetry that needs to be numbered but that is frequently interrupted by comments, something like a play. I want the numbering to be continuous from verse to verse but to omit the ...