home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tex / macros / contrib / answers.sty < prev    next >
LaTeX Document  |  1995-03-15  |  3.7 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
1% dexvert DirectMusic Style (music/directMusicStyle) ext Unsupported
1% dexvert Microsoft Word Style Sheet (other/microsoftWordStyleSheet) ext Unsupported
1% dexvert KORG File (other/korgFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file LaTeX auxiliary file, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 25 20 0a 25 25 20 54 | 68 69 73 20 69 73 20 66 |%% .%% T|his is f|
|00000010| 69 6c 65 20 60 61 6e 73 | 77 65 72 73 2e 73 74 79 |ile `ans|wers.sty|
|00000020| 27 2c 20 67 65 6e 65 72 | 61 74 65 64 20 0a 25 25 |', gener|ated .%%|
|00000030| 20 6f 6e 20 3c 31 39 39 | 35 2f 33 2f 34 3e 20 77 | on <199|5/3/4> w|
|00000040| 69 74 68 20 74 68 65 20 | 64 6f 63 73 74 72 69 70 |ith the |docstrip|
|00000050| 20 75 74 69 6c 69 74 79 | 20 28 32 2e 32 69 29 2e | utility| (2.2i).|
|00000060| 0a 25 25 20 0a 25 25 20 | 54 68 65 20 6f 72 69 67 |.%% .%% |The orig|
|00000070| 69 6e 61 6c 20 73 6f 75 | 72 63 65 20 66 69 6c 65 |inal sou|rce file|
|00000080| 73 20 77 65 72 65 3a 0a | 25 25 20 0a 25 25 20 61 |s were:.|%% .%% a|
|00000090| 6e 73 77 65 72 73 2e 64 | 74 78 20 20 28 77 69 74 |nswers.d|tx (wit|
|000000a0| 68 20 6f 70 74 69 6f 6e | 73 3a 20 60 61 6e 73 77 |h option|s: `answ|
|000000b0| 65 72 73 27 29 0a 25 25 | 20 0a 25 25 20 43 6f 70 |ers').%%| .%% Cop|
|000000c0| 79 72 69 67 68 74 20 28 | 43 29 20 31 39 39 30 2c |yright (|C) 1990,|
|000000d0| 31 39 39 34 20 4d 69 6b | 65 20 50 69 66 66 2c 20 |1994 Mik|e Piff, |
|000000e0| 55 6e 69 76 65 72 73 69 | 74 79 20 6f 66 20 53 68 |Universi|ty of Sh|
|000000f0| 65 66 66 69 65 6c 64 2c | 20 45 6e 67 6c 61 6e 64 |effield,| England|
|00000100| 20 0a 25 25 20 0a 25 25 | 20 59 6f 75 20 61 72 65 | .%% .%%| You are|
|00000110| 20 6e 6f 74 20 61 6c 6c | 6f 77 65 64 20 74 6f 20 | not all|owed to |
|00000120| 63 68 61 6e 67 65 20 74 | 68 69 73 20 66 69 6c 65 |change t|his file|
|00000130| 2e 20 0a 25 25 20 0a 25 | 25 20 59 6f 75 20 61 72 |. .%% .%|% You ar|
|00000140| 65 20 4e 4f 54 20 41 4c | 4c 4f 57 45 44 20 74 6f |e NOT AL|LOWED to|
|00000150| 20 64 69 73 74 72 69 62 | 75 74 65 20 74 68 69 73 | distrib|ute this|
|00000160| 20 66 69 6c 65 20 61 6c | 6f 6e 65 2e 20 59 6f 75 | file al|one. You|
|00000170| 20 61 72 65 20 4e 4f 54 | 20 0a 25 25 20 41 4c 4c | are NOT| .%% ALL|
|00000180| 4f 57 45 44 20 74 6f 20 | 74 61 6b 65 20 6d 6f 6e |OWED to |take mon|
|00000190| 65 79 20 66 6f 72 20 74 | 68 65 20 64 69 73 74 72 |ey for t|he distr|
|000001a0| 69 62 75 74 69 6f 6e 20 | 6f 72 20 75 73 65 20 6f |ibution |or use o|
|000001b0| 66 20 74 68 69 73 20 0a | 25 25 20 66 69 6c 65 20 |f this .|%% file |
|000001c0| 65 78 63 65 70 74 20 66 | 6f 72 20 61 20 6e 6f 6d |except f|or a nom|
|000001d0| 69 6e 61 6c 20 63 68 61 | 72 67 65 20 66 6f 72 20 |inal cha|rge for |
|000001e0| 63 6f 70 79 69 6e 67 20 | 65 74 63 2e 20 0a 25 25 |copying |etc. .%%|
|000001f0| 20 0a 25 25 20 50 6c 65 | 61 73 65 20 61 64 64 72 | .%% Ple|ase addr|
|00000200| 65 73 73 20 61 6e 79 20 | 70 72 6f 62 6c 65 6d 73 |ess any |problems|
|00000210| 20 74 6f 3a 20 0a 25 25 | 20 0a 25 25 20 4d 2e 50 | to: .%%| .%% M.P|
|00000220| 69 66 66 40 73 68 65 66 | 2e 61 63 2e 75 6b 20 0a |iff@shef|.ac.uk .|
|00000230| 25 25 20 0a 25 25 20 46 | 6f 72 20 75 70 64 61 74 |%% .%% F|or updat|
|00000240| 65 73 2c 20 63 6f 6e 74 | 61 63 74 20 79 6f 75 72 |es, cont|act your|
|00000250| 20 6e 65 61 72 65 73 74 | 20 43 54 41 4e 20 73 69 | nearest| CTAN si|
|00000260| 74 65 2e 20 0a 25 25 20 | 0a 5c 64 65 66 5c 66 69 |te. .%% |.\def\fi|
|00000270| 6c 65 76 65 72 73 69 6f | 6e 7b 32 2e 30 31 7d 0a |leversio|n{2.01}.|
|00000280| 5c 64 65 66 5c 66 69 6c | 65 64 61 74 65 7b 31 39 |\def\fil|edate{19|
|00000290| 39 34 2f 30 33 2f 33 30 | 7d 0a 5c 64 65 66 5c 66 |94/03/30|}.\def\f|
|000002a0| 69 6c 65 6e 61 6d 65 7b | 61 6e 73 77 65 72 73 2e |ilename{|answers.|
|000002b0| 64 74 78 7d 0a 5c 64 65 | 66 5c 43 6f 70 79 72 69 |dtx}.\de|f\Copyri|
|000002c0| 67 68 74 7b 43 6f 70 79 | 72 69 67 68 74 20 28 43 |ght{Copy|right (C|
|000002d0| 29 20 31 39 39 30 2c 31 | 39 39 34 20 4d 69 6b 65 |) 1990,1|994 Mike|
|000002e0| 20 50 69 66 66 2c 20 55 | 6e 69 76 65 72 73 69 74 | Piff, U|niversit|
|000002f0| 79 20 6f 66 20 53 68 65 | 66 66 69 65 6c 64 2c 20 |y of She|ffield, |
|00000300| 45 6e 67 6c 61 6e 64 7d | 0a 5c 4e 65 65 64 73 54 |England}|.\NeedsT|
|00000310| 65 58 46 6f 72 6d 61 74 | 7b 4c 61 54 65 58 32 65 |eXFormat|{LaTeX2e|
|00000320| 7d 5b 31 39 39 34 2f 30 | 31 2f 30 31 5d 0a 5c 50 |}[1994/0|1/01].\P|
|00000330| 72 6f 76 69 64 65 73 50 | 61 63 6b 61 67 65 7b 61 |rovidesP|ackage{a|
|00000340| 6e 73 77 65 72 73 7d 5b | 5c 66 69 6c 65 64 61 74 |nswers}[|\filedat|
|00000350| 65 5d 0a 5c 74 79 70 65 | 6f 75 74 7b 50 61 63 6b |e].\type|out{Pack|
|00000360| 61 67 65 20 60 61 6e 73 | 77 65 72 73 27 20 3c 5c |age `ans|wers' <\|
|00000370| 66 69 6c 65 64 61 74 65 | 3e 2e 7d 0a 5c 74 79 70 |filedate|>.}.\typ|
|00000380| 65 6f 75 74 7b 5c 43 6f | 70 79 72 69 67 68 74 7d |eout{\Co|pyright}|
|00000390| 0a 5c 52 65 71 75 69 72 | 65 50 61 63 6b 61 67 65 |.\Requir|ePackage|
|000003a0| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 5c 6e 65 77 63 |{verbati|m}.\newc|
|000003b0| 6f 6d 6d 61 6e 64 7b 5c | 73 6f 6c 75 74 69 6f 6e |ommand{\|solution|
|000003c0| 65 78 74 65 6e 73 69 6f | 6e 7d 7b 73 6f 6c 7d 0a |extensio|n}{sol}.|
|000003d0| 5c 6e 65 77 65 6e 76 69 | 72 6f 6e 6d 65 6e 74 7b |\newenvi|ronment{|
|000003e0| 46 69 6c 65 73 61 76 65 | 7d 5b 31 5d 7b 25 0a 20 |Filesave|}[1]{%. |
|000003f0| 20 20 5c 40 62 73 70 68 | 61 63 6b 0a 20 20 20 5c | \@bsph|ack. \|
|00000400| 64 65 66 5c 76 65 72 62 | 61 74 69 6d 40 70 72 6f |def\verb|atim@pro|
|00000410| 63 65 73 73 6c 69 6e 65 | 7b 7d 25 0a 20 20 20 5c |cessline|{}%. \|
|00000420| 49 66 66 69 6c 65 75 6e | 64 65 66 69 6e 65 64 7b |Iffileun|defined{|
|00000430| 23 31 7d 7b 7d 7b 25 0a | 20 20 20 20 20 20 5c 49 |#1}{}{%.| \I|
|00000440| 66 6f 70 65 6e 7b 23 31 | 7d 7b 25 0a 20 20 20 20 |fopen{#1|}{%. |
|00000450| 20 20 20 20 20 5c 64 65 | 66 5c 76 65 72 62 61 74 | \de|f\verbat|
|00000460| 69 6d 40 70 72 6f 63 65 | 73 73 6c 69 6e 65 7b 25 |im@proce|ssline{%|
|00000470| 0a 20 20 20 20 20 20 20 | 20 20 20 20 20 5c 69 6d |. | \im|
|00000480| 6d 65 64 69 61 74 65 5c | 77 72 69 74 65 5c 40 6e |mediate\|write\@n|
|00000490| 61 6d 65 75 73 65 7b 23 | 31 40 66 69 6c 65 7d 7b |ameuse{#|1@file}{|
|000004a0| 5c 74 68 65 5c 76 65 72 | 62 61 74 69 6d 40 6c 69 |\the\ver|batim@li|
|000004b0| 6e 65 7d 7d 25 0a 20 20 | 20 20 20 20 7d 7b 7d 25 |ne}}%. | }{}%|
|000004c0| 0a 20 20 20 7d 25 0a 20 | 20 20 5c 6c 65 74 5c 64 |. }%. | \let\d|
|000004d0| 6f 5c 40 6d 61 6b 65 6f | 74 68 65 72 5c 64 6f 73 |o\@makeo|ther\dos|
|000004e0| 70 65 63 69 61 6c 73 0a | 20 20 20 5c 63 61 74 63 |pecials.| \catc|
|000004f0| 6f 64 65 60 5c 5e 5e 4d | 5c 61 63 74 69 76 65 20 |ode`\^^M|\active |
|00000500| 5c 63 61 74 63 6f 64 65 | 60 5c 5e 5e 49 3d 31 32 |\catcode|`\^^I=12|
|00000510| 5c 72 65 6c 61 78 0a 20 | 20 20 5c 76 65 72 62 61 |\relax. | \verba|
|00000520| 74 69 6d 40 73 74 61 72 | 74 0a 7d 7b 5c 40 65 73 |tim@star|t.}{\@es|
|00000530| 70 68 61 63 6b 7d 0a 5c | 6e 65 77 63 6f 6d 6d 61 |phack}.\|newcomma|
|00000540| 6e 64 7b 5c 57 72 69 74 | 65 74 6f 66 69 6c 65 7d |nd{\Writ|etofile}|
|00000550| 5b 32 5d 7b 25 0a 20 20 | 20 5c 40 62 73 70 68 61 |[2]{%. | \@bspha|
|00000560| 63 6b 0a 20 20 20 5c 49 | 66 66 69 6c 65 75 6e 64 |ck. \I|ffileund|
|00000570| 65 66 69 6e 65 64 7b 23 | 31 7d 7b 7d 7b 25 0a 20 |efined{#|1}{}{%. |
|00000580| 20 20 20 20 20 5c 49 66 | 6f 70 65 6e 7b 23 31 7d | \If|open{#1}|
|00000590| 7b 25 0a 20 20 20 20 20 | 20 20 20 20 7b 25 0a 20 |{%. | {%. |
|000005a0| 20 20 20 20 20 20 20 20 | 20 20 20 5c 6c 65 74 5c | | \let\|
|000005b0| 70 72 6f 74 65 63 74 5c | 73 74 72 69 6e 67 0a 20 |protect\|string. |
|000005c0| 20 20 20 20 20 20 20 20 | 20 20 20 5c 69 6d 6d 65 | | \imme|
|000005d0| 64 69 61 74 65 5c 77 72 | 69 74 65 5c 40 6e 61 6d |diate\wr|ite\@nam|
|000005e0| 65 75 73 65 7b 23 31 40 | 66 69 6c 65 7d 7b 23 32 |euse{#1@|file}{#2|
|000005f0| 7d 25 0a 20 20 20 20 20 | 20 20 20 20 7d 25 0a 20 |}%. | }%. |
|00000600| 20 20 20 20 20 7d 7b 7d | 25 0a 20 20 20 7d 25 0a | }{}|%. }%.|
|00000610| 20 20 20 5c 40 65 73 70 | 68 61 63 6b 0a 7d 0a 5c | \@esp|hack.}.\|
|00000620| 6e 65 77 63 6f 6d 6d 61 | 6e 64 7b 5c 49 66 6f 70 |newcomma|nd{\Ifop|
|00000630| 65 6e 7d 5b 33 5d 7b 25 | 0a 20 20 20 5c 63 73 6e |en}[3]{%|. \csn|
|00000640| 61 6d 65 20 69 66 23 31 | 6f 70 65 6e 5c 65 6e 64 |ame if#1|open\end|
|00000650| 63 73 6e 61 6d 65 23 32 | 5c 65 6c 73 65 23 33 5c |csname#2|\else#3\|
|00000660| 66 69 7d 25 0a 5c 6e 65 | 77 63 6f 6d 6d 61 6e 64 |fi}%.\ne|wcommand|
|00000670| 7b 5c 49 66 66 69 6c 65 | 75 6e 64 65 66 69 6e 65 |{\Iffile|undefine|
|00000680| 64 7d 5b 33 5d 7b 25 0a | 20 20 20 5c 63 73 6e 61 |d}[3]{%.| \csna|
|00000690| 6d 65 20 69 66 78 5c 65 | 78 70 61 6e 64 61 66 74 |me ifx\e|xpandaft|
|000006a0| 65 72 5c 65 6e 64 63 73 | 6e 61 6d 65 5c 63 73 6e |er\endcs|name\csn|
|000006b0| 61 6d 65 20 23 31 40 66 | 69 6c 65 5c 65 6e 64 63 |ame #1@f|ile\endc|
|000006c0| 73 6e 61 6d 65 5c 72 65 | 6c 61 78 23 32 5c 65 6c |sname\re|lax#2\el|
|000006d0| 73 65 23 33 5c 66 69 7d | 0a 5c 64 65 66 5c 4f 70 |se#3\fi}|.\def\Op|
|000006e0| 65 6e 73 6f 6c 75 74 69 | 6f 6e 66 69 6c 65 23 31 |ensoluti|onfile#1|
|000006f0| 7b 25 0a 20 20 20 5c 49 | 66 66 69 6c 65 75 6e 64 |{%. \I|ffileund|
|00000700| 65 66 69 6e 65 64 7b 23 | 31 7d 7b 25 0a 20 20 20 |efined{#|1}{%. |
|00000710| 20 20 20 5c 65 78 70 61 | 6e 64 61 66 74 65 72 5c | \expa|ndafter\|
|00000720| 6e 65 77 77 72 69 74 65 | 5c 63 73 6e 61 6d 65 20 |newwrite|\csname |
|00000730| 23 31 40 66 69 6c 65 5c | 65 6e 64 63 73 6e 61 6d |#1@file\|endcsnam|
|00000740| 65 0a 20 20 20 20 20 20 | 5c 63 73 6e 61 6d 65 20 |e. |\csname |
|00000750| 6e 65 77 69 66 5c 65 78 | 70 61 6e 64 61 66 74 65 |newif\ex|pandafte|
|00000760| 72 5c 65 6e 64 63 73 6e | 61 6d 65 5c 63 73 6e 61 |r\endcsn|ame\csna|
|00000770| 6d 65 20 69 66 23 31 6f | 70 65 6e 5c 65 6e 64 63 |me if#1o|pen\endc|
|00000780| 73 6e 61 6d 65 0a 20 20 | 20 20 20 20 5c 63 73 6e |sname. | \csn|
|00000790| 61 6d 65 20 23 31 6f 70 | 65 6e 66 61 6c 73 65 5c |ame #1op|enfalse\|
|000007a0| 65 6e 64 63 73 6e 61 6d | 65 0a 20 20 20 20 20 20 |endcsnam|e. |
|000007b0| 5c 40 6e 61 6d 65 64 65 | 66 7b 23 31 40 66 69 6c |\@namede|f{#1@fil|
|000007c0| 65 6e 61 6d 65 7d 7b 23 | 31 2e 5c 73 6f 6c 75 74 |ename}{#|1.\solut|
|000007d0| 69 6f 6e 65 78 74 65 6e | 73 69 6f 6e 7d 25 0a 20 |ionexten|sion}%. |
|000007e0| 20 20 20 20 20 5c 40 6e | 61 6d 65 64 65 66 7b 4f | \@n|amedef{O|
|000007f0| 70 65 6e 23 31 68 6f 6f | 6b 7d 23 23 31 7b 7d 25 |pen#1hoo|k}##1{}%|
|00000800| 0a 20 20 20 20 20 20 5c | 40 6e 61 6d 65 64 65 66 |. \|@namedef|
|00000810| 7b 43 6c 6f 73 65 23 31 | 68 6f 6f 6b 7d 23 23 31 |{Close#1|hook}##1|
|00000820| 7b 7d 25 0a 20 20 20 7d | 7b 7d 25 0a 20 20 20 5c |{}%. }|{}%. \|
|00000830| 6c 65 74 5c 54 6d 70 5c | 72 65 6c 61 78 0a 20 20 |let\Tmp\|relax. |
|00000840| 20 5c 49 66 6f 70 65 6e | 7b 23 31 7d 7b 7d 7b 25 | \Ifopen|{#1}{}{%|
|00000850| 0a 20 20 20 20 20 20 5c | 69 6d 6d 65 64 69 61 74 |. \|immediat|
|00000860| 65 5c 6f 70 65 6e 6f 75 | 74 5c 40 6e 61 6d 65 75 |e\openou|t\@nameu|
|00000870| 73 65 7b 23 31 40 66 69 | 6c 65 7d 3d 5c 40 6e 61 |se{#1@fi|le}=\@na|
|00000880| 6d 65 75 73 65 7b 23 31 | 40 66 69 6c 65 6e 61 6d |meuse{#1|@filenam|
|00000890| 65 7d 25 0a 20 20 20 20 | 20 20 5c 63 73 6e 61 6d |e}%. | \csnam|
|000008a0| 65 20 23 31 6f 70 65 6e | 74 72 75 65 5c 65 6e 64 |e #1open|true\end|
|000008b0| 63 73 6e 61 6d 65 0a 20 | 20 20 20 20 20 5c 64 65 |csname. | \de|
|000008c0| 66 5c 54 6d 70 7b 5c 40 | 6e 61 6d 65 75 73 65 7b |f\Tmp{\@|nameuse{|
|000008d0| 4f 70 65 6e 23 31 68 6f | 6f 6b 7d 7b 23 31 7d 7d |Open#1ho|ok}{#1}}|
|000008e0| 25 0a 20 20 20 7d 25 0a | 20 20 20 5c 54 6d 70 0a |%. }%.| \Tmp.|
|000008f0| 7d 0a 5c 64 65 66 5c 43 | 6c 6f 73 65 73 6f 6c 75 |}.\def\C|losesolu|
|00000900| 74 69 6f 6e 66 69 6c 65 | 23 31 7b 25 0a 20 20 20 |tionfile|#1{%. |
|00000910| 5c 6c 65 74 5c 54 6d 70 | 5c 72 65 6c 61 78 0a 20 |\let\Tmp|\relax. |
|00000920| 20 20 5c 49 66 66 69 6c | 65 75 6e 64 65 66 69 6e | \Iffil|eundefin|
|00000930| 65 64 7b 23 31 7d 7b 7d | 7b 25 0a 20 20 20 20 20 |ed{#1}{}|{%. |
|00000940| 20 5c 49 66 6f 70 65 6e | 7b 23 31 7d 7b 25 0a 20 | \Ifopen|{#1}{%. |
|00000950| 20 20 20 20 20 20 20 20 | 5c 69 6d 6d 65 64 69 61 | |\immedia|
|00000960| 74 65 5c 63 6c 6f 73 65 | 6f 75 74 5c 40 6e 61 6d |te\close|out\@nam|
|00000970| 65 75 73 65 7b 23 31 40 | 66 69 6c 65 7d 25 0a 20 |euse{#1@|file}%. |
|00000980| 20 20 20 20 20 20 20 20 | 5c 63 73 6e 61 6d 65 20 | |\csname |
|00000990| 23 31 6f 70 65 6e 66 61 | 6c 73 65 5c 65 6e 64 63 |#1openfa|lse\endc|
|000009a0| 73 6e 61 6d 65 0a 20 20 | 20 20 20 20 20 20 20 5c |sname. | \|
|000009b0| 64 65 66 5c 54 6d 70 7b | 5c 40 6e 61 6d 65 75 73 |def\Tmp{|\@nameus|
|000009c0| 65 7b 43 6c 6f 73 65 23 | 31 68 6f 6f 6b 7d 7b 23 |e{Close#|1hook}{#|
|000009d0| 31 7d 7d 25 0a 20 20 20 | 20 20 20 7d 7b 7d 25 0a |1}}%. | }{}%.|
|000009e0| 20 20 20 7d 25 0a 20 20 | 20 5c 54 6d 70 0a 7d 0a | }%. | \Tmp.}.|
|000009f0| 5c 64 65 66 5c 52 65 61 | 64 73 6f 6c 75 74 69 6f |\def\Rea|dsolutio|
|00000a00| 6e 66 69 6c 65 23 31 7b | 25 0a 20 20 20 5c 49 66 |nfile#1{|%. \If|
|00000a10| 66 69 6c 65 75 6e 64 65 | 66 69 6e 65 64 7b 23 31 |fileunde|fined{#1|
|00000a20| 7d 7b 7d 7b 25 0a 20 20 | 20 20 20 20 5c 49 66 6f |}{}{%. | \Ifo|
|00000a30| 70 65 6e 7b 23 31 7d 7b | 25 0a 20 20 20 20 20 20 |pen{#1}{|%. |
|00000a40| 20 20 20 5c 74 79 70 65 | 6f 75 74 7b 57 41 52 4e | \type|out{WARN|
|00000a50| 49 4e 47 3a 20 61 74 74 | 65 6d 70 74 20 74 6f 20 |ING: att|empt to |
|00000a60| 72 65 61 64 20 6f 70 65 | 6e 20 66 69 6c 65 20 23 |read ope|n file #|
|00000a70| 31 7d 25 0a 20 20 20 20 | 20 20 7d 7b 25 0a 20 20 |1}%. | }{%. |
|00000a80| 20 20 20 20 20 20 20 5c | 49 6e 70 75 74 49 66 46 | \|InputIfF|
|00000a90| 69 6c 65 45 78 69 73 74 | 73 7b 23 31 2e 5c 73 6f |ileExist|s{#1.\so|
|00000aa0| 6c 75 74 69 6f 6e 65 78 | 74 65 6e 73 69 6f 6e 7d |lutionex|tension}|
|00000ab0| 7b 7d 25 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |{}%. | |
|00000ac0| 7b 5c 6d 65 73 73 61 67 | 65 7b 46 69 6c 65 20 23 |{\messag|e{File #|
|00000ad0| 31 2e 5c 73 6f 6c 75 74 | 69 6f 6e 65 78 74 65 6e |1.\solut|ionexten|
|00000ae0| 73 69 6f 6e 5c 73 70 61 | 63 65 20 6e 6f 74 20 66 |sion\spa|ce not f|
|00000af0| 6f 75 6e 64 7d 7d 25 0a | 20 20 20 20 20 20 7d 25 |ound}}%.| }%|
|00000b00| 0a 20 20 20 7d 25 0a 7d | 0a 5c 6e 65 77 63 6f 6d |. }%.}|.\newcom|
|00000b10| 6d 61 6e 64 7b 5c 4e 65 | 77 61 73 73 6f 63 69 61 |mand{\Ne|wassocia|
|00000b20| 74 69 6f 6e 7d 5b 33 5d | 7b 25 0a 20 20 20 5c 6e |tion}[3]|{%. \n|
|00000b30| 65 77 73 6f 6c 75 74 69 | 6f 6e 7b 23 32 7d 25 0a |ewsoluti|on{#2}%.|
|00000b40| 20 20 20 5c 6e 65 77 65 | 6e 76 69 72 6f 6e 6d 65 | \newe|nvironme|
|00000b50| 6e 74 7b 23 31 7d 7b 25 | 0a 20 20 20 20 20 20 5c |nt{#1}{%|. \|
|00000b60| 6c 65 74 5c 54 6d 70 5c | 72 65 6c 61 78 0a 20 20 |let\Tmp\|relax. |
|00000b70| 20 20 20 20 5c 49 66 66 | 69 6c 65 75 6e 64 65 66 | \Iff|ileundef|
|00000b80| 69 6e 65 64 7b 23 33 7d | 7b 7d 7b 25 0a 20 20 20 |ined{#3}|{}{%. |
|00000b90| 20 20 20 20 20 20 5c 49 | 66 6f 70 65 6e 7b 23 33 | \I|fopen{#3|
|00000ba0| 7d 7b 25 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |}{%. | |
|00000bb0| 5c 69 6d 6d 65 64 69 61 | 74 65 5c 77 72 69 74 65 |\immedia|te\write|
|00000bc0| 5c 40 6e 61 6d 65 75 73 | 65 7b 23 33 40 66 69 6c |\@nameus|e{#3@fil|
|00000bd0| 65 7d 25 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |e}%. | |
|00000be0| 20 20 20 7b 5c 73 74 72 | 69 6e 67 5c 62 65 67 69 | {\str|ing\begi|
|00000bf0| 6e 7b 23 32 7d 5c 40 6e | 61 6d 65 75 73 65 7b 23 |n{#2}\@n|ameuse{#|
|00000c00| 32 70 61 72 61 6d 73 7d | 7d 25 0a 20 20 20 20 20 |2params}|}%. |
|00000c10| 20 20 20 20 20 20 20 5c | 64 65 66 5c 54 6d 70 7b | \|def\Tmp{|
|00000c20| 5c 46 69 6c 65 73 61 76 | 65 7b 23 33 7d 7d 25 0a |\Filesav|e{#3}}%.|
|00000c30| 20 20 20 20 20 20 20 20 | 20 7d 7b 7d 25 0a 20 20 | | }{}%. |
|00000c40| 20 20 20 20 7d 25 0a 20 | 20 20 20 20 20 5c 54 6d | }%. | \Tm|
|00000c50| 70 0a 20 20 20 7d 25 0a | 20 20 20 7b 25 0a 20 20 |p. }%.| {%. |
|00000c60| 20 20 20 20 5c 49 66 66 | 69 6c 65 75 6e 64 65 66 | \Iff|ileundef|
|00000c70| 69 6e 65 64 7b 23 33 7d | 7b 7d 7b 25 0a 20 20 20 |ined{#3}|{}{%. |
|00000c80| 20 20 20 20 20 20 5c 49 | 66 6f 70 65 6e 7b 23 33 | \I|fopen{#3|
|00000c90| 7d 7b 25 0a 20 20 20 20 | 20 20 20 20 20 20 20 20 |}{%. | |
|00000ca0| 5c 65 6e 64 46 69 6c 65 | 73 61 76 65 25 0a 20 20 |\endFile|save%. |
|00000cb0| 20 20 20 20 20 20 20 20 | 20 20 5c 69 6d 6d 65 64 | | \immed|
|00000cc0| 69 61 74 65 5c 77 72 69 | 74 65 5c 40 6e 61 6d 65 |iate\wri|te\@name|
|00000cd0| 75 73 65 7b 23 33 40 66 | 69 6c 65 7d 7b 5c 73 74 |use{#3@f|ile}{\st|
|00000ce0| 72 69 6e 67 5c 65 6e 64 | 7b 23 32 7d 7d 25 0a 20 |ring\end|{#2}}%. |
|00000cf0| 20 20 20 20 20 20 20 20 | 7d 7b 7d 25 0a 20 20 20 | |}{}%. |
|00000d00| 20 20 20 7d 25 0a 20 20 | 20 7d 25 0a 7d 0a 5c 6e | }%. | }%.}.\n|
|00000d10| 65 77 63 6f 6d 6d 61 6e | 64 7b 5c 6e 65 77 73 6f |ewcomman|d{\newso|
|00000d20| 6c 75 74 69 6f 6e 7d 5b | 31 5d 7b 25 0a 20 20 20 |lution}[|1]{%. |
|00000d30| 5c 40 69 66 75 6e 64 65 | 66 69 6e 65 64 7b 23 31 |\@ifunde|fined{#1|
|00000d40| 7d 7b 25 0a 20 20 20 20 | 20 20 5c 40 6e 61 6d 65 |}{%. | \@name|
|00000d50| 64 65 66 7b 23 31 70 61 | 72 61 6d 73 7d 7b 7b 5c |def{#1pa|rams}{{\|
|00000d60| 43 75 72 72 65 6e 74 6c | 61 62 65 6c 7d 7d 25 0a |Currentl|abel}}%.|
|00000d70| 20 20 20 20 20 20 5c 6e | 65 77 65 6e 76 69 72 6f | \n|ewenviro|
|00000d80| 6e 6d 65 6e 74 7b 23 31 | 7d 5b 31 5d 7b 25 0a 20 |nment{#1|}[1]{%. |
|00000d90| 20 20 20 20 20 20 20 20 | 5c 74 72 69 76 6c 69 73 | |\trivlis|
|00000da0| 74 0a 20 20 20 20 20 20 | 20 20 20 5c 69 74 65 6d |t. | \item|
|00000db0| 5b 5c 68 73 6b 69 70 5c | 69 74 65 6d 73 65 70 7b |[\hskip\|itemsep{|
|00000dc0| 5c 40 6e 61 6d 65 75 73 | 65 7b 23 31 6c 61 62 65 |\@nameus|e{#1labe|
|00000dd0| 6c 7d 7b 23 23 31 7d 7d | 5d 7d 7b 5c 65 6e 64 74 |l}{##1}}|]}{\endt|
|00000de0| 72 69 76 6c 69 73 74 7d | 25 0a 20 20 20 20 20 20 |rivlist}|%. |
|00000df0| 5c 40 6e 61 6d 65 64 65 | 66 7b 23 31 6c 61 62 65 |\@namede|f{#1labe|
|00000e00| 6c 7d 23 23 31 7b 5c 62 | 66 73 65 72 69 65 73 23 |l}##1{\b|fseries#|
|00000e10| 23 31 7d 25 0a 20 20 20 | 7d 7b 5c 74 79 70 65 6f |#1}%. |}{\typeo|
|00000e20| 75 74 7b 57 41 52 4e 49 | 4e 47 3a 20 65 6e 76 69 |ut{WARNI|NG: envi|
|00000e30| 72 6f 6e 6d 65 6e 74 20 | 23 31 20 61 6c 72 65 61 |ronment |#1 alrea|
|00000e40| 64 79 20 69 6e 20 75 73 | 65 7d 7d 25 0a 7d 0a 5c |dy in us|e}}%.}.\|
|00000e50| 6e 65 77 63 6f 6d 6d 61 | 6e 64 7b 5c 43 75 72 72 |newcomma|nd{\Curr|
|00000e60| 65 6e 74 6c 61 62 65 6c | 7d 7b 5c 40 63 75 72 72 |entlabel|}{\@curr|
|00000e70| 65 6e 74 6c 61 62 65 6c | 7d 0a 5c 65 6e 64 69 6e |entlabel|}.\endin|
|00000e80| 70 75 74 0a 25 25 20 0a | 25 25 20 45 6e 64 20 6f |put.%% .|%% End o|
|00000e90| 66 20 66 69 6c 65 20 60 | 61 6e 73 77 65 72 73 2e |f file `|answers.|
|00000ea0| 73 74 79 27 2e 0a | |sty'.. | |
+--------+-------------------------+-------------------------+--------+--------+