bug-texinfo
[Top][All Lists]

## Re: ref to floats don't work in dvi

 From: Stepan Kasal Subject: Re: ref to floats don't work in dvi Date: Tue, 13 Jul 2004 16:05:09 +0200 User-agent: Mutt/1.4.1i

Hi,
I'd like to submit a patch which fixes the problem of texinfo commands
inside @copying, and several problems reported by Pat:

On Wed, May 19, 2004 at 11:55:01PM +0200, Patrice Dumas wrote:
> The links to floats don't work in dvi. See for example the attached file

Later on, he provided several test cases demonstrating how various
commands don't work inside @caption.

The attached patch fixes almost all of these problems.  The test cases
which demostrate it are in the attached tar.gz file.
There is only one of the test files which still doesn't work:
verb_in_shortcaption.texi
(see below for details).

Please test the patch and report problems (the patch is against CVS
version, as stored on savannah).

I've also tested the patch with the three manuals from texinfo
distribution, comparing old and new ps.  There are some changes on the
copying page of each of the manuals but it seems that it only corrects
some formatting errors of the old TeX code.
So my patch passes this regression test.

Some TeXnical details:

1) The @float xref bug was easy---a spurious space crept in.

2) For the other problems, my patch introduces a more complicated form
of storing captions and copying notice: it uses \scantokens for expansion
which is similar to the way @macro's are stored.  Overall, the resulting
code is cleaner.

3) To support @verb in @shortcaption, we'd have to change the way .aux
file is parsed; it contains a line:

@address@hidden 1: test verb: @verb{!it is @verb!}.}

In order to swallow this, @xrdef would have to be changed:
currently, it expands to a \def; it would have to be also made similar
to @macro code, using \scantokens for expansion.
Currently, I'm a bit scared of making such a change; so let's stay
with current limitations of @verb.
It is not reliable to use address@hidden' inside other Texinfo constructs.
In particular, you cannot use @verb in anything which would get into

Enjoy,
Stepan Kasal


texinfo-4.7-copying-macroctxt.patch
Description: Text document

test.tar.gz
Description: GNU Zip compressed data