When you specify a header and footer in the Page Setup dialog box, only the ampersand character (&) is considered as an escape character. Both the ampersand and the character that follows are not copied to the output line. Instead, they either justify the following text, or Visual LISP replaces them with variable information.
In the Page Setup dialog box, justification codes indicate how header text is justified on the printed page. You can specify any of the following:
Left-justified (the default).
Centered within the page margins.
Right-justified.
In the Page Setup dialog box, replace codes are variables for which Visual LISP substitutes values. Specify any of the following:
Visual LISP replaces this code with the title of the active Visual LISP window. When invoked from a Visual LISP text editor window, &f is the name of the file being edited, including directory and extension.
Current system date. To select a date format, choose Edit Extra Commands Format Date/Time from the Visual LISP menu.
Current system time. To select a time format, choose Edit Extra Commands Format Date/Time from the Visual LISP menu.
Current page number.
To include an ampersand character in your heading text, enter two in succession.
The default heading is set to the following:
&cFile: &f &r&dt
The default footing is set as follows:
&r&p
The following is a sample printed page from an AutoLISP source file using the default page layout settings:
File: REACTORSTUFF.LSP 12/11/98 (defun saveDrawingInfo (calling-reactor commandInfo / dwgname filesize) (setq dwgname (cadr commandInfo) filesize (vl-file-size dwgname) ) (alert (strcat "The file size of “ dwgname “ is “)) . . . (princ) ) 2