bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Section number increments


From: Stepan Kasal
Subject: Re: Section number increments
Date: Fri, 20 Feb 2004 10:01:27 +0100
User-agent: Mutt/1.4.1i

Hello,
  the TeX problem (see below) is fixed by the patch
attached to this mail.

Karl, will you please apply it?

Some technical details about the patch:

It could break cross references in pdf output, but it was broken anyway.
The code in texinfo.tex didn't take into account that numbered and
unnumbered sectioning could be mixed.
To get the pdf cross references right, it's necessary to re-design
the "section counting" from scratch, IMHO.

I have a question about this issue: are "@heading" etc. (the last column
in the table in "(texinfo)Structuring Command Types") just presentation
macros which don't affect the document structure, or not?

In other words, what if I do this:
@chapter
@subsubsection
@heading
@subsubsection

Does the second @subsubsection have number 1.0.0.2, or again 1.0.0.1 ?

The programs (makeinfo & texinfo) give 1.0.0.2, while the wording of the
manual seems to indicate the later of the two possibilities.

I guess we all agree that having 18 sectioning commands is too much, but
it's too late to nuke some of them.

Thank you in advance for your comments.

Stepan

On Thu, Feb 19, 2004 at 09:30:45PM +0100, Jesper Harder wrote:
> @chapter Chapter 1
> @section Section 1.1
> @subsection Subsection 1.1.1
> @subsubsection Subsubsection 1.1.1.1
> @subsubheading Subsubheading
> @unnumberedsubsubsec unnumberedsubsubsec 
> @subsubsection Surprise
> 
> produces:
> 
> 1 Chapter 1
> 1.1 Section 1.1
> 1.1.1 Subsection 1.1.1
> 1.1.1.1 Subsubsection 1.1.1.1
> Subsubheading
> unnumberedsubsubsec
> 1.1.1.4 Surprise
> 
> I would have expected the last section number to be 1.1.1.2.
> 
> With TeX the last number is 1.1.1.3 -- it appears that @subsubheading
> doesn't increment the counter in TeX but that @unnumberedsubsubsec
> does.

Attachment: texinfo-unnum-fix.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]