About Arbortext Styler > Adding Generated Text > Advanced Formatting of Titles and Numbering > Example: Add Punctuation that Appears in Title but not in References to Title
  
Example: Add Punctuation that Appears in Title but not in References to Title
This example describes how to configure a document's endnotes such that the reference mark in the body of the document displays only the number of the note, while the endnote itself contains the number, a period, and the endnote body text, for example 1. The text for the endnote. The endnote definition is based on the DocBook footnote and footnoteref elements, which describe the endnote and reference mark respectively.
The procedure detailed here makes use of the Suffix (does not appear after references) option, available in numbering dialog boxes, in which you can provide a suffix for the number of an item. Any characters or text entered in this field will accompany the number only where the element appears in the document, and will not be displayed in any references to the numbered item, for example cross references or tables of content (TOC) entries.
The following options are available if you wish for the suffix to appear in both the body of the document and references to the numbered element. Note that these have to be configured separately:
Cross references: include the suffix in the cross reference format
Tables of content: use the custom content option for the TOC entry - see Custom Content Dialog Box for further information.
Running header and footers: reference a cross reference format that configures the element number with a suffix in the division reference in your header or footer.
Alternatively, if you enter the suffix into the Format field in the relevant numbering dialog box, the suffix will automatically be included with the number everywhere it appears, including references.
1. In the Elements list, select the footnote element and give it the Block style via the Edit > Style menu option.
2. Select the footnote everywhere context and set it to be numbered by navigating to the Generated text category and selecting the Number option in the Numbers and Bullets field.
3. Click the Details button to open the Number Details dialog box.
4. In the dialog box, enter a period character (.) into the Suffix (does not appear after references) field. Set the required indent in the Follow number and suffix with, Tab to and Indent following lines fields.
5. Click Restart and select chapter in the Numbering Restart dialog box. Here you have specified that a collection of endnotes should be output for every chapter. Save the changes and exit the numbering dialog boxes.
6. In the Elements list, select the footnoteref element and give it the Cross Reference style. In the Cross Reference Details dialog box that appears, configure the following settings:
Reference attribute: linkend
Select a cross reference format: Number
Here you have specified that the reference mark will be output as a number. Save the changes and exit the dialog box.
7. Select the footnoteref everywhere context, and elect to create generated text for the context by clicking the Edit button next to the After-text field in the Generated text category. The Generated Text Editor opens.
8. Wrap the CrossReference tag with a User Formatting Element (UFE) by highlighting CrossReference and selecting the Insert > User Formatting Element > (new) menu option. Create a user-defined UFE, for example _ufe:reference-mark. Note that the UFE is displayed in pink tags, as it is currently unstyled. See Highlight Unstyled Elements in a Document for further information.
The inclusion of a UFE for the footnoteref everywhere context permits you to add any formatting you wish for the endnote reference mark. You can also give it a particular style, which allows you to control the placement of the element in this particular context.
Save the changes and exit the editor.
9. In the Elements list, select the UFE you created and give it the Inline style.
10. In the Text category for the element, set it to be superscripted by setting the Super/Subscript field to Superscript. Use the Offset field to define the height at which the superscript number will be displayed, if required.
11. When previewing or publishing you will now see that footnote references in the body of the document are displayed in the form of a superscript number only, e.g. 1. The endnotes at the end of the chapter will display the number, a period character and the endnote body text, for example 1. The text for the endnote.