Nicolas Goaziou <n.goaz...@gmail.com> writes: > Hello, > > Eric S Fraga <e.fr...@ucl.ac.uk> 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