emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] ox-bibtex.el -- how to join sequential citations


From: Nicolas Goaziou
Subject: Re: [O] ox-bibtex.el -- how to join sequential citations
Date: Sun, 24 Nov 2013 10:42:02 +0100

Hello,

Feng Shu <address@hidden> writes:

> Eric Schulte <address@hidden> writes:
>
>> When exporting multiple sequential citations e.g., cite:foo cite:bar
>> etc... I would like to see something like the following (latex used for
>> this example) "\cite{foo, bar}", but instead I'm getting "\cite{foo}
>> \cite{bar}", which leads to poorly formed PDFs (a similar thing happens
>> for HTML export).
>
> May be you should use \cite{foo, bar} directly in org file.

That was, indeed, the original way to handle citations in the former
org-export-bibtex.el. It is still supported in both LaTeX, obviously,
and HTML (which will split the above among two anchors).

"cite" link support was added later, and is lacking in this area.

>> My question is how best to fix this, should I write a filter function,
>> or does the export engine already have processes in place to handle
>> these sorts of export context issues?

At the user level, a filter is definitely the way to go.

Though, it is an interesting feature to implement in ox-bibtex.el. One
idea would be to write another parse-tree filter function which would
change cite links into \cite{...} commands and consecutive cite links
into \cite{..., ...} commands.

This would also allow us to get rid of both `org-html-link' and
`org-latex-link' advices, as no more cite link would be left in the
parse tree anyway.

What do you think?


Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]