emacs-orgmode
[Top][All Lists]
Advanced

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

[O] bug in latex export?


From: renato
Subject: [O] bug in latex export?
Date: Sat, 27 Apr 2013 12:05:37 +0200

Hi, don't know if this has allready been reported, but I just upgraded
to 8.0 and I stumped into this...

this in the .org file

\begin{theoremwithname}[hei]
theorem
\begin{align*}
2+2
\end{align*}
\end{theoremwithname}

gets latex-exported to this (note that after \endtheoremwithname
everything is replicated with escape characters):

\begin{theoremwithname}[hei]
theorem
\begin{align*}
2+2
\end{align*}
\end{theoremwithname}$\backslash$begin\{align*\}
2+2
$\backslash$end\{align*\}
$\backslash$end\{theoremwithname\}
\begin{align*}
2+2
\end{align*}
\end{theoremwithname}


which obviously brings to uncompilable latex code. BTW in the preamble
I have this that defines the environment theoremwithname:

#+LATEX_HEADER: 
\newtheoremstyle{withname}{}{}{\itshape}{}{\bfseries}{.}{.5em}{\thmname{#3} 
\thmnumber{#2}} 
#+LATEX_HEADER: \theoremstyle{withname}
#+LATEX_HEADER: \newtheorem{theoremwithname}[equation]{Teorema}


cheers,
renato

Attachment: signature.asc
Description: PGP signature


reply via email to

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