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: Capture and use export header numbering?
Date: Thu, 5 Nov 2015 01:49:52 +0000	[thread overview]
Message-ID: <CAFAhFSVNKG_o0ba7BPChTcP6QoJaMaEHkFseZ3EmNDgwcR9=FA@mail.gmail.com> (raw)

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

When an outline tree of headers

* top 1
** something
** something
** something
*** something
**** something
***** something
****** something

is exported, say, to html, org-mode produces a numerical outline as deep as
the options are set

1. top
1.1. something
1.2. something
1.3. something
1.3.1. something
1.3.1.1. something
1.3.1.1.1. something
1.3.1.1.1.1. something


Now, is there any way to actually capture that outline numeration for use
in the original buffer? I'm thinking I would like to make a sort of tags or
custom_id  system based on these numbers.

* top :1:
** something :1.1:
** something :1.2:
** something :1.3:
*** something :1.3.1:
**** something :1.3.1.1:
***** something :1.3.1.1.1:
****** something :1.3.1.1.1.1:

It would also be nice if org-mode simply used these numbers in the original
buffer instead of stars.

LB

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

             reply	other threads:[~2015-11-05  1:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-05  1:49 Lawrence Bottorff [this message]
2015-11-05  8:43 ` Capture and use export header numbering? Nicolas Goaziou
2015-11-05 10:46 ` Myles English

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='CAFAhFSVNKG_o0ba7BPChTcP6QoJaMaEHkFseZ3EmNDgwcR9=FA@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).