From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: ox-bibtex works well with \cite{} entries but not with cite: links Date: Tue, 9 Jul 2013 20:39:11 +0100 Message-ID: <87k3kzv7z4.fsf@ucl.ac.uk> References: <87li5hmbkg.fsf@pinto.chemeng.ucl.ac.uk> <87li5hduhp.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uwdkv-0001zo-35 for emacs-orgmode@gnu.org; Tue, 09 Jul 2013 15:39:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uwdkt-0005xI-8Y for emacs-orgmode@gnu.org; Tue, 09 Jul 2013 15:39:20 -0400 Received: from mail-db8lp0185.outbound.messaging.microsoft.com ([213.199.154.185]:2622 helo=db8outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uwdks-0005wq-VI for emacs-orgmode@gnu.org; Tue, 09 Jul 2013 15:39:19 -0400 In-Reply-To: <87li5hduhp.fsf@gmail.com> (Nicolas Goaziou's message of "Mon, 8 Jul 2013 15:57:54 +0200") 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: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Hello, > > Eric S Fraga writes: > >> as noted a while back, I use cite:bibref type links in org to write >> LaTeX papers. I have defined the cite link type as follows: >> >> #+begin_src emacs-lisp >> (org-add-link-type "cite" 'ebib >> (lambda (path desc format) >> (cond >> ((eq format 'latex) >> (format "\\cite{%s}" path))))) >> #+end_src >> >> This works really well for LaTeX export. However, it doesn't work at >> all for html export. Obviously, I can add an html target but this >> would only allow me a simple formatting capability. >> >> I have played around with ox-bibtex. This works well for both LaTeX and >> HTML exports so long as I use \cite{bibref} directly in my org text >> which is not as elegant. > > Would the following patch work? Works really well for my test case. Thanks! -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.0.5-322-gd5c11e.dirty