emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: Numbering specific headings only
Date: Wed, 05 Apr 2017 15:35:45 +0200	[thread overview]
Message-ID: <87bmsbt1se.fsf@gmx.us> (raw)
In-Reply-To: CAPo9-A8iwQf_Yaq+EJQteof6=z6tJPq8pUyk0PzcicUrW=Y0hQ@mail.gmail.com

Hi,

> When I export the document to PDF, all the headings get numbered.  I only
> want to
> have the 3rd level heading numbered (DEFINITIONS, FOOBAR, etc.).  I have
> 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⁶ times per second, you need a computer

  reply	other threads:[~2017-04-05 13:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-05  1:26 Numbering specific headings only Mehul Sanghvi
2017-04-05 13:35 ` Rasmus [this message]
2017-04-05 14:47   ` Mehul Sanghvi

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=87bmsbt1se.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /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).