From: Andreas Leha <andreas.leha@med.uni-goettingen.de>
To: emacs-orgmode@gnu.org
Subject: Re: [export] latex: texorpdfstring in heading
Date: Tue, 25 Nov 2014 15:07:01 +0000 [thread overview]
Message-ID: <olu4mtn48ve.fsf@med.uni-goettingen.de> (raw)
In-Reply-To: 873897nx45.fsf@selenimh.mobile.lan
Hi Rasmus and Nicolas,
Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:
> Rasmus <rasmus@gmx.us> 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)}}}
>
>
Thank you very much! That is very nice.
Regards,
Andreas
prev parent reply other threads:[~2014-11-25 15:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-24 15:16 [export] latex: texorpdfstring in heading Andreas Leha
2014-11-24 16:22 ` Eric S Fraga
2014-11-25 1:25 ` Andreas Leha
2014-11-25 11:16 ` Eric S Fraga
2014-11-24 16:24 ` Nicolas Goaziou
2014-11-24 21:15 ` Andreas Leha
2014-11-25 13:23 ` Andreas Leha
2014-11-25 14:55 ` Rasmus
2014-11-25 15:00 ` Nicolas Goaziou
2014-11-25 15:07 ` Andreas Leha [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=olu4mtn48ve.fsf@med.uni-goettingen.de \
--to=andreas.leha@med.uni-goettingen.de \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.