* new export question: how to add a new option to an existing backend
@ 2013-11-21 22:02 Eric Schulte
2013-11-21 22:10 ` Yujie Wen
2013-11-21 22:57 ` Nicolas Goaziou
0 siblings, 2 replies; 5+ messages in thread
From: Eric Schulte @ 2013-11-21 22:02 UTC (permalink / raw
To: Org Mode Mailing List
Hi,
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).
Thanks,
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: new export question: how to add a new option to an existing backend
2013-11-21 22:02 new export question: how to add a new option to an existing backend Eric Schulte
@ 2013-11-21 22:10 ` Yujie Wen
2013-11-21 23:34 ` Eric Schulte
2013-11-21 22:57 ` Nicolas Goaziou
1 sibling, 1 reply; 5+ messages in thread
From: Yujie Wen @ 2013-11-21 22:10 UTC (permalink / raw
To: Org Mode Mailing List
[-- Attachment #1: Type: text/plain, Size: 686 bytes --]
Hi, Eric,
You can derive a new back-end from existing ones. Please consult org
export reference
documentation<http://orgmode.org/worg/dev/org-export-reference.html>
.
Yujie
2013/11/22 Eric Schulte <schulte.eric@gmail.com>
> Hi,
>
> 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).
>
> Thanks,
>
> --
> Eric Schulte
> https://cs.unm.edu/~eschulte
> PGP: 0x614CA05D
>
>
[-- Attachment #2: Type: text/html, Size: 1211 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: new export question: how to add a new option to an existing backend
2013-11-21 22:02 new export question: how to add a new option to an existing backend Eric Schulte
2013-11-21 22:10 ` Yujie Wen
@ 2013-11-21 22:57 ` Nicolas Goaziou
2013-11-22 4:02 ` Eric Schulte
1 sibling, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2013-11-21 22:57 UTC (permalink / raw
To: Eric Schulte; +Cc: Org Mode Mailing List
Hello,
Eric Schulte <schulte.eric@gmail.com> 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.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: new export question: how to add a new option to an existing backend
2013-11-21 22:10 ` Yujie Wen
@ 2013-11-21 23:34 ` Eric Schulte
0 siblings, 0 replies; 5+ messages in thread
From: Eric Schulte @ 2013-11-21 23:34 UTC (permalink / raw
To: Yujie Wen; +Cc: Org Mode Mailing List
Yujie Wen <yjwen.ty@gmail.com> writes:
> Hi, Eric,
>
> You can derive a new back-end from existing ones. Please consult org
> export reference
> documentation<http://orgmode.org/worg/dev/org-export-reference.html>
> .
>
> Yujie
>
Yes, I've done this before, however I'm hoping to modify an existing
backend.
Best,
>
>
> 2013/11/22 Eric Schulte <schulte.eric@gmail.com>
>
>> Hi,
>>
>> 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).
>>
>> Thanks,
>>
>> --
>> Eric Schulte
>> https://cs.unm.edu/~eschulte
>> PGP: 0x614CA05D
>>
>>
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: new export question: how to add a new option to an existing backend
2013-11-21 22:57 ` Nicolas Goaziou
@ 2013-11-22 4:02 ` Eric Schulte
0 siblings, 0 replies; 5+ messages in thread
From: Eric Schulte @ 2013-11-22 4:02 UTC (permalink / raw
To: Nicolas Goaziou; +Cc: Org Mode Mailing List
Nicolas Goaziou <n.goaziou@gmail.com> writes:
> Hello,
>
> Eric Schulte <schulte.eric@gmail.com> 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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-11-22 4:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-21 22:02 new export question: how to add a new option to an existing backend Eric Schulte
2013-11-21 22:10 ` Yujie Wen
2013-11-21 23:34 ` Eric Schulte
2013-11-21 22:57 ` Nicolas Goaziou
2013-11-22 4:02 ` Eric Schulte
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.