From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Newbie: Custom link type formatting in LaTeX export? Date: Wed, 12 May 2010 08:15:33 +0200 Message-ID: <3D145F75-7633-4F98-A7CD-1300228A42FE@gmail.com> References: <4BE92DCB.1070408@hf.uio.no> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=34984 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OC5EK-0004EB-A2 for Emacs-orgmode@gnu.org; Wed, 12 May 2010 02:15:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OC5EH-0007Qe-Oo for Emacs-orgmode@gnu.org; Wed, 12 May 2010 02:15:39 -0400 Received: from mail-ew0-f216.google.com ([209.85.219.216]:61127) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OC5EH-0007QT-JR for Emacs-orgmode@gnu.org; Wed, 12 May 2010 02:15:37 -0400 Received: by ewy8 with SMTP id 8so1656550ewy.8 for ; Tue, 11 May 2010 23:15:36 -0700 (PDT) In-Reply-To: <4BE92DCB.1070408@hf.uio.no> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: christian.moe@hf.uio.no Cc: Emacs-orgmode@gnu.org On May 11, 2010, at 12:13 PM, Christian Moe wrote: > Hi, > > (I'm new to the list; have been an enthusiastic Org user for a year > and > half; now using version 6.36; am an Elisp novice.) > > It looks like support for formatting custom link types in LaTeX export > is broken? > > I was trying to implement a custom link type with its own formatting > function for HTML and LaTeX export, following the steps in > org-bbdb.el. > > I've found that org-bbdb-export does not italicize bbdb links in > LaTeX, nor does my own org-cite-export turn my custom =cite:= links > into LaTeX =\cite{}= citations. Everything works fine in HTML export, > but in LaTeX all custom link types get formatted as =\texttt{descr}=. > > I see that org-export-as-html and org-export-as-docbook look up > org-link-protocols to get the function for formatting the link, but it > seems that org-export-as-latex doesn't. Hi CHristian, this is correct. Since you already looked into the code, would you like to write a patch to this effect? - Carsten