From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: How to get ordinal of an element in the subtree when exporting? Date: Thu, 17 Jan 2019 08:31:23 -0500 Message-ID: References: <878szmw0yf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000563b00057fa76b84" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:58995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gk7mK-0000o9-Km for emacs-orgmode@gnu.org; Thu, 17 Jan 2019 08:32:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gk7mA-0000So-QI for emacs-orgmode@gnu.org; Thu, 17 Jan 2019 08:32:16 -0500 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:43058) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gk7m8-0000N5-RP for emacs-orgmode@gnu.org; Thu, 17 Jan 2019 08:32:05 -0500 Received: by mail-lj1-x234.google.com with SMTP id q2-v6so8559430lji.10 for ; Thu, 17 Jan 2019 05:32:02 -0800 (PST) In-Reply-To: <878szmw0yf.fsf@gmail.com> 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: mgcyung Cc: emacs-org list --000000000000563b00057fa76b84 Content-Type: text/plain; charset="UTF-8" On Thu, Jan 17, 2019 at 8:21 AM mgcyung 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 .. --000000000000563b00057fa76b84 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

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 e= lement
in the whole file. How to get ordinal of an element in the subtree when
exporting?

Do you mean you want the ord= inal counting to reset when the subtree begins? In that case, export with t= he subtree scope: C-c C-e C-s ..
--000000000000563b00057fa76b84--