From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Zamboni Subject: Re: In LaTeX export, can I control what heading type a headline goes to? Date: Wed, 28 Nov 2018 22:19:53 +0100 Message-ID: References: <87lg5df02a.fsf@geus3064linuxwsm.geus.dk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000029bf31057bc02109" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gS7Fe-0003di-OD for emacs-orgmode@gnu.org; Wed, 28 Nov 2018 16:20:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gS7Fd-0005cw-PZ for emacs-orgmode@gnu.org; Wed, 28 Nov 2018 16:20:06 -0500 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:33837) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gS7Fd-0005br-H6 for emacs-orgmode@gnu.org; Wed, 28 Nov 2018 16:20:05 -0500 Received: by mail-ed1-x534.google.com with SMTP id b3so124104ede.1 for ; Wed, 28 Nov 2018 13:20:04 -0800 (PST) In-Reply-To: <87lg5df02a.fsf@geus3064linuxwsm.geus.dk> 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" To: mankoff@gmail.com Cc: wtd@pobox.com, Org-mode --00000000000029bf31057bc02109 Content-Type: text/plain; charset="UTF-8" Exactly what Ken said. Look at the documentation for org-latex-classes to see the full description. You can see an example in my Emacs config: https://github.com/zzamboni/dot-emacs/blob/master/init.org#various-exporters (look for the paragraph that starts with "Some customizations for the LaTeX exporter"). Once that is defined, you can specify the name you used as the value of "#+latex_class:" at the top of your org file, e.g.: #+latex_class: book-no-parts Best, --Diego On Wed, Nov 28, 2018 at 8:57 PM Ken Mankoff wrote: > Hi Bill, > On 2018-11-28 at 20:42 +0100, William Denton wrote: > > Is there a way, exporting as a book, to make Org skip "part" and make > > a top-level Org headline turn into a chapter? Is there a built-in way, > > or do I need to make my own class in org-latex-classes that has the > > structure I want? > > What about customizing org-latex-classes? > > It contains: > > ("book" "\\documentclass[11pt]{book}" > ("\\part{%s}" . "\\part*{%s}") > ("\\chapter{%s}" . "\\chapter*{%s}") > ("\\section{%s}" . "\\section*{%s}") > ("\\subsection{%s}" . "\\subsection*{%s}") > ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) > > Seems like modifying that could provide the behavior you're looking for. > > -k. > > --00000000000029bf31057bc02109 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Exactly what Ken said. L= ook at the documentation for org-latex-classes to see the full description.= You can see an example in my Emacs config:=C2=A0https://github.com/zzamboni/dot-emacs/blob/master/init.org#various-ex= porters=C2=A0(look for the paragraph that starts with "Some custom= izations for the LaTeX exporter"). Once that is defined, you can speci= fy the name you used as the value of "#+latex_class:" at the top = of your org file, e.g.:

#+latex_class: book-no-parts

Best,
--Diego


On Wed, Nov 28, 2018 at 8:57 PM Ke= n Mankoff <mankoff@gmail.com>= ; wrote:
Hi Bill,
On 2018-11-28 at 20:42 +0100, William Denton <wtd@pobox.com> wrote:
> Is there a way, exporting as a book, to make Org skip "part"= and make
> a top-level Org headline turn into a chapter? Is there a built-in way,=
> or do I need to make my own class in org-latex-classes that has the > structure I want?

What about customizing org-latex-classes?

It contains:

=C2=A0("book" "\\documentclass[11pt]{book}"
=C2=A0 ("\\part{%s}" . "\\part*{%s}")
=C2=A0 ("\\chapter{%s}" . "\\chapter*{%s}")
=C2=A0 ("\\section{%s}" . "\\section*{%s}")
=C2=A0 ("\\subsection{%s}" . "\\subsection*{%s}")
=C2=A0 ("\\subsubsection{%s}" . "\\subsubsection*{%s}")= ))

Seems like modifying that could provide the behavior you're looking for= .

=C2=A0 -k.

--00000000000029bf31057bc02109--