summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-linenos.html
blob: 29380d0849ffbdb58212b072ec8cf665ca6ec2d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<head>
<title>UK TeX FAQ -- question label linenos</title>
</head><body>
<h3>Including line numbers in typeset output</h3>
<p/>For general numbering of lines, there are two packages for use with
LaTeX, <i>lineno</i> (which permits labels attached to
individual lines of typeset output) and <i>numline</i>.
(<i>Numline</i> is considered obsolete, but remains available from
the archive.)
<p/>Both of these packages play fast and loose with the LaTeX output
routine, which can cause problems: the user should beware&hellip;
<p/>If the requirement is for numbering verbatim text, <i>moreverb</i>,
or <i>fancyvrb</i> (see 
<a href="FAQ-verbfile.html">including files verbatim</a>) may be used.
Class <i>memoir</i> also provides the necessary facilities.
<p/>One common use of line numbers is in critical editions of texts, and
for this the <i>edmac</i> package offers comprehensive support;
<i>ledmac</i> is a LaTeX port of <i>edmac</i>.
<p/>The <i>vruler</i> package sidesteps many of the problems associated
with line-numbering, by offering (as its name suggests) a rule that
numbers positions on the page.  The effect is good, applied to
even-looking text, but is poor in texts that involve breaks such as
interpolated mathematics or figures.  Documentation of the package, in
the package itself, is pretty tough going, though there is an example
(also inside the package file).
<dl>
<dt><tt><i>edmac</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/plain/contrib/edmac.zip">macros/plain/contrib/edmac</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/plain/contrib/edmac/">browse the directory</a>)
<dt><tt><i>fancyvrb.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/fancyvrb.zip">macros/latex/contrib/fancyvrb</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/fancyvrb/">browse the directory</a>)
<dt><tt><i>ledmac.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/ledmac.zip">macros/latex/contrib/ledmac</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/ledmac/">browse the directory</a>)
<dt><tt><i>lineno.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/lineno.zip">macros/latex/contrib/lineno</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/lineno/">browse the directory</a>)
<dt><tt><i>memoir.cls</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/memoir.zip">macros/latex/contrib/memoir</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/memoir/">browse the directory</a>)
<dt><tt><i>moreverb.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/moreverb.zip">macros/latex/contrib/moreverb</a> (or <a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/moreverb/">browse the directory</a>)
<dt><tt><i>numline.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/obsolete/macros/latex/contrib/numline/numline.sty">obsolete/macros/latex/contrib/numline/numline.sty</a>
<dt><tt><i>vruler.sty</i></tt><dd><a href="http://www.tex.ac.uk/tex-archive/macros/latex/contrib/misc/vruler.sty">macros/latex/contrib/misc/vruler.sty</a>
</dl>
<p/><p>This question on the Web: <a href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=linenos">http://www.tex.ac.uk/cgi-bin/texfaq2html?label=linenos</a>
</body>