Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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
15 views

reledmac: \Xlinenumannotationonlyfirst does not seem work

New to this forum (and relatively new to reledmac); I am having a stubborn issue. I cannot seem to get \Xlinenumannotationonlyfirst to work. It continues to print the line numbers for lemmas on the ...
Sgietus's user avatar
1 vote
1 answer
61 views

Reference on linenumbers in tables

A student of mine needs to work on interviews. She has answers from a bunch of interviewed people, which shall be printed as a full quote. Her job is to analyze the answers and give a kind of ...
Jan's user avatar
  • 5,313
0 votes
0 answers
57 views

manually specifying some line numbers in verse

I'm typesetting a translation of some ancient Greek poetry into English, and want to have the usual verse line numbers that are generated by the verse environment in the memoir article class, but I ...
Sara L. Uckelman's user avatar
0 votes
0 answers
32 views

Line numbers for displayed maths inside boxed minipage

I need to add line numbers to things like the following, probably inside the box and at the right-hand side, with numbers on all the lines, including the maths. I see that there is a package called ...
Aster's user avatar
  • 1
0 votes
0 answers
9 views

reledpar: problem with \startlock...\endlock command

anyone can help me understand why in reledpar package, when using \startlock ...\endlock one of the block lines seems numbered \documentclass[twoside]{book} \usepackage[italian]{babel} \usepackage{...
Michela's user avatar
0 votes
0 answers
27 views

i'm trying Restart line numbering in reledpar from just one of the many pstart

I'm working with reledpar on a twoside prose text (this means that i have facing pages to achieve not columns or verses). So, divided in many "chunks" to get facing pages. I numbered text ...
Michela's user avatar
0 votes
1 answer
95 views

Lyx Missing character unclear log: "There is no e (U+0065) in font rsfs10!"

I am using Lyx to write a paper and so far i did not had any problems. I wrote some sections, export in PDF results is ok Then i added some other sections did the export PDF and I got error "...
Argos's user avatar
  • 21
4 votes
1 answer
164 views

Two issues regarding line numbers

Here are my codes. \documentclass[12pt]{article} \usepackage{amsmath,amsthm,amssymb,mathrsfs,lineno} \usepackage{tikz} \newtheorem{theorem}{Theorem} \linenumbers \begin{document} In the mathematical ...
licheng's user avatar
  • 795
1 vote
1 answer
241 views

How to remove line guide numbers form pnas-new template(frogs)?

I can´t remove line guide numbers from my latex overleaf templeate pnas-new https://www.overleaf.com/latex/templates/pnas-latex-template-for-preparing-invited-submissions-on-overleaf-2023/pdtvjfpyzjtp
JuanpisGonzález's user avatar
0 votes
1 answer
30 views

Printing both stanza and line numbers in the critical apparatus of a poem (reledmac)

I am working on the critical edition of an poem written in "ottava rima" (each stanza has 8 lines), and I am using the package reledmac. I need both the stanza number and the line number to ...
Luca Cantoni's user avatar
0 votes
1 answer
81 views

Reledmac: Multiple line numbering counters

I am using reledmac (actually reledpar, but this does not matter here) for a critical edition. I have a mainline text, which continues throughout the document, but it is interspersed with comments and ...
ludwig's user avatar
  • 1
0 votes
1 answer
89 views

`verse` line numbering in the `book` class

I am using the verse package to set poetry with the book class. I am using \poemlines{5} to display line numbers every 5 lines. However, the line numbers show in the right margin regardless of page ...
Tom Snelling's user avatar
1 vote
0 answers
36 views

Line number for two columns in "ctexbook" on the outer margins fails

As need to compile Chinese characters, I use the ctexbook style. When adding line numbers for two columns on the outer margins with \usepackage[switch]{lineno}, I see there are not on the outer ...
Y. zeng's user avatar
  • 1,983
2 votes
1 answer
109 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
51 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
65 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
3 votes
1 answer
504 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
  • 324
0 votes
0 answers
86 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
1 vote
1 answer
95 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
1 answer
44 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
4 votes
1 answer
280 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
144 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,700
1 vote
1 answer
73 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,700
1 vote
1 answer
88 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
57 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
  • 421
0 votes
0 answers
477 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
130 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,256
0 votes
1 answer
782 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
37 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
103 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
79 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
173 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
212 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
196 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
230 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
540 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
520 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
161 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
  • 240
1 vote
1 answer
51 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, ...
Frode Alfson Bjørdal's user avatar
2 votes
1 answer
111 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
523 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
49 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
3 votes
1 answer
294 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
188 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
374 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
1k 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
  • 4,026
4 votes
0 answers
135 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
  • 8,568
0 votes
1 answer
450 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
166 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
905 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
2 3 4 5
8