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 21:59:08 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

> That looks like it would work but I doubt whether it would be worth
> adding and documenting it.

As for "worth adding", if someone would be in my situation it would
help him.  He would only has to use different @...heading in his own
TEXI file, no need to change TEXINFO.TEX.  Maybe, as a documentation,
simple comment in TEXINFO.TEX would be sufficient, e.g. between lines
I added there is:

% \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.

so put here a similar line about "thissectionheading" and done.  Plain
simple, for "advanced" usage.

This would be "good enough" way, below is more desired option.

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

Hmmm... the thing is predefined headings (@setchapter on, off, odd;
@headings double) don't put heading (with chapter) on new chapter
page, only custom @evenheading, @oddheading, @everyheading do.  I
would say that this is at least inconsistency.

What is worse, they (the latter group) don't do it well, i.e. on new
chapter page without sections, on which section should be printed in
heading - heading has only page number (if it was set).  This leads to
sometimes empty (except for the number) headings on new chapter pages
and worse looking document.

So, I think instead of option "just to output the page number", user
defined heading with @thischapter, @thissection should not appear in
heading on new chapter page BY DEFAULT.  The page number should stay,
as it was mentioned earlier - for reference.

> Yes, I would have to see the PDF to know what you mean.

I'm not sure if 2.5MB is OK for mailing list, so if it's OK and PDF I
edited will be still needed I will send it in the next e-mail.
Meanwhile please take a look at official PDF here:
https://www.gnu.org/software/emacs/manual/pdf/emacs.pdf
PDF pages 26, 58, 60, 93, 140, 154, 236, 246, 279, 377 and probably it
happens later as well.


S. U.



reply via email to

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