About Arbortext Styler > Extending Stylesheets > Editing PTC ALD Root Template Source
  
Editing PTC ALD Root Template Source
Arbortext Styler allows you to view and edit the root PTC ALD template source of a stylesheet. You can configure custom settings for the tags in the PTC ALD 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 PTC ALD root template, see PTC ALD Source Code Edit Locations.
Custom edits for the tags in the PTC ALD root template are saved with the stylesheet. They override the default configuration for the tag that is generated by PTC ALD. The custom settings are used as default when the stylesheet is used to publish PDF with the PTC ALD engine. They do not affect other stylesheets, as you have not modified the system PTC ALD namespace files.
Viewing PTC ALD Root Template Code
To access the tags in the PTC ALD root template:
1. Set the stylerviewapproottags preference to on in Arbortext Editor, to enable the display of the PTC ALD root template tags
You can specify the option with a set command, or set it as an Advanced Preference.
You can also use the Tools > Advanced Edited Source > Edit APP Root Template 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 PTC ALD Root Template Source
To edit root PTC ALD template source:
1. Enable the display of PTC ALD 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 PTC ALD Source Editor window opens.
For more information, see PTC ALD Source Editor.
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 File > Apply or File > Apply and Close to save your changes to the tag.
The tag you edited is marked as having a source edit.
For more information, see Identifying Items that have Edited Source.
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 PTC ALD Root Template Source
To remove all custom edits made to a tag in PTC ALD root template source:
1. Enable the display of PTC ALD 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 Edit > Delete Function Source Edits > APP.
4. A message asks you to confirm that you want to delete PTC ALD source edits. Click Yes.
Source edits are deleted from the selected tag, and the source edit indicator is removed.