Re: [O] [export] latex: texorpdfstring in heading

2014-11-25 Thread Andreas Leha
Hi Rasmus and Nicolas, Nicolas Goaziou writes: > 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

Re: [O] [export] latex: texorpdfstring in heading

2014-11-25 Thread Rasmus
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 conta

Re: [O] [export] latex: texorpdfstring in heading

2014-11-25 Thread Nicolas Goaziou
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)}}} Re

Re: [O] [export] latex: texorpdfstring in heading

2014-11-25 Thread Andreas Leha
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$}{prod

Re: [O] [export] latex: texorpdfstring in heading

2014-11-25 Thread Eric S Fraga
On Tuesday, 25 Nov 2014 at 01:25, Andreas Leha wrote: [...] > (It seems that you sent your reply even earlier than Nicolas -- > unfortunately I only just saw it now appearing on the list) Yes: I process most of my emails while commuting and offline and my emails only get sent once I connect agai

Re: [O] [export] latex: texorpdfstring in heading

2014-11-24 Thread Andreas Leha
Hi Eric, Eric S Fraga writes: > On Monday, 24 Nov 2014 at 15:16, Andreas Leha wrote: > > [...] > >> So, here is my question: How do I use \texorpdfstring correctly in an >> org heading? >> >> #+latex_header: \usepackage{hyperref} >> >> * This contains \texorpdfstring{$\prod_{k=1}^N$}{product 1toN

Re: [O] [export] latex: texorpdfstring in heading

2014-11-24 Thread Eric S Fraga
On Monday, 24 Nov 2014 at 15:16, Andreas Leha wrote: [...] > So, here is my question: How do I use \texorpdfstring correctly in an > org heading? > > #+latex_header: \usepackage{hyperref} > > * This contains \texorpdfstring{$\prod_{k=1}^N$}{product 1toN} math > For some reason. Use the @@latex:x

Re: [O] [export] latex: texorpdfstring in heading

2014-11-24 Thread Andreas Leha
Hi Nicolas, 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}^

Re: [O] [export] latex: texorpdfstring in heading

2014-11-24 Thread Nicolas Goaziou
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 c

[O] [export] latex: texorpdfstring in heading

2014-11-24 Thread Andreas Leha
Hi all, Background: I am always loading the hyperref package in my latex exports. That one complains (warns) about math in headings. ("Token not allowed in a PDF string") The proposed solution in LaTeX is to use \texorpdfstring{}{}. I've used that successfully in the past also from org. As it