[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:45:53 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (windows-nt) |
Sebastien Vauban wrote:
> 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:
>
> (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}")))
For your example to work, you'd have to replace the quote (') by
a backquote (`) so that the `concat' can be executed...
Best regards,
Seb
--
Sebastien Vauban