home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 2 / Amiga Tools 2.iso / tex / macros / source / contrib / other / williams / algorithmic.sty < prev    next >
LaTeX Document  |  1995-03-15  |  2.2 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, 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 20 41 4c 47 4f 52 49 | 54 48 4d 49 43 20 53 54 |% ALGORI|THMIC ST|
|00000010| 59 4c 45 20 2d 2d 20 52 | 65 6c 65 61 73 65 64 20 |YLE -- R|eleased |
|00000020| 35 20 4d 61 79 20 31 39 | 39 34 0a 25 20 20 20 20 |5 May 19|94.% |
|00000030| 66 6f 72 20 4c 61 54 65 | 58 20 76 65 72 73 69 6f |for LaTe|X versio|
|00000040| 6e 20 32 65 0a 25 20 43 | 6f 70 79 72 69 67 68 74 |n 2e.% C|opyright|
|00000050| 20 2d 2d 20 31 39 39 34 | 20 50 65 74 65 72 20 57 | -- 1994| Peter W|
|00000060| 69 6c 6c 69 61 6d 73 0a | 5c 4e 65 65 64 73 54 65 |illiams.|\NeedsTe|
|00000070| 58 46 6f 72 6d 61 74 7b | 4c 61 54 65 58 32 65 7d |XFormat{|LaTeX2e}|
|00000080| 0a 5c 50 72 6f 76 69 64 | 65 73 50 61 63 6b 61 67 |.\Provid|esPackag|
|00000090| 65 7b 61 6c 67 6f 72 69 | 74 68 6d 69 63 7d 0a 5c |e{algori|thmic}.\|
|000000a0| 74 79 70 65 6f 75 74 7b | 44 6f 63 75 6d 65 6e 74 |typeout{|Document|
|000000b0| 20 53 74 79 6c 65 20 60 | 61 6c 67 6f 72 69 74 68 | Style `|algorith|
|000000c0| 6d 69 63 27 20 2d 20 65 | 6e 76 69 72 6f 6e 6d 65 |mic' - e|nvironme|
|000000d0| 6e 74 7d 0a 25 0a 5c 52 | 65 71 75 69 72 65 50 61 |nt}.%.\R|equirePa|
|000000e0| 63 6b 61 67 65 7b 69 66 | 74 68 65 6e 7d 0a 5c 6e |ckage{if|then}.\n|
|000000f0| 65 77 62 6f 6f 6c 65 61 | 6e 7b 41 4c 43 40 6e 6f |ewboolea|n{ALC@no|
|00000100| 65 6e 64 7d 0a 5c 73 65 | 74 62 6f 6f 6c 65 61 6e |end}.\se|tboolean|
|00000110| 7b 41 4c 43 40 6e 6f 65 | 6e 64 7d 7b 66 61 6c 73 |{ALC@noe|nd}{fals|
|00000120| 65 7d 0a 25 0a 5c 44 65 | 63 6c 61 72 65 4f 70 74 |e}.%.\De|clareOpt|
|00000130| 69 6f 6e 7b 6e 6f 65 6e | 64 7d 7b 5c 73 65 74 62 |ion{noen|d}{\setb|
|00000140| 6f 6f 6c 65 61 6e 7b 41 | 4c 43 40 6e 6f 65 6e 64 |oolean{A|LC@noend|
|00000150| 7d 7b 74 72 75 65 7d 7d | 0a 25 0a 5c 50 72 6f 63 |}{true}}|.%.\Proc|
|00000160| 65 73 73 4f 70 74 69 6f | 6e 73 0a 25 0a 25 20 41 |essOptio|ns.%.% A|
|00000170| 4c 47 4f 52 49 54 48 4d | 49 43 0a 25 0a 5c 6e 65 |LGORITHM|IC.%.\ne|
|00000180| 77 65 6e 76 69 72 6f 6e | 6d 65 6e 74 7b 61 6c 67 |wenviron|ment{alg|
|00000190| 6f 72 69 74 68 6d 69 63 | 7d 7b 0a 20 20 5c 6e 65 |orithmic|}{. \ne|
|000001a0| 77 65 6e 76 69 72 6f 6e | 6d 65 6e 74 7b 41 4c 43 |wenviron|ment{ALC|
|000001b0| 40 67 7d 7b 0a 20 20 20 | 20 5c 62 65 67 69 6e 7b |@g}{. | \begin{|
|000001c0| 6c 69 73 74 7d 7b 7d 7b | 5c 69 74 65 6d 73 65 70 |list}{}{|\itemsep|
|000001d0| 5c 7a 40 20 5c 69 74 65 | 6d 69 6e 64 65 6e 74 5c |\z@ \ite|mindent\|
|000001e0| 7a 40 20 5c 6c 69 73 74 | 70 61 72 69 6e 64 65 6e |z@ \list|parinden|
|000001f0| 74 5c 7a 40 0a 20 20 20 | 20 5c 74 6f 70 73 65 70 |t\z@. | \topsep|
|00000200| 5c 7a 40 20 5c 70 61 72 | 74 6f 70 73 65 70 5c 7a |\z@ \par|topsep\z|
|00000210| 40 20 5c 70 61 72 73 6b | 69 70 5c 7a 40 5c 70 61 |@ \parsk|ip\z@\pa|
|00000220| 72 73 65 70 5c 7a 40 0a | 20 20 20 20 5c 6c 65 66 |rsep\z@.| \lef|
|00000230| 74 6d 61 72 67 69 6e 20 | 31 65 6d 7d 5c 69 74 65 |tmargin |1em}\ite|
|00000240| 6d 5b 5d 0a 20 20 7d 0a | 20 20 7b 5c 65 6e 64 7b |m[]. }.| {\end{|
|00000250| 6c 69 73 74 7d 7d 0a 20 | 20 5c 6e 65 77 65 6e 76 |list}}. | \newenv|
|00000260| 69 72 6f 6e 6d 65 6e 74 | 7b 41 4c 43 40 69 66 7d |ironment|{ALC@if}|
|00000270| 7b 5c 62 65 67 69 6e 7b | 41 4c 43 40 67 7d 7d 7b |{\begin{|ALC@g}}{|
|00000280| 5c 65 6e 64 7b 41 4c 43 | 40 67 7d 7d 0a 20 20 5c |\end{ALC|@g}}. \|
|00000290| 6e 65 77 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 7b 41 |newenvir|onment{A|
|000002a0| 4c 43 40 66 6f 72 7d 7b | 5c 62 65 67 69 6e 7b 41 |LC@for}{|\begin{A|
|000002b0| 4c 43 40 67 7d 7d 7b 5c | 65 6e 64 7b 41 4c 43 40 |LC@g}}{\|end{ALC@|
|000002c0| 67 7d 7d 0a 20 20 5c 6e | 65 77 65 6e 76 69 72 6f |g}}. \n|ewenviro|
|000002d0| 6e 6d 65 6e 74 7b 41 4c | 43 40 77 68 6c 7d 7b 5c |nment{AL|C@whl}{\|
|000002e0| 62 65 67 69 6e 7b 41 4c | 43 40 67 7d 7d 7b 5c 65 |begin{AL|C@g}}{\e|
|000002f0| 6e 64 7b 41 4c 43 40 67 | 7d 7d 0a 20 20 5c 6e 65 |nd{ALC@g|}}. \ne|
|00000300| 77 65 6e 76 69 72 6f 6e | 6d 65 6e 74 7b 41 4c 43 |wenviron|ment{ALC|
|00000310| 40 6c 6f 6f 70 7d 7b 5c | 62 65 67 69 6e 7b 41 4c |@loop}{\|begin{AL|
|00000320| 43 40 67 7d 7d 7b 5c 65 | 6e 64 7b 41 4c 43 40 67 |C@g}}{\e|nd{ALC@g|
|00000330| 7d 7d 0a 20 20 5c 6e 65 | 77 65 6e 76 69 72 6f 6e |}}. \ne|wenviron|
|00000340| 6d 65 6e 74 7b 41 4c 43 | 40 72 70 74 7d 7b 5c 62 |ment{ALC|@rpt}{\b|
|00000350| 65 67 69 6e 7b 41 4c 43 | 40 67 7d 7d 7b 5c 65 6e |egin{ALC|@g}}{\en|
|00000360| 64 7b 41 4c 43 40 67 7d | 7d 0a 20 20 5c 72 65 6e |d{ALC@g}|}. \ren|
|00000370| 65 77 63 6f 6d 6d 61 6e | 64 7b 5c 5c 7d 7b 5c 40 |ewcomman|d{\\}{\@|
|00000380| 63 65 6e 74 65 72 63 72 | 7d 0a 20 20 5c 6e 65 77 |centercr|}. \new|
|00000390| 63 6f 6d 6d 61 6e 64 7b | 5c 49 46 7d 5b 31 5d 7b |command{|\IF}[1]{|
|000003a0| 5c 6d 62 6f 78 7b 5c 62 | 66 20 69 66 20 7d 23 23 |\mbox{\b|f if }##|
|000003b0| 31 20 5c 6d 62 6f 78 7b | 5c 62 66 20 74 68 65 6e |1 \mbox{|\bf then|
|000003c0| 7d 5c 62 65 67 69 6e 7b | 41 4c 43 40 69 66 7d 7d |}\begin{|ALC@if}}|
|000003d0| 0a 20 20 5c 6e 65 77 63 | 6f 6d 6d 61 6e 64 7b 5c |. \newc|ommand{\|
|000003e0| 45 4c 53 45 7d 7b 5c 65 | 6e 64 7b 41 4c 43 40 69 |ELSE}{\e|nd{ALC@i|
|000003f0| 66 7d 5c 6d 62 6f 78 7b | 5c 62 66 20 65 6c 73 65 |f}\mbox{|\bf else|
|00000400| 7d 5c 62 65 67 69 6e 7b | 41 4c 43 40 69 66 7d 7d |}\begin{|ALC@if}}|
|00000410| 0a 20 20 5c 6e 65 77 63 | 6f 6d 6d 61 6e 64 7b 5c |. \newc|ommand{\|
|00000420| 45 4c 53 49 46 7d 5b 31 | 5d 7b 5c 65 6e 64 7b 41 |ELSIF}[1|]{\end{A|
|00000430| 4c 43 40 69 66 7d 5c 6d | 62 6f 78 7b 5c 62 66 20 |LC@if}\m|box{\bf |
|00000440| 65 6c 73 65 20 69 66 20 | 7d 23 23 31 20 5c 6d 62 |else if |}##1 \mb|
|00000450| 6f 78 7b 5c 62 66 20 74 | 68 65 6e 7d 5c 62 65 67 |ox{\bf t|hen}\beg|
|00000460| 69 6e 7b 41 4c 43 40 69 | 66 7d 7d 0a 20 20 5c 6e |in{ALC@i|f}}. \n|
|00000470| 65 77 63 6f 6d 6d 61 6e | 64 7b 5c 46 4f 52 7d 5b |ewcomman|d{\FOR}[|
|00000480| 31 5d 7b 5c 6d 62 6f 78 | 7b 5c 62 66 20 66 6f 72 |1]{\mbox|{\bf for|
|00000490| 20 7d 23 23 31 20 5c 6d | 62 6f 78 7b 5c 62 66 20 | }##1 \m|box{\bf |
|000004a0| 64 6f 7d 5c 62 65 67 69 | 6e 7b 41 4c 43 40 66 6f |do}\begi|n{ALC@fo|
|000004b0| 72 7d 7d 0a 20 20 5c 6e | 65 77 63 6f 6d 6d 61 6e |r}}. \n|ewcomman|
|000004c0| 64 7b 5c 46 4f 52 41 4c | 4c 7d 5b 31 5d 7b 5c 6d |d{\FORAL|L}[1]{\m|
|000004d0| 62 6f 78 7b 5c 62 66 20 | 66 6f 72 20 61 6c 6c 20 |box{\bf |for all |
|000004e0| 7d 23 23 31 20 5c 6d 62 | 6f 78 7b 5c 62 66 20 64 |}##1 \mb|ox{\bf d|
|000004f0| 6f 7d 5c 62 65 67 69 6e | 7b 41 4c 43 40 66 6f 72 |o}\begin|{ALC@for|
|00000500| 7d 7d 0a 20 20 5c 6e 65 | 77 63 6f 6d 6d 61 6e 64 |}}. \ne|wcommand|
|00000510| 7b 5c 57 48 49 4c 45 7d | 5b 31 5d 7b 5c 6d 62 6f |{\WHILE}|[1]{\mbo|
|00000520| 78 7b 5c 62 66 20 77 68 | 69 6c 65 20 7d 23 23 31 |x{\bf wh|ile }##1|
|00000530| 20 5c 6d 62 6f 78 7b 5c | 62 66 20 64 6f 7d 5c 62 | \mbox{\|bf do}\b|
|00000540| 65 67 69 6e 7b 41 4c 43 | 40 77 68 6c 7d 7d 0a 20 |egin{ALC|@whl}}. |
|00000550| 20 5c 6e 65 77 63 6f 6d | 6d 61 6e 64 7b 5c 4c 4f | \newcom|mand{\LO|
|00000560| 4f 50 7d 7b 5c 6d 62 6f | 78 7b 5c 62 66 20 6c 6f |OP}{\mbo|x{\bf lo|
|00000570| 6f 70 7d 5c 62 65 67 69 | 6e 7b 41 4c 43 40 6c 6f |op}\begi|n{ALC@lo|
|00000580| 6f 70 7d 7d 0a 20 20 5c | 6e 65 77 63 6f 6d 6d 61 |op}}. \|newcomma|
|00000590| 6e 64 7b 5c 52 45 50 45 | 41 54 7d 7b 5c 6d 62 6f |nd{\REPE|AT}{\mbo|
|000005a0| 78 7b 5c 62 66 20 72 65 | 70 65 61 74 7d 5c 62 65 |x{\bf re|peat}\be|
|000005b0| 67 69 6e 7b 41 4c 43 40 | 72 70 74 7d 7d 0a 20 20 |gin{ALC@|rpt}}. |
|000005c0| 5c 6e 65 77 63 6f 6d 6d | 61 6e 64 7b 5c 55 4e 54 |\newcomm|and{\UNT|
|000005d0| 49 4c 7d 5b 31 5d 7b 5c | 65 6e 64 7b 41 4c 43 40 |IL}[1]{\|end{ALC@|
|000005e0| 72 70 74 7d 5c 6d 62 6f | 78 7b 5c 62 66 20 75 6e |rpt}\mbo|x{\bf un|
|000005f0| 74 69 6c 20 7d 23 23 31 | 5c 40 63 65 6e 74 65 72 |til }##1|\@center|
|00000600| 63 72 7d 0a 20 20 5c 69 | 66 74 68 65 6e 65 6c 73 |cr}. \i|fthenels|
|00000610| 65 7b 5c 62 6f 6f 6c 65 | 61 6e 7b 41 4c 43 40 6e |e{\boole|an{ALC@n|
|00000620| 6f 65 6e 64 7d 7d 7b 0a | 20 20 20 20 5c 6e 65 77 |oend}}{.| \new|
|00000630| 63 6f 6d 6d 61 6e 64 7b | 5c 45 4e 44 49 46 7d 7b |command{|\ENDIF}{|
|00000640| 5c 65 6e 64 7b 41 4c 43 | 40 69 66 7d 7d 0a 20 20 |\end{ALC|@if}}. |
|00000650| 20 20 5c 6e 65 77 63 6f | 6d 6d 61 6e 64 7b 5c 45 | \newco|mmand{\E|
|00000660| 4e 44 46 4f 52 7d 7b 5c | 65 6e 64 7b 41 4c 43 40 |NDFOR}{\|end{ALC@|
|00000670| 66 6f 72 7d 7d 0a 20 20 | 20 20 5c 6e 65 77 63 6f |for}}. | \newco|
|00000680| 6d 6d 61 6e 64 7b 5c 45 | 4e 44 57 48 49 4c 45 7d |mmand{\E|NDWHILE}|
|00000690| 7b 5c 65 6e 64 7b 41 4c | 43 40 77 68 6c 7d 7d 0a |{\end{AL|C@whl}}.|
|000006a0| 20 20 20 20 5c 6e 65 77 | 63 6f 6d 6d 61 6e 64 7b | \new|command{|
|000006b0| 5c 45 4e 44 4c 4f 4f 50 | 7d 7b 5c 65 6e 64 7b 41 |\ENDLOOP|}{\end{A|
|000006c0| 4c 43 40 6c 6f 6f 70 7d | 7d 0a 20 20 7d 7b 0a 20 |LC@loop}|}. }{. |
|000006d0| 20 20 20 5c 6e 65 77 63 | 6f 6d 6d 61 6e 64 7b 5c | \newc|ommand{\|
|000006e0| 45 4e 44 49 46 7d 7b 5c | 65 6e 64 7b 41 4c 43 40 |ENDIF}{\|end{ALC@|
|000006f0| 69 66 7d 5c 6d 62 6f 78 | 7b 5c 62 66 20 65 6e 64 |if}\mbox|{\bf end|
|00000700| 20 69 66 7d 5c 40 63 65 | 6e 74 65 72 63 72 7d 0a | if}\@ce|ntercr}.|
|00000710| 20 20 20 20 5c 6e 65 77 | 63 6f 6d 6d 61 6e 64 7b | \new|command{|
|00000720| 5c 45 4e 44 46 4f 52 7d | 7b 5c 65 6e 64 7b 41 4c |\ENDFOR}|{\end{AL|
|00000730| 43 40 66 6f 72 7d 5c 6d | 62 6f 78 7b 5c 62 66 20 |C@for}\m|box{\bf |
|00000740| 65 6e 64 20 66 6f 72 7d | 5c 40 63 65 6e 74 65 72 |end for}|\@center|
|00000750| 63 72 7d 0a 20 20 20 20 | 5c 6e 65 77 63 6f 6d 6d |cr}. |\newcomm|
|00000760| 61 6e 64 7b 5c 45 4e 44 | 57 48 49 4c 45 7d 7b 5c |and{\END|WHILE}{\|
|00000770| 65 6e 64 7b 41 4c 43 40 | 77 68 6c 7d 5c 6d 62 6f |end{ALC@|whl}\mbo|
|00000780| 78 7b 5c 62 66 20 65 6e | 64 20 77 68 69 6c 65 7d |x{\bf en|d while}|
|00000790| 5c 40 63 65 6e 74 65 72 | 63 72 7d 0a 20 20 20 20 |\@center|cr}. |
|000007a0| 5c 6e 65 77 63 6f 6d 6d | 61 6e 64 7b 5c 45 4e 44 |\newcomm|and{\END|
|000007b0| 4c 4f 4f 50 7d 7b 5c 65 | 6e 64 7b 41 4c 43 40 6c |LOOP}{\e|nd{ALC@l|
|000007c0| 6f 6f 70 7d 5c 6d 62 6f | 78 7b 5c 62 66 20 65 6e |oop}\mbo|x{\bf en|
|000007d0| 64 20 6c 6f 6f 70 7d 5c | 40 63 65 6e 74 65 72 63 |d loop}\|@centerc|
|000007e0| 72 7d 0a 20 20 7d 20 0a | 20 20 5c 72 65 6e 65 77 |r}. } .| \renew|
|000007f0| 63 6f 6d 6d 61 6e 64 7b | 5c 40 74 6f 6f 64 65 65 |command{|\@toodee|
|00000800| 70 7d 7b 7d 0a 20 20 5c | 62 65 67 69 6e 7b 6c 69 |p}{}. \|begin{li|
|00000810| 73 74 7d 7b 7d 7b 25 0a | 20 20 20 20 5c 69 74 65 |st}{}{%.| \ite|
|00000820| 6d 73 65 70 5c 7a 40 20 | 5c 69 74 65 6d 69 6e 64 |msep\z@ |\itemind|
|00000830| 65 6e 74 5c 7a 40 20 5c | 6c 69 73 74 70 61 72 69 |ent\z@ \|listpari|
|00000840| 6e 64 65 6e 74 5c 7a 40 | 25 0a 20 20 20 20 5c 70 |ndent\z@|%. \p|
|00000850| 61 72 74 6f 70 73 65 70 | 5c 7a 40 20 5c 70 61 72 |artopsep|\z@ \par|
|00000860| 73 6b 69 70 5c 7a 40 20 | 5c 70 61 72 73 65 70 5c |skip\z@ |\parsep\|
|00000870| 7a 40 25 0a 20 20 20 20 | 5c 6c 65 66 74 6d 61 72 |z@%. |\leftmar|
|00000880| 67 69 6e 20 31 65 6d 20 | 5c 74 6f 70 73 65 70 20 |gin 1em |\topsep |
|00000890| 30 2e 32 65 6d 25 0a 20 | 20 7d 5c 69 74 65 6d 5b |0.2em%. | }\item[|
|000008a0| 5d 0a 7d 0a 7b 5c 65 6e | 64 7b 6c 69 73 74 7d 7d |].}.{\en|d{list}}|
|000008b0| 0a | |. | |
+--------+-------------------------+-------------------------+--------+--------+