all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* texinfo export has no targets for src blocks
@ 2024-12-14 14:22 Fraga, Eric
  0 siblings, 0 replies; only message in thread
From: Fraga, Eric @ 2024-12-14 14:22 UTC (permalink / raw)
  To: Emacs Org mode mailing list

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

Hello all,

Just a heads up as I spent some time debugging a problem with export to
texinfo.  If you have a heading, say

** The model <<model>>

but also happen to have a code block

#+name: model
#+begin_src ...

exporting to texinfo, asking to refer to [[model]], creates a reference
to an non-existing target ("model") because (a) org appears to assume
that you wish to reference the src block, not the headline, and (b) the
src block (/@example/ in texinfo) is not labelled in the .texi output.
See attached minimal example.

I was actually trying to reference the headline so changed <<model>> to
<<modelsection>> and [[model]] to [[modelsection]] and everything is
fine.

Note: org-lint does not catch multiple entities/elements assigned the
same name.  I have no idea whether it should or not.  Debatable, I
guess.

Back to your normal programming.

Thank you,
eric

-- 
: Eric S Fraga, with org 9.7.17-3ae179 in Emacs 31.0.50

[-- Attachment #2: infotest.org --]
[-- Type: application/vnd.lotus-organizer, Size: 219 bytes --]

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

only message in thread, other threads:[~2024-12-14 14:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-14 14:22 texinfo export has no targets for src blocks Fraga, Eric

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.