[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] new export question: how to add a new option to an existing back
From: |
Eric Schulte |
Subject: |
Re: [O] new export question: how to add a new option to an existing backend |
Date: |
Thu, 21 Nov 2013 21:02:36 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Nicolas Goaziou <address@hidden> writes:
> Hello,
>
> Eric Schulte <address@hidden> writes:
>
>> I'd like to add a new option to the LaTeX backend from a contrib/
>> package so that it can be set with a #+ keyword. Is this possible? If
>> so how would one go about making this change. If not what's the best
>> way to add a new optional value to an existing backend (to be used by a
>> new link exporting function and/or the
>> org-export-before-parsing-hook).
>
> It really depends on what you need. I don't get your example. What would
> that option do?
>
> Anyway, you can use defadvice (see "ox-bibtex.el") to alter the
> behaviour of an existing back-end.
>
Hi Nicolas,
Thanks! I was not aware that ox-bibtex.el existed, this accomplishes
exactly the use case I had in mind. I've just pushed up two very small
changes to ox-bibtex.
1. The cite link following function falls back to obe-goto-citation if
ebib is not fbound, and
2. `org-bibtex-process-bib-files' is only called on HTML export, so
bibtex2html is not a requirement of ox-bibtex if used for latex
export only.
Best,
>
>
> Regards,
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D