emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Re: unnumbered subsections in latex export


From: Suvayu Ali
Subject: Re: [O] Re: unnumbered subsections in latex export
Date: Tue, 22 Mar 2011 16:08:14 -0700

On Tue, 22 Mar 2011 10:35:10 -0400
Nick Dokos <address@hidden> wrote:

> Suvayu Ali <address@hidden> wrote:
> 
> > Hi S=C3=A9bastien,
> > 
> > On Tue, 22 Mar 2011 13:20:29 +0100
> > S=C3=A9bastien Vauban <address@hidden> 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.
> 

This works too, but Lawrence's patch makes it much easier and
probably works for other export formats too. Thanks a lot. :)

> Nick

-- 
Suvayu

Open source is the future. It sets us free.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]