{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

1
vote
0answers
12 views

Is it possible to get the leading spaces and correct quotes in copy/paste from PDF?

Using this solution Only Select Code without Line Numbers I allow the listings to be copyable from PDF w/o the line numbers and many extra spaces. But that also removes the leading spaces used for ...
1
vote
1answer
25 views

Show line number in TeXnicCenter

i want to see line numbers, i read that i could do that from Tools ->Options -> Editor -> Show line numbers but I don't have the Show line numbers option in my version of TeXnicCenter. Is ...
5
votes
1answer
395 views

Problem with line numbering in BMC Journal template

I am re-formatting a manuscript submitted to the BMC Medical Informatics and Decision Making Journal. To format the manuscript I used the bmcart.cls template provided by the BMC journal. It is ...
5
votes
1answer
497 views

Incompatibility between 'flushend' and 'lineno' packages!

I have observed when using flushend package to balance the references at the last page, if at the same time the package linenois loaded, the last page of reference will not be displayed. I have ...
6
votes
1answer
83 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
38 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 ...
4
votes
3answers
121 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 ...
1
vote
0answers
31 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
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
34 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{...
17
votes
2answers
10k views

Adding line numbers to latex and respecting equations

It's often convenient to add line numbers to a page automatically and the lineno package generally does the trick. But I've had two problems with it It doesn't seem to align the line numbers with ...
16
votes
2answers
8k views

Number every line of pages

When editing documents it is convenient to have all the lines on a page numbered (on the left margin) so that the reviewer can refer to them in his report. How can I achieve this with LaTeX?
2
votes
1answer
50 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
19 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]...
4
votes
2answers
138 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 ...
2
votes
1answer
33 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 ...
2
votes
1answer
319 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 ...
3
votes
0answers
38 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
0answers
64 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 ...
55
votes
9answers
19k views

Add page and line numbers to a pdf

Is there any quick script to add page and line numbers to each page of a pdf document? 1) I often enough get articles in pdf to review, with no page number. I end up writing them by hand to refer to ...
11
votes
2answers
1k views

Listings line numbers that match the linerange specification

This is a follow-up question to First line number in lstinputlisting environment. Consider the MWE: \documentclass{article} %\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox \usepackage{...
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?
6
votes
2answers
3k views

Continue line numbers in listings package?

I have been using the listings package to present my source code in LaTeX. However, I can't get the line numbers to continue between two separate user-defined listings that have been given the same ...
2
votes
0answers
78 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\...
1
vote
1answer
68 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} % ...
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 ...
2
votes
1answer
87 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 ...
7
votes
1answer
818 views

How to have inline code and line numbering with minted?

I'm using the code found in this answer to allow minted to provide inline code. But, unfortunately, this breaks line numbering, which is not shown anymore. How can I have both inline code and line ...
7
votes
0answers
104 views

KOMA + bigfoot + lineno seem to produce vertical gaps in some cases

in a lengthy critical edition, I am using KOMA-Script, bigfoot and lineno. In certain cases, all involving footnotes, there are vertical gaps on the page containing the footnotes. This affects roughly ...
12
votes
3answers
4k views

Why doesn't lineno number a paragraph when it is followed by an indented equation?

While searching for the source of missing line numbers, I realized that paragraphs followed immediately by an equation have no line number, but this is fixed when a space is included, e.g. the ...
2
votes
2answers
71 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 \...
4
votes
1answer
107 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 ...
1
vote
1answer
32 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 ...
20
votes
3answers
6k views

Why doesn't lineno number a paragraph when it is followed by an “align” equation environment without a space?

lineno skips the line numbering in this case: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{lineno} \linenumbers \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing ...
2
votes
1answer
217 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 ...
13
votes
3answers
3k views

Lineno - numbering abstract's lines.

The package lineno.sty is not numbering my abstract's lines. Any suggestions? Thanks. \documentclass[a4paper,12pt]{amsart} \usepackage{indentfirst} \usepackage{hyperref} \usepackage{showkeys} \...
4
votes
1answer
292 views

SLatex and line numbering?

I'm using SLaTeX to typeset some Racket source code. I would like to have line numbers along the left edge, so that I can refer to them in my document. However, I haven't yet discovered the option ...
1
vote
0answers
50 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
276 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
62 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 ...
4
votes
2answers
276 views

how do I add line numbers to itemize environment?

I have an itemize environment that I use in a figure to describe, say, an algorithm or a process. I want to include line numbers, all aligned on the left most side of the figure so that I can refer to ...
3
votes
0answers
46 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 ...
1
vote
2answers
90 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} \...
6
votes
2answers
754 views

Shared line counter with \lstinputlisting

Using the listings package, you can name your listings to make them share a line counter: On the other hand you can use firstnumber=auto and name your listings. Listings with identical names (...
0
votes
0answers
120 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 ...
5
votes
1answer
313 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
62 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
123 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
69 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 ...