all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Getting custom LaTeX exports to work
@ 2013-12-25 18:12 Uwe Ziegenhagen
  2013-12-25 18:44 ` Thomas S. Dye
  2013-12-27 10:32 ` Joseph Vidal-Rosset
  0 siblings, 2 replies; 5+ messages in thread
From: Uwe Ziegenhagen @ 2013-12-25 18:12 UTC (permalink / raw)
  To: emacs-orgmode

Hi everyone,

I am trying to get custom LaTeX exports to work. I installed the latest
version of Emacs (for Windows) and org mode today and have the following in
my .emacs:

(require 'ox-html)
(require 'ox-latex)
(require 'ox-ascii)

;; now let's add a few custom class export templates
(add-to-list 'org-latex-classes
          '("koma-artikel"
             "\\documentclass{scrartcl}"
             ("\\section{%s}" . "\\section*{%s}")
             ("\\subsection{%s}" . "\\subsection*{%s}")
             ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
             ("\\paragraph{%s}" . "\\paragraph*{%s}")
             ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

(add-to-list 'org-latex-classes
'("scrlttr"
     "\\documentclass[11pt]{scrlttr2}\n
      \\usepackage[utf8]{inputenc}\n
      \\usepackage[T1]{fontenc}\n
      \\usepackage{xcolor}"
     
     ("\\section{%s}" . "\\section*{%s}")
     ("\\subsection{%s}" . "\\subsection*{%s}")
     ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
     ("\\paragraph{%s}" . "\\paragraph*{%s}")
     ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

In my simple org-file I have the following in the first line:

#+LaTeX_CLASS: koma-article

Unfortunately I still get "Unknown LaTeX Class `koma-article`" when
executing <Ctrl>-c-e l L

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-12-28 18:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-25 18:12 Getting custom LaTeX exports to work Uwe Ziegenhagen
2013-12-25 18:44 ` Thomas S. Dye
2013-12-25 19:28   ` Uwe Ziegenhagen
2013-12-27 10:32 ` Joseph Vidal-Rosset
     [not found]   ` <CAML7JChJxO8U6+OAO2XYVR4kmVUkfC7uGv3rd=CXftbJPd4j4w@mail.gmail.com>
     [not found]     ` <CAD-VTcH2vmYKomF5mnQE+p6AD3yWWP_h5O=JdsJRjy=rVMesWA@mail.gmail.com>
     [not found]       ` <CAML7JCiO5z44ha_L16jDydNo57S0cuJM_MECT_GYEAoqpUZKeA@mail.gmail.com>
2013-12-28 18:04         ` Joseph Vidal-Rosset

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.