Programmer's Guide > Programming and Scripting Techniques > Line Numbering in Arbortext Editor and Arbortext Publishing Engine > Applying Line Numbers > Line Numbering Sample Application
  
Line Numbering Sample Application
A sample line numbering application can be found in the samples\linenumbering folder in your installation directory. Use the following procedure to view an example of line numbering using this sample application. You'll need to have either Arbortext Styler or Print Composer installed and licensed to perform the following procedure:
To Apply Line Numbers to a Sample Document:
1. Choose File > New, select the Sample check box, and choose Arbortext Simplified XML DocBook Article.
2. At the Arbortext Editor command line, type: linenum
Line numbers will appear directly to the left of each line in your document.
3. Choose File > Print Preview and use the asdocbook.style stylesheet to view the line numbers in a composed document.
4. To remove line numbers from your document, on the Arbortext Editor command line, type: layout::clear()