{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
10 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
0answers
21 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
38 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 ...
3
votes
0answers
37 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 ...
1
vote
0answers
29 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
43 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
44 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
44 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
104 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, ...
0
votes
0answers
19 views

Line numbers are not showing for part of my document?

I am using "lineno" package and a paper Latex template from a journal. {the whole .cls package} the numbering was working fine after using \begin{linenumbers} and then suddenly stopped numbering from ...
2
votes
2answers
81 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 ...
8
votes
2answers
5k 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
549 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 ...
0
votes
0answers
12 views

fnlineno footnote line spacing

Does anybody know how to keep footnote line spacing while using fnlineno package?
2
votes
0answers
52 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
57 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} ...
5
votes
1answer
144 views

Numbering all lines in a presentation

I would like everyline of a presentation to be numbered. Like the lineno package will do. I tried the following but it does not print line numbers. I don't see why, I know there are some \par ...
6
votes
1answer
43 views

Write reference of linenumber to file

I want to write the actual linenumbers that a \lineref command generates into an external file. The lines are referenced correctly (after 2 times compiling), but the writing to a file does not work. ...
6
votes
3answers
747 views

line numbers displayed in latex (both-sided)

Is there a possibility to get (in an onecolumn article) line numbers on both sides (left and right) displayed? I used the lineno-package for a one-sided numeration, but I fail to use it for left and ...
6
votes
1answer
93 views

listings line numbers work with one lstlisting but not another

The first listing has its line numbers ignoring the stepnumber while the second is just fine. Guess it might have to do with using math mode but mathescape applies to both, so if that is the case it ...
1
vote
1answer
68 views

Subtables and lineno incompatibility

Is there any incompatibility between packages subcaption and lineno? I cannot compile this (dummy) text: \documentclass{revtex4-1} \usepackage{subcaption} \usepackage[mathlines]{lineno}% Enable ...
0
votes
0answers
26 views

Using listing to include only some lines of a file [duplicate]

How can I use listings in order to include some lines from a file keeping the numeration right, that is, if I include lines 1-3,8,11-14 they should keep that numeration rather than 1,2,3... Is this ...
1
vote
0answers
68 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 ...
46
votes
8answers
11k 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 ...
10
votes
2answers
3k 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?
5
votes
1answer
265 views

Eledmac line numbering out of margin at top of column (memoir)

I'm using eledmac to typeset a document with two columns in memoir. The first line number at the top of the right column continues to be placed to the left of the column, as it was with the left ...
3
votes
2answers
315 views

Problem with elsarticle and lineno

I am using the elsarticle class in order to typeset a preprint of an article I am writing. I wanted to add line numbering in order to make the revision easier, so I included the lineno package. This ...
5
votes
1answer
140 views

Linenumbering per page with XePersian and the traditionalpoem environment

I’m editing an Arabic poem with XePersian and the traditionalpoem environment which works fine so far, but I have some questions regarding the line numbers and the paragraph footnotes. (1) I would ...
3
votes
2answers
56 views

Line numbering in a philological text

I am typesetting a text in the classics. A part of it consists of numbered verses. For each verse line I would like to show (1) a line number, (2) the verse text, and (3) an optional "clause". As ...
7
votes
2answers
203 views

highlight line numbers in listings

