As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [line-numbering]

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

Filter by
Sorted by
Tagged with
2 votes
1 answer
44 views

How to add line numbers inside a box?

I have the following code and I would like to have individual line numbers for both first and second parts Code: \documentclass{article} \usepackage{amsmath} \usepackage{mdframed} \begin{figure} \...
ChubbyMarshmallow's user avatar
0 votes
1 answer
35 views

Cannot make index referring to line numbers list more than one instance

I cannot wrap my head around the existing examples like this. I am using the ekdosis package, which depends on the verse, and ultimately lineno to generate line numbers for a long verse based document....
Dotno's user avatar
  • 3
1 vote
1 answer
45 views

Different pdf when compiling on different computers: prevent empty new line break before equation

I have two different computers (without the same pdflatex versions/packages but both are recents). However, when compiling the same document I do not get the same pdf outputs. I noticed than for one ...
romain.bqt4's user avatar
0 votes
0 answers
20 views

Using the package linenumbers but empty lines should count

I am using \usepackage{lineno} to count my lines. When I start with \linenumbers and end with \nolinenumbers every line in beetween is counted. But I want to avoid that empty lines are counted. For ...
montarenbici's user avatar
1 vote
1 answer
81 views

How can I remove line numbers from my paper which uses the LIPIcs class file?

How can I remove line numbers from my paper which is using the LIPIcs stylesheet? (This is needed, e.g., when submitting to arXiv or when submitting the final version of a paper.)
a3nm's user avatar
  • 274
0 votes
0 answers
41 views

Match line numbering to original text (poemscol)

I'm using the poemscol package to typeset a book of poems quoted by a character in a TV series. Several of the catch lines from the series are from Shakespeare's plays. What I'm wondering is how to ...
Greg. Kelemen's user avatar
0 votes
0 answers
24 views

Adding the line number to affiliation

