From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: [export] latex: texorpdfstring in heading Date: Tue, 25 Nov 2014 15:55:02 +0100 Message-ID: <87egsr72k9.fsf@gmx.us> References: <87sih8pnw2.fsf@selenimh.mobile.lan> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40026) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtHWY-0007vB-NA for emacs-orgmode@gnu.org; Tue, 25 Nov 2014 09:55:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtHWT-0000xF-8z for emacs-orgmode@gnu.org; Tue, 25 Nov 2014 09:55:26 -0500 Received: from plane.gmane.org ([80.91.229.3]:38527) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtHWT-0000x6-2k for emacs-orgmode@gnu.org; Tue, 25 Nov 2014 09:55:21 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XtHWR-00013v-No for emacs-orgmode@gnu.org; Tue, 25 Nov 2014 15:55:19 +0100 Received: from 109.201.152.230 ([109.201.152.230]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Nov 2014 15:55:19 +0100 Received: from rasmus by 109.201.152.230 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Nov 2014 15:55:19 +0100 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 Andreas Leha writes: > Hi, > > Nicolas Goaziou writes: >> Hello, >> >> Andreas Leha writes: >> >>> So, here is my question: How do I use \texorpdfstring correctly in an >>> org heading? >>> >>> >>> And here is a minimal example: >>> >>> #+latex_header: \usepackage{hyperref} >>> >>> * This contains \texorpdfstring{$\prod_{k=1}^N$}{product 1toN} math >>> For some reason. >> >> * This contains @@latex:\texorpdfstring{$\prod_{k=1}^N$}{product >> 1toN}@@ math >> > > There is now the obvious follow-up question: What do I do if I want to > export that same document to other backends as well? > > I assume I'd have to list each of the others individually as well like: > @@latex:foo@@ @@html:bar@@ @@ascii:bar@@ @@odt:bar@@ ? You could use a macro if it's only for one document, see (info "(org) Macro replacement"). Otherwise you could use a custom link and cond through your backends backends, see `org-add-link-type' or (info "(org) Adding hyperlink types"). Hope it helps, Rasmus -- And I faced endless streams of vendor-approved Ikea furniture. . .