[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with heading appearing on new chapter page
From: |
Gavin Smith |
Subject: |
Re: Problem with heading appearing on new chapter page |
Date: |
Fri, 1 May 2020 10:29:58 +0100 |
On Thu, Apr 30, 2020 at 11:32 PM Sebastian Urban
<address@hidden> wrote:
>
> >> But because I would like to remove headings (any kind, except page
> >> numbers - I can live with them) from new chapter page, this doesn't
> >> solve my issue.
> >
> > I don't think there is any way of doing what you are trying to do
> > without changing texinfo.tex. If you customize the headings and
> > footings then this applies to new chapter pages too.
>
> Actually, I kind of did it. After applying following patch in
> TEXINFO.TEX:
>
> <-------------------- PATCH BEG -------------------->
> --- a.tex 2020-04-29 14:33:26.651964400 +0200
> +++ b.tex 2020-04-30 23:58:39.995421900 +0200
> @@ -363,11 +363,13 @@
> %
> \ifx\curchaptername\prevchaptername
> \let\thischapterheading\thischapter
> + \let\thissectionheading\thissection
> \else
> % \thischapterheading is the same as \thischapter except it is blank
> % for the first page of a chapter. This is to prevent the
> chapter name
> % being shown twice.
> \def\thischapterheading{}%
> + \def\thissectionheading{}%
> \fi
> %
> % Common context changes for both heading and footing.
> <-------------------- PATCH END -------------------->
>
> and adding my style of headings in EMACS.TEXI:
>
> @headings off
> @evenheading @thispage @| @| @thischapterheading
> @oddheading @thissectionheading @| @| @thispage
>
> I was able to achieve what I wanted. Maybe you could add above patch
> to the official texinfo.tex?
That looks like it would work but I doubt whether it would be worth
adding and documenting it.
It might be better to have an option just to output the page number on
new chapter pages rather than adding new commands @thischapterheading,
@thissectionheading and so on. At the same time, I doubt how much it
would be used.
> Now, for the "kind of" part. There are pages in the PDF manual that
> doesn't have chapter or section in heading (depends on where the page
> is placed - right/left-hand page). These pages are last pages of the
> chapters, but - as I wrote - not all of them! What is interesting, is
> that even official PDF has the same problem. See p. 26, 58, 60, 93,
> 140 in official Emacs Manual PDF. I can attach the one I made in next
> e-mail if you wish. Any ideas?
Yes, I would have to see the PDF to know what you mean.
- Re: Problem with heading appearing on new chapter page,
Gavin Smith <=
- Re: Problem with heading appearing on new chapter page, Sebastian Urban, 2020/05/01
- Re: Problem with heading appearing on new chapter page, Gavin Smith, 2020/05/01
- Re: Problem with heading appearing on new chapter page, Gavin Smith, 2020/05/01
- Re: Problem with heading appearing on new chapter page, Sebastian Urban, 2020/05/02
- Re: Problem with heading appearing on new chapter page, Gavin Smith, 2020/05/07
- Re: Problem with heading appearing on new chapter page, Sebastian Urban, 2020/05/07
- Re: Problem with heading appearing on new chapter page, Gavin Smith, 2020/05/08
- Re: Problem with heading appearing on new chapter page, Sebastian Urban, 2020/05/08
- Re: Problem with heading appearing on new chapter page, Gavin Smith, 2020/05/08
- Re: Problem with heading appearing on new chapter page, Sebastian Urban, 2020/05/08