diff options
author | Andreas Scherer <andreas_tex@freenet.de> | 2020-07-02 17:45:28 +0000 |
---|---|---|
committer | Andreas Scherer <andreas_tex@freenet.de> | 2020-07-02 17:45:28 +0000 |
commit | 63baeff02fd19f54fcfdf472f9b29d79bd58674a (patch) | |
tree | ccf39c100ac2efbe20850e948a87d52aae5f6abe /Build/source/texk/web2c/cwebdir | |
parent | f7c797d64ebdb651e0a97b6cb7620363e2353187 (diff) |
[CWEB] Macro simplification.
git-svn-id: svn://tug.org/texlive/trunk@55726 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/cwebdir')
-rw-r--r-- | Build/source/texk/web2c/cwebdir/cwebman-w2c.ch | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/Build/source/texk/web2c/cwebdir/cwebman-w2c.ch b/Build/source/texk/web2c/cwebdir/cwebman-w2c.ch index 311ae38f673..71dabd1d121 100644 --- a/Build/source/texk/web2c/cwebdir/cwebman-w2c.ch +++ b/Build/source/texk/web2c/cwebdir/cwebman-w2c.ch @@ -65,6 +65,7 @@ \everypar{\hskip-\parindent\everypar{}}} \outer\def\ssection #1.#2.{\penalty-500\bigskip + \centerline{\sectionfont\def\.##1{{\twelvett##1}} \ifacro\vbox to 0pt{\kern-2.5ex\relax \ifpdftex\pdfdest num \destcount fitbh\relax \else\special{pdf: dest (\the\destcount) [ @thispage /FitBH @ypos ]}\fi @@ -76,7 +77,7 @@ \gdef\bkminfo{}% \global\advance\destcount by 1\relax \kern2.5ex\relax - }\fi \centerline{\sectionfont\def\.##1{{\twelvett##1}} #1}\nobreak\vskip 6pt + }\fi #1}\nobreak\vskip 6pt \everypar{\hskip-\parindent\everypar{}}} \def\appA{15} @@ -84,18 +85,16 @@ \def\appC{17} \def\Appendix#1{\leavevmode - \ifnum\csname app#1\endcsname>0 % - \ifacro\ifpdftex - \pdfstartlink attr{/Border[0 0 0]} goto num\csname app#1\endcsname\relax - \Blue\hbox{Appendix}~#1\Black - \pdfendlink - \else - \setbox0=\hbox{\special{pdf: bc [ \pdflinkcolor ]}{\hbox{Appendix}~#1}% - \special{pdf: ec}}\special{pdf: ann width \thewidth height \theheight - depth \thedepth << /Type /Annot /Subtype /Link /Border [0 0 0] - /A << /S /GoTo /D (\csname app#1\endcsname) >> >>}\box0\relax - \fi\else Appendix~#1\fi - \else Appendix~#1\fi} + \ifacro\ifpdftex + \pdfstartlink attr{/Border[0 0 0]} goto num\csname app#1\endcsname\relax + \Blue\hbox{Appendix}~#1\Black + \pdfendlink + \else + \setbox0=\hbox{\special{pdf: bc [ \pdflinkcolor ]}{\hbox{Appendix}~#1}% + \special{pdf: ec}}\special{pdf: ann width \thewidth height \theheight + depth \thedepth << /Type /Annot /Subtype /Link /Border [0 0 0] + /A << /S /GoTo /D (\csname app#1\endcsname) >> >>}\box0\relax + \fi\else Appendix~#1\fi} \newcount\subdestcount \subdestcount=151\relax |