|
From: | Joseph Vidal-Rosset |
Subject: | Re: [O] Getting custom LaTeX exports to work |
Date: | Sat, 28 Dec 2013 19:04:31 +0100 |
Hi Joseph,the following seems to work: During the next days I'll try to work
Uwe
;; some LaTeX-specific export settings
;; load the latex extensions
; (Require 'org-latex) # deprecated!; kick out all packages from org-mode's default list
(require 'ox-html)
(require 'ox-latex)
(require 'ox-ascii)
; gives maximum of flexibility
(setq org-latex-packages-alist nil)
(setq org-latex-default-packages-alist nil)'("koma-article"
;; now let's add a few custom class export templates
(add-to-list 'org-latex-classes(add-to-list 'org-latex-classes ;; org-export-latex-classes is deprecated
"\\documentclass{scrartcl}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
'("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}")))2013/12/27 Joseph Vidal-Rosset <address@hidden>Many thanks Uwe !2013/12/27 Uwe Ziegenhagen <address@hidden>
UweHi Jo,I'm currrently preparing some blog articles on this topic. Once I have something done, I'll let you know.
--2013/12/27 Joseph Vidal-Rosset <address@hidden>Dear Uwe, dear all,I would be very interested to get a working .org file model of preambles , in order to produce in org format articles in latex, as well as in html, as well as in beamer class, it would be splendid.Unfortunately, I did not succeeded in my several tentatives, and I came back to write directly in latex format, which is certainly not the best solution when you have to make also beamer files from your articles.It would be nice of you and/or everyone in this list to give here a copy of a working model of preambles in org mode. I know that I I have to read the documentation, and I do, but it would be quicker with help of some experts of this list.All the bestJo.2013/12/25 Uwe Ziegenhagen <address@hidden>
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
Uwe Ziegenhagen
<http://www.uweziegenhagen.de>
--
Uwe Ziegenhagen
<http://www.uweziegenhagen.de>
[Prev in Thread] | Current Thread | [Next in Thread] |