Page Layout dialog box
The Page Layout dialog box allows you to specify options for printing. To display this dialog box, choose File|Page Layout. This dialog has two pages, Page Layout and Advanced.
Page Layout page
The Page Layout page provides options to set the page layout, font, line numbering, and line wrapping.
Layout
Prints your document across the length or width of the paper.
Portrait
Prints text across the width of the paper.
Landscape
Prints text across the length of the paper.
Sections Per Page
Specifies the number of sections per page and if the section number is printed.
Preview
Previews the document with the current settings.
Font
Controls the font face and size. You can use the default font and size or select your own.
Line numbering
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.
Line wrapping
Uses multiple lines to print characters beyond the page width.
No Wrapping
Code lines are truncated and characters beyond the page width do not print.
Wrap At Word Breaks
Lines of text are wrapped to the next line after the last word that can fit on the page.
Wrap At End Of Page
Lines of text are wrapped to the next line after the last character that can fit on the page.
Advanced page
The options on the Advanced page set margins, borders, and page
headers.
Margins
Sets the margins for the file.
Measure In
Sets the margins for the file in inches or centimeters.
Current Margin Values
Displays the current margin values for the left, right, top, and bottom margins.
Draw A Border Along Margins
Check this option to print a border at the margins.
Page Headers
Sets options for printing page headers. When this option is checked, choose from the following options:
- Print Page Headers
- Display On First Page Only
- Enclose Header In Shaded Box
Header Contents
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 |
Header Font
Sets the header font face and size.