emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Lawrence Bottorff <borgauf@gmail.com>
To: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: How to capture export prepended header numbering
Date: Mon, 30 Dec 2019 10:34:25 -0600	[thread overview]
Message-ID: <CAFAhFSWUV2EJNnM=ceQ4WTmBL8-1e_UkxJbLgCFyck-rnB-MHA@mail.gmail.com> (raw)

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

Basically, I'd like to know what level each heading of an org file is and
in what order they appear. So if my org file looks like this

* heading a
** sub-heading a.1
** sub-heading a.2
*** sub-sub-heading a.2.1
* heading b
** sub-heading b.1
*** sub-sub-heading b.1.1
* heading c

And an HTML export creates this

1 heading a
1.1 sub-heading a.1
1.2 sub-heading a.2
1.2.1 sub-sub-heading a.2.1
2 heading b
2.1 sub-heading b.1
2.1.1 sub-sub-heading b.1.1
3 heading c

is there a way to capture that prepended export numbering? Actually, I'd
like to capture every heading's rank and order and keep it in a PROPERTIES
drawer. There's obviously some baked in mechanism doing this for exporting.
Is it possible for a mere mortal to know, have?

LB

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

             reply	other threads:[~2019-12-30 16:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-30 16:34 Lawrence Bottorff [this message]
2019-12-31  0:31 ` How to capture export prepended header numbering Adam Porter
2019-12-31  0:43   ` Adam Porter
2019-12-31  4:21   ` Adam Porter
2019-12-31  4:45     ` Adam Porter

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='CAFAhFSWUV2EJNnM=ceQ4WTmBL8-1e_UkxJbLgCFyck-rnB-MHA@mail.gmail.com' \
    --to=borgauf@gmail.com \
    --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).