Recently, I am preparing my paper by elsarticle, however I noticed that there is no line number at the begining of affiliation. I tried the following code: \begin{linenumbers} \affiliation[1]{...
Lavender's user avatar
1 vote
1 answer
85 views

How to judge position of output?

To make the chapter title spaced from the above text,its properties have been changed via \titlespacing. \titlespacing*{\chapter} {0pt} %left gap {10pt} %above gap {0pt} %bottom gap Aim: [color of ...
Мақсат's user avatar
0 votes
0 answers
24 views

How to turn on line numbers only when a line is `\linelabel{}`ed?

I have a document with many pages. I am using the lineno package to refer to lines inside the document. I don't want to see line numbers everywhere. Wrapping the \linelabel{}ed content with \begin{...
Boyoung Zheng's user avatar
0 votes
1 answer
34 views

How to Produce a Sequence of Numbered Statements Outside of Math Mode and Without Augmenting Equation Counter?

I would like to reproduce the following without using the general equation counter and without using math mode. How can I do this?
Gary's user avatar
  • 371
3 votes
1 answer
126 views

How to add line numbers to equations (amsmath)

I have several equations spanning multiple lines, using \begin{equation} \begin{aligned} to give each of them one equation number. For example: \begin{equation} \begin{aligned} \forall &a. \\ &...
renyuneyun's user avatar
1 vote
2 answers
81 views

line numbers (lineno) with non-standard paragraphs

I am using the article class with the lineno package, to provide line numbers, and would like to highlight certain paragraphs with a vertical bar, as in the example below. How can I keep the line ...
Ingmar's user avatar
  • 6,112
1 vote
1 answer
55 views

Counting lines within tabulary

I am trying to add line numbers to an article that I am writing, using the lineno package. For the most part this works well, except for tables (using tabulary): Counting the whole table as a single ...
Ingmar's user avatar
  • 6,112
1 vote
1 answer
23 views

How to display line number before \Require in algorithmic environment

Here is my code snippet: \documentclass{article} \usepackage{algorithm, algpseudocode} \begin{document} \begin{algorithm} \caption{Test} \begin{algorithmic}[1] \Require ...
Michael's user avatar
  • 15
0 votes
1 answer
41 views

Automatic numbering proof lines in lplfitch

I often use lplfitch package to write proofs. Is there a way to automatically number the demonstration lines? At the moment, I enter the numbering manually with the parameter \pline[NUMBERING]{....} \...
Frank's user avatar
  • 401
0 votes
0 answers
248 views

Changing font size in line number

I want to have the line number like this, but in a different color I used the following code: \usepackage{lineno} \linenumbers When I am using the following code the problem is solved, but ...
Banujan Kuhaneswaran's user avatar
0 votes
2 answers
111 views

How to use the linenumbers mechanism from lineno twice in same document

I am using Gareth Walker's package convtran for typesetting conversation analysis examples. That package makes use of the linenumbering mechanism from lineno to number lines in the examples. All fine. ...
jan's user avatar
  • 2,216
0 votes
1 answer
353 views

Continuous line numbers in the output pdf

I am using the following code : \documentclass[11pt]{amsart} \setlength{\textheight}{23cm} \setlength{\textwidth}{16cm} \setlength{\topmargin}{-0.8cm} \setlength{\parskip}{0.3\...
HARRY's user avatar
  • 115
0 votes
1 answer
35 views

Generate Automatic Labels in Lineno Package

I am trying to generate automatic labels to work with package lineno. For this, I defined a new counter lineref to work with the command \linelabel in the command \linelabel{l\thelineref}. The problem ...
TheEndofTheWorld's user avatar
0 votes
0 answers
69 views

How can I switch line numbering off with the lineno package?

I often use the lineno package in order to number all lines of a draft document, e.g., a paper that I have to send out for peer review. One inconvenient aspect of it, though, is that when I need to ...
fabseb's user avatar
  • 1
1 vote
1 answer
68 views

reledmac subline numbers rtl

I am trying to use reledmac subline numbers with a rtl text using polyglossia. My issue: The subline dividers seem to be rendering incorrectly. I saw this question/answer, which might serve as a ...
Solomon Light's user avatar
1 vote
1 answer
115 views

Why \centerline does not count the line number

I am using \centerline to center text, and I need to count the line numbers. I use the lineno package, but I found that the content contained in \centerline will not be included in the line number. ...
happy's user avatar
  • 149
1 vote
1 answer
158 views

Why are some lines in the title not included in the line number?

for example: \documentclass{article} \usepackage{lineno} \title{My Title} \author{% Author One$^1$ \\ Author Two$^2$ \\ \normalsize{$^1$Organization 1}\\ \normalsize{$^2$Organization 2}\\...
happy's user avatar
  • 149
1 vote
1 answer
132 views

How to adjust the line number count of a double-column document to start from the title?

I have observed that in latex, the line number count of a single-column document starts from the title, but the line number count of a double-column document starts from the main text. I hope that the ...
happy's user avatar
  • 149
0 votes
1 answer
119 views

In this example, why some lines are not marked with line numbers

\documentclass[12pt, reqno]{amsart} \usepackage{ amsmath,amsthm, amscd, amsfonts, amssymb, graphicx, color} \usepackage[bookmarksnumbered, colorlinks, plainpages]{hyperref} \usepackage[running]{lineno}...
happy's user avatar
  • 149
0 votes
1 answer
240 views

How to override the numbers in an algorithm?

I have tried a few ways I found here, including This, and This, there are more but I can't remember them. The issue I'm having is I'd like "Fifth Instruction" to start on 5, I know "...
badAtMaths's user avatar
0 votes
1 answer
317 views

Error in Overleaf do not have right line number

Here is always some errors in the overleaf, but the line is not the right one. Where is the right line, and what exactly is the problem? I do not get it, since the document compiles the right way.What ...
Janine's user avatar
  • 3
2 votes
0 answers
84 views

algorithm2e - `\small` interferes with `\nonl` (line number removal)

I use a custom command \nonl, which removes the line number for a certain line. When I simply use \nonl, it works. When I use {\small \nonl ...}, it works. When I use \nonl {\small ...}, it also ...
Dmitry's user avatar
  • 227
1 vote
1 answer
49 views

How do I get the left numbering central?

Compiling the mwe below will illustrate why I would like the letter d on the left hand side to be on the same line as Name 2. How may I obtain that? \documentclass{article} \usepackage{amsmath, ...
Sapiens's user avatar
  • 4,327
2 votes
1 answer
89 views

Continuous line numbering when mixing single and double columns in reledpar

I have a text consisting of some single column and some double column passages. I want to have continuous line numbering throughout the page. Left and right column line numbers should always be ...
Clemens Radl's user avatar
2 votes
1 answer
226 views

How to start the line number at specific line or skip a line in algorithm2e? [duplicate]

I trying to customize the line number of my algorithm with the algorithm2e package. I want to start the line number at a specific line or just a given line. I am using the following code example: \...
Yuri Santos's user avatar
0 votes
0 answers
48 views

lstlisting: numbering of longlines automatic broken by breaklines=true

I try to get linenumbers on longlines that breaklines=true break up: So i added to my head the counter defintion: \newcounter{lstbreaklinesnumber}[lstnumber] % breaklines-counter so it should reset on ...
Michael's user avatar
2 votes
1 answer
192 views

No linenumbers inside the multicolumn text

Good Evening, I need to remove linenumbers from inside the multi-column text. Source: \begin{multicols}{2} \begin{enumerate}[\rm(a)] \item Item 1 ...
Latex new user's user avatar
0 votes
1 answer
131 views

(led)sidenotes and linenumbers are moved up

I'm writing a large document, consisting for the most part of passages written in reledmac- and reledpar-environments. In a twosided part spanning several pages, the argument of \ledsidenote as well ...
Alexander Wittmann's user avatar
1 vote
2 answers
233 views

line numbering & vruler on middle of page

I want to add line numbering to a document. I can't use lineno because for one reason or another it does not detect all the lines of my document (I use a lot of math equations and this makes line ...
TMat's user avatar
  • 61
2 votes
1 answer
722 views

Reset algorithm counter

I am writing an algorithm, where the Input has two lines. I first tried with itemize environment, later substitued with algorithmic for uniform look-and-feel. The problem is, the counter in the actual ...
hola's user avatar
  • 3,946
4 votes
0 answers
106 views

Breakable tcolorbox and internallinenumbers

Consider the following example: \documentclass{article} \usepackage[many]{tcolorbox} \usepackage{lineno} \usepackage{blindtext} \begin{document} \blindtext[3] \begin{tcolorbox}[breakable] \...
Jinwen's user avatar
  • 7,462
0 votes
1 answer
287 views

Table of contents with line numbers?

For my AP Stats notes this year, I've been citing everything with line numbers instead of page numbers, as most sections wind up being less than a page and I want to be able to find things quickly. I'...
generallyconfuzzled's user avatar
1 vote
1 answer
89 views

Line numbering doesn't work

I need a help, I wrote some algorithmic pseudocode in Latex and I want to show all the line numbers, no like on the image, every second. Thank you for help. Latex Code \documentclass[a1paper,0pt]{...
Sepi's user avatar
  • 13
0 votes
1 answer
587 views

\linesnumbered in package algorithm2e: how to change font size of numbers indicating the lines?

I'm using algorithm2e package \linesnumbered in Overleaf, but font size of numbers indicating the lines in the algorithm is smaller than I expected. Is there any way to change the font size?
Hugo Christ's user avatar
1 vote
0 answers
58 views

Footnote out of the page leads to a huge overfull \vbox

Consider the following example (it may require TeX Live 2021): \documentclass{article} \usepackage[T1]{fontenc} \usepackage{minimalist} \geometry{ papersize={7in,10in}, total={40em,60em}, ...
Jinwen's user avatar
  • 7,462
0 votes
0 answers
278 views

How to enable line numbers in minted for code blocks with more than 2 lines?

I tend to use the same setting throughout my document. So, I have the following: \usepackage[outputdir=build_dir]{minted} \setminted{ xleftmargin=2em, fontsize=\footnotesize, breaklines, ...
Chad Winters's user avatar
0 votes
1 answer
34 views

Using listings package, can I display line numberings in paretheses?

I want to achieve the following effect for line numbers using lstlisting: (1) public constructor(value?: number) { (2) if (value > 0xff) { (3) throw new Error('Value should not be greater ...
mac501's user avatar
  • 3
4 votes
1 answer
171 views

Reference line number of string from text file

I want to reference a line from a non-TeX text file that contains a fixed string. I just want to be able to get its line number. I'll need to do this several times for the same file, so it'd be nice ...
Lucas Paul's user avatar
0 votes
0 answers
157 views

unnumbered lines in LyX algorithm float

I'm trying to write an algorithm in LyX, and since I'm a hebrew user a lot of methods did not work for me. I tried the following method, which worked but doesn't have numbered lines. I'd like to know ...
snatchysquid's user avatar
2 votes
1 answer
102 views

How to set single verse numbering with poetry package?

I am using the poetry package, in memoir with LuaLatex. The poem that brings me here is a fragment, so my goal is that the first line has the numbering [17], and then from line 20 the numbering is ...
Julieta M.'s user avatar
1 vote
2 answers
724 views

How to put line numbers at the right side of the right column by combining multicol and lineno?

I would like to move the line numbers from the left side of the right column to its right side using lineno and multicol. Could you please help me how to reach this goal? My example is the following: \...
TobiR's user avatar
  • 552
1 vote
2 answers
138 views

How can I add some line numbers of emacs into pdf created by latex

Is it possible to print Line Number in emacs to the Latex pdf for lines that I prefer? If it is easy, I want to use those numbers with M-g M-g (goto-line command) I asked the same question here, I am ...
Atbey's user avatar
  • 165
1 vote
0 answers
930 views

How to add line numbers to an existing PDF file?

I am trying to add line numbers to a PDF of a thousand pages. I only have the PDF and don't have the source text that was used to generate the PDF. As part of my research, I have reviewed the ...
tommydog35's user avatar
3 votes
1 answer
146 views

circle for each number in the algorithm

Is there an algorithm package that allows me to achieve the style of the algorithms where each number is inside a circle in an algorithm? I am interested specifically in the numbering of the steps by ...
omer ali20's user avatar

1
2 3 4 5
8