Hi
here is an RTF template I made last night to follow American
Anthropological Association style, which is based on Chicago (see
http://www.aaanet.org/pubs/style_guide.pdf ). I copied the syntax to
clean up the names from one of the defaults.
The only thing it doesn't do that I'd like is to use ed. or eds.
depending on the number of editors -- I haven't tackled that yet...
Re: your template You don't need to include "conditionKey" in each of
the conditions -- you just put the key you want to test on in place
of "conditionKey".
Hope this helps
DF
- - - begin template file - - -
<$publications>
<$pubType=book?>
<
[EMAIL PROTECTED]
nedByCommaAndAnd/>
<$pubFields.Year/>. <$pubFields.Title/>. <$pubFields.Address/>: <
$pubFields.Publisher/>.
<?$pubType=inbook?>
<
[EMAIL PROTECTED]
nedByCommaAndAnd/>
<$pubFields.Year/>. <$pubFields.Title/>. In <$pubFields.Booktitle/>.
<
[EMAIL PROTECTED]
nedByCommaAndAnd/>, eds. <$pubFields.Pages?>Pp. <$pubFields.Pages/></
$pubFields.Pages?>. <$pubFields.Address/>: <$pubFields.Publisher/>.
<?$pubType=article?>
<
[EMAIL PROTECTED]
nedByCommaAndAnd/>
<$pubFields.Year/>. <$pubFields.Title/>. <$pubFields.Journal/> <
$pubFields.Volume/>(<$pubFields.Number/>):<$pubFields.Pages/>.
<?$pubType=phdthesis?>
<
[EMAIL PROTECTED]
nedByCommaAndAnd/>
<$pubFields.Year/>. <$pubFields.Title/>. Ph.D. dissertation, <
$pubFields.Department?>Department of <$pubFields.Department/>, </
$pubFields.Department?><$pubFields.School/>.
<?$pubType=mastersthesis?>
<
[EMAIL PROTECTED]
nedByCommaAndAnd/>
<$pubFields.Year/>. <$pubFields.Title/>. Masters dissertation, <
$pubFields.Department?>Department of <$pubFields.Department/>, </
$pubFields.Department?><$pubFields.School/>.
<?$pubType=unpublished?>
<
[EMAIL PROTECTED]
nedByCommaAndAnd/>
<$pubFields.Year/>. <$pubFields.Title/>. <$pubFields.Note/>.
<?$pubType=electronic?>
<
[EMAIL PROTECTED]
nedByCommaAndAnd/>
<$pubFields.Year/>. <$pubFields.Title/>. Electronic document, <
$pubFields.Url/>, accessed <$pubFields.Urldate/>.
</$pubType?>
</$publications>
- - - end template file - - -
On May 22, 2007, at 7:31 PM, [EMAIL PROTECTED] wrote:
Hi,
I'm trying to export my bib to an RTF file according to the Chicago
Manual of Style, based on the publication type. (I know my template
is not perfect CMS, but no reason to fix it unless this export is
going to work.)
I have created the template below, but really don't understand the
Help docs and can't find analogous code in the default distro
templates.
Basically, I want a (C-style) 'switch' statement on pubType, I
think. But I'm not sure how to form the 'cases'. The template below
is my feeble attempt to achieve:
switch (pubType) {
case 'article':
<$fields.Author/>. <$fields.Year/>. "<$fields.Title/>." <
$fields.Journal/>. <$fields.Volume/>: <$fields.Pages/>.
/* etc */
...
}
Sorry if this should be obvious to me. Thanks in advance for any help.
======= BEGIN TEMPLATE FILE ==========
<$publications>
<$conditionKey.pubType==article?>
<$fields.Author/>. <$fields.Year/>. "<$fields.Title/>." <
$fields.Journal/>. <$fields.Volume/>: <$fields.Pages/>.
<?$conditionKey.pubType==book?>
<$fields.Author/>. <$fields.Year/>. <$fields.Title/>. <
$fields.Publisher/>.
<?$conditionKey.pubType==inbook?>
<$fields.Author/>. <$fields.Year/>. <$fields.Title/>. <
$fields.Publisher/>.
<?$conditionKey.pubType?>
<$fields.Author/>. <$fields.Year/>. "<$fields.Title/>." <
$fields.Journal/>. <$fields.Volume/>. <$fields.Publisher/>. <
$fields.Pages/>.
</$conditionKey.pubType?>
</$publications>
======= END TEMPLATE FILE ==========
----------------------------------------------------------------------
---
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users
=============================================
Derick A. Fay, Ph.D.
Visiting Assistant Professor
Department of Anthropology
Union College
Schenectady, NY 12308
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users