Questions tagged [linenumber]
The linenumber tag has no usage guidance.
16
questions
0
votes
0
answers
19
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,...
1
vote
1
answer
22
views
Proper line numbering of algorithm2e when tabular environment is inside an algorithm environment
I use tabular inside algorithm environment of algorithm2e package (see figure below) in order to align two columns of comment lines. Without using a table, achieving this task is difficult with some ...
0
votes
0
answers
42
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 ...
2
votes
1
answer
289
views
Figure caption line numbers with achemso package
I have written an article for a journal of the American Chemical Society using the package achemso (Texlive 2020). After the submission I have been asked to supply also the pdf file with the line ...
1
vote
0
answers
499
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 ...
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 ...
2
votes
1
answer
169
views
Custom text instead of line numbers with algpseudocode package
Instead of printing 1:, 2:,.. I want to print Step 1:, Step 2:,.. at the beginning of each line.
Here is my code:
\usepackage{algorithm}
\usepackage{algpseudocode}
\begin{document}
\begin{algorithm}
...
1
vote
0
answers
103
views
line number footnotes
I managed to create unnumbered footnotes by line number with:
\linelabel{label1}\blfootnote{\textbf{\lineref{label1}} textline1}, however a new label1,2,3... is needed for each reference. Can this ...
1
vote
1
answer
80
views
footnote referencing of line number
I started working with XeLaTeX yesterday and almost have footnotes displaying correctly. My problem is that the references to line number with \linelabel and \lineref doesn't work correctly such that ...
1
vote
1
answer
79
views
Reledmac spaces on footnotes linenumbers and lemma
Is there a way to make the line numbers of a footnote as a single block?
Please see image below, I would like to print the two line numbers in the same line something like
18~\textendash{}~21
And, ...
4
votes
1
answer
155
views
How to avoid linenumbers in paragraph headers
I want to include line numbers(lineno) in an enumeration of paragraphs. How do I avoid line numbers in front of each paragraph header? What I need is something like
\newcommand{\myParagraph}[1]{\...
0
votes
1
answer
189
views
reledmac linenumbers inside of the print space
Using the reledmac package I have trouble with putting the linenumbers inside of the print space (cf. picture).
The code in the preamble is now simply:
\usepackage[parfill]{parskip}
\usepackage[...
1
vote
1
answer
250
views
Line numering with multicolumn mode
Here I faced challenge for fixing line number style as like the attached image could any one help how to fix this.
Note:
Required style as indicated in green color
MWE
\documentclass{book}
\...
3
votes
1
answer
110
views
Help on listings packages
My code are follows:
\documentclass[11pt]{book}
\usepackage{makeidx}
\usepackage{emptypage}%amd for no page number on empty page
\usepackage{etoc}%amd for multiple tocs
\usepackage{upquote}%amd for ...
5
votes
2
answers
1k
views
How can I justify text with line number in Verbatim environment?
My minimal file is:
\documentclass{article}
\usepackage{fancyvrb}
\usepackage{ragged2e}
\usepackage{lipsum}
\usepackage{pbox}
\begin{document}
\begin{Verbatim}[numbers=left,fontsize=\bf,commandchars=\...
6
votes
1
answer
2k
views
line numbers do not show on for the text of a paragraph in which an equation is defined
The line numbers for the text of a paragraph with an equation defined by \begin{align} command do not show as expected. How to fix this?
The LaTeX codes are attached here.
\documentclass[a4paper, ...