[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] problem exporting org to latex: sections with math
From: |
Uwe Brauer |
Subject: |
[O] problem exporting org to latex: sections with math |
Date: |
Thu, 26 Oct 2017 10:24:00 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
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
- [O] problem exporting org to latex: sections with math,
Uwe Brauer <=