From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] Add "latex" option to ox-bibtex.el Date: Fri, 12 Jul 2013 12:36:35 +0200 Message-ID: <87vc4g83po.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxaiE-0005w9-2N for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 06:36:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UxaiD-0004QS-6R for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 06:36:30 -0400 Received: from mail-wg0-x233.google.com ([2a00:1450:400c:c00::233]:39197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxaiD-0004QL-0H for emacs-orgmode@gnu.org; Fri, 12 Jul 2013 06:36:29 -0400 Received: by mail-wg0-f51.google.com with SMTP id e11so7853516wgh.18 for ; Fri, 12 Jul 2013 03:36:28 -0700 (PDT) In-Reply-To: (feng shu's message of "Fri, 12 Jul 2013 15:26:08 +0800") 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: feng shu Cc: "emacs-orgmode@gnu.org" Hello, feng shu writes: > From 34d1af7f1b0ecb38000f7a19ad17f3d7bfdf26fa Mon Sep 17 00:00:00 2001 > From: Feng Shu > Date: Fri, 12 Jul 2013 15:14:56 +0800 > Subject: [PATCH] Add "latex" optional option to ox-bibtex > > * ox-bibtex.el (org-latex-keyword, org-bibtex-get-arguments): > Add `:latex' properties. > > If "latex" option is set to `nil', when export to latex, > "ox-bibtex" will not insert bibliography commands in output file. > you should insert the commands manually, for example: > > \#+BIBLIOGRAPHY: foo plain option:-d latex:nil > \bibliographystyle{otherbibstyle} > \bibliography{foo} > > or: > > \#+BIBLIOGRAPHY: foo plain option:-d latex:nil > \printbibliography Thanks for your patch. Though, it seems a bit hackish. Can't you achive the same with hooks or filters? Regards, -- Nicolas Goaziou