emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* problem exporting org to latex: sections with math
@ 2017-10-26  8:24 Uwe Brauer
  2017-10-26  8:52 ` Eric S Fraga
  2017-10-26  9:04 ` Nicolas Goaziou
  0 siblings, 2 replies; 6+ messages in thread
From: Uwe Brauer @ 2017-10-26  8:24 UTC (permalink / raw)
  To: emacs-orgmode

Hello

I export a org file to latex using the exam class and therefore thanks
to Thomas Hunter I have defined.


(org-latex-classes
(quote
 (
  ("exam" "\\documentclass[12pt, addpoints, answers]{exam}"
   ("\\begin{questions}%%%s" "\\end{questions}"
   "\\begin{questions}%%%s" "\\end{questions}")
   ("\\titledquestion[%s]  " . "")
   ("\\begin{parts}%%%s" "\\end{parts}" "\\begin{parts}%%%s"
   "\\end{parts}")
   ("\\part[%s] " . "")
   ("\\begin{subparts}%%%s" "\\end{subparts}"
   "\\begin{subparts}%%%s" "\\end{subparts}")
   ("\\subpart[%s] " . "")
   ("\\begin{solution}[%s]" "\\end{solution}" "\\begin{solution}[%s]"
   "\\end{solution}")))))

The problem is that my document also contains latex \section commmands.
These are exported correctly *only* if they don't contain math.

Works
\section{Adaptive methods using  hopt}

Does not work:
\section{Adaptive methods using  $h_{\text{op}}$}


The resulting latex file looks like

Ok
\section{Adaptive methods using  hopt}

The following is not ok,

\section\{Adaptive methods using  \(h_{\text{op}}\)\}


So what shall I do?

Thanks regards

Uwe Brauer 

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

end of thread, other threads:[~2017-10-26 15:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-26  8:24 problem exporting org to latex: sections with math Uwe Brauer
2017-10-26  8:52 ` Eric S Fraga
2017-10-26 14:55   ` Uwe Brauer
2017-10-26 15:39     ` Eric S Fraga
2017-10-26  9:04 ` Nicolas Goaziou
2017-10-26 14:54   ` Uwe Brauer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).