| 1 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2 |
% context.4ht 2009-05-21-09:32 % |
| 3 |
% Copyright (C) 2004--2009 Eitan M. Gurari % |
| 4 |
% % |
| 5 |
% This work may be distributed and/or modified under the % |
| 6 |
% conditions of the LaTeX Project Public License, either % |
| 7 |
% version 1.3c of this license or (at your option) any % |
| 8 |
% later version. The latest version of this license is % |
| 9 |
% in % |
| 10 |
% http://www.latex-project.org/lppl.txt % |
| 11 |
% and version 1.3c or later is part of all distributions % |
| 12 |
% of LaTeX version 2005/12/01 or later. % |
| 13 |
% % |
| 14 |
% This work has the LPPL maintenance status "maintained".% |
| 15 |
% % |
| 16 |
% This Current Maintainer of this work % |
| 17 |
% is Eitan M. Gurari. % |
| 18 |
% % |
| 19 |
% If you modify this program your changing its signature % |
| 20 |
% with a directive of the following form will be % |
| 21 |
% appreciated. % |
| 22 |
% \message{signature} % |
| 23 |
% % |
| 24 |
% [email protected] % |
| 25 |
% http://www.cse.ohio-state.edu/~gurari % |
| 26 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 27 |
\immediate\write-1{version 2009-05-21-09:32} |
| 28 |
|
| 29 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 30 |
\def\putVBorder{\expandafter\put:VBorder\VBorder</>!*?: } |
| 31 |
\def\put:VBorder#1</#2>#3!*?: {\def\:temp{#2}\ifx\:temp\empty |
| 32 |
\HCode{\VBorder}% |
| 33 |
\def\:temp{#1}\ifx\:temp\empty \else\HCode{</colgroup>}\fi |
| 34 |
\HCode{<colgroup><col/></colgroup>}% |
| 35 |
\else \def\:temp{\put:VBorder#3!*?: }\expandafter\:temp\fi |
| 36 |
} |
| 37 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 38 |
|
| 39 |
\catcode`\!=11 |
| 40 |
\catcode`\?=11 |
| 41 |
\def\get:curName#1{% |
| 42 |
\ifx \last:Attributes\empty |
| 43 |
\let\cur:Name\empty |
| 44 |
\else |
| 45 |
\bgroup |
| 46 |
\let#1=\empty |
| 47 |
\edef\:temp{\def\noexpand\:temp{\last:Attributes}}% |
| 48 |
\expandafter |
| 49 |
\egroup\:temp |
| 50 |
\edef\:tempa{\last:Attributes}% |
| 51 |
\edef\cur:Name{\ifx\:temp\:tempa\else\:temp\fi}% |
| 52 |
\fi } |
| 53 |
\let\last:Attributes=\empty |
| 54 |
\def\verify:config#1#2{% |
| 55 |
\expandafter\ifx \csname c:#1:\endcsname\relax |
| 56 |
\expandafter\ifx \csname c:#2:\endcsname\relax |
| 57 |
\:warning{adding null \string\NewConfigure{#1}{2}}% |
| 58 |
\expandafter\def\csname c:#1:\endcsname##1##2{}% |
| 59 |
\else |
| 60 |
\:warning{adding \string\NewConfigure{#1}{2} |
| 61 |
to equal \string\Configure{#2}{...}{...}}% |
| 62 |
\edef\:temp{\noexpand\NewConfigure{#1}[2]{% |
| 63 |
\gdef\expandafter\noexpand\csname |
| 64 |
a:#1\endcsname{\expandafter |
| 65 |
\noexpand\csname a:#2\endcsname}% |
| 66 |
\gdef\expandafter\noexpand\csname |
| 67 |
b:#1\endcsname{\expandafter |
| 68 |
\noexpand\csname b:#2\endcsname}% |
| 69 |
}}\:temp |
| 70 |
\Configure{#1}{}{}% |
| 71 |
\global\expandafter\let \csname c:#1:\expandafter |
| 72 |
\endcsname \csname c:#1:\endcsname |
| 73 |
\fi |
| 74 |
\fi |
| 75 |
} |
| 76 |
\def\verify:configIII#1#2{% |
| 77 |
\expandafter\ifx \csname c:#1:\endcsname\relax |
| 78 |
\expandafter\ifx \csname c:#2:\endcsname\relax |
| 79 |
\:warning{adding null \string\NewConfigure{#1}{3}}% |
| 80 |
\expandafter\def\csname c:#1:\endcsname##1##2##3{}% |
| 81 |
\else |
| 82 |
\:warning{adding \string\NewConfigure{#1}{3} |
| 83 |
to equal \string\Configure{#2}{...}{...}{...}}% |
| 84 |
\edef\:temp{\noexpand\NewConfigure{#1}[3]{% |
| 85 |
\gdef\expandafter\noexpand\csname |
| 86 |
a:#1\endcsname{\expandafter |
| 87 |
\noexpand\csname a:#2\endcsname}% |
| 88 |
\gdef\expandafter\noexpand\csname |
| 89 |
b:#1\endcsname{\expandafter |
| 90 |
\noexpand\csname b:#2\endcsname}% |
| 91 |
\gdef\expandafter\noexpand\csname |
| 92 |
c:#1\endcsname{\expandafter |
| 93 |
\noexpand\csname c:#2\endcsname}% |
| 94 |
}}\:temp |
| 95 |
\Configure{#1}{}{}{}% |
| 96 |
\global\expandafter\let \csname c:#1:\expandafter |
| 97 |
\endcsname \csname c:#1:\endcsname |
| 98 |
\fi |
| 99 |
\fi |
| 100 |
} |
| 101 |
\def\verify:configIV#1#2{% |
| 102 |
\expandafter\ifx \csname c:#1:\endcsname\relax |
| 103 |
\expandafter\ifx \csname c:#2:\endcsname\relax |
| 104 |
\:warning{adding null \string\NewConfigure{#1}{4}}% |
| 105 |
\expandafter\def\csname c:#1:\endcsname##1##2##3##4{}% |
| 106 |
\else |
| 107 |
\:warning{adding \string\NewConfigure{#1}{4} |
| 108 |
to equal \string\Configure{#2}{...}{...}{...}{...}}% |
| 109 |
\edef\:temp{\noexpand\NewConfigure{#1}[4]{% |
| 110 |
\gdef\expandafter\noexpand\csname |
| 111 |
a:#1\endcsname{\expandafter |
| 112 |
\noexpand\csname a:#2\endcsname}% |
| 113 |
\gdef\expandafter\noexpand\csname |
| 114 |
b:#1\endcsname{\expandafter |
| 115 |
\noexpand\csname b:#2\endcsname}% |
| 116 |
\gdef\expandafter\noexpand\csname |
| 117 |
c:#1\endcsname{\expandafter |
| 118 |
\noexpand\csname c:#2\endcsname}% |
| 119 |
\gdef\expandafter\noexpand\csname |
| 120 |
d:#1\endcsname{\expandafter |
| 121 |
\noexpand\csname d:#2\endcsname}% |
| 122 |
}}\:temp |
| 123 |
\Configure{#1}{}{}{}{}% |
| 124 |
\global\expandafter\let \csname c:#1:\expandafter |
| 125 |
\endcsname \csname c:#1:\endcsname |
| 126 |
\fi |
| 127 |
\fi |
| 128 |
} |
| 129 |
|
| 130 |
\headertextcontent={} |
| 131 |
\footertextcontent={} |
| 132 |
|
| 133 |
\def\dodocomplexplacefloat[#1][#2][#3]#4% |
| 134 |
{\flushnotes |
| 135 |
\flushsidefloats |
| 136 |
\ifsomefloatwaiting |
| 137 |
\doifinsetelse\v!always{#2} |
| 138 |
{\showmessage\m!floatblocks5\empty} |
| 139 |
{\expanded{\doifcommonelse{#2}{\flushfloatslist}}\doflushfloats |
| 140 |
\donothing}% |
| 141 |
\fi |
| 142 |
\ifmargeblokken |
| 143 |
\doifinset\v!margin{#2}\endgraf |
| 144 |
\fi |
| 145 |
\global\insidefloattrue |
| 146 |
\a:placefloat |
| 147 |
\begingroup |
| 148 |
\ifmargeblokken |
| 149 |
\doifinset\v!margin{#2}{\hsize\@@mbwidth}% |
| 150 |
\fi |
| 151 |
\the\everyinsidefloat |
| 152 |
\let\@@extrafloat\empty |
| 153 |
\presetmorefloatvariables{#2}% |
| 154 |
\aftergroup \b:placefloat |
| 155 |
\dowithnextboxcontent |
| 156 |
{\setlocalfloathsize |
| 157 |
\getvalue{\??fl#1\c!inner}% |
| 158 |
\fuzzysnappingfalse |
| 159 |
\postponenotes} % new |
| 160 |
{\doifvaluesomething{\??fl#1\c!criterium} |
| 161 |
{\ifdim\wd\nextbox>\getvalue{\??fl#1\c!criterium}\relax |
| 162 |
\edef\forcedfloatmethod{\executeifdefined |
| 163 |
{\??fl#1\c!fallback}\v!here}% |
| 164 |
\fi}% |
| 165 |
\xdocompletefloat{#1}{#3}{#1}{#2}{#1}{#4}% |
| 166 |
\doifnotinset\v!text{#2}{\carryoverpar\endgroup}% |
| 167 |
\global\sidefloatdownshift \zeropoint |
| 168 |
\global\sidefloatextrashift\zeropoint |
| 169 |
\ifparfloat |
| 170 |
\doifinset\v!reset{#2}\forgetsidefloats |
| 171 |
\doinhibitblank |
| 172 |
\fi}% |
| 173 |
\vbox} |
| 174 |
\NewConfigure{placefloat}{2} |
| 175 |
|
| 176 |
\let\:doplaatskopnummertekst=\doplaatskopnummertekst |
| 177 |
\def\doplaatskopnummertekst#1#2#3#4#5{% |
| 178 |
\expandafter\ifx \csname teskt:#1\endcsname\relax |
| 179 |
\plaatskop:warning{#1}% |
| 180 |
\else |
| 181 |
\expandafter\let\expandafter\:tekstcommando |
| 182 |
\csname \??ko #1\c!tekstcommando\endcsname |
| 183 |
\expandafter\let\csname \??ko #1\c!tekstcommando |
| 184 |
\expandafter\endcsname \csname teskt:#1\endcsname |
| 185 |
\expandafter\let\expandafter\:nummercommando |
| 186 |
\csname \??ko #1\c!nummercommando\endcsname |
| 187 |
\expandafter\let\csname \??ko #1\c!nummercommando\endcsname |
| 188 |
\:gobble |
| 189 |
\ifdisplaysectionhead |
| 190 |
\def\if:displaysectionhead{\displaysectionheadtrue}% |
| 191 |
\displaysectionheadfalse |
| 192 |
\else |
| 193 |
\def\if:displaysectionhead{\displaysectionheadfalse}% |
| 194 |
\fi |
| 195 |
% |
| 196 |
\fi |
| 197 |
\:doplaatskopnummertekst{#1}{#2}{#3}{#4}{#5}% |
| 198 |
\expandafter\ifx \csname teskt:#1\endcsname\relax \else |
| 199 |
\expandafter\let\csname \??ko #1\c!tekstcommando\endcsname |
| 200 |
\:tekstcommando |
| 201 |
\expandafter\let\csname \??ko #1\c!nummercommando\endcsname |
| 202 |
\:nummercommando |
| 203 |
\if:displaysectionhead |
| 204 |
% |
| 205 |
\fi |
| 206 |
} |
| 207 |
\def\plaatskop:warning#1{\expandafter |
| 208 |
\ifx \csname warn:#1\endcsname\relax |
| 209 |
\:warning{Unconfigured `#1'}% |
| 210 |
\expandafter\let\csname warn:#1\endcsname=\def |
| 211 |
\fi } |
| 212 |
\pend:defI\beginheadplacement{% |
| 213 |
\expandafter\ifx \csname c:##1-head:\endcsname\relax |
| 214 |
\:warning{adding \string\NewConfigure{##1-head}{3} |
| 215 |
to equal \string\Configure{headplacement}{...}{...}{...}}% |
| 216 |
\NewConfigure{##1-head}{3}% |
| 217 |
\Configure{##1-head}% |
| 218 |
{\a:headplacement}{\b:headplacement}{\c:headplacement}% |
| 219 |
\fi |
| 220 |
\csname c:##1-head\endcsname} |
| 221 |
\pend:defII\endheadplacement{\csname a:##1-head\endcsname} |
| 222 |
\append:defII\endheadplacement{\csname b:#1-head\endcsname} |
| 223 |
\NewConfigure{headplacement}{3} |
| 224 |
\Configure{headplacement}{}{}{\IgnorePar} |
| 225 |
\def\:tmp#1{% |
| 226 |
\let\:tempb=#1% |
| 227 |
\Def:Section#1{\finalsectionnumber}{##1}% |
| 228 |
\expandafter\let |
| 229 |
\csname teskt:\expandafter\:gobble\string #1\endcsname=#1% |
| 230 |
\let#1=\:tempb } |
| 231 |
\def\:tempd#1{% |
| 232 |
\NewConfigure{#1-ko}{2} |
| 233 |
\NewConfigure{#1-head}{3} |
| 234 |
\Configure{#1-head} |
| 235 |
{} |
| 236 |
{\csname teskt:#1\endcsname{\text:headplacement}} |
| 237 |
{% |
| 238 |
\Configure{#1-ko}{}{}% |
| 239 |
\expandafter\def\csname \??ko #1\c!numbercommand |
| 240 |
\endcsname{\gdef\deepnummber:headplacement}% |
| 241 |
\expandafter\def\csname \??ko #1\c!deeptextcommand |
| 242 |
\endcsname{\gdef\text:headplacement}% |
| 243 |
\IgnorePar |
| 244 |
} |
| 245 |
% |
| 246 |
\edef\:temp{#1}% |
| 247 |
\expandafter\:tmp\csname \:temp\endcsname |
| 248 |
} |
| 249 |
\:tempd{\v!chapter |
| 250 |
} |
| 251 |
\:tempd{\v!section |
| 252 |
} |
| 253 |
\:tempd{\v!subsection |
| 254 |
} |
| 255 |
\:tempd{\v!subsubsection |
| 256 |
} |
| 257 |
\:tempd{\v!subsubsubsection |
| 258 |
} |
| 259 |
\:tempd{\v!subsubsubsubsection |
| 260 |
} |
| 261 |
|
| 262 |
\expand:after{\let\o:normalend}\csname normalend\endcsname |
| 263 |
\expandafter\def\csname normalend\endcsname{\HtmlEnv |
| 264 |
\at:docend |
| 265 |
\csname export:hook\endcsname \csname o:normalend\endcsname} |
| 266 |
|
| 267 |
|
| 268 |
\NewConfigure{sectie}{2} |
| 269 |
\NewConfigure{layout}{2} |
| 270 |
\NewConfigure{context-attr}{2} |
| 271 |
\NewConfigure{startstop}{2} |
| 272 |
|
| 273 |
\append:def\crlf{\ifhmode \a:crlf\fi} |
| 274 |
\NewConfigure{crlf}{1} |
| 275 |
\def\:tempc[#1]{% |
| 276 |
\o:complexstartsmaller:[#1]% |
| 277 |
\a:narrower\bgroup\aftergroup\b:narrower\aftergroup\egroup} |
| 278 |
\HLet\complexstartsmaller\:tempc |
| 279 |
\NewConfigure{narrower}{2} |
| 280 |
\def\:tempc#1#2{% |
| 281 |
\o:doalignline:{\ifx #1\hss |
| 282 |
\ifx #2\hss\a:midaligned |
| 283 |
\else \a:rightaligned |
| 284 |
\fi |
| 285 |
\else \a:leftaligned |
| 286 |
\fi |
| 287 |
}{\ifx #1\hss |
| 288 |
\ifx #2\hss\b:midaligned |
| 289 |
\else \b:rightaligned |
| 290 |
\fi |
| 291 |
\else \b:leftaligned |
| 292 |
\fi |
| 293 |
\hss |
| 294 |
}} |
| 295 |
\HLet\doalignline\:tempc |
| 296 |
\NewConfigure{midaligned}{2} |
| 297 |
\NewConfigure{leftaligned}{2} |
| 298 |
\NewConfigure{rightaligned}{2} |
| 299 |
\def\:tempc#1{% |
| 300 |
\def\last:Attributes{#1}% |
| 301 |
\ifx \last:Attributes\empty |
| 302 |
\else |
| 303 |
\get:curName\??be \ifx \cur:Name\empty |
| 304 |
\get:curName\??li \ifx \cur:Name\empty |
| 305 |
\get:curName\??ly \ifx \cur:Name\empty |
| 306 |
\get:curName\??ko \ifx \cur:Name\empty |
| 307 |
\edef\cur:Name{\cur:Name -\last:Attributes}% |
| 308 |
\verify:config\cur:Name{context-attr}% |
| 309 |
\csname a:\cur:Name\endcsname |
| 310 |
\def\:tempc{\o:@@nostopattributes: \csname b:\cur:Name\endcsname}% |
| 311 |
\HLet\@@nostopattributes\:tempc |
| 312 |
\def\:tempc{\o:@@dostopattributes: \csname b:\cur:Name\endcsname}% |
| 313 |
\HLet\@@dostopattributes\:tempc |
| 314 |
% |
| 315 |
\else |
| 316 |
\edef\cur:Name{\cur:Name -ko}% |
| 317 |
\verify:config\cur:Name{sectie}% |
| 318 |
\csname a:\cur:Name\endcsname |
| 319 |
\def\:tempc{\o:@@nostopattributes: \csname b:\cur:Name\endcsname}% |
| 320 |
\HLet\@@nostopattributes\:tempc |
| 321 |
\def\:tempc{\o:@@dostopattributes: \csname b:\cur:Name\endcsname}% |
| 322 |
\HLet\@@dostopattributes\:tempc |
| 323 |
% |
| 324 |
\fi |
| 325 |
\else |
| 326 |
\edef\cur:Name{\cur:Name -ly}% |
| 327 |
\verify:config\cur:Name{layout}% |
| 328 |
\csname a:\cur:Name\endcsname |
| 329 |
\def\:tempc{\o:@@nostopattributes: \csname b:\cur:Name\endcsname}% |
| 330 |
\HLet\@@nostopattributes\:tempc |
| 331 |
\def\:tempc{\o:@@dostopattributes: \csname b:\cur:Name\endcsname}% |
| 332 |
\HLet\@@dostopattributes\:tempc |
| 333 |
% |
| 334 |
\fi |
| 335 |
\else |
| 336 |
\edef\cur:Name{\cur:Name -li}% |
| 337 |
\verify:config\cur:Name{listelement}% |
| 338 |
\csname a:\cur:Name\endcsname |
| 339 |
\def\:tempc{\o:@@nostopattributes: \csname b:\cur:Name\endcsname}% |
| 340 |
\HLet\@@nostopattributes\:tempc |
| 341 |
\def\:tempc{\o:@@dostopattributes: \csname b:\cur:Name\endcsname}% |
| 342 |
\HLet\@@dostopattributes\:tempc |
| 343 |
% |
| 344 |
\fi |
| 345 |
\else |
| 346 |
\verify:config\cur:Name{startstop}% |
| 347 |
\csname a:\cur:Name\endcsname |
| 348 |
\def\:tempc{\o:@@nostopattributes: \csname b:\cur:Name\endcsname}% |
| 349 |
\HLet\@@nostopattributes\:tempc |
| 350 |
\def\:tempc{\o:@@dostopattributes: \csname b:\cur:Name\endcsname}% |
| 351 |
\HLet\@@dostopattributes\:tempc |
| 352 |
% |
| 353 |
\fi |
| 354 |
% |
| 355 |
\let\last:Attributes=\empty |
| 356 |
\fi |
| 357 |
\o:dostartattributes:{#1} |
| 358 |
} |
| 359 |
\HLet\dostartattributes\:tempc |
| 360 |
\def\:tempc[#1]{% |
| 361 |
\o:dostartopelkaar:[#1]% |
| 362 |
\verify:config{\currentregister-env}{null-default-env}% |
| 363 |
\csname a:\currentregister-env\endcsname |
| 364 |
} |
| 365 |
\HLet\dostartopelkaar\:tempc |
| 366 |
%%%%%% pre 2005 |
| 367 |
\ifx \stopopelkaar\:UnDef \else |
| 368 |
\pend:def\stopopelkaar{% |
| 369 |
\csname b:\currentregister-env\endcsname |
| 370 |
} |
| 371 |
\fi |
| 372 |
|
| 373 |
\let\:doplaatssamengesteldelijst\doplaatssamengesteldelijst |
| 374 |
\def\doplaatssamengesteldelijst[#1][#2]{% |
| 375 |
\ifx #1\v!inhoud |
| 376 |
\expand:after{\TableOfContents[part,chapter,section,subsection,subsubsection,% |
| 377 |
subsubsubsection,subsubsubsubsection% |
| 378 |
]}% |
| 379 |
\else |
| 380 |
\expand:after{\:doplaatssamengesteldelijst[#1][#2]}% |
| 381 |
\fi |
| 382 |
} |
| 383 |
\NewConfigure{placecontent}[5]{% |
| 384 |
\def\a:tableofcontents{#1}% |
| 385 |
\def\b:tableofcontents{#2}% |
| 386 |
\def\c:tableofcontents{#3}% |
| 387 |
\def\d:tableofcontents{#4}% |
| 388 |
\def\e:tableofcontents{#5}} |
| 389 |
\Configure{placecontent}{}{}{}{}{} |
| 390 |
\def\dovolledigesamengesteldelijst[#1][#2]{% |
| 391 |
\expandafter\ifx |
| 392 |
\csname a:\expandafter\:gobble\string#1:head\endcsname |
| 393 |
\relax |
| 394 |
\expandafter\let |
| 395 |
\csname a:\expandafter\:gobble\string#1:head\endcsname |
| 396 |
\empty |
| 397 |
\:warning{No configuration for |
| 398 |
`#1' (\expandafter\:gobble\string#1) head}% |
| 399 |
\fi |
| 400 |
\csname a:\expandafter\:gobble\string#1:head\endcsname |
| 401 |
\expanded{\systemsuppliedtitle[#1]{\noexpand\headtext{#1}}}% |
| 402 |
\csname b:\expandafter\:gobble\string#1:head\endcsname |
| 403 |
\doplaatssamengesteldelijst[#1][#2]} |
| 404 |
\NewConfigure{contenthead}[2]{% |
| 405 |
\def\a:v!inhoud:head{#1}\def\b:v!inhoud:head{#2}} |
| 406 |
\Configure{contenthead}{}{} |
| 407 |
\NewConfigure{listelement}{2} |
| 408 |
\pend:def\dobeginoflist{\a:dolist} |
| 409 |
\append:def\doendoflist{\b:dolist} |
| 410 |
\NewConfigure{dolist}{2} |
| 411 |
|
| 412 |
\def\:tempc[#1][#2]{\o:redostartitemgroup:[#1][#2]% |
| 413 |
\verify:config{\currentitemgroup-group}{itemgroup}% |
| 414 |
\csname a:\currentitemgroup-group\endcsname} |
| 415 |
\HLet\redostartitemgroup=\:tempc |
| 416 |
\pend:def\stopitemgroup{% |
| 417 |
\csname b:\currentitemgroup-group\endcsname} |
| 418 |
\NewConfigure{itemgroup}{2} |
| 419 |
\pend:def\dolistitem{\HLet\noindent\item:noindent} |
| 420 |
\append:def\dolistitem{% |
| 421 |
\csname b:\currentitemgroup -\ifconditional\headlistitem |
| 422 |
\ifconditional\symbollistitem |
| 423 |
symbol% |
| 424 |
\else |
| 425 |
head% |
| 426 |
\fi |
| 427 |
\else |
| 428 |
\ifconditional\symbollistitem |
| 429 |
symbol% |
| 430 |
\else |
| 431 |
other% |
| 432 |
\fi |
| 433 |
\fi |
| 434 |
% |
| 435 |
-item\endcsname} |
| 436 |
\def\item:noindent#1\strutdepth{#1\strutdepth |
| 437 |
\let\noindent\o:noindent: |
| 438 |
\verify:config{\currentitemgroup -\ifconditional\headlistitem |
| 439 |
\ifconditional\symbollistitem |
| 440 |
symbol% |
| 441 |
\else |
| 442 |
head% |
| 443 |
\fi |
| 444 |
\else |
| 445 |
\ifconditional\symbollistitem |
| 446 |
symbol% |
| 447 |
\else |
| 448 |
other% |
| 449 |
\fi |
| 450 |
\fi |
| 451 |
% |
| 452 |
-item}% |
| 453 |
{\ifconditional\headlistitem |
| 454 |
\ifconditional\symbollistitem |
| 455 |
symbol% |
| 456 |
\else |
| 457 |
head% |
| 458 |
\fi |
| 459 |
\else |
| 460 |
\ifconditional\symbollistitem |
| 461 |
symbol% |
| 462 |
\else |
| 463 |
other% |
| 464 |
\fi |
| 465 |
\fi |
| 466 |
-listitem}% |
| 467 |
\csname a:\currentitemgroup -\ifconditional\headlistitem |
| 468 |
\ifconditional\symbollistitem |
| 469 |
symbol% |
| 470 |
\else |
| 471 |
head% |
| 472 |
\fi |
| 473 |
\else |
| 474 |
\ifconditional\symbollistitem |
| 475 |
symbol% |
| 476 |
\else |
| 477 |
other% |
| 478 |
\fi |
| 479 |
\fi |
| 480 |
% |
| 481 |
-item\endcsname}% |
| 482 |
\NewConfigure{head-listitem}{2} |
| 483 |
\NewConfigure{symbol-listitem}{2} |
| 484 |
\NewConfigure{other-listitem}{2} |
| 485 |
\NewConfigure{itemize-group}{2} |
| 486 |
\NewConfigure{itemize-other-item}{2} |
| 487 |
|
| 488 |
\def\normal@@definitiewoord#1[#2]#3#4{% |
| 489 |
\verify:config{#1-des}{description-word}% |
| 490 |
\csname a:#1-des\endcsname \doattributes |
| 491 |
{\??dd#1}\c!kopletter\c!kopkleur |
| 492 |
{\getvalue{\??dd#1\c!commando}{#4}}% |
| 493 |
\csname b:#1-des\endcsname \rawreference\s!def{#2}{#3}} |
| 494 |
\NewConfigure{description-word}{2} |
| 495 |
\def\@@somedefinitie#1[#2]#3{% |
| 496 |
\dowithpar |
| 497 |
{\bgroup |
| 498 |
\verify:configIII{#1-item}{description-item}% |
| 499 |
\csname a:#1-item\endcsname |
| 500 |
\executedoordefinitie{#1}[#2]{#3}\csname |
| 501 |
b:#1-item\endcsname }% |
| 502 |
{\csname c:#1-item\endcsname \@@stopdefinitie{#1}}} |
| 503 |
\def\@@startsomedefinitie#1[#2]#3{% |
| 504 |
\bgroup |
| 505 |
\verify:configIII{#1-item}{description-item}% |
| 506 |
\csname a:#1-item\endcsname |
| 507 |
\BeforePar{% |
| 508 |
\executedoordefinitie{#1}[#2]{#3}\csname |
| 509 |
b:#1-item\endcsname}\bgroup |
| 510 |
\expandafter\aftergroup |
| 511 |
\csname c:#1-item\endcsname\aftergroup\egroup |
| 512 |
\GotoPar} |
| 513 |
\NewConfigure{description-item}{3} |
| 514 |
|
| 515 |
\pend:defI\dostarttyping{\a:typing} |
| 516 |
\append:defI\initializetyping{% |
| 517 |
\aftergroup\b:typing |
| 518 |
\def\obeyedspace {\d:typing}% |
| 519 |
\def\obeyedline{}% |
| 520 |
\Configure{HtmlPar}{\c:typing}{\c:typing}{}{}% |
| 521 |
} |
| 522 |
\NewConfigure{typing}{4} |
| 523 |
\let\o:dodotypefile:=\dodotypefile |
| 524 |
\def\dodotypefile{\a:typing \o:dodotypefile:} |
| 525 |
|
| 526 |
\def\:tempc[#1]{% |
| 527 |
\expandafter\ifx \csname c:#1:\endcsname\relax |
| 528 |
\:warning{adding \string\NewConfigure{#1}{2} initialized to |
| 529 |
\string\Configure{plaatsblok}}% |
| 530 |
\NewConfigure{#1}{2} |
| 531 |
\global\expandafter\let\csname c:#1:\expandafter\endcsname |
| 532 |
\csname c:#1:\endcsname |
| 533 |
\expandafter\gdef\csname a:#1\endcsname{\a:plaatsblok}% |
| 534 |
\expandafter\gdef\csname b:#1\endcsname{\b:plaatsblok}% |
| 535 |
% |
| 536 |
\fi |
| 537 |
\csname a:#1\endcsname |
| 538 |
\expandafter\tmp:toks\expandafter{\the\everyinsidefloat}% |
| 539 |
\def\restore:every{\expandafter\everyinsidefloat |
| 540 |
\expandafter{\the\tmp:toks}}% |
| 541 |
% |
| 542 |
\expandafter\everyinsidefloat\expandafter{% |
| 543 |
\the\everyinsidefloat |
| 544 |
\restore:every \aftergroup\restore:every |
| 545 |
\expandafter \aftergroup\csname b:#1\endcsname |
| 546 |
\everyvbox{\everyvbox{}\bgroup \aftergroup\EndP\aftergroup\egroup}% |
| 547 |
\def\:tempc##1##2{% |
| 548 |
\let\dowithnextboxcontent\o:dowithnextboxcontent: |
| 549 |
\dowithnextboxcontent{##1}{\everyvbox{}##2}% |
| 550 |
}% |
| 551 |
\HLet\dowithnextboxcontent\:tempc |
| 552 |
% |
| 553 |
}% |
| 554 |
\o:dodocomplexplaatsblok:[#1]} |
| 555 |
\HLet\dodocomplexplaatsblok=\:tempc |
| 556 |
\NewConfigure{plaatsblok}{2} |
| 557 |
\def\:tempc#1#2#3#4{% |
| 558 |
\ifvmode \IgnorePar\fi |
| 559 |
\o:putcompletecaption:{#1}% |
| 560 |
{\a:caption#2\b:caption}% |
| 561 |
{\c:caption#3\d:caption}{#4}} |
| 562 |
\HLet\putcompletecaption\:tempc |
| 563 |
\NewConfigure{caption}{4} |
| 564 |
|
| 565 |
\def\dodoplaceexternalfigure[#1][#2][#3][#4][#5][#6]{% |
| 566 |
\doifsomething{#3}% |
| 567 |
{\bgroup |
| 568 |
\def\textunderscore{_}% brrr, temp hack |
| 569 |
\calculateexternalfigure[#1][#2][#3][#4][#5][#6]% |
| 570 |
\calculateexternalscreenfigure[#1][#2][#3][#4][#5][#6]% |
| 571 |
\a:externalfigure{#3}% |
| 572 |
\egroup}} |
| 573 |
\NewConfigure{externalfigure}{1} |
| 574 |
\NewConfigure{figure-li}[4]{% |
| 575 |
\expandafter\def\csname a:figure-li\endcsname{% |
| 576 |
#1% |
| 577 |
\def\:tempc####1####2{#2\o:limitatedlistentry:{####1}{####2}#3}% |
| 578 |
\HLet\limitatedlistentry\:tempc |
| 579 |
}% |
| 580 |
\expandafter\def\csname b:figure-li\endcsname{#4}% |
| 581 |
} |
| 582 |
\Configure{figure-li}{}{}{}{} |
| 583 |
\NewConfigure{title-ko}{2} |
| 584 |
\NewConfigure{-@@kjfigure}{2} |
| 585 |
|
| 586 |
\def\:tempc#1#2#3{\relax\mathematics{{\a:frac{#1{#2}}\b:frac |
| 587 |
\over\c:frac{#1{#3}}\d:frac}}} |
| 588 |
\HLet\dofrac\:tempc |
| 589 |
\NewConfigure{frac}{4} |
| 590 |
\let\normalreqno\eqno |
| 591 |
\let\normalleqno\leqno |
| 592 |
\def\:tempc#1#2#3#4{% |
| 593 |
\a:formulenummer |
| 594 |
\o:dododoformulenummer:{#1}{#2}{#3}{#4}% |
| 595 |
\b:formulenummer} |
| 596 |
\HLet\dododoformulenummer\:tempc |
| 597 |
|
| 598 |
\NewConfigure{formulenummer}{2} |
| 599 |
\Configure{formulenummer} |
| 600 |
{\HCode{<span class="formulenummer">}} |
| 601 |
{\HCode{</span>}} |
| 602 |
\Css{.formulenummer {width:20\%; float:right;}} |
| 603 |
\pend:def\startdisplaymath{\a:displaymath} |
| 604 |
\append:def\stopdisplaymath{\b:displaymath} |
| 605 |
\NewConfigure{displaymath}{2} |
| 606 |
\Configure{displaymath} |
| 607 |
{\ifvmode \IgnorePar\fi \EndP \HCode{<div class="displaymath">}} |
| 608 |
{\ifvmode \IgnorePar\fi \EndP \HCode{</div>}} |
| 609 |
\Css{div.displaymath {text-align:center;}} |
| 610 |
\NewConfigure{-@@fm}{2} |
| 611 |
\def\:tempc#1% |
| 612 |
{\ifmmode |
| 613 |
\displ@y |
| 614 |
\global\chardef\mathnumberstatus\plusone |
| 615 |
% |
| 616 |
\vcenter\bgroup |
| 617 |
\def\finishalignno{\f:mtable\d:mtable\b:mtable\crcr |
| 618 |
\egroup\egroup}% |
| 619 |
\else |
| 620 |
\def\finishalignno{\f:mtable\d:mtable\b:mtable\crcr |
| 621 |
\egroup}% |
| 622 |
\fi |
| 623 |
#1% |
| 624 |
\TeXhalign \@EA \bgroup \the\scratchtoks\crcr} |
| 625 |
\HLet\dobothaligneqalignno\:tempc |
| 626 |
\let\:tempc\dointertext |
| 627 |
\pend:defI\:tempc{\a:intertext} |
| 628 |
\append:defI\:tempc{\b:intertext} |
| 629 |
\HLet\dointertext\:tempc |
| 630 |
\NewConfigure{intertext}{2} |
| 631 |
\def\:tempc[#1][#2]% |
| 632 |
{% |
| 633 |
\expandafter\ifx \csname a:#1\endcsname\relax |
| 634 |
\Configure{mtable} |
| 635 |
{\a:mathalignment} |
| 636 |
{\b:mathalignment} |
| 637 |
{\c:mathalignment} |
| 638 |
{\d:mathalignment} |
| 639 |
{\e:mathalignment} |
| 640 |
{\f:mathalignment}% |
| 641 |
\else |
| 642 |
\Configure{mtable} |
| 643 |
{\csname a:#1\endcsname} |
| 644 |
{\csname b:#1\endcsname} |
| 645 |
{\csname c:#1\endcsname} |
| 646 |
{\csname d:#1\endcsname} |
| 647 |
{\csname e:#1\endcsname} |
| 648 |
{\csname f:#1\endcsname}% |
| 649 |
\fi |
| 650 |
\pushmacro\doalignNC |
| 651 |
\edef\currentmathalignment{#1}% |
| 652 |
\doifassignmentelse{#2}{\setupmathalignment[#1][#2]}\donothing |
| 653 |
\def\NC{\doalignNC }% |
| 654 |
\global\let\doalignNC\dodoalignNC |
| 655 |
\def\EQ{\HCode{<!--??? 1-->}&=}% |
| 656 |
\def\NR{\f:mtable&\e:mtable \global\let\doalignNC \dodoalignNC |
| 657 |
\doxxdoubleempty\doalignNR}% |
| 658 |
% |
| 659 |
\def\notag{\def\\{\HCode{<!--??? 2-->}&\crcr}}% |
| 660 |
\doifelse{#2}{*}{\def\\{\HCode{<!--??? 3-->}&\crcr}}% |
| 661 |
{\def\\{\HCode{<!--??? 4-->}&\doalignNR[+][]\crcr}}% |
| 662 |
% |
| 663 |
\eqaligncolumn\zerocount |
| 664 |
\a:mtable \c:mtable \e:mtable |
| 665 |
\processcommacommand |
| 666 |
[\mathalignmentparameter\c!align] |
| 667 |
{\advance\eqaligncolumn\plusone\doseteqaligncolumn}% takes argument |
| 668 |
% |
| 669 |
\global\eqaligncolumn\plusone |
| 670 |
\numberedeqalign} |
| 671 |
\HLet\dostartmathalignment\:tempc |
| 672 |
\def\:tempc{\gdef\doalignNC##1{\f:mtable&\e:mtable ##1}} |
| 673 |
\HLet\dodoalignNC\:tempc |
| 674 |
\def\:tempc[#1][#2]% |
| 675 |
{\donestedformulanumber{#1}{#2}\f:mtable\d:mtable |
| 676 |
\c:mtable\e:mtable\crcr} |
| 677 |
\HLet\doalignNR\:tempc |
| 678 |
\NewConfigure{mtable}{6} |
| 679 |
\NewConfigure{mathalignment}{6} |
| 680 |
|
| 681 |
\gdef\cc:table{\c:table} |
| 682 |
|
| 683 |
\NewConfigure{tableCell}{5} |
| 684 |
\def\showbaselines |
| 685 |
{\testrulewidth\defaulttestrulewidth |
| 686 |
\EveryPar{\HtmlPar\ruledbaseline}} |
| 687 |
|
| 688 |
\NewConfigure{table}{6} |
| 689 |
\def\:tempc{% |
| 690 |
\ifnum \!taColumnNumber>0 |
| 691 |
\expandafter\!taDataColumnTemplate\expandafter |
| 692 |
{\expandafter\a:tableCell |
| 693 |
\the\!taDataColumnTemplate\x:tableCell}% |
| 694 |
\expandafter\let\expandafter\:temp |
| 695 |
\csname preamble-\the\!taColumnNumber\endcsname |
| 696 |
\expandafter\expandafter\expandafter\!taDataColumnTemplate |
| 697 |
\expandafter\expandafter\expandafter |
| 698 |
{\expandafter\:temp |
| 699 |
\the\!taDataColumnTemplate\x:tableCell}% |
| 700 |
\expandafter\let\csname preamble-\the\!taColumnNumber\endcsname\:UnDef |
| 701 |
\fi |
| 702 |
\o:!tfAdjoinPriorColumn: |
| 703 |
} |
| 704 |
\HLet\!tfAdjoinPriorColumn=\:tempc |
| 705 |
|
| 706 |
\def\!ttDoHalign |
| 707 |
{\baselineskip \zeropoint |
| 708 |
\lineskiplimit\zeropoint |
| 709 |
\lineskip \zeropoint |
| 710 |
\tabskip \zeropoint |
| 711 |
\HRestore\noalign |
| 712 |
\a:table |
| 713 |
\TeXhalign \the\!taTableSpread \bgroup |
| 714 |
\span\the\!taPreamble } |
| 715 |
|
| 716 |
\def\finishTABLE |
| 717 |
{\chuckTABLEautorow |
| 718 |
\unskip\dd:table\crcr |
| 719 |
\egroup \b:table \expandafter\:gobble |
| 720 |
\EndTable |
| 721 |
\global\intablefalse |
| 722 |
\egroup} |
| 723 |
|
| 724 |
\def\finishTABLErow |
| 725 |
{\dd:table\crcr |
| 726 |
\TABLEnoalign |
| 727 |
{\nobreak |
| 728 |
\setTABLEaction\TABLEunknown |
| 729 |
\setTABLEerror\TABLEunknown |
| 730 |
\globalletempty\checkTABLEautorow |
| 731 |
\globalletempty\chuckTABLEautorow |
| 732 |
\global\currentTABLEcolumn\zerocount}} |
| 733 |
|
| 734 |
|
| 735 |
\def\endofTABLEline[#1][#2->#3]#4#5% |
| 736 |
{\ifx#2#3\else |
| 737 |
\writestatus\m!TABLE{\string#2\space changed into \string#3}% |
| 738 |
\fi |
| 739 |
\iftracetables |
| 740 |
\bgroup |
| 741 |
\tttf\space |
| 742 |
\ifnum\TABLEerror=\TABLEunknown |
| 743 |
\ifx#2#3\else\string#2->\fi |
| 744 |
\else |
| 745 |
->% |
| 746 |
\fi |
| 747 |
\color[#1]{\string#3}% |
| 748 |
\ifsplittables\space\the\TABLEmaxheight/\the\TABLEheight\fi |
| 749 |
\ifx\TABLEgraylineerror\empty |
| 750 |
\space\TABLEgraylinestatus |
| 751 |
\else |
| 752 |
\space\TABLEgraylineerror |
| 753 |
\fi |
| 754 |
\egroup |
| 755 |
\else\ifx\TABLEgraylineerror\empty \else \fi\fi |
| 756 |
\globalletempty\TABLEgraylinestatus |
| 757 |
\globalletempty\TABLEgraylineerror |
| 758 |
\expandafter\normalTABLElineformat#4#5\dd:table\crcr |
| 759 |
\TABLEnoalign{\nobreak\global\setTABLEactiontrue}} |
| 760 |
|
| 761 |
|
| 762 |
|
| 763 |
\def\!ttDoZero#1{\dd:table\cr} |
| 764 |
|
| 765 |
\def\!ttDoPlus#1#2#3{% #1 eats the + |
| 766 |
\AugmentedTableStrut{#2}{#3}% |
| 767 |
\dd:table\cr} |
| 768 |
|
| 769 |
% DO STANDARD: Insert standard table strut |
| 770 |
\def\!ttDoStandard{% |
| 771 |
\StandardTableStrut |
| 772 |
\dd:table\cr} |
| 773 |
|
| 774 |
|
| 775 |
\def\!tfFinishFormat{% |
| 776 |
\ifnum \TracingFormats>0 |
| 777 |
\!thMessage{% |
| 778 |
\space \space r: \the\!taOldRuleColumnTemplate |
| 779 |
\tabskip \the\RightTabskip}% |
| 780 |
\!thMessage{% |
| 781 |
\space *c: ##\tabskip 0pt} |
| 782 |
\fi |
| 783 |
\ifnum \!taColumnNumber<2 |
| 784 |
\!thError{% |
| 785 |
\ifnum \!taColumnNumber=0 |
| 786 |
No |
| 787 |
\else |
| 788 |
Only 1 |
| 789 |
\fi |
| 790 |
"|"}% |
| 791 |
{\!thReadErrorMsg\!tfTooFewBarsA |
| 792 |
^^J\!thReadErrorMsg\!tfTooFewBarsB |
| 793 |
^^J\!thReadErrorMsg\!tkFixIt}% |
| 794 |
\fi |
| 795 |
\!thToksEdef\!taPreamble={% |
| 796 |
\noexpand\cc:table \noexpand |
| 797 |
\b:tableCell ####\noexpand\x:tableCell\tabskip\LeftTabskip |
| 798 |
& |
| 799 |
\the\!taPreamble \tabskip\RightTabskip |
| 800 |
& |
| 801 |
\noexpand\c:tableCell ####\noexpand\x:tableCell |
| 802 |
\tabskip 0pt \noexpand\cr}% |
| 803 |
\ifnum \TracingFormats>1 |
| 804 |
\!thMessage{Preamble=\the\!taPreamble} |
| 805 |
\fi |
| 806 |
\ifnum \TracingFormats>2 |
| 807 |
\!thMessage{Row Of Widths="\!tfRowOfWidths"} |
| 808 |
\fi |
| 809 |
\!taBeginFormatfalse % Intercepts "|", tabskips, and "." |
| 810 |
\catcode`\|=13 |
| 811 |
\catcode`\"=13 |
| 812 |
\!ttDoHalign} |
| 813 |
|
| 814 |
|
| 815 |
|
| 816 |
|
| 817 |
\def\!tfSetVrule |
| 818 |
{\!thToksEdef\!taRuleColumnTemplate= |
| 819 |
{\noexpand\d:tableCell |
| 820 |
\noexpand\hfil |
| 821 |
\noexpand\startglobalTABLEcolor % added |
| 822 |
\noexpand\vrule |
| 823 |
\noexpand\!thWidth |
| 824 |
\ifnum\!tgCode=\plusone |
| 825 |
\ifx\!tgValue\empty |
| 826 |
\the\LineThicknessFactor |
| 827 |
\else |
| 828 |
\!tgValue |
| 829 |
\fi |
| 830 |
\!taLTU |
| 831 |
\else |
| 832 |
\!tgValue |
| 833 |
\fi |
| 834 |
####% |
| 835 |
\noexpand\hfil |
| 836 |
\noexpand\stopglobalTABLEcolor % added |
| 837 |
\the\!taRuleColumnTemplate |
| 838 |
\relax \noexpand\x:tableCell |
| 839 |
}% |
| 840 |
\!tfAdjoinPriorColumn} |
| 841 |
|
| 842 |
|
| 843 |
\NewConfigure{VBorder}{4} |
| 844 |
|
| 845 |
\HAssign\NewGroup=0 |
| 846 |
\HAssign\Next:TableNo=0 |
| 847 |
\HAssign\ar:cnt=0 |
| 848 |
|
| 849 |
|
| 850 |
\let\:mALIGN\empty \let\hT:D\empty |
| 851 |
|
| 852 |
\pend:defI\ReadFormatKeys{% |
| 853 |
\expandafter\ifx\csname preamble-\the\!taColumnNumber\endcsname\relax |
| 854 |
\expandafter\def\csname preamble-\the\!taColumnNumber\endcsname{% |
| 855 |
\let\:mALIGN\empty \def\hT:D{\csname \string ##1:T:D\endcsname}}% |
| 856 |
\fi |
| 857 |
\:FormatKey |
| 858 |
} |
| 859 |
|
| 860 |
\let\:FormatKey=\empty |
| 861 |
\NewConfigure{FormatKey}[2]{% |
| 862 |
\def\:temp{#1#2}\ifx \:temp\empty \let\:FormatKey=\empty |
| 863 |
\else |
| 864 |
\append:def\:FormatKey{\def\:tempa{#1}\ifx \:temp\:tempa |
| 865 |
#2% |
| 866 |
\fi }% |
| 867 |
\fi |
| 868 |
} |
| 869 |
|
| 870 |
\Configure{FormatKey}{l}{\add:ar<} |
| 871 |
\Configure{FormatKey}{r}{\add:ar>} |
| 872 |
\Configure{FormatKey}{c}{\add:ar-} |
| 873 |
\Configure{FormatKey}{p}{\d:VBorder} |
| 874 |
\Configure{FormatKey}{|}{\b:VBorder} |
| 875 |
\pend:def\BeginFormat{\add:ar-} |
| 876 |
|
| 877 |
\let\HAlign=\empty |
| 878 |
\def\add:ar#1{\HAdvance\ar:cnt by 1 |
| 879 |
\def\ch:class{#1}% |
| 880 |
\c:VBorder |
| 881 |
\edef\HAlign{\HAlign 0 \ar:cnt\space #1 }} |
| 882 |
|
| 883 |
\def\!ttDoZero#1{\dd:table\cr} |
| 884 |
\def\!ttDoPlus#1#2#3{% |
| 885 |
\AugmentedTableStrut{#2}{#3}% |
| 886 |
\dd:table \cr} |
| 887 |
\def\!ttDoStandard{% |
| 888 |
\StandardTableStrut |
| 889 |
\dd:table \cr} |
| 890 |
|
| 891 |
\def\normalTABLElongrule{\a:TABLElongrule} |
| 892 |
\NewConfigure{TABLElongrule}{1} |
| 893 |
|
| 894 |
\def\simpleTableHL{\a:TableHL} |
| 895 |
\NewConfigure{TableHL}{1} |
| 896 |
|
| 897 |
\expandafter\def\csname \e!start\v!tabulate\endcsname{% |
| 898 |
\csname a:\v!tabulate\endcsname \bgroup |
| 899 |
\expandafter\aftergroup\csname b:\v!tabulate\endcsname |
| 900 |
\HRestore\noalign \let\halign\TeXhalign |
| 901 |
\dodoubleempty\donormalstarttabulate} |
| 902 |
\NewConfigure{\v!tabulate}{2} |
| 903 |
\catcode`\|=13 |
| 904 |
\def\nexttabulate#1|% |
| 905 |
{\chardef\tabulatealign\@@tabulatealign |
| 906 |
\chardef\tabulatemodus\zerocount |
| 907 |
\chardef\tabulatedimen\zerocount |
| 908 |
\tabulatebefore \emptytoks |
| 909 |
\tabulateafter \emptytoks |
| 910 |
\tabulatebmath \emptytoks |
| 911 |
\tabulateemath \emptytoks |
| 912 |
\tabulatefont \emptytoks |
| 913 |
\tabulatesettings\emptytoks |
| 914 |
\global\advance\tabulatecolumns\plusone |
| 915 |
\letvalue{\@@tabsetups@@\the\tabulatecolumns}\donothing |
| 916 |
\settabulatepreamble#1\relax\relax % permits i without n |
| 917 |
\ifcase\tabulatemodus\relax |
| 918 |
\ifcase\tabulatealign\relax |
| 919 |
\dodosettabulatepreamble{{<}\empty} |
| 920 |
{\tabulate:endcol\tabulatehss} \or |
| 921 |
\dodosettabulatepreamble{{<}\empty} |
| 922 |
{\tabulate:endcol\tabulatehss} \or |
| 923 |
\dodosettabulatepreamble{{>}\tabulatehss} |
| 924 |
{\tabulate:endcol\empty} \or |
| 925 |
\dodosettabulatepreamble{{-}\tabulatehss} |
| 926 |
{\tabulate:endcol\tabulatehss} \fi |
| 927 |
\or % fixed width |
| 928 |
\ifcase\tabulatealign\relax |
| 929 |
\dodosettabulatepreamble{{-}\bskip} |
| 930 |
{\tabulate:endcol\eskip} \or |
| 931 |
\dodosettabulatepreamble{{<}\bskip\tabulateraggedright } |
| 932 |
{\tabulate:endcol\eskip} \or |
| 933 |
\dodosettabulatepreamble{{>}\bskip\tabulateraggedleft } |
| 934 |
{\tabulate:endcol\eskip} \or |
| 935 |
\dodosettabulatepreamble{{-}\bskip\tabulateraggedcenter} |
| 936 |
{\tabulate:endcol\eskip} \fi |
| 937 |
\or % auto width |
| 938 |
\global\advance\nofautotabulate\plusone |
| 939 |
\ifcase\tabulatealign\relax |
| 940 |
\dodosettabulatepreamble{{-}\bskip} |
| 941 |
{\tabulate:endcol\eskip} \or |
| 942 |
\dodosettabulatepreamble{{<}\bskip\tabulateraggedright } |
| 943 |
{\tabulate:endcol\eskip} \or |
| 944 |
\dodosettabulatepreamble{{>}\bskip\tabulateraggedleft } |
| 945 |
{\tabulate:endcol\eskip} \or |
| 946 |
\dodosettabulatepreamble{{-}\bskip\tabulateraggedcenter} |
| 947 |
{\tabulate:endcol\eskip} \fi |
| 948 |
\or % simple |
| 949 |
\dodosettabulatepreamble {{-}\xbskip} {\tabulate:endcol\xeskip} |
| 950 |
\fi |
| 951 |
\futurelet\next\donexttabulate} |
| 952 |
\catcode`\|=11 |
| 953 |
\let\o:dodosettabulatepreamble=\dodosettabulatepreamble |
| 954 |
\def\dodosettabulatepreamble#1#2{% |
| 955 |
\let\tabulate:col=\relax |
| 956 |
\let\tabulate:endcol=\relax |
| 957 |
\edef\:temp{\tabulate:col{\the\tabulatecolumns}}% |
| 958 |
\expandafter\o:dodosettabulatepreamble |
| 959 |
\expandafter{\expandafter{\:temp #1}}{#2}% |
| 960 |
\let\tabulate:col=\tabulate:Col |
| 961 |
\let\tabulate:endcol=\tabulate:Endcol |
| 962 |
} |
| 963 |
\def\tabulate:Col#1#2{\def\HCol{#1}% |
| 964 |
\edef\HRow{\noftabulatelines}\def\HAlign{#2}% |
| 965 |
\ifnum #1=1 |
| 966 |
\ifnum \noftabulatelines=0 |
| 967 |
\else \csname d:\v!tabulate\endcsname\fi |
| 968 |
\csname c:\v!tabulate\endcsname |
| 969 |
\fi |
| 970 |
\csname e:\v!tabulate\endcsname} |
| 971 |
\def\tabulate:Endcol{\csname f:\v!tabulate\endcsname} |
| 972 |
\expandafter\def\csname \e!start\v!tabulate\endcsname{% |
| 973 |
\csname a:\v!tabulate\endcsname \bgroup |
| 974 |
\expandafter\aftergroup\csname d:\v!tabulate\endcsname |
| 975 |
\expandafter\aftergroup\csname b:\v!tabulate\endcsname |
| 976 |
\HRestore\noalign \let\halign\TeXhalign |
| 977 |
\dodoubleempty\donormalstarttabulate} |
| 978 |
\NewConfigure{\v!tabulate}{6} |
| 979 |
|
| 980 |
\def\:tempc[#1]#2#3{% |
| 981 |
\o:doprocesspageregister:[#1]{#2}{#3}% |
| 982 |
\def\:temp{\v!index}\ifx \:temp\currentregister |
| 983 |
\a:index |
| 984 |
\fi |
| 985 |
} |
| 986 |
\HLet\doprocesspageregister\:tempc |
| 987 |
\NewConfigure{index}{1} |
| 988 |
\NewConfigure{index-env}{2} |
| 989 |
\ifx \c!voor\:UnDef \else %%%%%% pre 2005 |
| 990 |
\expandafter\pend:def\csname |
| 991 |
\??id\v!index\c!voor\endcsname{\everypar{\HtmlPar}} |
| 992 |
\fi |
| 993 |
\ifx \c!na\:UnDef \else %%%%%% pre 2005 |
| 994 |
\expandafter\append:def\csname |
| 995 |
\??id\v!index\c!na\endcsname{\everypar{\HtmlPar}} |
| 996 |
\fi |
| 997 |
\ifx \c!commando\:UnDef \else %%%%%% pre 2005 |
| 998 |
\expandafter\pend:defI\csname |
| 999 |
\??id\v!index\c!commando\endcsname{\a:indexchar} |
| 1000 |
\expandafter\append:defI\csname \??id\v!index\c!commando\endcsname{\b:indexchar} |
| 1001 |
\fi |
| 1002 |
\NewConfigure{indexchar}{2} |
| 1003 |
\def\:tempc#1#2#3#4{% |
| 1004 |
\def\:temp{#1}\def\:tempa{\s!ind}\ifx \:temp\:tempa |
| 1005 |
\a:indexpage\o:gotonextinternal:{#1}{#2}{#3}{#4}% |
| 1006 |
\else |
| 1007 |
\o:gotonextinternal:{#1}{#2}{#3}{#4}% |
| 1008 |
\fi |
| 1009 |
} |
| 1010 |
\HLet\gotonextinternal\:tempc |
| 1011 |
\def\c:indexpage:{\def\a:indexpage##1##2##3##4##5} |
| 1012 |
|
| 1013 |
\def\:tempc{ConTeXt} |
| 1014 |
\HLet\ConTeXt\:tempc |
| 1015 |
|
| 1016 |
\NewConfigure{-@@ur}{2} |
| 1017 |
\NewConfigure{pubs-li}{2} |
| 1018 |
\catcode`\:=12 |
| 1019 |
\expandafter\def\csname :temp\endcsname{\def\redospecialfrom[##1::##2]} |
| 1020 |
\catcode`\:=11 |
| 1021 |
|
| 1022 |
\:temp |
| 1023 |
{\ifundefined{\v!file :::#1}% |
| 1024 |
\tttf[#1]% |
| 1025 |
\else |
| 1026 |
\def\doexternaldocument##1##2##3{\a:externaldocument |
| 1027 |
[##1]{}{}\goto{##3}[#1::#2]\b:externaldocument}% |
| 1028 |
\csname\v!file :::#1\endcsname |
| 1029 |
\fi } |
| 1030 |
\NewConfigure{externaldocument}{2} |
| 1031 |
\def\:tempc[#1][#2]{% |
| 1032 |
\o:docite:[#1][#2]% |
| 1033 |
\expandafter\ifx \csname o:bib\@@citedefault ref:\endcsname\relax |
| 1034 |
\expandafter\global\expandafter\let |
| 1035 |
\csname o:bib\@@citedefault ref:\endcsname = \empty |
| 1036 |
\:warning{No configuration is available for \expandafter |
| 1037 |
\string \csname bib\@@citedefault ref\endcsname}% |
| 1038 |
\fi |
| 1039 |
} |
| 1040 |
\HLet\docite\:tempc |
| 1041 |
\ifx \dotypesetapublication\:UnDef\else |
| 1042 |
\pend:defI\dotypesetapublication{\Link{}{##1}\EndLink} |
| 1043 |
\fi |
| 1044 |
\def\:tempc[#1]{% |
| 1045 |
\Link{#1}{}\o:bibauthoryearref:[#1]\EndLink |
| 1046 |
} |
| 1047 |
\HLet\bibauthoryearref\:tempc |
| 1048 |
\def\:tempc[#1]{% |
| 1049 |
\bibalternative\v!left |
| 1050 |
\bgroup |
| 1051 |
\let\v!left=\empty |
| 1052 |
\let\v!right=\empty |
| 1053 |
\Link{#1}{}\o:bibauthoryearsref:[#1]\EndLink |
| 1054 |
\egroup |
| 1055 |
\bibalternative\v!right |
| 1056 |
} |
| 1057 |
\HLet\bibauthoryearsref\:tempc |
| 1058 |
\def\:tempc[#1]{% |
| 1059 |
\bibalternative\v!left |
| 1060 |
\bgroup |
| 1061 |
\let\v!left=\empty |
| 1062 |
\let\v!right=\empty |
| 1063 |
\Link{#1}{}\o:bibauthorref:[#1]\EndLink |
| 1064 |
\egroup |
| 1065 |
\bibalternative\v!right |
| 1066 |
} |
| 1067 |
\HLet\bibauthorref\:tempc |
| 1068 |
\def\:tempc[#1]{% |
| 1069 |
\bibalternative\v!left |
| 1070 |
\bgroup |
| 1071 |
\let\v!left=\empty |
| 1072 |
\let\v!right=\empty |
| 1073 |
\Link{#1}{}\o:bibyearref:[#1]\EndLink |
| 1074 |
\egroup |
| 1075 |
\bibalternative\v!right |
| 1076 |
} |
| 1077 |
\HLet\bibyearref\:tempc |
| 1078 |
|
| 1079 |
|
| 1080 |
\def\:tempc{\dontshowcomposition |
| 1081 |
\a:framed \box\framebox \b:framed |
| 1082 |
\egroup |
| 1083 |
\egroup |
| 1084 |
} |
| 1085 |
\HLet\stoplocalframed\:tempc |
| 1086 |
\NewConfigure{framed}{2} |
| 1087 |
|
| 1088 |
\def\begintbl |
| 1089 |
{\doglobal\newcounter\colTBL |
| 1090 |
\doglobal\newcounter\rowTBL |
| 1091 |
\doglobal\decrement\rowTBL |
| 1092 |
\tabskip\zeropoint |
| 1093 |
\TeXhalign\bgroup |
| 1094 |
\registerparoptions |
| 1095 |
\ignorespaces\ifnum\rowTBL=0 \a:bTABLE\else\d:bTABLE\fi |
| 1096 |
\c:bTABLE\e:bTABLE##\f:bTABLE\unskip&& |
| 1097 |
\ignorespaces\e:bTABLE##\f:bTABLE\unskip\cr} |
| 1098 |
\def\endtbl |
| 1099 |
{\o:noalign:{\d:bTABLE\b:bTABLE}\egroup} |
| 1100 |
\NewConfigure{bTABLE}{6} |
| 1101 |
\def\begintblrow |
| 1102 |
{\o:noalign: |
| 1103 |
{\doglobal\increment\rowTBL |
| 1104 |
\doglobal\newcounter\colTBL}% |
| 1105 |
\nexttblcol} |
| 1106 |
\def\endtblrow{\crcr |
| 1107 |
\o:noalign: |
| 1108 |
{\nointerlineskip |
| 1109 |
\allowbreak |
| 1110 |
\bgroup % protect local vars |
| 1111 |
\@@tblsplitafter |
| 1112 |
\egroup |
| 1113 |
}} |
| 1114 |
\def\spanTBL#1#2% |
| 1115 |
{\scratchcounter\gettblcol{#1}{#2}\relax |
| 1116 |
\ifnum\scratchcounter>\zerocount |
| 1117 |
\advance\scratchcounter \minusone |
| 1118 |
% \dorecurse\scratchcounter{\appendtoks\spantblcol\to\tbltoks}% |
| 1119 |
\dorecurse\scratchcounter{\appendtoks\skiptblcol\to\tbltoks}% |
| 1120 |
\appendtoks\nexttblcol\to\tbltoks |
| 1121 |
\fi} |
| 1122 |
\let\o:settbltxt:\settbltxt |
| 1123 |
\def\settbltxt{% |
| 1124 |
\edef\:tempc{\maximumrow}\HAdvance\:tempc by -1 |
| 1125 |
\expandafter\edef\csname bTBL\:tempc,\currentcol |
| 1126 |
\endcsname{{\csname\@@tbl\c!ny\endcsname}{\csname\@@tbl\c!nx\endcsname}}% |
| 1127 |
\o:settbltxt: |
| 1128 |
} |
| 1129 |
|
| 1130 |
% \appendtoks |
| 1131 |
\let\o:forgetall:\forgetall |
| 1132 |
\append:def\forgetall{\expandafter\everypar\expandafter{\the\everypar |
| 1133 |
% \ifnum\textlevel>0 |
| 1134 |
\ifx\EndPicture\:Undef \HtmlPar\fi |
| 1135 |
% \fi |
| 1136 |
}} |
| 1137 |
% \to \everystarttext |
| 1138 |
|
| 1139 |
\def\:temp{\everybeforeshipout\bgroup\let\forgetall\o:forgetall: } |
| 1140 |
\expandafter\:temp\the\everybeforeshipout} |
| 1141 |
|
| 1142 |
\def\dostartnote% nog gobble als in pagebody |
| 1143 |
{\bgroup |
| 1144 |
\settrue\processingnote |
| 1145 |
\iftypesettinglines \ignorelines \fi |
| 1146 |
\begingroup |
| 1147 |
\a:footnotemark |
| 1148 |
\let\rawreference\:gobbleII |
| 1149 |
\ifnotesymbol \dolastnotesymbol |
| 1150 |
\else \unskip\unskip \globallet\lastnotesymbol\dolastnotesymbol |
| 1151 |
\fi |
| 1152 |
\b:footnotemark |
| 1153 |
\endgroup |
| 1154 |
% |
| 1155 |
\ignorespaces |
| 1156 |
\a:footnote |
| 1157 |
\bgroup |
| 1158 |
\penalty\notepenalty |
| 1159 |
\forgetall |
| 1160 |
\setnotebodyfont |
| 1161 |
\redoconvertfont |
| 1162 |
\bgroup |
| 1163 |
{\ifx\lastnotenumber\empty \else |
| 1164 |
\c:footnote |
| 1165 |
\preparefullnumber{\??vn\currentnote}\lastnotenumber\preparednumber |
| 1166 |
\doifelse{\noteparameter\c!interaction}\v!no |
| 1167 |
{\noteparameter\c!numbercommand |
| 1168 |
{\preparednumber\domovednote\v!nextpage\v!previouspage}}% |
| 1169 |
{\gotobox{\noteparameter\c!command |
| 1170 |
{\preparednumber\domovednote\v!nextpage\v!previouspage}}% |
| 1171 |
[\s!fnt :f:\internalfootreference]}% |
| 1172 |
\d:footnote |
| 1173 |
% |
| 1174 |
\fi |
| 1175 |
\doifelse{\noteparameter\c!interaction}\v!no |
| 1176 |
{\ifconditional\pagewisenotes |
| 1177 |
\rawreference\s!fnt{\s!fnt :t:\internalfootreference}{}% |
| 1178 |
\fi}% |
| 1179 |
{\rawreference\s!fnt{\s!fnt :t:\internalfootreference}{}}% |
| 1180 |
}% |
| 1181 |
\aftergroup\dostopnote |
| 1182 |
\let\next} |
| 1183 |
\def\dostopnote{% |
| 1184 |
\egroup |
| 1185 |
\b:footnote |
| 1186 |
\egroup |
| 1187 |
\kern\notesignal\relax} |
| 1188 |
|
| 1189 |
\NewConfigure{footnote}{4} |
| 1190 |
\NewConfigure{footnotemark}{2} |
| 1191 |
|
| 1192 |
\def\dodoprocessTEXbuffer[#1][#2]{% |
| 1193 |
\expandafter\ifx \csname c:#1-buffer:\endcsname\relax |
| 1194 |
\:warning{adding \string\NewConfigure{#1-buffer}{2} |
| 1195 |
to equal \string\Configure{buffer}{...}{...}}% |
| 1196 |
\NewConfigure{#1-buffer}{2}% |
| 1197 |
\Configure{#1-buffer}{\a:buffer}{\b:buffer}% |
| 1198 |
\fi |
| 1199 |
% |
| 1200 |
\csname a:##1-buffer\endcsname |
| 1201 |
\getvalue{\??bu#1\c!before}% |
| 1202 |
\dobuffer{16}[#2]\readjobfile |
| 1203 |
\getvalue{\??bu#1\c!after}% |
| 1204 |
\csname b:#1-buffer\endcsname |
| 1205 |
} |
| 1206 |
\NewConfigure{-buffer}{2} |
| 1207 |
\NewConfigure{buffer}{2} |
| 1208 |
|
| 1209 |
\tmp:cnt\normaltime \divide\tmp:cnt 60 |
| 1210 |
\edef\:temp{\the\tmp:cnt} |
| 1211 |
\multiply\tmp:cnt -60 \advance\tmp:cnt \normaltime |
| 1212 |
\edef\:today{\the\normalyear-\ifnum \normalmonth<10 0\fi |
| 1213 |
\the\normalmonth-\ifnum \normalday<10 0\fi\the\normalday |
| 1214 |
\space\ifnum \:temp<10 0\fi \:temp |
| 1215 |
:\ifnum \tmp:cnt<10 0\fi\the\tmp:cnt :00} |
| 1216 |
|
| 1217 |
\long\def\:temp{\begingroup \obeyMPlines \dostartMPcode} |
| 1218 |
\ifx \startMPcode\:temp |
| 1219 |
\pend:def \startMPcode{% |
| 1220 |
\let\:temp\begingroup |
| 1221 |
\def\begingroup{\let\begingroup\:temp |
| 1222 |
\a:MPcode |
| 1223 |
\begingroup |
| 1224 |
\aftergroup\b:MPcode }% |
| 1225 |
} |
| 1226 |
\fi |
| 1227 |
\NewConfigure{MPcode}{2} |
| 1228 |
|
| 1229 |
\catcode`\!=12 |
| 1230 |
\catcode`\?=12 |
| 1231 |
\Hinput{context} |
| 1232 |
\endinput |
| 1233 |
|