emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>
Subject: Incorrect numbering of tables (and other elements like figures) [Org 9.6]
Date: Mon, 12 Dec 2022 17:39:04 -0500	[thread overview]
Message-ID: <CAFyQvY342ee8OgWVQdv=z3V1_3rgLttb2S0v27JLjF0KiMH0qA@mail.gmail.com> (raw)

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

Hello,

Since Org 9.6, I am seeing that the numbering of tables (and other elements
like figures) resets to 1 and stays so, thought I cannot see a pattern of
why that happens.

Org version: Org mode version 9.6 (release_9.6-40-g49cf3e ..)

Here's a small reproducible example that shows the problem in any exporter
(ox-ascii, ox-html, ..)

=====
#+title: Table numbering test
#+options: author:nil toc:nil

#+caption: Should be Table 1
| h1       | h2       | h3       |
|----------+----------+----------|
| abcdefgh | ijklmnop | qrstuvwx |

#+caption: Should be Table 2
| h1       | h2       | h3       |
|----------+----------+----------|
| abcdefgh | ijklmnop | qrstuvwx |

#+caption: Should be Table 3
| h1       | h2       | h3       |
|----------+----------+----------|
| abcdefgh | ijklmnop | qrstuvwx |

#+caption: Should be Table 4
| h1       | h2       | h3       |
|----------+----------+----------|
| abcdefgh | ijklmnop | qrstuvwx |
=====

Output of C-c C-e t A:

=====
                         ______________________

                          TABLE NUMBERING TEST
                         ______________________


 h1        h2        h3
------------------------------
 abcdefgh  ijklmnop  qrstuvwx
Table 1: Should be Table 1

 h1        h2        h3
------------------------------
 abcdefgh  ijklmnop  qrstuvwx
Table 2: Should be Table 2

 h1        h2        h3
------------------------------
 abcdefgh  ijklmnop  qrstuvwx
Table 1: Should be Table 3

 h1        h2        h3
------------------------------
 abcdefgh  ijklmnop  qrstuvwx
Table 1: Should be Table 4
=====



--
Kaushal Modi

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

             reply	other threads:[~2022-12-12 22:41 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-12 22:39 Kaushal Modi [this message]
2022-12-13  8:52 ` Incorrect numbering of tables (and other elements like figures) [Org 9.6] Ihor Radchenko
2022-12-13 20:51   ` Kaushal Modi
2023-01-11 13:47     ` Request to bump up the Org version in Elpa [ Was: Incorrect numbering of tables (and other elements like figures) ] Kaushal Modi
2023-01-11 14:09       ` Request to bump up the Org version in Elpa [ Bastien Guerry
2023-01-11 14:12         ` Ihor Radchenko
2023-01-11 15:49           ` Bastien
2023-01-11 15:52             ` Kaushal Modi
2023-01-12 10:41             ` Ihor Radchenko

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='CAFyQvY342ee8OgWVQdv=z3V1_3rgLttb2S0v27JLjF0KiMH0qA@mail.gmail.com' \
    --to=kaushal.modi@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).