5 Output Pages
The Output Pages section describes how to set options for general HTML output, as well as for Markup Items, Text Formats, and Page Layouts.
The following topics are covered:
5.1 Configuring HTML Settings
The top-level Output Pages page allows you to set general options for HTML output.
5.2 Configuring Output Markup Items
Markup items are HTML fragments that may be inserted directly into the output HTML as part of a page layout. Each markup item is a name/value pair. The name is what will appear in the screens for editing page layouts. The value is a block of HTML that will be inserted into the output HTML wherever the markup item appears in a page layout. There is one default name in this section, break, whose value is defined as <br />.
- Click Add to display the Output Markup Items page. A new item called Output Markup Item appears in the lefthand tree view under Output Markup Items, below the default item, break.
- In the Name field, assign a name by which you will refer to this item, for example, rule. The display on the lefthand tree view changes to reflect this name.
- In the Markup text box, enter the HTML fragment to be associated with this item, for example, <br />.
- To remove a markup item from the template, highlight the name of the item in the tree and click Remove.
5.3 Configuring Output Text Formats
Output text formats define text and formatting attributes of output document text. These formats will define such attributes as the font family, size, and color, standard text attributes (bold, italic, underline, etc) and border attributes. This allows the template author to standardize the look of the output despite differing formatting styles used by the various authors of the source documents. There is one default format in this section, Default Paragraph, whose tag is p. Output Text Formats created here can then be be organized according to Format Mapping Rules, which pick the formatting based on checking the type of source document text.
Note:
Users should be aware that text formats are only applied to text from word processing files. They cannot be used to change the formatting of text that is rendered as part of any graphics generated by the conversion. They are also not applied to text inside spreadsheets.
5.4 Setting Format Mapping Rules
Format mapping rules allow you to specify output document formatting and the sequence in which rules are checked.
5.4.1 Mapping Source Document Styles to CSS Styles
This example shows how to map the heading styles found in the source document to CSS styles for the HTML display.
- To map the heading style, first you must add an Output Text Format. Navigate to Output Pages > Output Text Format, click Add and give it a name, Heading 1.
- In the Tag name text box, enter the HTML tag to use in the output, in this case, h1.
- On the Formatting tab, allow all formatting to be inherited from the source.
- Next, you must define a Format Mapping Rule that matches on the style name. Mapping rules can use different criteria to map document text to a format. Navigate to Format Mapping Rules in the left-hand pane, and click Add Format Mapping Rule.
- In the Format drop-down menu, select the name of the Output Text Format you created, Heading 1.
- In the Match on drop-down menu, select Style name.
- In the Paragraph or character style text box, enter a name for the style exactly as it appears in the source document, such as Heading 1.
- When you exit the editor, you will be prompted to save the template.
5.5 Configuring Output Page Layouts
Page layouts are used to organize how the various parts of the output are arranged. This includes such items as where to place a Table of Contents in the output document. A default layout has been provided for users who need output that is pleasing to the eye, but are not particular about the details of their output.
Users may create multiple page layouts, each optimized for a specific file type. The Document Handling page allows you to specify which page layout to use.