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: infotest.org
Description: infotest.org

Reply via email to