[Top][All Lists]

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

Re: [O] latex header lines vs latex block

From: Mike McLean
Subject: Re: [O] latex header lines vs latex block
Date: Wed, 10 Sep 2014 06:23:32 -0400

On Tue, Sep 9, 2014 at 10:52 AM, Thorsten Jolitz <address@hidden> wrote:
Sebastien Vauban <address@hidden>

> 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

#+BEGIN_SRC emacs-lisp
'(;; Name
  ;; Preamble
  ;; Sectioning Structure
  ("\\part{%s}" . "\\part*{%s}")
  ("\\chapter{%s}" . "\\chapter*{%s}") ...)

not sure if I need the line-feeds ...

I don't think you do. I build my org-latex-classes with add-to-list, so an example of mine is:

(add-to-list 'org-latex-classes
               ("\\chapter{%s}" . "\\chapter*{%s}")
               ("\\section{%s}" . "\\section*{%s}")
               ("\\subsection{%s}" . "\\subsection*{%s}")
               ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
               ("\\paragraph{%s}" . "\\paragraph*{%s}")
               ("\\subparagraph{%s}" . "\\subparagraph*{%s}")))

The MikeMcLean document class (all of my 3-4 main classes, really) are a moderate wrapper around the memoir class. A document I produce for myself looks different than one that I produce as part of my employment or volunteer effort(s), even though I produce them all from Org.

- Sets some class options
- Requires some packages I use a lot (minted, e.g.)
- Defines some fonts and colors.
- Sets page options (footers, chapter headers, sectioning, etc.)
- Defines a title page



reply via email to

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