emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [export] latex: texorpdfstring in heading


From: Andreas Leha
Subject: [O] [export] latex: texorpdfstring in heading
Date: Mon, 24 Nov 2014 15:16:14 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (darwin)

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 seems that stopped working as the {}{} get escaped now during
export.

So, here is my question: How do I use \texorpdfstring correctly in an
org heading?


And here is a minimal example:

--8<---------------cut here---------------start------------->8---
#+latex_header: \usepackage{hyperref}

* This contains \texorpdfstring{$\prod_{k=1}^N$}{product 1toN} math
For some reason.
--8<---------------cut here---------------end--------------->8---

which exports to

--8<---------------cut here---------------start------------->8---
\section{This contains 
\texorpdfstring\{\$\(\prod_{\text{k=1}}^{\text{N}}\)\$\}\{product 1toN\} math}
\label{sec-1}
For some reason.
--8<---------------cut here---------------end--------------->8---


Thanks,
Andreas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]