[rfa/5] add PDF target to doc directory

Andrew Cagney ac131313@cygnus.com
Sun May 28 07:29:00 GMT 2000


Eli Zaretskii wrote:
> 
> > Date: Sun, 28 May 2000 18:39:17 +1000
> > From: Andrew Cagney <ac131313@cygnus.com>
> >
> > Sorry, I ment the contents which always end up at the end of the
> > document :-)
> 
> Texinfo 4.0 allows you to put @contents *anywhere* in the document.  I
> don't know if the pretest that you are using includes that feature,
> but even if it doesn't, you only need this with TeX or PDFTeX, which
> always supported this, since TeX does several passes on the document
> anyway.
> 
> So you could put @contents twice, once @iftex at the beginning, the
> other time @ifnottex at the end, and get what you want, I think.

Yep, that works.  Namely:

	o	Duplicate contents at start and end.
		Allows makeinfo-OLD to work.

	o	For pdftex, use the latest texinfo.tex.
		Fixes nr chapter pages - even.
		Magically adds all the cross references.

Results are at:

http://sourceware.cygnus.com/gdb/5/onlinedocs/gdb.pdf (1.2mb)
http://sourceware.cygnus.com/gdb/5/onlinedocs/gdb.pdf.gz (0.77mb)

thanks,
	Andrew


More information about the Gdb-patches mailing list