Re: error org export to pdf when latex letter class has been added to org-latex-classes

2022-09-15 Thread Pedro Andres Aranda Gutierrez
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

Re: error org export to pdf when latex letter class has been added to org-latex-classes

2022-09-13 Thread Ihor Radchenko
"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

Re: error org export to pdf when latex letter class has been added to org-latex-classes

2022-09-13 Thread M. Pger
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 '(

Re: error org export to pdf when latex letter class has been added to org-latex-classes

2022-09-13 Thread Juan Manuel Macías
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

Re: error org export to pdf when latex letter class has been added to org-latex-classes

2022-09-13 Thread Juan Manuel Macías
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. > ... >

error org export to pdf when latex letter class has been added to org-latex-classes

2022-09-13 Thread M. Pger
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