From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: How to export an Org file to LaTeX's book class, but without parts? Date: Fri, 24 Apr 2015 00:50:00 +0200 Message-ID: <87d22uo3xp.fsf@mbork.pl> References: <87mw21w1qj.fsf@mbork.pl> <87vbgp54nm.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlPwj-0001Im-BM for emacs-orgmode@gnu.org; Thu, 23 Apr 2015 18:50:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlPwe-0001cM-Ex for emacs-orgmode@gnu.org; Thu, 23 Apr 2015 18:50:13 -0400 Received: from mail.mojserwer.eu ([2a01:5e00:2:52::8]:45089) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlPwe-0001bu-7Z for emacs-orgmode@gnu.org; Thu, 23 Apr 2015 18:50:08 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id D7F0F6F2004 for ; Fri, 24 Apr 2015 00:50:06 +0200 (CEST) Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B9GJkezW9s9K for ; Fri, 24 Apr 2015 00:50:04 +0200 (CEST) Received: from localhost (unknown [109.232.24.146]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 32D816F2003 for ; Fri, 24 Apr 2015 00:50:04 +0200 (CEST) In-reply-to: <87vbgp54nm.fsf@alphaville.usersys.redhat.com> 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: emacs-orgmode@gnu.org On 2015-04-22, at 03:32, Nick Dokos wrote: > Marcin Borkowski writes: > >> Hi all, >> >> this is an actual question, but it can be viewed as a continuation of >> the "why use LaTeX directly and not Org" thread (disclaimer: from the >> POV of an experienced LaTeX user and much less experienced Org-exporter >> user). >> >> So, I tried to do the opposite, just to learn something/unlock the "Org >> Exporter" skill;-). 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? > > AFAIK, no, not without modifying org-latex-classes - why don't you want > to modify it? Because I want this setup for only one file, and not necessarily globally. BTW, I'll probably settle with this: ,---- | #+LATEX_CLASS: mwbk | # Local Variables: | # org-latex-classes: (("mwbk" "\\documentclass[11pt]{mwbk}" ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}"))) | # End: `---- Seems to do the trick (mwbk is a Polish-localized - or rather, European - version of the book class). The drawback is that it keeps asking for confirmation that it is safe. It seems that there is no option to mark a /variable/ and not a /variable-value pair/ as "safe" as file local variables - I guess I'll file an Emacs feature request for that. > Nick Thanks to all, and best regards! -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University