mirror of
https://github.com/mirror/make.git
synced 2025-03-04 06:40:56 +08:00
(\tocentry): Don't \turnoffactive before
typesetting the arguments, it causes special characters to be printed incorrectly.
This commit is contained in:
parent
7585dedefc
commit
e94d73997a
@ -3442,11 +3442,12 @@ width0pt\relax} \fi
|
|||||||
% the index entries, but we want to suppress hyphenation here. (We
|
% the index entries, but we want to suppress hyphenation here. (We
|
||||||
% can't do that in the \entry macro, since index entries might consist
|
% can't do that in the \entry macro, since index entries might consist
|
||||||
% of hyphenated-identifiers-that-do-not-fit-on-a-line-and-nothing-else.)
|
% of hyphenated-identifiers-that-do-not-fit-on-a-line-and-nothing-else.)
|
||||||
%
|
|
||||||
% \turnoffactive is for the sake of @" used for umlauts.
|
|
||||||
\def\tocentry#1#2{\begingroup
|
\def\tocentry#1#2{\begingroup
|
||||||
\vskip 0pt plus1pt % allow a little stretch for the sake of nice page breaks
|
\vskip 0pt plus1pt % allow a little stretch for the sake of nice page breaks
|
||||||
\entry{\turnoffactive #1}{\turnoffactive #2}%
|
% Do not use \turnoffactive in these arguments. Since the toc is
|
||||||
|
% typeset in cmr, so characters such as _ would come out wrong; we
|
||||||
|
% have to do the usual translation tricks.
|
||||||
|
\entry{#1}{#2}%
|
||||||
\endgroup}
|
\endgroup}
|
||||||
|
|
||||||
% Space between chapter (or whatever) number and the title.
|
% Space between chapter (or whatever) number and the title.
|
||||||
|
Loading…
Reference in New Issue
Block a user