Re: [O] new export question: how to add a new option to an existing backend

2013-11-21 Thread Yujie Wen
Hi, Eric,

  You can derive a new back-end from existing ones. Please consult org
export reference
documentationhttp://orgmode.org/worg/dev/org-export-reference.html
.

Yujie


2013/11/22 Eric Schulte schulte.e...@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




Re: [O] new export question: how to add a new option to an existing backend

2013-11-21 Thread Nicolas Goaziou
Hello,

Eric Schulte schulte.e...@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



[O] new export question: how to add a new option to an existing backend

2013-11-21 Thread Eric Schulte
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



Re: [O] new export question: how to add a new option to an existing backend

2013-11-21 Thread Eric Schulte
Yujie Wen yjwen...@gmail.com writes:

 Hi, Eric,

   You can derive a new back-end from existing ones. Please consult org
 export reference
 documentationhttp://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.e...@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



Re: [O] new export question: how to add a new option to an existing backend

2013-11-21 Thread Eric Schulte
Nicolas Goaziou n.goaz...@gmail.com writes:

 Hello,

 Eric Schulte schulte.e...@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