I want to export a document from org-mode to latex with the KOMA-Script article class scrartcl
. I thought it was as easy as to switch from article
to book
. So I put in my org file the following configuration (the doc is a subtree of a larger document):
:EXPORT_LATEX_CLASS: koma-article
:EXPORT_LATEX_CLASS_OPTIONS: [11pt,twoside,a4paper]
However, after I do the export comand, I get the error message :
Unknown latex class `koma-article'
I couldn't imagine that koma classes were not automatically recognized by org-mode. I've done some research on the web and tried this solution but it didn't work.
What's wrong ? Is there something obvious I'm not doing ?
Thanks for your help.
Added information after a coment: the correct name of the class is scrartcl
and not koma-article
. Actually I tried both names koma-article
and scrartcl
, but in both cases I get the same error message.
(require 'org-latex)
code:"cannot open load file: no such a file, org-latex"
(I translate, in my pc it is in french). For the(add-to-list…)
code, I see:"symbol's value as variable is void: org-export-latex-classes"
. I didn't know I should install packages in order to export to a Koma class. Maybe it would be easier just to change it manually once the doc is exported...(require 'ox-latex)
and(add-to-list 'org-latex-classes '...)
.org-latex-classes
, and notorg-export-latex-classes
as said in the org-mode website. Anyway I wonder why koma-script is not included by default in the org-mode recognized classes list, since it is widely used as an alternative to the latex standard classes. Thank you everybody for your help.