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
0 votes
1 answer
36 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. ...
user avatar
  • 2,174
0 votes
0 answers
10 views

Choosing the number for line numbering in LyX

I have a document with a few proofs, and I want in every proof to start the equation numbering from 1, and not from where I stopped. How do I do it in LyX?
user avatar
  • 11
0 votes
0 answers
15 views

automatic linenomath environment [duplicate]

How can I get latex to automatically activate and respectively deactivate \begin{linenomath*} \end{linenomath*} around every display equation or blocks of displayed equations under \begin{align}\end{...
user avatar
  • 335
0 votes
1 answer
63 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\...
user avatar
  • 115
0 votes
0 answers
18 views

Misplaced line number in a custom theorem style

I defined a theorem style that has a line break after the theorem title. However, the line number of the first line is then misplaced (possibly because the \medskip is placed in an inappropriate place,...
user avatar
  • 4,737
0 votes
1 answer
24 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 ...
user avatar
0 votes
0 answers
22 views

Reledmac \linumsep as rubber length?

Is there a way to make \linenumsep= in Reledmac a rubber length. I'm transcribing a multi-column text whose width varies. I used \linenumsep=-50pt for most of the document, but there are some tabular ...
user avatar
  • 303
0 votes
0 answers
29 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 ...
user avatar
  • 1
1 vote
1 answer
53 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 ...
user avatar
1 vote
1 answer
40 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. ...
user avatar
  • 149
1 vote
1 answer
33 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}\\...
user avatar
  • 149
1 vote
1 answer
32 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 ...
user avatar
  • 149
0 votes
1 answer
47 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}...
user avatar
  • 149
0 votes
1 answer
29 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 "...
user avatar
0 votes
1 answer
78 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 ...
user avatar
  • 3
2 votes
0 answers
36 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 ...
user avatar
  • 176
1 vote
1 answer
44 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, ...
user avatar
  • 3,641
2 votes
1 answer
70 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 ...
user avatar
2 votes
1 answer
48 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: \...
user avatar
0 votes
0 answers
41 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 ...
user avatar
0 votes
0 answers
11 views

Quick build in TexMaker problem

Every time I Quick build in TexMaker to View Pdf, they push me up to the first line of my Latex so I forget the line I was in before making Quick build!! Is there any solution? Cause I need to check ...
user avatar
2 votes
1 answer
73 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 ...
user avatar
0 votes
1 answer
78 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 ...
user avatar
1 vote
2 answers
143 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 ...
user avatar
  • 61
2 votes
1 answer
263 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 ...
user avatar
  • 3,806
4 votes
0 answers
58 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] \...
user avatar
  • 4,737
0 votes
1 answer
124 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'...
user avatar
1 vote
1 answer
35 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]{...
user avatar
  • 13
0 votes
1 answer
265 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?
user avatar
1 vote
0 answers
39 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}, ...
user avatar
  • 4,737
0 votes
0 answers
112 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, ...
user avatar
0 votes
1 answer
33 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 ...
user avatar
  • 3
4 votes
1 answer
101 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 ...
user avatar
0 votes
0 answers
115 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 ...
user avatar
2 votes
2 answers
57 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 ...
user avatar
1 vote
2 answers
207 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: \...
user avatar
  • 512
1 vote
2 answers
104 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 ...
user avatar
  • 165
1 vote
0 answers
472 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 ...
user avatar
3 votes
1 answer
107 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 ...
user avatar
1 vote
1 answer
149 views

number line with different interval

I'm new to the latex and I'm wondering how I can create a number line with different interval and labeled letter like this:
user avatar
  • 13
3 votes
1 answer
166 views

Environment with its own line numbers

I would like to create an environment with its own line numbers, that is to say: (1) the lines within this environment are not counted by lineno (2) it has a continuous line numbering itself, with ...
user avatar
  • 4,737
0 votes
0 answers
40 views

How do I define a more stable numbering of proof steps with letters

I have some proofs that require many steps, and I wanted to number them with letters so as to not confuse with the numbers used for Definitions, Axioms, Lemmas and Theorems. Here is a MWE of what I ...
user avatar
  • 3,641
2 votes
2 answers
6k views

How to remove line numbers from my paper?

I am using the template of MDPI https://www.mdpi.com/data/MDPI_template.zip?v=20201020 I wonder how can I remove line numbers next to each line? % LaTeX support: latex@mdpi.com % In case you need ...
user avatar
  • 343
0 votes
0 answers
21 views

Resize line numbering

I use Texmaker to help with writing in LaTex. I have added line-numbering to the draft of my thesis. The size of the line number is a bit too small. Is there a way to make the size a bit bigger? The ...
user avatar
  • 487
3 votes
1 answer
37 views

Empty line number when removing date

I have line numbers displayed and no date after the title. However, if I remove the date with \date{} there is a line number left in the empty line after the title. How can I remove it? Here is the ...
user avatar
0 votes
1 answer
102 views

latex linenumbers do not work properly

I am having some problem with lineno. Specifically, this happens when I introduce the first equation in my document. I the following example I get a wrong numbering of text lines in the latex ...
user avatar
  • 1
1 vote
1 answer
117 views

Listings: skip line number ONLY where command is defined

I have looked at the following: Suppress line numbering for empty lines in listings package Suppress line numbering for specific lines in listings package However, the solution given in the latter ...
user avatar
  • 488
0 votes
1 answer
193 views

Disabling Line Number in Section Titles not Working

I am trying to apply the answer to this question in Overleaf. I want to number my lines but I don't want the chapter/section titles to be numbered. I'm running into errors when applying the answer. ...
user avatar
0 votes
0 answers
16 views

Line numbering within pages with listings package

When I use listings package as is, line numbers appear in the margin and the listing lines start at the margin. I know a workaround of putting each listing into a minipage with \noindent, but it is ...
user avatar
1 vote
0 answers
2k views

LaTeX listings package JSON formatting

I am using package listings for JSON data. I am following this example How to improve listings display of JSON files from this stackexchange answer. It generates the following output: I added caption ...
user avatar
  • 111

1
2 3 4 5
8