[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [help-texinfo] strange behavior of @contents
From: |
Karl Berry |
Subject: |
Re: [help-texinfo] strange behavior of @contents |
Date: |
Mon, 8 Nov 2004 19:11:51 -0500 |
Hi again Oliver,
when I insert an @contents (after @end titlepage or at the end of a
document) texi2dvi exited with a bad status.
The original cause of this is that the Zertifikate chapter has
@subsection's directly under the @chapter. Those should be @section's.
@subsection Zertifikate mit easy-rsa erstellen
@subsection Zertifikate von Hand erstellen
I also strongly suggest having a @node commands before every sectioning
command (@chapter ... @subsubsection). The nodes are used for
cross-reference targets, so without them things will be less than
optimal (among other reasons).
Also, the @insertcopying stuff would more typically go after the title
page, and the @copying stuff defined even earlier, like this (as shown
in the sample documents):
...
@c %**end of header
@copying
...
@end copying
@titlepage
@title OpenVPN HowTo
@author Oliver Beck
@subtitle Version 0.23
@subtitle November 2004
@page
@insertcopying{}
@end titlepage
@contents
Anyway, aside from all that, I think the patch below fixes the error.
It's checked into cvs and released to ftp://tug.org/tex/texinfo.tex, etc.
Thanks,
karl
*** texinfo.tex 31 Oct 2004 14:56:11 -0000 1.177
--- texinfo.tex 8 Nov 2004 23:53:25 -0000
***************
*** 5,7 ****
%
! \def\texinfoversion{2004-10-31.06}
%
--- 5,7 ----
%
! \def\texinfoversion{2004-11-08.15}
%
***************
*** 1244,1247 ****
\def\thischapnum{##2}%
! \let\thissecnum\empty
! \let\thissubsecnum\empty
}%
--- 1244,1247 ----
\def\thischapnum{##2}%
! \def\thissecnum{0}%
! \def\thissubsecnum{0}%
}%
***************
*** 1250,1252 ****
\def\thissecnum{##2}%
! \let\thissubsecnum\empty
}%
--- 1250,1252 ----
\def\thissecnum{##2}%
! \def\thissubsecnum{0}%
}%
***************
*** 1259,1263 ****
}%
! \let\thischapnum\empty
! \let\thissecnum\empty
! \let\thissubsecnum\empty
%
--- 1259,1263 ----
}%
! \def\thischapnum{0}%
! \def\thissecnum{0}%
! \def\thissubsecnum{0}%
%