| 1 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 2 |
% exam.4ht 2009-05-21-09:32 % |
| 3 |
% Copyright (C) 2001--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 |
\ifx \ps@examheadings\:unDef |
| 30 |
\bgroup |
| 31 |
\catcode`\%=12 |
| 32 |
\def\:temp{\catcode`\\=9 \catcode`\#=9 \:tempa} |
| 33 |
\long\def\:tempa#1%%%%%%%%%%%%%%%%%%%end:skip{\egroup} |
| 34 |
\else |
| 35 |
\let\:temp\empty |
| 36 |
|
| 37 |
\fi |
| 38 |
\:temp |
| 39 |
\pend:defI\scorebox{\a:scorebox} |
| 40 |
\append:defI\scorebox{\b:scorebox} |
| 41 |
\NewConfigure{scorebox}{2} |
| 42 |
|
| 43 |
\Hinput{exam} |
| 44 |
%%%%%%%%%%%%%%%%%%%end:skip |
| 45 |
|
| 46 |
\ifx \@checkqueslevel\:unDef |
| 47 |
\bgroup |
| 48 |
\catcode`\%=12 |
| 49 |
\def\:temp{\catcode`\\=9 \catcode`\#=9 \:tempa} |
| 50 |
\long\def\:tempa#1%%%%%%%%%%%%%%%%%%%end:skip{\egroup} |
| 51 |
\else |
| 52 |
\let\:temp\empty |
| 53 |
|
| 54 |
\fi |
| 55 |
\:temp |
| 56 |
\let\exam:questions=\questions |
| 57 |
\def\questions{% |
| 58 |
\let\exam:list=\list |
| 59 |
\def\list{\let\list=\exam:list\begin{list}}% |
| 60 |
\exam:questions } |
| 61 |
\pend:def\endquestions{% |
| 62 |
\let\exam:list=\endlist |
| 63 |
\def\endlist{\let\endlist=\exam:list \end{list}}} |
| 64 |
\let\exam:parts=\parts |
| 65 |
\def\parts{% |
| 66 |
\let\exam:list=\list |
| 67 |
\def\list{\let\list=\exam:list\begin{list}}% |
| 68 |
\exam:parts } |
| 69 |
\pend:def\endparts{% |
| 70 |
\let\exam:list=\endlist |
| 71 |
\def\endlist{\let\endlist=\exam:list \end{list}}} |
| 72 |
\let\exam:subparts=\subparts |
| 73 |
\def\subparts{% |
| 74 |
\let\exam:list=\list |
| 75 |
\def\list{\let\list=\exam:list\begin{list}}% |
| 76 |
\exam:subparts } |
| 77 |
\pend:def\endsubparts{% |
| 78 |
\let\exam:list=\endlist |
| 79 |
\def\endlist{\let\endlist=\exam:list \end{list}}} |
| 80 |
\long\def\uplevel#1{\par\a:uplevel{#1}\b:uplevel\par} |
| 81 |
\long\def\fullwidth#1{\par\a:fullwidth{#1}\b:fullwidth\par} |
| 82 |
\NewConfigure{uplevel}{2} |
| 83 |
\NewConfigure{fullwidth}{2} |
| 84 |
\def\@setpoints{% |
| 85 |
\if@placepoints |
| 86 |
\if@pointsinmargin |
| 87 |
\a:setpoints(\@points\@marginpointname)\b:setpoints |
| 88 |
\else |
| 89 |
\a:setpoints(\@points\@pointname)\b:setpoints |
| 90 |
\fi |
| 91 |
\@placepointsfalse |
| 92 |
\fi |
| 93 |
} |
| 94 |
\NewConfigure{setpoints}{2} |
| 95 |
|
| 96 |
\Hinput{exam} |
| 97 |
%%%%%%%%%%%%%%%%%%%end:skip |
| 98 |
|
| 99 |
\ifx \@OneKeyHook\:unDef |
| 100 |
\bgroup |
| 101 |
\catcode`\%=12 |
| 102 |
\def\:temp{\catcode`\\=9 \catcode`\#=9 \:tempa} |
| 103 |
\long\def\:tempa#1%%%%%%%%%%%%%%%%%%%end:skip{\egroup} |
| 104 |
\else |
| 105 |
\let\:temp\empty |
| 106 |
|
| 107 |
\fi |
| 108 |
\:temp |
| 109 |
\def\seed:hooks{% |
| 110 |
\ifnum \tmp:cnt>\c@section \else |
| 111 |
\section:data |
| 112 |
% |
| 113 |
\expandafter\ifx\csname type@sec\romannumeral\tmp:cnt\endcsname |
| 114 |
\@shortanswer |
| 115 |
\def\:temp{\ifx \blank\:UnDef |
| 116 |
\:warning{tex4ht encountered a problem |
| 117 |
with \csname type@sec\current@section\endcsname} |
| 118 |
\else |
| 119 |
\ifanswer |
| 120 |
\ifcblanks |
| 121 |
\def\blank####1{\a:answer ####1\b:answer}% |
| 122 |
\fi |
| 123 |
\ifpblanks |
| 124 |
\def\blank####1{\a:answer ####1\b:answer}% |
| 125 |
\fi |
| 126 |
\else |
| 127 |
\ifcblanks |
| 128 |
\pend:defI\blank{\a:question} |
| 129 |
\append:defI\blank{\b:question} |
| 130 |
\fi |
| 131 |
\ifpblanks |
| 132 |
\pend:defI\blank{\a:question} |
| 133 |
\append:defI\blank{\b:question} |
| 134 |
\fi |
| 135 |
\fi \fi |
| 136 |
}% |
| 137 |
\global \csname qlist@scr@sec\romannumeral\tmp:cnt |
| 138 |
\expandafter\expandafter\expandafter |
| 139 |
\endcsname |
| 140 |
\expandafter\expandafter\expandafter{\expandafter\:temp |
| 141 |
\the\csname qlist@scr@sec\romannumeral\tmp:cnt \endcsname} |
| 142 |
% |
| 143 |
\expandafter\pend:def\csname sec\romannumeral\tmp:cnt @fixed\endcsname{% |
| 144 |
\gdef\beforesectsep{0pt \a:sectiontitle |
| 145 |
\global\let\beforesectsep\sv:beforesectsep}% |
| 146 |
\gdef\aftersectsep{0pt \b:sectiontitle |
| 147 |
\global\let\aftersectsep\sv:aftersectsep}% |
| 148 |
}% |
| 149 |
\global\expandafter |
| 150 |
\let\csname sec\romannumeral\tmp:cnt @fixed\expandafter\endcsname |
| 151 |
\csname sec\romannumeral\tmp:cnt @fixed\endcsname |
| 152 |
% |
| 153 |
\expandafter\pend:def |
| 154 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\a:instructions}% |
| 155 |
\expandafter\append:def |
| 156 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\b:instructions\par}% |
| 157 |
\global\expandafter\let |
| 158 |
\csname inst@sec\romannumeral\tmp:cnt \expandafter\endcsname |
| 159 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname |
| 160 |
% |
| 161 |
|
| 162 |
\fi |
| 163 |
\expandafter\ifx\csname type@sec\romannumeral\tmp:cnt \endcsname\@fixed |
| 164 |
\def\:temp{\ifx \blank\:UnDef |
| 165 |
\:warning{tex4ht encountered a problem |
| 166 |
with \csname type@sec\current@section\endcsname} |
| 167 |
\else |
| 168 |
\ifanswer |
| 169 |
\ifcblanks |
| 170 |
\def\blank####1{\a:answer ####1\b:answer}% |
| 171 |
\fi |
| 172 |
\ifpblanks |
| 173 |
\def\blank####1{\a:answer ####1\b:answer}% |
| 174 |
\fi |
| 175 |
\else |
| 176 |
\ifcblanks |
| 177 |
\pend:defI\blank{\a:question} |
| 178 |
\append:defI\blank{\b:question} |
| 179 |
\fi |
| 180 |
\ifpblanks |
| 181 |
\pend:defI\blank{\a:question} |
| 182 |
\append:defI\blank{\b:question} |
| 183 |
\fi |
| 184 |
\fi \fi |
| 185 |
}% |
| 186 |
\global \csname qlist@scr@sec\romannumeral\tmp:cnt |
| 187 |
\expandafter\expandafter\expandafter |
| 188 |
\endcsname |
| 189 |
\expandafter\expandafter\expandafter{\expandafter\:temp |
| 190 |
\the\csname qlist@scr@sec\romannumeral\tmp:cnt \endcsname} |
| 191 |
% |
| 192 |
\expandafter\pend:def\csname sec\romannumeral\tmp:cnt @fixed\endcsname{% |
| 193 |
\gdef\beforesectsep{0pt \a:sectiontitle |
| 194 |
\global\let\beforesectsep\sv:beforesectsep}% |
| 195 |
\gdef\aftersectsep{0pt \b:sectiontitle |
| 196 |
\global\let\aftersectsep\sv:aftersectsep}% |
| 197 |
}% |
| 198 |
\global\expandafter |
| 199 |
\let\csname sec\romannumeral\tmp:cnt @fixed\expandafter\endcsname |
| 200 |
\csname sec\romannumeral\tmp:cnt @fixed\endcsname |
| 201 |
% |
| 202 |
\expandafter\pend:def |
| 203 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\a:instructions}% |
| 204 |
\expandafter\append:def |
| 205 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\b:instructions\par}% |
| 206 |
\global\expandafter\let |
| 207 |
\csname inst@sec\romannumeral\tmp:cnt \expandafter\endcsname |
| 208 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname |
| 209 |
% |
| 210 |
|
| 211 |
\fi |
| 212 |
\expandafter\ifx\csname type@sec\romannumeral\tmp:cnt \endcsname\@fillin |
| 213 |
\def\:temp{\ifx \blank\:UnDef |
| 214 |
\:warning{tex4ht encountered a problem |
| 215 |
with \csname type@sec\current@section\endcsname} |
| 216 |
\else |
| 217 |
\ifanswer |
| 218 |
\ifcblanks |
| 219 |
\def\blank####1{\a:answer ####1\b:answer}% |
| 220 |
\fi |
| 221 |
\ifpblanks |
| 222 |
\def\blank####1{\a:answer ####1\b:answer}% |
| 223 |
\fi |
| 224 |
\else |
| 225 |
\ifcblanks |
| 226 |
\pend:defI\blank{\a:question} |
| 227 |
\append:defI\blank{\b:question} |
| 228 |
\fi |
| 229 |
\ifpblanks |
| 230 |
\pend:defI\blank{\a:question} |
| 231 |
\append:defI\blank{\b:question} |
| 232 |
\fi |
| 233 |
\fi \fi |
| 234 |
}% |
| 235 |
\global \csname qlist@scr@sec\romannumeral\tmp:cnt |
| 236 |
\expandafter\expandafter\expandafter |
| 237 |
\endcsname |
| 238 |
\expandafter\expandafter\expandafter{\expandafter\:temp |
| 239 |
\the\csname qlist@scr@sec\romannumeral\tmp:cnt \endcsname} |
| 240 |
% |
| 241 |
\expandafter\pend:def\csname sec\romannumeral\tmp:cnt @fixed\endcsname{% |
| 242 |
\gdef\beforesectsep{0pt \a:sectiontitle |
| 243 |
\global\let\beforesectsep\sv:beforesectsep}% |
| 244 |
\gdef\aftersectsep{0pt \b:sectiontitle |
| 245 |
\global\let\aftersectsep\sv:aftersectsep}% |
| 246 |
}% |
| 247 |
\global\expandafter |
| 248 |
\let\csname sec\romannumeral\tmp:cnt @fixed\expandafter\endcsname |
| 249 |
\csname sec\romannumeral\tmp:cnt @fixed\endcsname |
| 250 |
% |
| 251 |
\expandafter\pend:def |
| 252 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\a:instructions}% |
| 253 |
\expandafter\append:def |
| 254 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\b:instructions\par}% |
| 255 |
\global\expandafter\let |
| 256 |
\csname inst@sec\romannumeral\tmp:cnt \expandafter\endcsname |
| 257 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname |
| 258 |
% |
| 259 |
|
| 260 |
\fi |
| 261 |
\expandafter\ifx\csname type@sec\romannumeral\tmp:cnt \endcsname\@fillinstar |
| 262 |
\def\:temp{\ifx \blank\:UnDef |
| 263 |
\:warning{tex4ht encountered a problem |
| 264 |
with \csname type@sec\current@section\endcsname} |
| 265 |
\else |
| 266 |
\ifanswer |
| 267 |
\ifcblanks |
| 268 |
\def\blank####1{\a:answer ####1\b:answer}% |
| 269 |
\fi |
| 270 |
\ifpblanks |
| 271 |
\def\blank####1{\a:answer ####1\b:answer}% |
| 272 |
\fi |
| 273 |
\else |
| 274 |
\ifcblanks |
| 275 |
\pend:defI\blank{\a:question} |
| 276 |
\append:defI\blank{\b:question} |
| 277 |
\fi |
| 278 |
\ifpblanks |
| 279 |
\pend:defI\blank{\a:question} |
| 280 |
\append:defI\blank{\b:question} |
| 281 |
\fi |
| 282 |
\fi \fi |
| 283 |
}% |
| 284 |
\global \csname qlist@scr@sec\romannumeral\tmp:cnt |
| 285 |
\expandafter\expandafter\expandafter |
| 286 |
\endcsname |
| 287 |
\expandafter\expandafter\expandafter{\expandafter\:temp |
| 288 |
\the\csname qlist@scr@sec\romannumeral\tmp:cnt \endcsname} |
| 289 |
% |
| 290 |
\expandafter\ifx |
| 291 |
\csname head@sec\romannumeral\tmp:cnt \endcsname\relax \else |
| 292 |
\expandafter\pend:def\csname sec\romannumeral\tmp:cnt @fixed\endcsname{% |
| 293 |
\gdef\beforesectsep{0pt \a:sectiontitle |
| 294 |
\global\let\beforesectsep\sv:beforesectsep}% |
| 295 |
\gdef\aftersectsep{0pt \b:sectiontitle |
| 296 |
\global\let\aftersectsep\sv:aftersectsep}% |
| 297 |
}% |
| 298 |
\global\expandafter |
| 299 |
\let\csname sec\romannumeral\tmp:cnt @fixed\expandafter\endcsname |
| 300 |
\csname sec\romannumeral\tmp:cnt @fixed\endcsname |
| 301 |
% |
| 302 |
\fi |
| 303 |
\expandafter\ifx |
| 304 |
\csname inst@sec\romannumeral\tmp:cnt \endcsname\relax \else |
| 305 |
\expandafter\pend:def |
| 306 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\a:instructions}% |
| 307 |
\expandafter\append:def |
| 308 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\b:instructions\par}% |
| 309 |
\global\expandafter\let |
| 310 |
\csname inst@sec\romannumeral\tmp:cnt \expandafter\endcsname |
| 311 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname |
| 312 |
% |
| 313 |
\fi |
| 314 |
% |
| 315 |
|
| 316 |
\fi |
| 317 |
\expandafter\ifx\csname type@sec\romannumeral\tmp:cnt \endcsname\@MC |
| 318 |
\def\:temp{\boxfalse |
| 319 |
}% |
| 320 |
\global \csname qlist@scr@sec\romannumeral\tmp:cnt |
| 321 |
\expandafter\expandafter\expandafter |
| 322 |
\endcsname |
| 323 |
\expandafter\expandafter\expandafter{\expandafter\:temp |
| 324 |
\the\csname qlist@scr@sec\romannumeral\tmp:cnt \endcsname} |
| 325 |
% |
| 326 |
\expandafter\pend:def\csname sec\romannumeral\tmp:cnt @fixed\endcsname{% |
| 327 |
\gdef\beforesectsep{0pt \a:sectiontitle |
| 328 |
\global\let\beforesectsep\sv:beforesectsep}% |
| 329 |
\gdef\aftersectsep{0pt \b:sectiontitle |
| 330 |
\global\let\aftersectsep\sv:aftersectsep}% |
| 331 |
}% |
| 332 |
\global\expandafter |
| 333 |
\let\csname sec\romannumeral\tmp:cnt @fixed\expandafter\endcsname |
| 334 |
\csname sec\romannumeral\tmp:cnt @fixed\endcsname |
| 335 |
% |
| 336 |
\expandafter\pend:def |
| 337 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\a:instructions}% |
| 338 |
\expandafter\append:def |
| 339 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\b:instructions\par}% |
| 340 |
\global\expandafter\let |
| 341 |
\csname inst@sec\romannumeral\tmp:cnt \expandafter\endcsname |
| 342 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname |
| 343 |
% |
| 344 |
|
| 345 |
\fi |
| 346 |
\expandafter\ifx\csname type@sec\romannumeral\tmp:cnt \endcsname\@MCstar |
| 347 |
\def\:temp{\boxfalse |
| 348 |
}% |
| 349 |
\global \csname qlist@scr@sec\romannumeral\tmp:cnt |
| 350 |
\expandafter\expandafter\expandafter |
| 351 |
\endcsname |
| 352 |
\expandafter\expandafter\expandafter{\expandafter\:temp |
| 353 |
\the\csname qlist@scr@sec\romannumeral\tmp:cnt \endcsname} |
| 354 |
% |
| 355 |
\expandafter\ifx |
| 356 |
\csname head@sec\romannumeral\tmp:cnt \endcsname\relax \else |
| 357 |
\expandafter\pend:def\csname sec\romannumeral\tmp:cnt @fixed\endcsname{% |
| 358 |
\gdef\beforesectsep{0pt \a:sectiontitle |
| 359 |
\global\let\beforesectsep\sv:beforesectsep}% |
| 360 |
\gdef\aftersectsep{0pt \b:sectiontitle |
| 361 |
\global\let\aftersectsep\sv:aftersectsep}% |
| 362 |
}% |
| 363 |
\global\expandafter |
| 364 |
\let\csname sec\romannumeral\tmp:cnt @fixed\expandafter\endcsname |
| 365 |
\csname sec\romannumeral\tmp:cnt @fixed\endcsname |
| 366 |
% |
| 367 |
\fi |
| 368 |
\expandafter\ifx |
| 369 |
\csname inst@sec\romannumeral\tmp:cnt \endcsname\relax \else |
| 370 |
\expandafter\pend:def |
| 371 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\a:instructions}% |
| 372 |
\expandafter\append:def |
| 373 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\b:instructions\par}% |
| 374 |
\global\expandafter\let |
| 375 |
\csname inst@sec\romannumeral\tmp:cnt \expandafter\endcsname |
| 376 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname |
| 377 |
% |
| 378 |
\fi |
| 379 |
% |
| 380 |
|
| 381 |
\fi |
| 382 |
\expandafter\ifx\csname type@sec\romannumeral\tmp:cnt \endcsname |
| 383 |
\@shortanswerstar |
| 384 |
\expandafter\ifx |
| 385 |
\csname head@sec\romannumeral\tmp:cnt \endcsname\relax \else |
| 386 |
\expandafter\pend:def\csname sec\romannumeral\tmp:cnt @fixed\endcsname{% |
| 387 |
\gdef\beforesectsep{0pt \a:sectiontitle |
| 388 |
\global\let\beforesectsep\sv:beforesectsep}% |
| 389 |
\gdef\aftersectsep{0pt \b:sectiontitle |
| 390 |
\global\let\aftersectsep\sv:aftersectsep}% |
| 391 |
}% |
| 392 |
\global\expandafter |
| 393 |
\let\csname sec\romannumeral\tmp:cnt @fixed\expandafter\endcsname |
| 394 |
\csname sec\romannumeral\tmp:cnt @fixed\endcsname |
| 395 |
% |
| 396 |
\fi |
| 397 |
\expandafter\ifx |
| 398 |
\csname inst@sec\romannumeral\tmp:cnt \endcsname\relax \else |
| 399 |
\expandafter\pend:def |
| 400 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\a:instructions}% |
| 401 |
\expandafter\append:def |
| 402 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\b:instructions\par}% |
| 403 |
\global\expandafter\let |
| 404 |
\csname inst@sec\romannumeral\tmp:cnt \expandafter\endcsname |
| 405 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname |
| 406 |
% |
| 407 |
\fi |
| 408 |
% |
| 409 |
|
| 410 |
\fi |
| 411 |
\expandafter\ifx\csname type@sec\romannumeral\tmp:cnt \endcsname |
| 412 |
\@truefalse |
| 413 |
\def\:temp{ \pend:defI\@separator{\def\@tfitem{% |
| 414 |
\ifanswer |
| 415 |
\item[\a:answer |
| 416 |
\csname tf@sol\current@question\endcsname\b:answer]% |
| 417 |
\else |
| 418 |
\item |
| 419 |
\fi}}% |
| 420 |
}% |
| 421 |
\global \csname qlist@scr@sec\romannumeral\tmp:cnt |
| 422 |
\expandafter\expandafter\expandafter |
| 423 |
\endcsname |
| 424 |
\expandafter\expandafter\expandafter{\expandafter\:temp |
| 425 |
\the\csname qlist@scr@sec\romannumeral\tmp:cnt \endcsname} |
| 426 |
% |
| 427 |
\expandafter\pend:def\csname sec\romannumeral\tmp:cnt @fixed\endcsname{% |
| 428 |
\gdef\beforesectsep{0pt \a:sectiontitle |
| 429 |
\global\let\beforesectsep\sv:beforesectsep}% |
| 430 |
\gdef\aftersectsep{0pt \b:sectiontitle |
| 431 |
\global\let\aftersectsep\sv:aftersectsep}% |
| 432 |
}% |
| 433 |
\global\expandafter |
| 434 |
\let\csname sec\romannumeral\tmp:cnt @fixed\expandafter\endcsname |
| 435 |
\csname sec\romannumeral\tmp:cnt @fixed\endcsname |
| 436 |
% |
| 437 |
\expandafter\pend:def |
| 438 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\a:instructions}% |
| 439 |
\expandafter\append:def |
| 440 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\b:instructions\par}% |
| 441 |
\global\expandafter\let |
| 442 |
\csname inst@sec\romannumeral\tmp:cnt \expandafter\endcsname |
| 443 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname |
| 444 |
% |
| 445 |
|
| 446 |
\fi |
| 447 |
\expandafter\ifx\csname type@sec\romannumeral\tmp:cnt \endcsname |
| 448 |
\@truefalsestar |
| 449 |
\def\:temp{ \pend:defI\@separator{\def\@tfitem{% |
| 450 |
\ifanswer |
| 451 |
\item[\a:answer |
| 452 |
\csname tf@sol\current@question\endcsname\b:answer]% |
| 453 |
\else |
| 454 |
\item |
| 455 |
\fi}}% |
| 456 |
}% |
| 457 |
\global \csname qlist@scr@sec\romannumeral\tmp:cnt |
| 458 |
\expandafter\expandafter\expandafter |
| 459 |
\endcsname |
| 460 |
\expandafter\expandafter\expandafter{\expandafter\:temp |
| 461 |
\the\csname qlist@scr@sec\romannumeral\tmp:cnt \endcsname} |
| 462 |
% |
| 463 |
\expandafter\ifx |
| 464 |
\csname head@sec\romannumeral\tmp:cnt \endcsname\relax \else |
| 465 |
\expandafter\pend:def\csname sec\romannumeral\tmp:cnt @fixed\endcsname{% |
| 466 |
\gdef\beforesectsep{0pt \a:sectiontitle |
| 467 |
\global\let\beforesectsep\sv:beforesectsep}% |
| 468 |
\gdef\aftersectsep{0pt \b:sectiontitle |
| 469 |
\global\let\aftersectsep\sv:aftersectsep}% |
| 470 |
}% |
| 471 |
\global\expandafter |
| 472 |
\let\csname sec\romannumeral\tmp:cnt @fixed\expandafter\endcsname |
| 473 |
\csname sec\romannumeral\tmp:cnt @fixed\endcsname |
| 474 |
% |
| 475 |
\fi |
| 476 |
\expandafter\ifx |
| 477 |
\csname inst@sec\romannumeral\tmp:cnt \endcsname\relax \else |
| 478 |
\expandafter\pend:def |
| 479 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\a:instructions}% |
| 480 |
\expandafter\append:def |
| 481 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\b:instructions\par}% |
| 482 |
\global\expandafter\let |
| 483 |
\csname inst@sec\romannumeral\tmp:cnt \expandafter\endcsname |
| 484 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname |
| 485 |
% |
| 486 |
\fi |
| 487 |
% |
| 488 |
|
| 489 |
\fi |
| 490 |
\expandafter\ifx\csname type@sec\romannumeral\tmp:cnt \endcsname\@fixedstar |
| 491 |
\def\:temp{\ifx \blank\:UnDef |
| 492 |
\:warning{tex4ht encountered a problem |
| 493 |
with \csname type@sec\current@section\endcsname} |
| 494 |
\else |
| 495 |
\ifanswer |
| 496 |
\ifcblanks |
| 497 |
\def\blank####1{\a:answer ####1\b:answer}% |
| 498 |
\fi |
| 499 |
\ifpblanks |
| 500 |
\def\blank####1{\a:answer ####1\b:answer}% |
| 501 |
\fi |
| 502 |
\else |
| 503 |
\ifcblanks |
| 504 |
\pend:defI\blank{\a:question} |
| 505 |
\append:defI\blank{\b:question} |
| 506 |
\fi |
| 507 |
\ifpblanks |
| 508 |
\pend:defI\blank{\a:question} |
| 509 |
\append:defI\blank{\b:question} |
| 510 |
\fi |
| 511 |
\fi \fi |
| 512 |
}% |
| 513 |
\global \csname qlist@scr@sec\romannumeral\tmp:cnt |
| 514 |
\expandafter\expandafter\expandafter |
| 515 |
\endcsname |
| 516 |
\expandafter\expandafter\expandafter{\expandafter\:temp |
| 517 |
\the\csname qlist@scr@sec\romannumeral\tmp:cnt \endcsname} |
| 518 |
% |
| 519 |
\expandafter\ifx |
| 520 |
\csname head@sec\romannumeral\tmp:cnt \endcsname\relax \else |
| 521 |
\expandafter\pend:def\csname sec\romannumeral\tmp:cnt @fixed\endcsname{% |
| 522 |
\gdef\beforesectsep{0pt \a:sectiontitle |
| 523 |
\global\let\beforesectsep\sv:beforesectsep}% |
| 524 |
\gdef\aftersectsep{0pt \b:sectiontitle |
| 525 |
\global\let\aftersectsep\sv:aftersectsep}% |
| 526 |
}% |
| 527 |
\global\expandafter |
| 528 |
\let\csname sec\romannumeral\tmp:cnt @fixed\expandafter\endcsname |
| 529 |
\csname sec\romannumeral\tmp:cnt @fixed\endcsname |
| 530 |
% |
| 531 |
\fi |
| 532 |
\expandafter\ifx |
| 533 |
\csname inst@sec\romannumeral\tmp:cnt \endcsname\relax \else |
| 534 |
\expandafter\pend:def |
| 535 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\a:instructions}% |
| 536 |
\expandafter\append:def |
| 537 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname{\b:instructions\par}% |
| 538 |
\global\expandafter\let |
| 539 |
\csname inst@sec\romannumeral\tmp:cnt \expandafter\endcsname |
| 540 |
\csname inst@sec\romannumeral\tmp:cnt\endcsname |
| 541 |
% |
| 542 |
\fi |
| 543 |
% |
| 544 |
|
| 545 |
\fi |
| 546 |
|
| 547 |
\advance\tmp:cnt by 1 |
| 548 |
\expandafter\seed:hooks |
| 549 |
\fi |
| 550 |
} |
| 551 |
\let\sv:beforesectsep\beforesectsep |
| 552 |
\let\sv:aftersectsep\aftersectsep |
| 553 |
\def\section:data{ |
| 554 |
\par[\the\tmp:cnt] |
| 555 |
\par [qlist@sec\romannumeral\tmp:cnt] |
| 556 |
\expandafter\meaning\csname qlist@sec\romannumeral\tmp:cnt\endcsname : |
| 557 |
\expandafter \edef\expandafter \:temp\expandafter {\expandafter |
| 558 |
\the\csname qlist@sec\romannumeral\tmp:cnt\endcsname} |
| 559 |
\meaning\:temp |
| 560 |
\par [qlist@scr@sec\romannumeral\tmp:cnt] |
| 561 |
\expandafter\meaning\csname qlist@scr@sec\romannumeral\tmp:cnt\endcsname : |
| 562 |
\expandafter \edef\expandafter \:temp\expandafter {\expandafter |
| 563 |
\the\csname qlist@scr@sec\romannumeral\tmp:cnt\endcsname} |
| 564 |
\meaning\:temp |
| 565 |
\par [inst@sec\romannumeral\tmp:cnt] |
| 566 |
\expandafter\meaning\csname inst@sec\romannumeral\tmp:cnt\endcsname |
| 567 |
\par [head@sec\romannumeral\tmp:cnt] |
| 568 |
\expandafter\meaning\csname head@sec\romannumeral\tmp:cnt\endcsname |
| 569 |
\par [type@sec\romannumeral\tmp:cnt] |
| 570 |
\expandafter\meaning\csname type@sec\romannumeral\tmp:cnt\endcsname |
| 571 |
\par [sec\romannumeral\tmp:cnt @fixed] |
| 572 |
\expandafter\meaning\csname sec\romannumeral\tmp:cnt @fixed\endcsname |
| 573 |
\par ****************************************\par |
| 574 |
} |
| 575 |
\let\section:data=\empty |
| 576 |
|
| 577 |
|
| 578 |
\pend:def\@enddocumenthook{{\tt \tmp:cnt=1 \seed:hooks }} |
| 579 |
\NewConfigure{sectiontitle}{2} |
| 580 |
\NewConfigure{answer}{2} |
| 581 |
\NewConfigure{question}{2} |
| 582 |
\pend:defI\MCfont{\a:MCfont} |
| 583 |
\append:defI\MCfont{\b:MCfont} |
| 584 |
\NewConfigure{MCfont}{2} |
| 585 |
\Configure{MCfont} |
| 586 |
{\HCode{<span class="MCfont">}} {\HCode{</span>}} |
| 587 |
\Css{dt .MCfont {text-decoration:underline;}} |
| 588 |
\NewConfigure{instructions}{2} |
| 589 |
\pend:def\@examtopmatter{\bgroup |
| 590 |
\pend:def\namedata{\let\hrulefill=\empty \a:namedata}% |
| 591 |
\append:def\namedata{\b:namedata}% |
| 592 |
\pend:def\classdata{\a:classdata}% |
| 593 |
\append:def\classdata{\b:classdata}% |
| 594 |
\let\examtop=\empty \let\endexamtop=\empty |
| 595 |
\begin{examtop}} |
| 596 |
\append:def\@examtopmatter{% |
| 597 |
\end{examtop} \egroup\bigskip} |
| 598 |
\NewConfigure{classdata}{2} |
| 599 |
\NewConfigure{namedata}{2} |
| 600 |
\pend:def\@keytopmatter{\bgroup |
| 601 |
\let\keytop=\empty \let\endkeytop=\empty |
| 602 |
\begin{keytop}} |
| 603 |
\append:def\@keytopmatter{% |
| 604 |
\end{keytop} \egroup\bigskip} |
| 605 |
\append:def\frontmatter@wrap@up{% |
| 606 |
\ifx\@frontmattertext\relax \else |
| 607 |
\pend:def\@frontmattertext{\a:frontmatter} |
| 608 |
\append:def\@frontmattertext{\b:frontmatter} |
| 609 |
\fi |
| 610 |
} |
| 611 |
\NewConfigure{frontmatter} {2} |
| 612 |
|
| 613 |
\Hinput{exam} |
| 614 |
%%%%%%%%%%%%%%%%%%%end:skip |
| 615 |
|
| 616 |
\endinput |
| 617 |
|