Editing APP Root Template Source
Arbortext Styler allows you to view and edit the root APP template source of a stylesheet. You can configure custom settings for the tags in the APP root template, which will be used when the stylesheet is used to publish PDF output. For example, you could modify the default behavior of tables, or change the default footnote control stream, by editing the tags that support these definitions.
For more information about the
APP root template, see
APP Source Code Edit Locations.
Custom edits for the tags in the APP root template are saved with the stylesheet. They override the default configuration for the tag that is generated by APP. The custom settings are used as default when the stylesheet is used to publish PDF with the APP engine. They do not affect other stylesheets, as you have not modified the system APP namespace files.
Viewing APP Root Template Code
To access the tags in the APP root template:
1. Set the stylerviewapproottags preference to on in Arbortext Editor, to enable the display of the APP root template tags
You can specify the option with a set command, or set it as an Advanced Preference.
You can also use the > > menu option in Arbortext Styler to toggle the display of the tags.
2. Navigate to the
Functions list
in
Arbortext Styler.
The root template tags are displayed in the Functions list , grouped in namespaces.
When you select a tag in the list, a preview of its code is shown in the properties area of the list.
Editing APP Root Template Source
To edit root APP template source:
1. Enable the display of APP root template tags in the Functions list, using the process defined in Viewing APP Root Template Source.
2. Navigate to the Functions list and select the tag in the root template that you want to edit.
3. Click the Edit button in the properties area of the list.
The APP Source Editor window opens.
4. Make the required changes to the code in the tag
If you are working with JavaScript code (in a Jf tag), syntax highlighting and autocomplete features are available.
5. Click > or > to save your changes to the tag.
The tag you edited is marked as having a source edit.
If you are working with JavaScript code (in a Jf tag), a syntax validation feature is available when you apply your changes.
6. Save the stylesheet. The custom settings you made for the tag are saved in the stylesheet.
Removing Edits to APP Root Template Source
To remove all custom edits made to a tag in APP root template source:
1. Enable the display of APP root template tags in the Functions list, using the process defined in Viewing APP Root Template Source.
2. Navigate to the Functions list and select the tag in the root template from which you want to remove source edits.
3. Choose the menu option > > .
4. A message asks you to confirm that you want to delete APP source edits. Click Yes.
Source edits are deleted from the selected tag, and the source edit indicator is removed.