[comp.text.tex] How do I make line numbering using LaTeX.

krab@iesd.auc.dk (Kresten Krab Thorup) (01/07/91)

As I'm very often making worksheets, wich are to be discussed --- I'd
like to be able to number the lines of any LaTeX document.

How do I do this? 

If no one alredy havce developed a style for this purpose I'd like to.


Thanks in advance

Kresten

schwartz@groucho.cs.psu.edu (Scott Schwartz) (01/07/91)

krab@iesd.auc.dk (Kresten Krab Thorup) writes:

   As I'm very often making worksheets, wich are to be discussed --- I'd
   like to be able to number the lines of any LaTeX document.
   How do I do this? 

I wonder how to do this too.  TeX doesn't seem to offer the
functionality of troff's traps in a clean way, which surprises me.
Can any TeXnicians offer enlightenment?

david@doe.utoronto.ca (David Megginson) (01/07/91)

In article <F!n#$v24@cs.psu.edu> schwartz@groucho.cs.psu.edu (Scott Schwartz) writes:
>
>krab@iesd.auc.dk (Kresten Krab Thorup) writes:
>
>   As I'm very often making worksheets, wich are to be discussed --- I'd
>   like to be able to number the lines of any LaTeX document.
>   How do I do this? 
>
>I wonder how to do this too.  TeX doesn't seem to offer the
>functionality of troff's traps in a clean way, which surprises me.
>Can any TeXnicians offer enlightenment?

I would like to know about numbering lines in the verse environment -- not
every line, but every fifth, as verse is usually numbered. ie:

	blah blah blah
	blah blah blah
	blah blah blah
	blah blah blah
	blah blah blah		5
	blah blah
	blah

I can fake it with a marginal note containing the line number, but it would
be nice to be able to make it automatic.


David

-- 
////////////////////////////////////////////////////////////////////////
/  David Megginson                      david@doe.utoronto.ca          /
/  Centre for Medieval Studies          meggin@vm.epas.utoronto.ca     /
////////////////////////////////////////////////////////////////////////

eijkhout@s41.csrd.uiuc.edu (Victor Eijkhout) (01/08/91)

krab@iesd.auc.dk (Kresten Krab Thorup) writes:

>As I'm very often making worksheets, wich are to be discussed --- I'd
>like to be able to number the lines of any LaTeX document.

In the latest issue of TUGboat there is an article
about EDMAC, a package for `critical editions'.
This has, amongs others, the feature you want.
I seem to recal that there are some more styles
around that do this, but I don't know where to get them.

Victor.