Programming Custom Templates
Citavi offers a number of default templates, for example "Custom Field 1 contains data". You can simply customize the template to make it do the opposite, for example "Custom field 1 does not contain data."
- Select a template, for example Footnote - Book - (Default template).
- On the Template menu, click New.
- Click the green plus sign next to Programmed custom conditions available in current citation style.
- Click Program a custom condition.
- Type the following under the code line //add macro code here:
return !BuiltInTemplateCondition. - After you type the period, a selection menu will open containing all the built-in teamplates. Select the one you want, for example CustomField1NotEmpty.
- Add a period and type the following after the period:
IsMet(template,citation);
The template should now look like this:
Background: The exclamation mark in front of BuiltInTemplateCondition ensures that the opposite of the default condition will happen.