emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Myles English <mylesenglish@gmail.com>
To: Lawrence Bottorff <borgauf@gmail.com>
Cc: emacs-orgmode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: Capture and use export header numbering?
Date: Thu, 05 Nov 2015 10:46:35 +0000	[thread overview]
Message-ID: <87bnb8raes.fsf@gmail.com> (raw)
In-Reply-To: <CAFAhFSVNKG_o0ba7BPChTcP6QoJaMaEHkFseZ3EmNDgwcR9=FA@mail.gmail.com>


Hello Lawrence,

Lawrence Bottorff writes:

> 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.

You might find something useful as a starting point in this old code I
posted here:

http://lists.gnu.org/archive/html/emacs-orgmode/2012-10/msg00245.html

Basically it exported to text to get the heading numbers.

Myles

      parent reply	other threads:[~2015-11-05 10:46 UTC|newest]

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

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=87bnb8raes.fsf@gmail.com \
    --to=mylesenglish@gmail.com \
    --cc=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).