| 1 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2 |
% |
| 3 |
% Module: ZzTeX New Title Adjustment Scheme |
| 4 |
% |
| 5 |
% Synopsis: The new title adjustment scheme is an improvement over the |
| 6 |
% original scheme provided by \adjusttitle. |
| 7 |
% |
| 8 |
% Author: Paul C. Anagnostopoulos |
| 9 |
% Created: 9 July 1997 |
| 10 |
% |
| 11 |
% Copyright 1989--2020 by Paul C. Anagnostopoulos |
| 12 |
% under The MIT License (opensource.org/licenses/MIT) |
| 13 |
% |
| 14 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 15 |
|
| 16 |
% Title Adjustment Commands |
| 17 |
% ----- ---------- -------- |
| 18 |
|
| 19 |
|
| 20 |
%~ This command provides an adjustment to the enclosing title |
| 21 |
%~ when it appears in the body of the book. The argument text |
| 22 |
%~ is included only when the title appears in the body. |
| 23 |
|
| 24 |
\def \adjustbodytitle #1{% {text} %^title_adj |
| 25 |
\if \eqlp{\zadjtitle}{\zadjtitlebody}#1\fi} |
| 26 |
|
| 27 |
%~ This command provides an adjustment to the enclosing title |
| 28 |
%~ when it appears in a running head or foot. The argument text |
| 29 |
%~ is included only when the title appears in a runner. |
| 30 |
|
| 31 |
\def \adjustmarktitle #1{% {text} %^title_adj |
| 32 |
\if \eqlp{\zadjtitle}{\zadjtitlemark}#1\fi} |
| 33 |
|
| 34 |
%~ This command provides an adjustment to the enclosing title |
| 35 |
%~ when it appears in the table of contents. The argument text |
| 36 |
%~ is included only when the title appears in the ToC. |
| 37 |
|
| 38 |
\def \adjusttoctitle #1{% {text} %^title_adj |
| 39 |
\if \eqlp{\zadjtitle}{\zadjtitletoc}#1\fi} |
| 40 |
|
| 41 |
%~ This command provides an adjustment to the enclosing title |
| 42 |
%~ when it appears in a mini-Toc. The argument text |
| 43 |
%~ is included only when the title appears in a mini-ToC. |
| 44 |
|
| 45 |
\def \adjustminitoctitle #1{% {text} %^title_adj |
| 46 |
\if \eqlp{\zadjtitle}{\zadjtitleminitoc}#1\fi} |
| 47 |
|
| 48 |
\def \adjusttitle {% |
| 49 |
\error{obsolete}{The \noexpand\adjusttitle command is obsolete}} |
| 50 |
|
| 51 |
% Common Adjustment Commands |
| 52 |
% ------ ---------- -------- |
| 53 |
|
| 54 |
|
| 55 |
%~ This command is equivalent to |\adjustbodytitle{\nl}|. |
| 56 |
|
| 57 |
\def \titlenl;{\adjustbodytitle{\nl}} %^title_adj |
| 58 |
|
| 59 |
%~ This command is equivalent to |\adjustbodytitle{\tl}|. |
| 60 |
|
| 61 |
\def \titletl;{\adjustbodytitle{\tl}} %^title_adj |
| 62 |
|
| 63 |
%~ This command is equivalent to |\adjusttoctitle{\nl}|. |
| 64 |
|
| 65 |
\def \tocnl;{\adjusttoctitle{\nl}} %^title_adj |
| 66 |
|
| 67 |
%~ This command is equivalent to |\adjusttoctitle{\tl}|. |
| 68 |
|
| 69 |
\def \toctl;{\adjusttoctitle{\tl}} %^title_adj |
| 70 |
|
| 71 |
%~ This command is equivalent to |\adjustminitoctitle{\nl}|. |
| 72 |
|
| 73 |
\def \minitocnl;{\adjustminitoctitle{\nl}} %^title_adj |
| 74 |
|
| 75 |
%~ This command is equivalent to |\adjustminitoctitle{\tl}|. |
| 76 |
|
| 77 |
\def \minitoctl;{\adjustminitoctitle{\tl}} %^title_adj |
| 78 |
|