{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
4 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} ...
4
votes
0answers
57 views

line numbering in article class

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
45 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
15 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
1answer
32 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: ...
7
votes
1answer
2k views

Listing with line numbers inside a table

I typeset a lot of listings (using the listings package) inside (array-based) tabular environments. This works like a charm, however, breaks when I pass the numbers= option to the listing: ...
1
vote
1answer
29 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 ...
2
votes
1answer
52 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
19 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 ...
0
votes
0answers
26 views

fnlineno footnote line spacing

Does anybody know how to keep footnote line spacing while using fnlineno package? \documentclass[10pt]{article} \usepackage{fontspec} \setmainfont{Linux Libertine} \usepackage{polyglossia} ...
8
votes
2answers
64 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.
11
votes
3answers
3k 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 ...
3
votes
0answers
76 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 ...
0
votes
1answer
13 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 ...
3
votes
2answers
450 views

Linenumbers don’t reset with switch option

When I use the package lineno with option [switch], linenumbers don’t reset when asked to (my setup: up to date TL 2012). MWE: \documentclass{article} \usepackage[switch]{lineno} \usepackage{lipsum} ...
1
vote
1answer
24 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 & ...
1
vote
1answer
39 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
37 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
68 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 ...
10
votes
2answers
3k 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 ...
16
votes
1answer
9k 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 ...
4
votes
1answer
28 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: ...
4
votes
0answers
71 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 ...
3
votes
1answer
83 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 ...
1
vote
0answers
21 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
59 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} ...
5
votes
1answer
77 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 ...
3
votes
1answer
88 views

Hidden line numbers

MWE: \documentclass[12pt]{book} \usepackage{lineno} \begin{document} \chapter{Hidden Line Number}\label{cha:hln} \linenumbers %\begin{nolinenumbers} One Two\linelabel{two}\label{two} Three The ...
2
votes
1answer
122 views

Plain TeX: For every line in a marked chunk of text, put character in right margin

I'd like to wrap certain chunks of text in my Plain TeX document so that, to the right of each line in the chunk, a specific character is printed in the right margin. All of these characters should ...
6
votes
2answers
174 views

Line numbers collide with marginnotes on even pages in a book

I am having a bit of a problem with margin notes colliding with line numbers on the even pages of a book. I would like to adjust the margins so that the notes can stay where they are. I think this ...
3
votes
1answer
141 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 ...
1
vote
0answers
48 views

Changes sides of lstlisting line numbering when switching pages

I am currently writing some tesxt for my masters thesis. I have a coste listing which expands on two pages. I would like the listing to change sides of line numbering when switching the page. Is there ...
2
votes
1answer
34 views

lineno and obeylines

How can I number the lines (using lineno) of a text while using obeylines such that I don't have to put a \\ at the end of every line. I've tried: \newenvironment{foo} { \begin{linenumbers}[1] ...
2
votes
1answer
35 views

Eledmac reference lemma with word rank

Honestly, I don't understand how to use the subline numbering feature. I would expect to be able to refer to the first of two identical words in the lemma of the apparatus. For example: Tertia ...
0
votes
1answer
54 views

Line numbers restarting

My line numbers are restarting midpage whenever there is a new section heading or a new environment (like an indented quote). Is there something I need to add to these commands (below) in order to ...
1
vote
1answer
118 views

Internal line numbers end before last unended paragraph

I'm currently working on a project where I want linenumbers to appear for text in a table-environment. Lineo provides the command \internallinenumbers for this task. As far as I understood, the normal ...
3
votes
1answer
123 views

Why does the \LinesNumbered command not work of the algorithm2e package in beamer frame?

I want to add line number from the fourth line, but the \LinesNumbered command doesn't work at all. \documentclass{beamer} \usepackage{algorithm2e} \begin{document} \begin{frame} ...
0
votes
0answers
22 views

Line number problem [duplicate]

Line number is not viewed all the environments like figures, tables, user defined environments Find attached below mentioned error fixing sample tex document \documentclass[twocolumn]{article} ...
1
vote
0answers
86 views

Continues Line numbers printed all the environments

I am using lineno.sty package. I am using package in two column layout. I am using the lot environments like "Opening page mini page concept, Keybox, figures, tables, lot of user defined environments ...
1
vote
0answers
44 views

Rownumbers on multi-page tables

Im trying to have automatic rownumbers on a multi-page table reset on a page-break. So far I got this, but I dont know, why the counter does not reset: \documentclass{article} ...
1
vote
1answer
136 views

How to number (on the left margin) paragraphs instead of lines?

I am aware of package lineno for row numbers, but my line numbers may change due to English language editing but my paragraphs will likelly not: is it possible to number (on the left margin) ...
3
votes
1answer
224 views

Skip line numbers and resume from specific number

I'm a total latex noob, I would like to accomplish something similar to what has been asked here, but rather than resuming numbering from where it was left off, I'd like to pass the new line number as ...
1
vote
0answers
80 views

tcolorbox line numbers

I am trying to make a generic environment to use for all my boxes in my document. I want all my boxes to have line numbers. I can only get this to work some of the time. I don't get line numbers when ...
4
votes
1answer
146 views

How can I customise the amount of horizontal space that follows line numbers?

I'd like to increase the amount of horizontal space that after comes each line number in my algorithm (typeset with algpseudocode). Because algorithmicx in general, and algpseudocode in particular, ...
2
votes
2answers
148 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 ...
9
votes
2answers
7k views

How to adjust line numbers of algorithm2e package?

When using line numbers in the algorithm2e package, the line numbers are placed left of the text block, not directly below the text. See page 5 of the algorithm2e manual. Is it possible to place them ...
8
votes
1answer
793 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 ...
3
votes
0answers
59 views

Duplicate line numbers

I'm having trouble with duplicate line numbers see below. These are the lines that appear to be the problem. %\authors{Author One\correspondingauthor{Author One, % American Meteorological ...
1
vote
1answer
87 views

How to automatically print line numbers for broken off lines in plain TeX

Before you read on: This question refers to plain TeX only. Thanks! I’m wondering how to add line numbers for lines broken off by TeX’s line-breaking mechanism. (My text does not contain any ...
13
votes
2answers
2k 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} ...