[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] latex header lines vs latex block
From: |
Sebastien Vauban |
Subject: |
Re: [O] latex header lines vs latex block |
Date: |
Wed, 10 Sep 2014 09:28:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) |
Thorsten Jolitz wrote:
> Sebastien Vauban <address@hidden>
> writes:
>
>> See http://lists.gnu.org/archive/html/emacs-orgmode/2014-06/msg00744.html
>> for Nicolas' answer on this point:
>>
>> ╭────
>> │ I suggest to use existing solutions instead: configure
>> │ `org-latex-classes'.
>> ╰────
>
>
> a related question: is this the right format to create the preamble
> string:
>
> #+BEGIN_SRC emacs-lisp
> '(;; Name
> "obb-article-full-page"
> ;; Preamble
> (concat
> "\\documentclass{article}\n"
> "[DEFAULT-PACKAGES]\n"
> "[PACKAGES]\n"
> "[EXTRA]\n"
> "\\usepackage[cm]{fullpage}\n")
> ;; Sectioning Structure
> ("\\part{%s}" . "\\part*{%s}")
> ("\\chapter{%s}" . "\\chapter*{%s}") ...)
> #+END_SRC
>
> not sure if I need the line-feeds ...
Working example:
--8<---------------cut here---------------start------------->8---
(add-to-list 'org-latex-classes
'("koma-article"
"\\documentclass{scrartcl}
[NO-DEFAULT-PACKAGES]
[EXTRA]"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
--8<---------------cut here---------------end--------------->8---
Best regards,
Seb
--
Sebastien Vauban