[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
texinfo export has no targets for src blocks
From: |
Fraga, Eric |
Subject: |
texinfo export has no targets for src blocks |
Date: |
Sat, 14 Dec 2024 14:22:17 +0000 |
User-agent: |
gnus (Emacs 31.0.50) |
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
infotest.org
Description: infotest.org
- texinfo export has no targets for src blocks,
Fraga, Eric <=