emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to get ordinal of an element in the subtree when exporting?
@ 2019-01-15 12:38 mgcyung
  2019-01-17 13:31 ` Kaushal Modi
  0 siblings, 1 reply; 2+ messages in thread
From: mgcyung @ 2019-01-15 12:38 UTC (permalink / raw)
  To: emacs-orgmode


The function "org-export-get-ordinal" returns the ordinal of an element
in the whole file. How to get ordinal of an element in the subtree when
exporting?


--
mgcyung

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

* Re: How to get ordinal of an element in the subtree when exporting?
  2019-01-15 12:38 How to get ordinal of an element in the subtree when exporting? mgcyung
@ 2019-01-17 13:31 ` Kaushal Modi
  0 siblings, 0 replies; 2+ messages in thread
From: Kaushal Modi @ 2019-01-17 13:31 UTC (permalink / raw)
  To: mgcyung; +Cc: emacs-org list

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

On Thu, Jan 17, 2019 at 8:21 AM mgcyung <mgcyung@gmail.com> wrote:

>
> The function "org-export-get-ordinal" returns the ordinal of an element
> in the whole file. How to get ordinal of an element in the subtree when
> exporting?
>

Do you mean you want the ordinal counting to reset when the subtree begins?
In that case, export with the subtree scope: C-c C-e C-s ..

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

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

end of thread, other threads:[~2019-01-17 13:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-15 12:38 How to get ordinal of an element in the subtree when exporting? mgcyung
2019-01-17 13:31 ` Kaushal Modi

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