0

Is it possible to preview in org mode also environments

\begin{theorem}

hello world

\end{theorem}

I tried but I can't get the Theorem 1.2.3 header.

1 Answer 1

0

There is no theorem environment by default in LaTeX: you have to define one. Unless you are using a package that defines that environment, you have to use the \newtheorem command to create a theorem environment. So try:

#+LATEX_HEADER: \newtheorem{theorem}{Theorem}

* Theorem

\begin{theorem}
    hello world
\end{theorem}

Then preview with C-c C-x C-l should work.

See Lamport's book (2nd ed.), p. 56-57.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.