I would like to highlight the line numbers of the lines I refer to with lstlistings. I use escape characters to define labels in my Listing to which I refer later in my document (e.g. see Line X of ...
1
vote
1answer
269 views

Texstudio: modify size of line numbers

With more than 1000 lines the line numbering in Texstudio 2.7.0 takes up a sizeable chunk of my display. I already discovered that it's possible to disable the line numbers in Options -> Advanced ...
6
votes
1answer
66 views

Actual line numbers for listings: firstnumber=\inputlineno is off by one

I would like to have the actual line numbers next to my code listings but if I use firstnumber=\inputlineno, this gets evaluated one line too early: \documentclass{article} \usepackage{listings} ...
1
vote
1answer
39 views

Add additional page number, from original work, in margin

In this beautiful example from frabjous the original page numbers from the source is place in the margin (below is a screenshot of page 8, which is page 9 and 10, marked by a red marker in the text, ...
3
votes
1answer
54 views

Append characters after line numbers when using the `listings` package?

Is it possible to add some characters, like colons, to the line numbers when these are displayed in the listings package? There is the numberstyle option, but that only seems to affect stuff before ...
2
votes
1answer
57 views

Can eledmac's xxref be used with non-arabic linenumbers?

I am using polyglossia and eledmac to typeset a Tibetan document. I'm running into problems when using eledmac's xxref. It seems the numbers it expects are not in the right format, since they are ...
5
votes
1answer
778 views

Algorithm2e - Disabling line numbers for specific lines

The Algorithm2e package has specific options for disabling/hiding line numbering for the whole document or algorithm, and then enabling/showing them for specific lines. I want to do the inverse. I ...
5
votes
2answers
97 views

eledmac package: \pausenumbering and \resumenumbering

I'm using the eledmac package to typeset a rather large work of theology. For simplicity and the sake of a MWE, I'm just using the two stanza poem below. Intended outcome: Between sections that are ...
2
votes
1answer
121 views

latex line number in algorithm starting with 9? [closed]

I feel confused why the line numbers in the algorithm I created all starting with 9? The code is as followed: \documentclass{sig-alternate-2013} \begin{algorithm} \caption{Generating Test Cases} ...
2
votes
1answer
43 views

Excluding reference list from line numbering

When the lineno package is included, all lines are numbered. But I don't want the bibliography to have linenumbers because it is ugly. So is this possible? [ps. I have used BibTex to create the ...
2
votes
1answer
94 views

Sometimes wrong math font in headers when using KOMA's \sectfont with lineno

I am using the KOMA-Script scrbook class, and I want to have bold math in my section titles (to match the title text). For this I redefine \sectfont, and it works nicely. ...
9
votes
1answer
3k views

How can I start the line numbering of my listing by an arbitrary number?

This is what I want: 15 <servlet> 16 <servlet-name>udpListener</servlet-name> 17 <servlet-class>oli.servlet.UdpServlet</servlet-class> 18 <!-- UDP Port fuer ...
62
votes
3answers
2k views

Is there a LaTeX trick to prevent a PDF viewer from copying the line number?

A PDF output is obtained by compiling the following code. \documentclass{article} \usepackage{xcolor} \usepackage{listings} \lstset { language={[LaTeX]TeX}, numbers=left, ...
22
votes
1answer
1k views

How to make text copy in PDF previewers ignore lineno line numbers?

I'm using lineno for a document. I have it configured to put line numbers in the margins of the document. I generate PDF using pdflatex. Here's the problem: when people copy a region of text in a ...
1
vote
0answers
85 views

How to add linenumbers to figure captions? [duplicate]

I'd like to add linenumbers to my TeX-file. I found the packe lineno which I'm using as follows: \usepackage{lineno} \linenumbers Unfortunately line numbers are not added to the figure captions and ...
4
votes
0answers
152 views

Follow up to underline subsections - incompatibility between lineno, sectsty, and ulem

In answering the question Underline subsections, I provided an answer which relied on the sectsty package (as compared to @GonzaloMedina's answer, which used the titlesec package). Ultimately, ...
4
votes
1answer
82 views

Changing side of line numbering in two columns documents part two

I have the same question as this one: tex.stackexchange.com/questions/9510/changing-side-of-line-numbering-in-two-columns-documents/ I'd like to use the listings package in a twocolumn document. An ...
3
votes
3answers
1k views

Changing side of line numbering in two columns documents

I'm trying to type some report and I have a small problem with the twocolums document class and the line numbering in listings. The document is on two columns : ...
10
votes
2answers
174 views

Environment for ancient Greek poem with comments

I want to write an ancient Greek poem and I am having problems in setting the right environmental parameters. My major difficulty is to make an effective use of footnotes. Instead of using a ...
3
votes
0answers
181 views

Minted PHP with line numbers

I've added minted and inserted PHP code. The result is that I must put < ?php and ?> tags to get the code colored, then if I want to display line numbers it starts from < ? php line like ...