On Oct 11, 2007, at 12:03 PM, Christiaan Hofman wrote:
>
> On 11 Oct 2007, at 5:15 PM, James Howison wrote:
>
>> I'm trying to get a template to do this (for MultiMarkDown and
>> Natbib), with the following two entries:
>>
>> einstein50somegreat: Albert Einstein, Some Other, Some Other and
>> Still More (1950) Some Great Tract. Journal of Examples (10)1:100-205
>>
>> robinson83somewhine: Arthur Robinson and Dorothy Snarl (1983) Some
>> Whiney Tract. Journal of Examples (56)1:100-205
>>
>> converted to:
>>
>> [Einstein et al (1950), Robinson and Snarl (1983)]
>> [#einstein50somegreat, robinson83somewhine]
>>
>> and the closely related (for option-drag that MMD will convert to ~
>> \citep{})
>>
>> [(Einstein et al 1950, Robinson and Snarl 1983)]
>> [#einstein50somegreat, robinson83somewhine]
>>
>> So here's my current attempts without et al shortening (the citekey
>> part works):
>>
>> [<$publications>
>> <
>> [EMAIL PROTECTED]/
>>> (<$fields.Year/>)</$publications>][#<
>> [EMAIL PROTECTED]/>]
>>
>> which gives me:
>>
>> [Einstein, Other, Other and More (1950)Robinson and Snarl (1983)]
>> [#einstein50somegreat, robinson83somewhine]
>>
>> so I guess I'm asking, how do I get the separate entries separated by
>> a comma and a space?
>>
>
> Use the <?$publications> alternate tag to insert a separator,
> following this syntax
>
> <$publications>item template<?$publications>separator</$publications>
>
>
>> Secondly, I don't think I see a built-in way to do "et al" shortening
>> in the templates, is that right? Do I need to use a conditional for
>> when the length of authors is great than 2? Can someone do/point me
>> to an example of using a conditional?
>>
>> Any suggestions?
>>
>> Thanks,
>> James
>
> I've just added it yesterday, so if you use the current nightly you
> can use the following keys:
>
> @componentsWithEtAlAfterOne
> "A" or "A et al."
>
> @componentsJoinedByAndWithEtAlAfterOne
> "A" or "A and B" or "A et al."
>
> @componentsJoinedByAndWithEtAlAfterTwo
> "A" or "A and B" or "A, B, et al."
>
> @componentsJoinedByCommaAndAndWithEtAlAfterThree
> "A" or "A and B" or "A, B, and C" or "A, B, C, et al."
>
> You can also use condition tags for that, something like:
>
> <[EMAIL PROTECTED]<4?>
> <[EMAIL PROTECTED]/>
> <[EMAIL PROTECTED]>
> <[EMAIL PROTECTED]><$name/>, </[EMAIL PROTECTED]/
>> et al.
> </[EMAIL PROTECTED]>
Thanks, those are great. It's looking good now. I don't suppose
there is someway to do 'reduction' so that:
Specific Author (2006), Specific Author (2007) would become "Specific
Author (2006, 2007)"
I realize that's getting a fairly long way into in-text citations,
which is probably outside the scope of templates.
Also, somewhat strangely I have a template set for Option-Drag but it
doesn't seem to 'take'. ie I always get html. Is there a
conflicting setting for option-drag somewhere?
Thanks,
James
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users