> Sent: Thursday, May 13, 2021 at 1:07 AM > From: "Patrice Dumas" <[email protected]> > To: [email protected] > Cc: "help-texinfo gnu" <[email protected]> > Subject: Re: @chapter starting at specified number > > On Wed, May 12, 2021 at 02:52:37PM +0200, [email protected] wrote: > > I dot not see it solving the problem. If I have one chapter in a file, > > could I make it > > show as chapter 5. I have been using @unnumbered to do that. My > > understanding has been > > that @lowersections commands change chapters to sections, sections to > > subsections, and so > > on. But the chapter numbering stays the same. > > Indeed, @unnumbered with a manual numbering for stand alone chapter > versus @chapter when included is probably more relevant. You could also > use @heading.
But that is problematic, because I will also have to take care of the section, subsection, subsubsection numbering as well. @unnumbered and @heading is useful for alternative numbering schemes (e.g. using roman numerals, or when using some special heading system). But if I simply want the chapter, sections and subsections, to start from number 5, there could be a variable one can set (e.g. @chapcounter 1). > > > > > > > Sent: Thursday, May 13, 2021 at 12:47 AM > > > From: "Patrice Dumas" <[email protected]> > > > To: [email protected] > > > Cc: "help-texinfo gnu" <[email protected]> > > > Subject: Re: @chapter starting at specified number > > > > > > Hello, > > > > > > Not sure that it corresponds to your use, but @raisesections and > > > @lowersections > > > could be of use: > > > https://www.gnu.org/software/texinfo/manual/texinfo/html_node/Raise_002flower-sections.html > > > > > > On Wed, May 12, 2021 at 04:05:17AM +0200, [email protected] wrote: > > > > Currently, using @chapter starts from one. But if I write every > > > > chapter into a separate > > > > file and execute with texi2pdf all chapters get messed because they > > > > will all be chapter 1. > > > > > > > > Can there be some structured way to choose the number to start with? > > > > It would be very > > > > helpful and valuable capability. > > > > > > It is not clear to me what you are trying to achieve. Texinfo is > > > designed under the assumption that the manual forms a whole. Many other > > > things need to be changed, not only the chapter numbering if it is > > > instead a kind of collection. > > > > > > -- > > > Pat > > > >
