emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Diego Zamboni <diego@zzamboni.org>
To: mankoff@gmail.com
Cc: wtd@pobox.com, Org-mode <emacs-orgmode@gnu.org>
Subject: Re: In LaTeX export, can I control what heading type a headline goes to?
Date: Wed, 28 Nov 2018 22:19:53 +0100	[thread overview]
Message-ID: <CAGY83EcCrqJeMxbLyC-J5Cp61riCQnHR3u1yA_=i9iLn+KW9jg@mail.gmail.com> (raw)
In-Reply-To: <87lg5df02a.fsf@geus3064linuxwsm.geus.dk>

[-- Attachment #1: Type: text/plain, Size: 1291 bytes --]

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 <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:
>
>  ("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.
>
>

[-- Attachment #2: Type: text/html, Size: 2104 bytes --]

  reply	other threads:[~2018-11-28 21:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-28 19:42 In LaTeX export, can I control what heading type a headline goes to? William Denton
2018-11-28 19:56 ` Ken Mankoff
2018-11-28 21:19   ` Diego Zamboni [this message]
2018-11-29  8:55 ` Richard Lawrence

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAGY83EcCrqJeMxbLyC-J5Cp61riCQnHR3u1yA_=i9iLn+KW9jg@mail.gmail.com' \
    --to=diego@zzamboni.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=mankoff@gmail.com \
    --cc=wtd@pobox.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).