From: Stefano Ghirlanda <dr.ghirlanda@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Exporting user labels to non-latex backends
Date: Thu, 16 May 2024 11:51:21 -0700 [thread overview]
Message-ID: <CAK_gY-Tjk3r5BXx7xDR4WGQ=SJ_L1Kw0rA9bM4VTBK4ydPxf=A@mail.gmail.com> (raw)
Hi everyone,
There may be an issue with using #+name: labels when exporting to
non-latex backends. For example:
---
\begin{equation}
\label{eq:x}
x = 1
\end{equation}
cref:eq:x
---
Exports correctly to markdown, but:
---
#+name: eq:x
\begin{equation}
x = 1
\end{equation}
cref:eq:x
---
exports with a mix of org labels and user labels:
---
\begin{equation}
\label{orgf29908c}
x = 1
\end{equation}
equation \ref{eq:x}
---
This does not affect latex export because one can set
org-latex-prefer-user-labels, but most other backends do not seem to
have this setting. I think there is one for HTML but I could not find
one for markdown. Would it be useful to have a global setting for all
backends? Or, is there a way to fix this with the current code base?
Best,
Stefano
--
Stefano Ghirlanda
CTO, DataWorks - https://dataworks.consulting
Guest Professor - Stockholm University Centre for Cultural Evolution
next reply other threads:[~2024-05-16 18:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-16 18:51 Stefano Ghirlanda [this message]
2024-05-17 13:45 ` Exporting user labels to non-latex backends Ihor Radchenko
2024-05-17 20:42 ` Stefano Ghirlanda
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAK_gY-Tjk3r5BXx7xDR4WGQ=SJ_L1Kw0rA9bM4VTBK4ydPxf=A@mail.gmail.com' \
--to=dr.ghirlanda@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.