Before printing a worksheet, you may need to adjust the margins, paper options, page breaks, and headers and footers so that pages ofthe worksheet are printed appropriately. This section describes how to change these worksheet attributes.Once you’ve set these characteristics for a worksheet, you can easily apply these characteristics to future worksheets by saving your worksheet as a template, as described in the previous section. Setting margins, paper size, source, and orientation Mathcad worksheets have four user-specifiable margins, at the left, right, top., and bottom of the worksheet. To set these margins, choose Page Setup from the File menu. This brings up the Page Setup dialog box, shown below:
The four text boxes in the lower right of this dialog box show the distances from the margin to the corresponding edge of the actual sheet of paper on which you will be printing.
• .Left: This is the distance from the left edge of the physical sheet of paper to the left -Aedge of the print area.
• Right: This appears as a solid vertical line in your window. You may have to scroll to the right to see it. In addition to marking the right edge of the printed area, the right margin serves as a wrap margin for all text regions. Don’t confuse the solid vertical line marking the right margin with the dashed vertical line marking the right page boundary. This line marks the right-hand edge of the sheet of paper itself. Its location depends on your choice of printer. If you haven’t chosen a printer, you won’t see this dashed line at all.
• Top: This is the distance from the top edge of the physical sheet of paper to the top edge of the print area. If your worksheet has a header, it appears just above this margin.
• Bottom: This is the distance from the bottom edge of the physical sheet of paper to the bottom edge of the print area. If your worksheet has a footer, it appears just below this margin. You can also use settings in the Page Setup dialog box to change the size, source, or orientation of the paper on which you will print your worksheet:
• Paper, Size: This should correspond to the size of the paper in your printer.
• Paper, Source: This is the area in your printer supplying the paper.
• Orientation, Portrait: The paper is positioned vertically, with the longest dimension running from top to bottom.
• Orientation, Landscape: The paper is positioned horizontally, with the longest dimension running from left to right. This is useful if your worksheet is wider than a single page. Click on the “Printer” button in the Page Setup dialog box to access your current printer settings. See “Printing” on page 79 for more about printing your Mathcad worksheets. If you want the margin and other page setup settings in the current worksheet to be used in other worksheets, save the worksheet as a template as discussed in “Worksheets and templates” on page 72.
Mathcad provides two kinds of pagebreaks:
• Soft pagebreaks: Mathcad uses your default printer settings and your top and bottom margins to insert these pagebreaks automatically. These show up as dotted horizontal lines, and you see them as you scroll down in your worksheet. You cannot add or remove soft pagebreaks.
• Hard pagebreaks: You can insert a hard pagebreak by placing the cursor at the appropriate place in your worksheet and choosing Page Break from the Insert menu. Hard pagebreaks display as solid horizontal lines in your worksheets. W)1en Mathcad prints your worksheet, it begins printing on a new page whenever it encounters either a soft or a hard pagebreak. To delete a hard pagebreak:
• Drag-select the hard pagebreak as you would select any other region in your Mathcad worksheet. A dashed selection box appears around the pagebreak.
• Choose Cut or Delete from the Edit menu.
Headers and Footers
To add a header or a footer to every printed page, choose Headers/Footers from the Format menu. This opens the Headers/Footers dialog box shown below:
To add a header:
• Click on the Header radio button.
• Type the header into one or more of the text boxes. Whatever you type into the Left, Center, and Right text boxes will appear left-justified, centered, and right-justified on the page respectively.
• To automatically insert the page number, current date, time, or filename wherever the insertion point is, click on the appropriate button below the text boxes. Mathcad inserts a special code into the text box. This will be replaced by the correct page number, date, time, or filename when you print the worksheet. Note that Mathcad
always begins numbering at page 1.
• Make sure the Enable check box is checked. When this is unchecked, Mathcad suppresses the display of headers and footers. To add a footer:
• Click on the Footer radio button. IJ
• Follow the rest of the instructions for inserting headers.