emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jason Ross <jasonross1024@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Inconsistent numbering of verse, example, source blocks
Date: Mon, 25 Jan 2021 16:08:31 -0800	[thread overview]
Message-ID: <55ec0cbb-eebf-0d49-b182-372407c8c84c@gmail.com> (raw)

Hello,

I'm working on an exporter for ConTeXt and I'm trying to handle
references to paragraph elements in a consistent way. However, there
seems to be some inconsistencies in how such elements are numbered in
the existing exporters.

Here's a MWE:

======================================================================

#+TITLE: Numbering Collision

#+NAME: NamedVerse1
#+CAPTION: Named Verse 1
#+BEGIN_VERSE
Mauris ac felis vel velit tristique imperdiet.
#+END_VERSE

Here's a link to verse [[NamedVerse1]]

#+NAME: UnnamedVerse1
#+BEGIN_VERSE
Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus.
#+END_VERSE

Here's a link to [[UnnamedVerse1]]

#+NAME: NamedVerse2
#+CAPTION: Named Verse 2
#+BEGIN_VERSE
Aliquam posuere.
#+END_VERSE

Here's a link to verse [[NamedVerse2]]

#+NAME: UnnamedVerse2
#+BEGIN_VERSE
Donec neque quam, dignissim in, mollis nec, sagittis eu, wisi.
#+END_VERSE

Here's a link to [[UnnamedVerse2]]


#+NAME: NamedEx1
#+CAPTION: Named Example 1
#+BEGIN_EXAMPLE
Mauris ac felis vel velit tristique imperdiet.
#+END_EXAMPLE

Here's a link to Example [[NamedEx1]]

#+NAME: UnnamedEx1
#+BEGIN_EXAMPLE
Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus.
#+END_EXAMPLE

Here's a link to [[UnnamedEx1]]

#+NAME: NamedEx2
#+CAPTION: Named Example 2
#+BEGIN_EXAMPLE
Aliquam posuere.
#+END_EXAMPLE

Here's a link to Example [[NamedEx2]]

#+NAME: UnnamedEx2
#+BEGIN_EXAMPLE
Donec neque quam, dignissim in, mollis nec, sagittis eu, wisi.
#+END_EXAMPLE

Here's a link to [[UnnamedEx2]]

#+NAME: NamedSrc1
#+CAPTION: Named Source 1
#+BEGIN_SRC
Mauris ac felis vel velit tristique imperdiet.
#+END_SRC

Here's a link to Source [[NamedSrc1]]

#+NAME: UnnamedSrc1
#+BEGIN_SRC
Proin quam nisl, tincidunt et, mattis eget, convallis nec, purus.
#+END_SRC

Here's a link to [[UnnamedSrc1]]

#+NAME: NamedSrc2
#+CAPTION: Named Source 2
#+BEGIN_SRC
Aliquam posuere.
#+END_SRC

Here's a link to Source [[NamedSrc2]]

#+NAME: UnnamedSrc2
#+BEGIN_SRC
Donec neque quam, dignissim in, mollis nec, sagittis eu, wisi.
#+END_SRC

Here's a link to [[UnnamedSrc2]]

======================================================================

I'm not sure what the "Canonical" numbering ought to be but what I see
is as follows:

For the HTML exporter:
  Here’s a link to verse 1
  Here’s a link to 2
  Here’s a link to verse 2
  Here’s a link to 3
  Here’s a link to Example 1
  Here’s a link to 2
  Here’s a link to Example 2
  Here’s a link to 3
  Here’s a link to Source 1
  Here’s a link to 2
  Here’s a link to Source 2
  Here’s a link to 3

For the LaTeX exporter:
  (no links to verses or examples)
  Here's a link to Source 1
  Here's a link to ??
  Here's a link to Source 2
  Here's a link to ??

For the markdown and, plain text exporters:
  Here’s a link to verse 1
  Here’s a link to 2
  Here’s a link to verse 3
  Here’s a link to 4
  Here’s a link to Example 1
  Here’s a link to 2
  Here’s a link to Example 3
  Here’s a link to 4
  Here’s a link to Source 1
  Here’s a link to 2
  Here’s a link to Source 3
  Here’s a link to 4

So, my question is twofold:
1. Is this a bug?
2. What is the most desired numbering for these elements in the future?


Thanks,

Jason


                 reply	other threads:[~2021-01-26  0:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=55ec0cbb-eebf-0d49-b182-372407c8c84c@gmail.com \
    --to=jasonross1024@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).