emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] How to export an Org file to LaTeX's book class, but without par


From: Eric S Fraga
Subject: Re: [O] How to export an Org file to LaTeX's book class, but without parts?
Date: Wed, 22 Apr 2015 07:15:27 +0100

On Wednesday, 22 Apr 2015 at 00:33, Marcin Borkowski wrote:

[...]

> I want to export my Org file to the book class (actually, a class
> similar to it, but never mind), but I want my first-level headings to
> be chapters, not parts.  OTOH, I don't want to modify
> org-latex-classes.  Is that possible, and if yes, how to achieve that?

The easiest way is, unfortunately, to modify org-latex-classes but the
modification is simply adding an element to the list:

#+begin_src emacs-lisp
  (add-to-list 'org-latex-classes
               '("bookwithnoparts" "\\documentclass{book}"
                 ("\\chapter{%s}" . "\\chapter*{%s}")
                 ("\\section{%s}" . "\\section*{%s}")
                 ("\\subsection{%s}" . "\\subsection*{%s}")
                 ("\\subsubsection{%s}" . "\\subsubsection*{%s}")))
#+end_src

or similar...
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-1030-g65bbb1



reply via email to

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