From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lawrence Bottorff Subject: How to capture export prepended header numbering Date: Mon, 30 Dec 2019 10:34:25 -0600 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000004cd6e6059aee6b29" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50716) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ily07-0008E2-DJ for emacs-orgmode@gnu.org; Mon, 30 Dec 2019 11:34:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ily06-0001Mo-Bx for emacs-orgmode@gnu.org; Mon, 30 Dec 2019 11:34:39 -0500 Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]:36361) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ily06-0001MN-4h for emacs-orgmode@gnu.org; Mon, 30 Dec 2019 11:34:38 -0500 Received: by mail-lj1-x22d.google.com with SMTP id r19so33823062ljg.3 for ; Mon, 30 Dec 2019 08:34:38 -0800 (PST) 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: emacs-orgmode Mailinglist --0000000000004cd6e6059aee6b29 Content-Type: text/plain; charset="UTF-8" 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 --0000000000004cd6e6059aee6b29 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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-hea= ding a.1
** sub-heading a.2
*** sub-sub-heading a.2.1
* heading b<= br>** 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-hea= ding 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 numbe= ring? 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 mec= hanism doing this for exporting. Is it possible for a mere mortal to know, = have?

LB
--0000000000004cd6e6059aee6b29--