[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] biblatex citation
From: |
Nicolas Goaziou |
Subject: |
Re: [O] biblatex citation |
Date: |
Sat, 27 Aug 2011 11:38:42 +0200 |
Hello,
Nick Dokos <address@hidden> writes:
> Nick Dokos <address@hidden> wrote:
>
>> Thomas S. Dye <address@hidden> wrote:
>>
>> > Aloha all,
>> >
>> > This biblatex construct:
>> > \parencites[234]{kirch85}[185]{kirch84}
>> >
>> > is output like this:
>> > \parencites[234]{kirch85}[185]\{kirch84\}
>> >
>> > The biblatex syntax is unusual (to me) in LaTeX. I wonder if it is
>> > possible to support it in Org-mode?
>> >
>>
>> So is the syntax \parencites followed by an arbitrary number of pairs
>> [page#]{ref}?
>>
>> latex export knows to do the right thing for a command with optional and
>> mandatory arguments: \command[opt]{mand} is properly protected, but the
>> above case stretches it to beyond its breaking point.
>>
>> After a quick look, all I could come up with as a possibility was yet
>> another special case in org-export-latex-preprocess - and one more scan
>> of the whole file to add to the many (roughly 20!) that this function
>> does.
>>
>
> Well, maybe another scan is not necessary: the existing command handler
> could perhaps be extended to deal with this case. But the regexp in
> that case is horrendous enough as it is - if it gets any hairier, it
> will become Medusa: mortals looking at it will drop dead.
> However it might be that a loop that eats multiple pairs of [...]{...}
> occurrences would be simple enough to implement.
Note that Org core already recognizes such latex commands, as confirmed
by using `org-inside-latex-macro-p' anywhere inside it.
In this case, it's just an exporter failure.
Regards,
--
Nicolas Goaziou