[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: |
Wed, 13 May 2020 16:42:03 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 |
>> Alright, it seems that it affects only custom settings,
>> (...)
>> it doesn't happen with only "@headings double" after title page.
>
> I managed to get the same result (by editing the *.toc file to end
on an
> odd page). Note that the headings are correct for the page numbers as
> printed - the only problem is the mismatch between the page numbers in
> the file and the printed page numbers in that when one is odd, the
other
> is even, and vice versa.
And this mismatch causes the heading style, that should be on
right-hand page, to be on left-hand page, and vice versa.
> If somebody was actually printing the manual on paper, they would
> have to use some other tool to insert a blank page into the document
> after the table of contents and before the page numbered "1".
Or...
...
@end titlepage
@evenheading @thispage @| @|
@oddheading @| @| @thispage
+@tex
+\global\let\contentsalignmacro = \chapoddpage
+@end tex
@summarycontents
@contents
@headings double
...
I don't know if this is the best command to use, but it seems to work,
i.e. it adds the needed blank page.
> As you said, this blank page is inserted by texinfo.tex under some
> conditions already. I expect there is some work that could be done in
> this area.
I'm not sure if it can be done at all, because we're writing about
custom settings, not predefined, and they can be difficult to predict.
Maybe, inside code for contents, if "@setchapternewpage on/odd" - add
page, else (off) - don't add? In this case, taking care only for
predefined settings, and providing command to insert blank page could
be better (more universal) solution.
S. U.
P.S. About that @thistitle appearing in ToC and short ToC, this seems
to work, although I doubt if this is "pretty" enough, or even correct,
so please, treat it as idea.
diff -u old/texinfo.tex new/texinfo.tex
--- old/texinfo.tex 2020-05-10 20:17:49.631863900 +0200
+++ new/texinfo.tex 2020-05-13 16:34:37.409837100 +0200
@@ -6835,6 +6835,7 @@
%
\def\contents{%
\startcontents{\putwordTOC}%
+ \let\thistitle=\hfil
\openin 1 \tocreadfilename\space
\ifeof 1 \else
\readtocfile
@@ -6848,11 +6849,13 @@
\endgroup
\lastnegativepageno = \pageno
\global\pageno = \savepageno
+ \let\thistitle=\thistitle
}
% And just the chapters.
\def\summarycontents{%
\startcontents{\putwordShortTOC}%
+ \let\thistitle=\hfil
%
\let\partentry = \shortpartentry
\let\numchapentry = \shortchapentry
@@ -6884,6 +6887,7 @@
\endgroup
\lastnegativepageno = \pageno
\global\pageno = \savepageno
+ \let\thistitle=\thistitle
}
\let\shortcontents = \summarycontents
- Re: Problem with heading appearing on new chapter page, (continued)
- Re: Problem with heading appearing on new chapter page, Gavin Smith, 2020/05/10
- Re: Problem with heading appearing on new chapter page, Sebastian Urban, 2020/05/10
- Re: Problem with heading appearing on new chapter page, Gavin Smith, 2020/05/10
- Re: Problem with heading appearing on new chapter page, Sebastian Urban, 2020/05/12
- Re: Problem with heading appearing on new chapter page, Sebastian Urban, 2020/05/12
- Re: Problem with heading appearing on new chapter page, Gavin Smith, 2020/05/12
- Re: Problem with heading appearing on new chapter page,
Sebastian Urban <=
- Re: Problem with heading appearing on new chapter page, Gavin Smith, 2020/05/13
- Re: Problem with heading appearing on new chapter page, Gavin Smith, 2020/05/14
- Re: Problem with heading appearing on new chapter page, Gavin Smith, 2020/05/14
- Re: Problem with heading appearing on new chapter page, Sebastian Urban, 2020/05/14