On Thursday, 8 May 2014 at 22:17, Martin Schöön wrote:
[...]
> So why didn't it work the way I was told to do it?
> How much of my .emacs is needed to figure it out, all? Here are the parts I
> think
> are relevant. First the very beginning of my .emacs (comments are mixed
> Swedish
> and English):
[...]
> ;;;;;;;;;;;;;;;;;;;;;; Org-mode stuff ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;; Added 2014-03-02
> ;; to make emacs find org-mode other than default:
> (add-to-list 'load-path "/home/martin/Program/Org-mode/org-8.2.5h/lisp")
> (add-to-list 'load-path
> "/home/martin/Program/Org-mode/org-8.2.5h/contrib/lisp")
> (require 'org)
Fine up to here. Now what you need to do is (require 'ox-latex)
*before* you try to:
> ;(add-to-list 'org-latex-classes
> ; '("komaarticle" "\\documentclass{scrartcl}"
> ; ("\\section{%s}" . "\\section*{%s}")
> ; ("\\subsection{%s}" . "\\subsection*{%s}")
> ; ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
> ; ("\\paragraph{%s}" . "\\paragraph*{%s}")
> ; ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
which is what several of us have been trying to get across! At the very
least, you need:
,----
| (add-to-list 'load-path ...org lisp directory...)
| (require 'org)
| (require 'ox-latex)
| (add-to-list 'org-latex-classes ...)
`----
to do what you want! You are missing the third line.
A minimal initialisation with just those four lines should be enough to
see if org with KOMA works.
--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.6-923-g233c11