Arbortext Command Language > Functions by Alphabetical Listing > append_newlist_path
  
append_newlist_path
append_newlist_path (dir[, prepend])
This function appends dir to, or removes dir from, the set newlist command path. dir can be a directory path, a directory path and a file name, or a directory path relative to a directory in the catalog path. If the optional argument prepend is specified and non-zero, dir is added to the beginning of the path list, removing any later occurrence of the directory. If prepend is zero or omitted and if dir is already present in the path list, the path list is returned.
The set newlist command specifies a list of paths to document types that appear in the Type list in the New Document dialog box.
For example, if you want to append your document type stored in the c:\mydoctypes\guide directory, you would type:
append_newlist_path('c:\mydoctypes\guide')
You can remove a document type from the Type list in the New Document dialog box. To do this, add a caret (^) character before the document type that you want to remove. You only have to specify the base name of the .dtd file.
For example, if you want to remove the Arbortext Editor XML DocBook V4.0 document type from the list, you would type:
append_newlist_path('^axdocbook')
where axdocbook is the base name of the DTD (axdocbook.dtd).
If any document types are automatically loaded from the Arbortext-path\custom\doctypes subdirectory, their paths are also prepended to the document type paths that appear in the Type list in the New Document dialog box.
Related Topics
set newlist command
New Document dialog box