From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: new export question: how to add a new option to an existing backend Date: Thu, 21 Nov 2013 21:02:36 -0700 Message-ID: <87eh69jczb.fsf@gmail.com> References: <87bo1dza41.fsf@gmail.com> <87siup5poe.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vji2u-0007s3-Rn for emacs-orgmode@gnu.org; Thu, 21 Nov 2013 23:08:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vji2m-0000CE-Sc for emacs-orgmode@gnu.org; Thu, 21 Nov 2013 23:08:44 -0500 Received: from mail-pb0-x234.google.com ([2607:f8b0:400e:c01::234]:49283) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vji2m-0000CA-LU for emacs-orgmode@gnu.org; Thu, 21 Nov 2013 23:08:36 -0500 Received: by mail-pb0-f52.google.com with SMTP id uo5so727032pbc.39 for ; Thu, 21 Nov 2013 20:08:35 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: Org Mode Mailing List Nicolas Goaziou writes: > Hello, > > Eric Schulte 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