Adding template elements

You can add elements like table of contents, paragraphs, lists and footnotes in your template. You can also add images to the template.

About this task

You can insert the elements into Rational Publishing Engine template using Insert menu. The added element will be always placed at the end. You cannot add an element at a particular section (e.g. before another element or inside another element). This is possible by using the Tab keys or arrow keys inside the template content. If you focus the cursor inside the template content, the elements can be added using the context sensitive menu.

Procedure

  1. Click an item in the Palette and move your cursor to a location within the editor area. You will see the cursor has changed and an instance of the item you selected will be dropped onto the editor area. You can place additional instances of the selected element by clicking within the editor area as the item you selected remains active, until you select another element.
  2. In the editor area space right-click anywhere in the empty template area, to view the insert option. The list of available elements is displayed. Select the element that you need to insert.
  3. In the Outline view right click on an element. A context menu containing the respective elements is displayed.
  4. Click File > Save As or click the Save icon on the toolbar.
    Note: If you placed an item in the wrong spot you can select it and press the Delete key or use the pop-up menu to undo or delete the item.

Example

To insert an image in the template.
Note:

Document Studio and the Rational Publishing Engine support different sets of image formats. Some images supported by the RPE Engine, such as .emf or .wmf, might not render correctly in the Document Studio Editor. These elements show as Image cannot be rendered.  Until Rational Publishing Engine 1.1.2.1, there was no visual difference between an Image element without an image attached and one with an image that could not be rendered by Document Studio. To distinguish the elements that do have an .emf or .wmf image attached, you are given this visual indication. Though you might see this message, Image cannot be rendered, in the Document Studio template editor, the output created with that template renders the image properly.

  1. From the Palette view select Image. When you select the image option the image element will be placed in the editor area.
  2. In the Outline view, Click Image element and select Load Image.
  3. Click File > Save As or click the Save icon on the toolbar.
To insert a list in the template.
  1. Perform either of the following tasks:
    • From the Palette view select List and click anywhere in the editor area. In the New List specify the number of list items and click OK.
    • In the editor area, right-click and select Insert > List.
    • In the Outline pane, select Content, right-click and select Insert > List.
  2. Select the added list and modify its properties in the Properties pane.
  3. Click File > Save As or click the Save icon on the toolbar.
To enter the editor using the keyboard.
  1. Switch to Editor by pressing Ctrl+Shift+E.
  2. Select the Editor (there can be more than one editor) using the arrow keys.
  3. Click Activate Selected Editor and then use Up/Down keys to run through elements (Alt+Up/Down keys for child elements).
  4. Add the elements from Insert menu.
Note: To navigate the template elements you use the up/down keys. To enter child elements you use Alt+Up/Down keys. If you want to move elements using keyboard, you can use Cut > Paste Special > Paste Before/After from context menu or the edit main menu without mouse clicks.

Feedback