From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga 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 Message-ID: <87sibsr8n4.fsf@ucl.ac.uk> References: <87mw21w1qj.fsf@mbork.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41542) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yknwk-0005V2-JT for emacs-orgmode@gnu.org; Wed, 22 Apr 2015 02:15:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yknwg-0001ii-Fk for emacs-orgmode@gnu.org; Wed, 22 Apr 2015 02:15:42 -0400 Received: from mail-db3on0124.outbound.protection.outlook.com ([157.55.234.124]:28304 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yknwf-0001id-Vk for emacs-orgmode@gnu.org; Wed, 22 Apr 2015 02:15:38 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Marcin Borkowski Cc: Org-Mode mailing list 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