Re: pybcompact and muliple citations
Stefan Huesselbeck <huesselbeck-NE7bNKZAKeJ7NQr57o4jwQVxpO4MH7jVN4m7Pu7SEpc@public.gmane.org>
| Newsgroups | gmane.comp.gnome.apps.pybliographer |
|---|---|
| Message-ID | <[email protected]> |
Hi
Stefan Huesselbeck wrote:
>>>>> LaTeX and BibTex support multiple citations like
>>>>>
>>>>> \cite{first:02,second/etal:04b}
>>>>>
>>>>> But pybcompact gives me this error:
>>>>>
>>>>> pybtex: warning: the following keys were not resolved
>>>>> first:02,second/etal:04b
>>>>
>> [...]
>> Any new insights with this question?
>> Thanks for your help. :)
>
> I wrote some time ago that i use this header:
>
> > I played with a little testfile, so no other special classes loaded:
> > \documentclass[a4paper]{llncs}
>
> I changed llncs to article and latex resolves multiple citations in
> single citation entries in the .aux file. So the problem is llncs!
Well... after some more reading and help from Ptr on irc (thanks again)
the problem is fixed by editing the pybcompact.py file in
/usr/share/pybliographer:
in the 'old' version it says:
# we match a new citation
match = citation_re.search (line)
if match:
citations.append (match.group (1))
continue
the new version that can handle multiple citations:
<Ptr_> well, in scripts/pybcompact.py it should read:
<Ptr_> # we match a new citation
<Ptr_> match = citation_re.search (line)
<Ptr_> if match:
<Ptr_> # sometimes there are muptiple keys here
<Ptr_> citation_key = match.group (1).split(',')
<Ptr_> citations.extend (citation_key)
<Ptr_> continue
Just wanted to end this thread by a solution and not by a problem. :)
Stefan
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt