From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mehul Sanghvi Subject: Re: Numbering specific headings only Date: Wed, 5 Apr 2017 10:47:55 -0400 Message-ID: References: <87bmsbt1se.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1140aa765842ef054c6c7abe Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51278) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvmE2-0000OU-DL for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 10:47:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvmE1-00052u-7m for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 10:47:58 -0400 Received: from mail-qk0-x230.google.com ([2607:f8b0:400d:c09::230]:35134) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cvmE1-00052o-1a for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 10:47:57 -0400 Received: by mail-qk0-x230.google.com with SMTP id g195so12844619qke.2 for ; Wed, 05 Apr 2017 07:47:56 -0700 (PDT) In-Reply-To: <87bmsbt1se.fsf@gmx.us> 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: Rasmus Cc: ML Emacs-orgmode --001a1140aa765842ef054c6c7abe Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Thanks for pointers. Using the UNNUMBERED property did not work. I applied the property to the top level heading and the second level heading. I believe it cascades down to the other headings, so everything was unnumbered. The latex_header option worked though. It numbered the 3rd level heading and anything below it as well. For the most part I will not have any headings below that anyway so it should be fine. cheers, mehul On Wed, Apr 5, 2017 at 9:35 AM, Rasmus wrote: > Hi, > > > When I export the document to PDF, all the headings get numbered. I on= ly > > want to > > have the 3rd level heading numbered (DEFINITIONS, FOOBAR, etc.). I hav= e > > got about 50 3rd level headings so far. There may be more, might get > > less. I don't want to manually number the headings. > > Does this solve your problem: > > #+latex_header: \renewcommand{\thesection}{} > #+latex_header: \renewcommand{\thesubsection}{} > #+latex_header: \renewcommand{\thesubsubsection}{\arabic{subsubsection}} > > Depending on your usage, you might have to disable counter reset between > sections/subsections. You might be able to use the chngcntr package for > that. > > You might be able to use the Org UNNUMBERED property, though I doubt it. > > Rasmus > > -- > To err is human. To screw up 10=E2=81=B6 times per second, you need a com= puter > > > --=20 Mehul N. Sanghvi email: mehul.sanghvi@gmail.com --001a1140aa765842ef054c6c7abe Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

=C2=A0 =C2=A0Thanks for pointers.= =C2=A0 Using the UNNUMBERED property did not work.=C2=A0 I applied the prop= erty to the top level heading and the second level heading. =C2=A0 I believ= e it cascades down to the other headings, so everything was unnumbered.

=C2=A0 =C2=A0 The latex_header option worked though.= =C2=A0 It numbered the 3rd level heading and anything below it as well.=C2= =A0 For the
most part I will not have any headings below that any= way so it should be fine.


cheers,

=C2=A0 =C2=A0 mehul



On Wed, Apr 5= , 2017 at 9:35 AM, Rasmus <rasmus@gmx.us> wrote:
Hi,

> When I export the document to PDF, all the headings get numbered.=C2= =A0 I only
> want to
> have the 3rd level heading numbered (DEFINITIONS, FOOBAR, etc.).=C2=A0= I have
> got about 50 3rd level headings so far.=C2=A0 There may be more, might= get
> less.=C2=A0 I don't want to manually number the headings.

Does this solve your problem:

#+latex_header: \renewcommand{\thesection}{}
#+latex_header: \renewcommand{\thesubsection}{}
#+latex_header: \renewcommand{\thesubsubsection}{\arabic{subsubse= ction}}

Depending on your usage, you might have to disable counter reset between sections/subsections.=C2=A0 You might be able to use the chngcntr package f= or
that.

You might be able to use the Org UNNUMBERED property, though I doubt it.
Rasmus

--
To err is human. To screw up 10=E2=81=B6 times per second, you need a compu= ter





--
Mehul N= . Sanghvi
email: mehul.sanghvi@gmail.com
--001a1140aa765842ef054c6c7abe--