[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [help-texinfo] User defined sectioning numbers when using @unnumbere
From: |
Christopher Dimech |
Subject: |
Re: [help-texinfo] User defined sectioning numbers when using @unnumbered |
Date: |
Wed, 2 Jan 2019 19:52:12 +0100 |
The reason is that I am writing a book. Each chapter has an appendix section.
In summary, an appendix needs to relate directly to the subject. In addition,
I aim to have chapters only about the topics I wish to discuss.
Consequently, any License and Copyright Documents would use a different
numbering
sequence different than for chapters or appendices.
Naturally, I also have separate License and Copyright Documents sectioned as
chapter and appendices too so I may use them as necessary in other documents
I write.
For the @unnumbered version, I would need a way to define the sectioning format
so I can use them in different documents, but at the same time I can use the
same @include ./license--unnumbered.texi This means that different documents
can have different sectioning even though they may call the same
./license--unnumbered.texi
├── freelic
│ ├── cc
│ └── gnu
│ ├── agpl--chapter.texi
│ ├── agpl--appendix.texi
│ ├── agpl--unnumbered.texi
│ ├── gfdl--chapter.texi
│ ├── gfdl--appendix.texi
│ └── gfdl--unnumbered.texi
> Sent: Wednesday, January 02, 2019 at 7:05 PM
> From: "Gavin Smith" <address@hidden>
> To: "Christopher Dimech" <address@hidden>
> Cc: address@hidden
> Subject: Re: [help-texinfo] User defined sectioning numbers when using
> @unnumbered
>
> On Wed, Jan 02, 2019 at 06:32:33PM +0100, Christopher Dimech wrote:
> > Dear Compeers,
> >
> > I am using an @unnumbered chapter so it displays in the contents section
> > when I call @contents. Is there any way to add section numbers such as
>
> I don't understand why you don't just use @chapter or @appendix instead
> of @unnumbered if you want the chapter to be numbered.
>
> > Define label--preamb, label--appldef, label--verbatim in some top level file
>
> Possibly with
>
> @set label--preamb 1.2.3
>
> then refer to it with @value{label--preamb}. However, there is a
> chance this won't work when processed with TeX.
>
> > top--level--document.texi:
> > @page
> > @node license--unnumbered
> > @unnumbered label--license License
> > @include ./license--unnumbered.texi
> >
> > license--unnumbered.texi:
> > @unnumberedsec label--preamb Preamble
> > @unnumberedsec label--appldef Applicability and Definitions
> > @unnumberedsec label--copying Verbatim Copying
> > @unnumberedsubsec label--cpinq Copying in Quantity
> >
> >
> >
>