all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Capture and use export header numbering?
@ 2015-11-05  1:49 Lawrence Bottorff
  2015-11-05  8:43 ` Nicolas Goaziou
  2015-11-05 10:46 ` Myles English
  0 siblings, 2 replies; 3+ messages in thread
From: Lawrence Bottorff @ 2015-11-05  1:49 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Capture and use export header numbering?
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Nicolas Goaziou @ 2015-11-05  8:43 UTC (permalink / raw)
  To: Lawrence Bottorff; +Cc: emacs-orgmode Mailinglist

Hello,

Lawrence Bottorff <borgauf@gmail.com> writes:

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

That will not happen. Stars are part of Org syntax.

However, you can add overlays on top of stars in order to display
numbering instead.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Capture and use export header numbering?
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Myles English @ 2015-11-05 10:46 UTC (permalink / raw)
  To: Lawrence Bottorff; +Cc: emacs-orgmode Mailinglist


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-05 10:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.