TeXnik - Tips TeX and LaTeX

Welcome to the TeXnik website (under construction)

TUG logo

Main page

Search CTAN:


Google c.t.t.

Google d.c.t.t.



The package is availabe at TeX Archive Network (CTAN). Take care that you always use the latest version. Just as all other packages declare it in the LaTeX preamble with

1 Numbered lines

Without any options the lines are numbered by default with the following values:
You can change these values in the usual way.

The syntax for the environment is simple:

bla bla bla the text
If you like the numbers on the right side of the page, change the option with \rightlinenumbers. The resetting of the counter can be done with (for example): \resetlinenumber[5]. Pay attention for the square brackets!

2 Marked lines

If you like to mark some lines with any character, you can redefine the commands \thelinenumber with
and you'll get quoted lines just in an email reply.

On the other hand you can redefine the command \makelinenumber with

\renewcommand\makeLineNumber{\hss\ !\rlap{\hskip\textwidth\ !}}
to get bothsided marked text.

local time: Thu Feb 22 17:27:45 CET 2024 ; file is: 1700.11988425926 days old
contact webmaster _at_ TeXnik.de