From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [export] latex: texorpdfstring in heading Date: Tue, 25 Nov 2014 16:00:42 +0100 Message-ID: <873897nx45.fsf@selenimh.mobile.lan> References: <87sih8pnw2.fsf@selenimh.mobile.lan> <87egsr72k9.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42443) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtHaw-0006E2-7Z for emacs-orgmode@gnu.org; Tue, 25 Nov 2014 10:00:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtHao-00030n-6M for emacs-orgmode@gnu.org; Tue, 25 Nov 2014 09:59:58 -0500 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:54737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtHao-00030T-14 for emacs-orgmode@gnu.org; Tue, 25 Nov 2014 09:59:50 -0500 In-Reply-To: <87egsr72k9.fsf@gmx.us> (rasmus@gmx.us's message of "Tue, 25 Nov 2014 15:55:02 +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: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > You could use a macro if it's only for one document, see > (info "(org) Macro replacement"). E.g, something like #+MACRO: latex-or-not (eval (if (org-export-derived-backend-p org-export-current-backend 'latex) "$1" "$2")) {{{latex-or-not(latex code,something else)}}} Regards,