help-texinfo
[Top][All Lists]
Advanced

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

Re: Problem with heading appearing on new chapter page


From: Sebastian Urban
Subject: Re: Problem with heading appearing on new chapter page
Date: Fri, 1 May 2020 00:32:16 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

>> 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?

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?


S. U.



reply via email to

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