Programmable Components

Some citation style requirements are so complex that they require multiple templates, as shown in the following example: Frawley, W.: Prolegomenon to a Theory of Translation. In: id. (ed.) Translation. Literary, Linguistic, and Philosophical Perspectives. Newark, Del. 1983, 159-175. Why is this problematic? Some styles distinguish between language and gender. If a contribution in an edited book is cited, the editor should not be written out, if the author of the contribution and the editor of the book as a whole are identical. Instead "id." should be used for a single man, "ead." should be used for a single woman, "eid." should be used for multiple male authors or a mixed group of male or female authors or "eaed." should be used for a group of female authors. For English-language references "(ed.)" should be used for the editor, while for German-language references (Hrsg.) should be used. When all of these rules are combined, 16 templates would be necessary to make the style work properly.

Click to enlarge

1
To add programmed code to a component, open the Properties of the component.

Click to enlarge

2
Double-click in the main editing pane (i.e. the white space in which the elements appear) to switch to the component properties ( 1).

Enable the Filter output of this component part via program code checkbox ( 2).

Click to enlarge

3
Click Add filter.

Click to enlarge

4
Delete the text in the Macro Editor.

Paste the code that you copied from the support portal.

Click Compile. As long as no error messages occur, click Save.

Click to enlarge

5
You can now edit the component as you normally would, for example by adding prefixes or suffixes. Click OK.

Programmed components are displayed with a gear symbol.