emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Inconsistent numbering of verse, example, source blocks
@ 2021-01-26  0:08 Jason Ross
  0 siblings, 0 replies; only message in thread
From: Jason Ross @ 2021-01-26  0:08 UTC (permalink / raw)
  To: emacs-orgmode

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-26  0:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-26  0:08 Inconsistent numbering of verse, example, source blocks Jason Ross

Code repositories for project(s) associated with this 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).