all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [export] latex: texorpdfstring in heading
@ 2014-11-24 15:16 Andreas Leha
  2014-11-24 16:22 ` Eric S Fraga
  2014-11-24 16:24 ` Nicolas Goaziou
  0 siblings, 2 replies; 10+ messages in thread
From: Andreas Leha @ 2014-11-24 15:16 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-11-25 15:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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.