Arbortext Command Language > Functions by Alphabetical Listing > linenum
  
linenum
linenum([doc])
 
This function applies the sample line numbering application found in the samples folder of your installation directory. It looks for atipl markup in the document and specifies a set of generic attributes, clearing all others. In particular, it sets the attr1 attribute of atipl:startpage tag to the value of the number attribute. It also the sets the attr1 attribute of atipl:startline tags to the current line number. The line number is reset with every start page.
The doc parameter specifies the document to modify. The current document is assumed if this parameter is not specified.
If the operation fails the function returns 0. If the operation succeeds then the function returns 1.
For more detailed information on the page layout elements and their attributes, see http://www.arbortext.com/namespace/pagelayout. Refer to the Programmer's Reference for more detailed information about line numbering applications.
Related Topics
set pagelayoutmarkers command
set protectpagelayout command
layout::add function
layout::clear function
layout::apply function