From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: ox-bibtex works well with \cite{} entries but not with cite: links Date: Mon, 8 Jul 2013 14:21:51 +0100 Message-ID: <87li5hmbkg.fsf@pinto.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwBOD-0003hH-Pp for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 09:22:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwBOC-00012Y-5v for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 09:22:01 -0400 Received: from co9ehsobe003.messaging.microsoft.com ([207.46.163.26]:22596 helo=co9outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwBOB-00012B-S0 for emacs-orgmode@gnu.org; Mon, 08 Jul 2013 09:22:00 -0400 Received: from mail166-co9 (localhost [127.0.0.1]) by mail166-co9-R.bigfish.com (Postfix) with ESMTP id BD1FE1A01A9 for ; Mon, 8 Jul 2013 13:21:57 +0000 (UTC) Received: from CO9EHSMHS007.bigfish.com (unknown [10.236.132.232]) by mail166-co9.bigfish.com (Postfix) with ESMTP id 90C00180144 for ; Mon, 8 Jul 2013 13:21:56 +0000 (UTC) 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: emacs-orgmode@gnu.org Hi, 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. I was wondering what would be required to get ox-bibtex to interpret cite: links? I tried adding html as a valid target above, e.g. by using : ((or (eq format 'latex) (eq format 'html)) but the expansion of links happens after the processing done by ox-bibtex and so any \cite{bibref} text gets passed through to the HTML export directly without processing. Any suggestions welcome and greatly appreciated. Thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.0.5-318-gfdaa99