## Printing documents

Amaya is able to print your documents with or without CSS style sheets on both Unix and Windows platforms. On Unix platforms it is only able to generate Postscript description, so you need to have a PostScript printer or use a application able to translate the PostScript into your specific printer language.

There are three ways for printing a document thru Amaya:

- the Setup and Printcommand (`File/Setup and Print)`, which allows you to set some parameters and options before printing.
- the Print command (`File/Print`), which prints a document using the configuration setup thru the previous command.
- the button, in the button bar, which is a shortcut to the Print command on Unix platforms. Under Windows, this button is a shortcut to the Setup and Print command. This is due to a problem with the use of DLLs on Windows 95.

### Setup and Print command

This command allows you to set up different parameters and options. Note that some parameters and options are reset to their default value when you browse another document. This clear up depends on each platform.

#### Unix platforms

Under Unix, you can set the following parameters:

- the paper format: A4. US
- the orientation: Portrait, Landscape
- the number of pages printed on the same sheet of paper: 1, 2, 4 pages per sheet
- the output: file, or printer

In addition, you can select the following options:

- Manual paper feed
- Generation of the table of contents of the document
- Generation of the table of links: a number is generated after each link in the document that refers an entry within the table of links; each table entry lists the corresponding URL
- Printing of the document URL on each page
- Printing with or without CSS style sheets

#### Windows platforms

On Windows platforms, a first dialogue box will propose the following options:

- Generation of the table of contents of the document
- Generation of the table of links of the document
- Printing of the document URL on each page
- Printing with or without CSS style sheets

then the standard Windows dialogue will let you choose the other printing parameters.

### Print command

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

On Windows platforms, the first time you launch the command Print, the standard Windows dialogue will be displayed to let you check that the default printer is correct. The following Print commands will be launched without any dialogue.

### Controlling the printing with CSS

Links are not printed as underlined. To make this happen, your user style sheet (file `amaya.css` in your Amaya home directory) should contain:

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

Amaya supports the CSS page break properties: "page-break-before: always". When that property is attached to a specific element by an attribute style, it generates a page break before that specific element. When that property is attached to an element type within the style element of the document or within an external CSS style sheet, it generate a page break before each instance of that element.