Creating a New Component

  Previous Topic Next topic  

It is common to need the same component, formatted more than one way. For example, a style may call for the title of a book to be set in italic type, but for the title of a journal article to be set in Roman type. In these situations, you create a new component and configure it as needed.

Duplicating a Component

Often, it makes sense to take an existing component and duplicate it, then make changes to the copy. Then use the copy when you need the alternate formatting.

1.Select the component you want to duplicate.

2.On the Component menu, click Duplicate.

3.The duplicated component appears in the Components list on the left. "[Copy]" is appended to the name of the component.

4.Double-click the copy and begin editing it.

Creating a New Component

In this example, we'll create a title component in italics, like you might need for books, etc.

1.In the citation style editor, on the Component menu, click New.

2.In the component editor window that opens, the left column contains two panes: the upper pane contains the elements available in the selected reference type, and the lower pane contains the reference types to choose from. In this case, we want the title element, so we drag it from the list of elements to the main editing pane of the component editor.

3.In the properties pane, open the Style group and select the Italic checkbox.

4.Click a blank area of the main editing pane.

5.Add any Punctuation before (and Punctuation after, if necessary).

6.Give the component a Name. Here, we could type in title, but using a placeholder is more efficient because the placeholder automatically adapts to the correct name in the reference type used. In our example, the "title" in a book is equivalent to the "subject" of archive material, so when you edit a template for archive material, you'll see "subject" instead.
Since a component can contain more than one element, the placeholders are numbered, starting at zero.
Finally, to be able to distinguish the new component, append [italic] to its name: {0} [italic].

7.Click OK to finish. The new component appears in the list of components, ready to drag into templates.

Creating Components with Text Elements

Sometimes you need to combine components with text, for example to place them in parentheses, to achieve a result like this: (Series title, Vol. Volume). Take advantage of the ability to combine components and text elements.

1.In the citation style editor, on the Component menu, click New.

2.In the component editor window that opens, drag the desired elements to the main editing pane.

3.In this example, we'll add parentheses, so drag a text element to the main editing pane, dropping it before the existing elements.

4.In the Text field, type an opening parenthesis.

5.Repeat the last two steps for the closing parenthesis.

6.To add the "Vol." prefix  to the volume element, we can either add a text element, or we can edit the properties of the volume element itself. Here, we do the latter and enter "Vol. " with the trailing space as a prefix.

7.To insert punctuation between elements, add another text element. Here, we add a comma and space and select Following element contains data.

8.Click a blank area of the main editing pane and give the component a name. Again, we will use placeholders: ({0}, Vol. {1}).

9.Click OK to finish.

 

URL for this page: http://manual.citavi.com/en/?citation_style_new_component.htm (Last updated: 18.08.2011 15:09:48)
Still have questions? Please visit our Service Portal where you can search our Knowledge Base and send questions to the Citavi team.