< TeX
Synopsis
\inputlineno
Description
\inputlineno is an integer parameter that TeX sets to the current line number of the input file.
Examples
Recall that the command \number will typeset the decimal representation of whatever follows it, and so if the source file begins with
\number\inputlineno
on the first line, then TeX will typeset 1 at the beginning of the page.
If
\message{\number\inputlineno}
occurs on line n of the source file, then TeX will output 'n' to the screen as a message.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.