From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: [export] latex: texorpdfstring in heading Date: Tue, 25 Nov 2014 13:23:07 +0000 Message-ID: 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]:38638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtG5o-0001v5-M3 for emacs-orgmode@gnu.org; Tue, 25 Nov 2014 08:23:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtG5M-00040U-Ks for emacs-orgmode@gnu.org; Tue, 25 Nov 2014 08:23:44 -0500 Received: from plane.gmane.org ([80.91.229.3]:59926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtG5M-0003z1-EO for emacs-orgmode@gnu.org; Tue, 25 Nov 2014 08:23:16 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XtG5J-0002Sp-VJ for emacs-orgmode@gnu.org; Tue, 25 Nov 2014 14:23:13 +0100 Received: from 193.63.222.27 ([193.63.222.27]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Nov 2014 14:23:13 +0100 Received: from andreas.leha by 193.63.222.27 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Nov 2014 14:23:13 +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 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@@ ? Or is there some functionality @@latex:foo@else@bar@@ or @@non-latex:bar@@? Thanks, Andreas