emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Suvayu Ali <fatkasuvayu+linux@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Re: unnumbered subsections in latex export
Date: Tue, 22 Mar 2011 10:35:10 -0400	[thread overview]
Message-ID: <8999.1300804510@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Suvayu Ali <fatkasuvayu+linux@gmail.com> of "Tue, 22 Mar 2011 05:31:34 PDT." <20110322053134.669127e9@kuru.homelinux.net>

Suvayu Ali <fatkasuvayu+linux@gmail.com> wrote:

> Hi S=C3=A9bastien,
> 
> On Tue, 22 Mar 2011 13:20:29 +0100
> S=C3=A9bastien Vauban <wxhgmqzgwmuf@spammotel.com> wrote:
> > >
> > > I was wondering whether there is some way to export the attached org
> > > file to latex such that headlines beyond level 2 (3 and onwards) can
> > > be exported as unnumbered subsections or subsubsections like this,
> > > \subsection*{}, instead of enclosing them within itemize.
> > >
> > > The file uses the following options header:
> > >
> > > #+OPTIONS:   H:2 num:t toc:t ::t |:t ^:t -:t f:t *:t <:nil
> >=20
> > Using H:3 num:2?  Untested... But that should do the work.
> >=20
> 
> That didn't work. It exports the same as the following options
> 
> #+OPTIONS:   H:3 num:t toc:t ::t |:t ^:t -:t f:t *:t <:nil
> 
> I think the num option is a boolean. The manual says the following:
> 
>      num:       turn on/off section-numbers
> 
> Would it be a worthwhile feature request to allow numbers for that
> option? Then one could have finer control on the numbering.
> 


You can do it (I think - but have not tried it) by changing H:3 to
H:5 or so:

,----
| (defcustom org-export-latex-low-levels 'itemize
|   "How to convert sections below the current level of sectioning.
| This is specified by the `org-export-headline-levels' option or the
| value of \"H:\" in Org's #+OPTION line.
`----

and then asking LaTeX to omit the numbering appropriately:

\setcounter{secnumdepth}{2}

Adjust the 2 to taste.

Nick

  parent reply	other threads:[~2011-03-22 14:35 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-22 12:10 unnumbered subsections in latex export Suvayu Ali
2011-03-22 12:20 ` Sébastien Vauban
2011-03-22 12:31   ` Suvayu Ali
2011-03-22 12:56     ` Sébastien Vauban
2011-03-22 14:26       ` [PATCH] Allow mixed export of numbered and unnumbered sections in LaTeX Lawrence Mitchell
2011-03-22 22:52         ` Suvayu Ali
2011-03-23 14:04         ` [Accepted] " Bastien Guerry
2011-03-23 14:17         ` [PATCH] " Bastien
2011-03-22 14:35     ` Nick Dokos [this message]
2011-03-22 23:08       ` Re: unnumbered subsections in latex export Suvayu Ali
2011-03-22 23:21         ` Nick Dokos
2011-03-23  9:38           ` [PATCH] Allow mixed export of numbered and unnumbered sections in HTML Lawrence Mitchell
2011-03-23 14:05             ` [Accepted] " Bastien Guerry
2011-03-23 14:57               ` Nick Dokos
2011-03-23 15:50                 ` Suvayu Ali
2011-03-23 14:18           ` Re: unnumbered subsections in latex export Bastien
2011-03-23 15:02             ` Nick Dokos
2011-03-23 16:25               ` Lawrence Mitchell
2011-03-23 16:42                 ` Nick Dokos
2011-03-23 18:17                   ` Jambunathan K
2011-03-23 19:00                     ` Nick Dokos
2011-03-23 19:18                       ` Jambunathan K
2011-03-23 16:29               ` Thomas S. Dye
2011-03-23 17:42           ` Jambunathan K
2011-03-24  7:59             ` Bastien
2011-03-24 18:27               ` Achim Gratz
2011-03-24 19:25               ` Nick Dokos
2011-03-25  1:06                 ` Suvayu Ali
2011-04-04 14:39                 ` Sébastien Vauban
2011-04-04 17:04                   ` Nick Dokos
2011-04-04 20:32                   ` Aankhen
2011-04-05 10:16                     ` Sébastien Vauban
2011-04-05 19:07                       ` Aankhen
2011-04-05 19:27                         ` Eric S Fraga
2011-04-05 21:25                           ` New features for the exporters? Sébastien Vauban
2011-04-05 21:45                           ` Re: unnumbered subsections in latex export Aankhen
2011-04-06 18:49                   ` Matt Lundin
2011-04-06 20:19                     ` Sébastien Vauban
2011-03-27 11:16               ` Jambunathan K
2011-03-27 11:40                 ` Bastien
2011-03-31 21:58               ` Nicolas
2011-04-01  4:34                 ` Jambunathan K
2011-04-01  4:41                   ` Jambunathan K
2011-04-01  6:29                   ` Nick Dokos
2011-04-01 15:41                   ` Eric S Fraga
2011-04-04 14:00                     ` Matt Lundin
2011-04-04 14:12                       ` Jambunathan K
2011-04-04 16:36                         ` Matt Lundin
2011-04-04 17:09                           ` Nick Dokos
2011-04-01  7:39                 ` Jambunathan K
2011-04-01 18:25                 ` Achim Gratz

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=8999.1300804510@alphaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=fatkasuvayu+linux@gmail.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).