emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] latex header lines vs latex block


From: Thorsten Jolitz
Subject: Re: [O] latex header lines vs latex block
Date: Wed, 10 Sep 2014 10:09:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Sebastien Vauban <address@hidden>
writes:

> 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...

Yes, the preamble as one string, no extra linefeeds, and no quoted
function calls ... I figured that out by trial-and-error already, but
thanks for you tips anyway!

-- 
cheers,
Thorsten




reply via email to

[Prev in Thread] Current Thread [Next in Thread]