Hi,
for what it may help...
my emacs version:
GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20,
cairo version 1.16.0)
of 2022-09-12
Adding
#+OPTIONS: toc:nil
to your MWE
I have this small file to export to latex:
```
(require 'org)
(require 'ox-latex)
(eval-after-load "o
"M. Pger" writes:
> When I export it using C-c C-e l o, an error appears:
> ```
> (/usr/share/texlive/texmf-dist/tex/latex/natbib/natbib.sty
>
> ! LaTeX Error: Environment thebibliography undefined.
>
> Any thoughts?
I cannot reproduce on my side.
I suggest you to follow https://orgmode.org/manu
Hi,
Thank you for your answer.
> Are you including citations in your letter?
No, that's also why it is puzzling. You should be able to reproduce the issue
by creating a really minimalist init file including the following:
```
(with-eval-after-load 'ox-latex
(add-to-list 'org-latex-classes '(
M. Pger writes:
> Thank you for your answer.
>
>> Are you including citations in your letter?
>
> No, that's also why it is puzzling. You should be able to reproduce
> the issue by creating a really minimalist init file including the
> following:
>
> ```
> (with-eval-after-load 'ox-latex
> (add
Hi,
M. Pger writes:
> (/usr/share/texlive/texmf-dist/tex/latex/natbib/natbib.sty
>
> ! LaTeX Error: Environment thebibliography undefined.
>
> See the LaTeX manual or LaTeX Companion for explanation.
> Type H for immediate help.
> ...
>
Dear All,
I've told Org about the letter class with the following in my init file:
```
(with-eval-after-load 'ox-latex
(add-to-list 'org-latex-classes '("letter" "\\documentclass{letter}")) )
```
After that I can create a org document containing e.g.:
```
#+latex_class: letter
#+latex_header: \si