The Page Layout page of the Page Layout dialog box provides options to set the page layout, font, line numbering, and line wrapping.
To open the Page Layout dialog box, choose File|Page Layout.
Prints your document across the length or width of the paper.
Prints text across the width of the paper.
Prints text across the length of the paper.
Specifies the number of sections per page and if the section number is printed.
Previews the document with the current settings.
Controls the font face and size. You can use the default font and size or select your own.
Prints the line number of each line of code. The line numbers can be set to print every 1, 5, 10, 15, 20, or 25 lines.
Uses multiple lines to print characters beyond the page width.
Code lines are truncated and characters beyond the page width do not print.
Lines of text are wrapped to the next line after the last word that can fit on the page.
Lines of text are wrapped to the next line after the last character that can fit on the page.
The Advanced page of the Page Layout dialog box provides options to set margins, borders, and page headers.
To open the Page Layout dialog box, choose File|Page Layout.
Sets the margins for the file.
Sets the margins for the file in inches or centimeters.
Displays the current margin values for the left, right, top, and bottom margins.
Check this option to print a border at the margins.
Sets options for printing page headers. When this option is checked, choose from the following options:
Prints the page header. If this option is turned off, the other page header options are disabled.
Prints the page header on the first page only.
Prints the page header in a shaded box.
Use the following variables to control what is printed in the page header.
Page header variables
Variable | Description |
---|---|
%f | Filename and path |
%g | Filename only |
%p | Page number |
%n | Total page count |
%t | Time |
%d | Date (long version) |
%s | Date (short version) |
%u | Username |
Sets the header font and size.