Captions of floats are able to create cross-references when processed with
`makeinfo', but not with TeX (or `texi2dvi').
Attached is a Texinfo document that makes a simple cross reference (with
the xref command) to "Top" in the caption command of a float command.
Here is the Info output:
Test float captions with @xref commands
***************************************
This is a float.
Figure 1: This is the caption with a reference to *Note Top::.
* Menu:
* Figure 1: This is the caption ...: Figure 1.
But the following is the resulting errors from running the Texinfo file
through TeX:
$ tex float-caption-xref.texi
This is TeX, Version 3.14159 (Web2C 7.4.5)
(./float-caption-xref.texi (./texinfo.tex
Loading texinfo [version 2005-07-01.11]: Basics, pdf, fonts, page
headings, tables, conditionals, indexing, sectioning, toc, environments,
defuns, macros, cross references, insertions,
(/usr/share/texmf/tex/generic/dvips/epsf.tex)
localization, and turning on texinfo input format.)
(./float-caption-xref.aux)
(Test float captions with @@xref commands) (./float-caption-xref.tmp
l.1: Undefined cross reference `Top-pg'.) (./float-caption-xref.tmp
! Undefined control sequence.
@xrefX ...ngroup @unsepspaces @def @printedmanual
[EMAIL PROTECTED] [EMAIL
PROTECTED]
@pr...l.1 ... the caption with a reference to @xref{Top}
[EMAIL PROTECTED]
? X
No pages of output.
Transcript written on float-caption-xref.log.
$
Thanks,
/a\input texinfo.tex @c -*-texinfo-*-
@setfilename float-caption-xref.info
@node Top
@top Test float captions with @@xref commands
@float Figure, Figure 1
@caption{This is the caption with a reference to @xref{Top}.}
This is a float.
@end float
@listoffloats Figure
@bye
_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo/
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-texinfo