From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: Marcin Borkowski <mbork@mbork.pl>
Cc: Org-Mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: How to export an Org file to LaTeX's book class, but without parts?
Date: Wed, 22 Apr 2015 07:15:27 +0100 [thread overview]
Message-ID: <87sibsr8n4.fsf@ucl.ac.uk> (raw)
In-Reply-To: 87mw21w1qj.fsf@mbork.pl
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
next prev parent reply other threads:[~2015-04-22 6:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-21 22:33 How to export an Org file to LaTeX's book class, but without parts? Marcin Borkowski
2015-04-22 1:32 ` Nick Dokos
2015-04-23 22:50 ` Marcin Borkowski
2015-04-22 6:15 ` Eric S Fraga [this message]
2015-04-22 6:27 ` Miguel Ruiz
2015-04-23 22:34 ` Marcin Borkowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sibsr8n4.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=mbork@mbork.pl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.