## Printing Documents in Amaya

Amaya can print documents with or without CSS style sheets, on both Linux and Windows platforms.

Important: On Linux platforms, Amaya can only generate a Postscript description, so you must have a PostScript printer or use an application to translate the PostScript into your specific printer language.

You can print a document in three ways:

- Setup and Print (File> Setup and Print), which enables you to set some parameters and options before printing.
- Print (File >Print), which prints a document using the current print configuration (defined using the Setup and Print command).
- The button on the button bar. On Linux platforms, this is a shortcut to the Print command. On Windows platforms, this is a shortcut to the Setup and Print command, due to a problem with the use of DLLs on Windows 95.

For more information on printing with style sheets, see About Controlling Printing with CSS.

### Using the Setup and Print Command

The Setup and Print command allows you to change the printer and toc/page options. Depending on your operating system, some parameters and options are reset to their default value when you browse another document. This effect depends on each platform.

### The Print Command

This command prints the current document with the default printing parameters or with the values previously set using Setup and Print.

On Windows platforms, the first time you launch the Print command, the standard Windows dialog is opened to verify that the default printer is correct.

### Printing on Windows Platforms

On Windows platforms, the first time Setup and Print is pressed, a dialog allows you to make some choices like:

- generate a table of contents for the document,
- generate a table of links for the document,
- print the document URL on top of each page,
- and print with or without style sheets.

The next times, or when the Print command is selected, the standard Windows dialog is opened, which allows you to choose the other printing parameters.

### Printing on Linux Platforms

Under Linux, the Setup and Print command allows you to :

- set the paper format (A4 or US),
- set the orientation (portrait or landscape),
- choose the number of pages printed on the same sheet (1, 2, or 4 pages per sheet),
- choose the output (postsrcipt file or printer).

In addition, you can:

- select the manual paper feed,
- generate a table of contents for the document,
- generate a table of links, which creates a number after each link in the document that refers to an entry within the table of links and the corresponding URL
- print the document URL on each page,
- print the document with or without style sheets.

When the Print command is selected, the printing is done with standard options or previous selected options.

### About Controlling Printing with CSS

Amaya does not print links as underlined. To make this happen, add the following line to your user style sheet (amaya.css, located in the Amaya home directory):

`@media print {a:link {text-decoration: underline} ... }`

Amaya supports the CSS page break property `page-break-before: always`. When you attach this property to a specific element using an attribute style, Amaya generates a page break before that element. When you attach this property to an element type within the style element of the document or within an external CSS style sheet, Amaya generates a page break before each instance of that element.