Hi,
 
we are using texinfo 4.0 (using the newest texinfo.tex file dating from
1999-10-01.07) for editing a interface specification.
 
Generally it works great, but there remains one problem which is
possibly a bug in texinfo:
 
- many of our '@node' names contain an underscore ('_') as part of a
  function name.
  An example node-line in our docmuent looks like this:

  @node vs_lm_get, vs_lm_set, vs_lm_default, up
 
- AFAIK using underscores in node-names is valid in texinfo

One of our output formats is PDF, which we create using pdftex V0.13d.

Using '@xref' we create a lot of crossreferences in our document,
pointing e.g. to node-names with embedded underscores.

The resulting PDF-file loads fine in Acrobat Reader 4.0, all xrefs look
like links and the pointer changes from 'hand' to 'finger' - only these
links don't work :(

I tracked the problem down in creating a small texinfo-file (since our
original document contains already 400+ pages) using a node
with 'underscore'. This example file is attached to this email at the
end.

The resulting PDF-code for an '@xref{First_Chapter}' looks like this:

26 0 obj <<
/Type /Annot
/Border [0 0 0]
/Rect [124.337 687.06 293.972 697.97]
/Subtype /Link
/A << /S /GoTo /D (First\unhbox \voidb@x \kern .06em \vbox {\hrule
width.3em height.1ex}Chapter@) >>
>> endobj

which is obviously wrong! The underscore is translated by Texinfo to
some TeX-code.

Until now I couldn't find any wokaround for this bug.

Any hint and help will be appreciated.

Michael
------------------------------------------------------------------------
  Michael Wiedmann              |
  Cordless Technology A/S       |  Free your computer,
  K�penicker Str. 180           |  install Linux
  D-10997 Berlin                |
------------------------------------------------------------------------

-----8<--------------8<--------------8<--------------8<--------------8<---------

\input texinfo   @c -*-texinfo-*-
@c %**start of header
@setfilename sample.info
@settitle Sample Document
@c %**end of header

@titlepage
@sp 10
@center @titlefont{Sample Title}

@page
@vskip 0pt plus 1filll
Copyright @copyright{} 1990 Free Software Foundation, Inc.
@end titlepage

@node    Top, First_Chapter, (dir), (dir)

@menu
* First_Chapter::               The first chapter
* Second Chapter::              The second chapter
@end menu

@c -----

@node    First_Chapter, Second Chapter, Top, Top
@chapter First_Chapter

The node name of the First Chapter contains an embedded underscore, 
which causes uncorrect PDF-output if used in an xref.

@c -----

@node    Second Chapter, Concept Index, First_Chapter, Top
@chapter Second Chapter
@cindex Sample index entry

The following xref does *NOT* work in PDF output!

@c !!!! FIXME: look here in the resulting PDF file !!!!
@xref{First_Chapter, First_Chapter, @code{First_Chapter}}
@c !!!! FIXME: look here in the resulting PDF file !!!!

@bye

-----8<--------------8<--------------8<--------------8<--------------8<---------

Reply via email to