home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 3 / Meeting_Pearls_III.iso / Pearls / texmf / inputs / latex / unpacked / clsguide.tex < prev    next >
LaTeX Document  |  1995-06-21  |  57.3 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 Corel 10 Texture (image/corel10Texture) ext Unsupported
1% dexvert Croteam texture file (image/croteamTextureFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file HTML document text default (weak)
99% file LaTeX 2e document text default
98% file LaTeX document text default
97% file LaTeX document, ASCII text default
100% TrID LaTeX 2e document (with rem) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/x-matlab default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 5c 69 66 66 61 6c | 73 65 20 6d 65 74 61 2d |% \iffal|se meta-|
|00000010| 63 6f 6d 6d 65 6e 74 0a | 25 0a 25 20 43 6f 70 79 |comment.|%.% Copy|
|00000020| 72 69 67 68 74 20 31 39 | 39 33 2d 31 39 39 35 20 |right 19|93-1995 |
|00000030| 74 68 65 20 4c 61 54 65 | 58 33 20 70 72 6f 6a 65 |the LaTe|X3 proje|
|00000040| 63 74 20 61 6e 64 20 61 | 6e 79 20 69 6e 64 69 76 |ct and a|ny indiv|
|00000050| 69 64 75 61 6c 20 61 75 | 74 68 6f 72 73 0a 25 20 |idual au|thors.% |
|00000060| 6c 69 73 74 65 64 20 65 | 6c 73 65 77 68 65 72 65 |listed e|lsewhere|
|00000070| 20 69 6e 20 74 68 69 73 | 20 66 69 6c 65 2e 20 20 | in this| file. |
|00000080| 41 6c 6c 20 72 69 67 68 | 74 73 20 72 65 73 65 72 |All righ|ts reser|
|00000090| 76 65 64 2e 0a 25 20 0a | 25 20 46 6f 72 20 66 75 |ved..% .|% For fu|
|000000a0| 72 74 68 65 72 20 63 6f | 70 79 72 69 67 68 74 20 |rther co|pyright |
|000000b0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 73 65 65 20 |informat|ion see |
|000000c0| 74 68 65 20 66 69 6c 65 | 20 6c 65 67 61 6c 2e 74 |the file| legal.t|
|000000d0| 78 74 2c 20 61 6e 64 20 | 61 6e 79 0a 25 20 6f 74 |xt, and |any.% ot|
|000000e0| 68 65 72 20 63 6f 70 79 | 72 69 67 68 74 20 6e 6f |her copy|right no|
|000000f0| 74 69 63 65 73 20 69 6e | 20 74 68 69 73 20 66 69 |tices in| this fi|
|00000100| 6c 65 2e 0a 25 20 0a 25 | 20 54 68 69 73 20 66 69 |le..% .%| This fi|
|00000110| 6c 65 20 69 73 20 70 61 | 72 74 20 6f 66 20 74 68 |le is pa|rt of th|
|00000120| 65 20 4c 61 54 65 58 32 | 65 20 73 79 73 74 65 6d |e LaTeX2|e system|
|00000130| 2e 0a 25 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..% ----|--------|
|00000140| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000150| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 0a 25 20 20 |--------|----.% |
|00000160| 20 54 68 69 73 20 73 79 | 73 74 65 6d 20 69 73 20 | This sy|stem is |
|00000170| 64 69 73 74 72 69 62 75 | 74 65 64 20 69 6e 20 74 |distribu|ted in t|
|00000180| 68 65 20 68 6f 70 65 20 | 74 68 61 74 20 69 74 20 |he hope |that it |
|00000190| 77 69 6c 6c 20 62 65 20 | 75 73 65 66 75 6c 2c 0a |will be |useful,.|
|000001a0| 25 20 20 20 62 75 74 20 | 57 49 54 48 4f 55 54 20 |% but |WITHOUT |
|000001b0| 41 4e 59 20 57 41 52 52 | 41 4e 54 59 3b 20 77 69 |ANY WARR|ANTY; wi|
|000001c0| 74 68 6f 75 74 20 65 76 | 65 6e 20 74 68 65 20 69 |thout ev|en the i|
|000001d0| 6d 70 6c 69 65 64 20 77 | 61 72 72 61 6e 74 79 20 |mplied w|arranty |
|000001e0| 6f 66 0a 25 20 20 20 4d | 45 52 43 48 41 4e 54 41 |of.% M|ERCHANTA|
|000001f0| 42 49 4c 49 54 59 20 6f | 72 20 46 49 54 4e 45 53 |BILITY o|r FITNES|
|00000200| 53 20 46 4f 52 20 41 20 | 50 41 52 54 49 43 55 4c |S FOR A |PARTICUL|
|00000210| 41 52 20 50 55 52 50 4f | 53 45 2e 0a 25 20 0a 25 |AR PURPO|SE..% .%|
|00000220| 20 20 20 46 6f 72 20 65 | 72 72 6f 72 20 72 65 70 | For e|rror rep|
|00000230| 6f 72 74 73 20 63 6f 6e | 63 65 72 6e 69 6e 67 20 |orts con|cerning |
|00000240| 55 4e 43 48 41 4e 47 45 | 44 20 76 65 72 73 69 6f |UNCHANGE|D versio|
|00000250| 6e 73 20 6f 66 20 74 68 | 69 73 20 66 69 6c 65 20 |ns of th|is file |
|00000260| 6e 6f 20 6d 6f 72 65 0a | 25 20 20 20 74 68 61 6e |no more.|% than|
|00000270| 20 6f 6e 65 20 79 65 61 | 72 20 6f 6c 64 2c 20 73 | one yea|r old, s|
|00000280| 65 65 20 62 75 67 73 2e | 74 78 74 2e 0a 25 20 0a |ee bugs.|txt..% .|
|00000290| 25 20 20 20 50 6c 65 61 | 73 65 20 64 6f 20 6e 6f |% Plea|se do no|
|000002a0| 74 20 72 65 71 75 65 73 | 74 20 75 70 64 61 74 65 |t reques|t update|
|000002b0| 73 20 66 72 6f 6d 20 75 | 73 20 64 69 72 65 63 74 |s from u|s direct|
|000002c0| 6c 79 2e 20 20 50 72 69 | 6d 61 72 79 0a 25 20 20 |ly. Pri|mary.% |
|000002d0| 20 64 69 73 74 72 69 62 | 75 74 69 6f 6e 20 69 73 | distrib|ution is|
|000002e0| 20 74 68 72 6f 75 67 68 | 20 74 68 65 20 43 54 41 | through| the CTA|
|000002f0| 4e 20 61 72 63 68 69 76 | 65 73 2e 0a 25 20 0a 25 |N archiv|es..% .%|
|00000300| 20 0a 25 20 49 4d 50 4f | 52 54 41 4e 54 20 43 4f | .% IMPO|RTANT CO|
|00000310| 50 59 52 49 47 48 54 20 | 4e 4f 54 49 43 45 3a 0a |PYRIGHT |NOTICE:.|
|00000320| 25 20 0a 25 20 59 6f 75 | 20 61 72 65 20 4e 4f 54 |% .% You| are NOT|
|00000330| 20 41 4c 4c 4f 57 45 44 | 20 74 6f 20 64 69 73 74 | ALLOWED| to dist|
|00000340| 72 69 62 75 74 65 20 74 | 68 69 73 20 66 69 6c 65 |ribute t|his file|
|00000350| 20 61 6c 6f 6e 65 2e 0a | 25 20 0a 25 20 59 6f 75 | alone..|% .% You|
|00000360| 20 61 72 65 20 61 6c 6c | 6f 77 65 64 20 74 6f 20 | are all|owed to |
|00000370| 64 69 73 74 72 69 62 75 | 74 65 20 74 68 69 73 20 |distribu|te this |
|00000380| 66 69 6c 65 20 75 6e 64 | 65 72 20 74 68 65 20 63 |file und|er the c|
|00000390| 6f 6e 64 69 74 69 6f 6e | 20 74 68 61 74 20 69 74 |ondition| that it|
|000003a0| 20 69 73 0a 25 20 64 69 | 73 74 72 69 62 75 74 65 | is.% di|stribute|
|000003b0| 64 20 74 6f 67 65 74 68 | 65 72 20 77 69 74 68 20 |d togeth|er with |
|000003c0| 61 6c 6c 20 74 68 65 20 | 66 69 6c 65 73 20 6c 69 |all the |files li|
|000003d0| 73 74 65 64 20 69 6e 20 | 6d 61 6e 69 66 65 73 74 |sted in |manifest|
|000003e0| 2e 74 78 74 2e 0a 25 20 | 0a 25 20 49 66 20 79 6f |.txt..% |.% If yo|
|000003f0| 75 20 72 65 63 65 69 76 | 65 20 6f 6e 6c 79 20 73 |u receiv|e only s|
|00000400| 6f 6d 65 20 6f 66 20 74 | 68 65 73 65 20 66 69 6c |ome of t|hese fil|
|00000410| 65 73 20 66 72 6f 6d 20 | 73 6f 6d 65 6f 6e 65 2c |es from |someone,|
|00000420| 20 63 6f 6d 70 6c 61 69 | 6e 21 0a 25 20 0a 25 20 | complai|n!.% .% |
|00000430| 50 65 72 6d 69 73 73 69 | 6f 6e 20 69 73 20 67 72 |Permissi|on is gr|
|00000440| 61 6e 74 65 64 20 74 6f | 20 63 6f 70 79 20 74 68 |anted to| copy th|
|00000450| 69 73 20 66 69 6c 65 20 | 74 6f 20 61 6e 6f 74 68 |is file |to anoth|
|00000460| 65 72 20 66 69 6c 65 20 | 77 69 74 68 20 61 20 63 |er file |with a c|
|00000470| 6c 65 61 72 6c 79 0a 25 | 20 64 69 66 66 65 72 65 |learly.%| differe|
|00000480| 6e 74 20 6e 61 6d 65 20 | 61 6e 64 20 74 6f 20 63 |nt name |and to c|
|00000490| 75 73 74 6f 6d 69 7a 65 | 20 74 68 65 20 64 65 63 |ustomize| the dec|
|000004a0| 6c 61 72 61 74 69 6f 6e | 73 20 69 6e 20 74 68 61 |laration|s in tha|
|000004b0| 74 20 63 6f 70 79 20 74 | 6f 20 73 65 72 76 65 0a |t copy t|o serve.|
|000004c0| 25 20 74 68 65 20 6e 65 | 65 64 73 20 6f 66 20 79 |% the ne|eds of y|
|000004d0| 6f 75 72 20 69 6e 73 74 | 61 6c 6c 61 74 69 6f 6e |our inst|allation|
|000004e0| 2c 20 70 72 6f 76 69 64 | 65 64 20 74 68 61 74 20 |, provid|ed that |
|000004f0| 79 6f 75 20 63 6f 6d 70 | 6c 79 20 77 69 74 68 0a |you comp|ly with.|
|00000500| 25 20 74 68 65 20 63 6f | 6e 64 69 74 69 6f 6e 73 |% the co|nditions|
|00000510| 20 69 6e 20 74 68 65 20 | 66 69 6c 65 20 6c 65 67 | in the |file leg|
|00000520| 61 6c 2e 74 78 74 2e 0a | 25 20 0a 25 20 48 6f 77 |al.txt..|% .% How|
|00000530| 65 76 65 72 2c 20 4e 4f | 20 50 45 52 4d 49 53 53 |ever, NO| PERMISS|
|00000540| 49 4f 4e 20 69 73 20 67 | 72 61 6e 74 65 64 20 74 |ION is g|ranted t|
|00000550| 6f 20 70 72 6f 64 75 63 | 65 20 6f 72 20 74 6f 20 |o produc|e or to |
|00000560| 64 69 73 74 72 69 62 75 | 74 65 20 61 0a 25 20 6d |distribu|te a.% m|
|00000570| 6f 64 69 66 69 65 64 20 | 76 65 72 73 69 6f 6e 20 |odified |version |
|00000580| 6f 66 20 74 68 69 73 20 | 66 69 6c 65 20 75 6e 64 |of this |file und|
|00000590| 65 72 20 69 74 73 20 6f | 72 69 67 69 6e 61 6c 20 |er its o|riginal |
|000005a0| 6e 61 6d 65 2e 0a 25 20 | 20 0a 25 20 59 6f 75 20 |name..% | .% You |
|000005b0| 61 72 65 20 4e 4f 54 20 | 41 4c 4c 4f 57 45 44 20 |are NOT |ALLOWED |
|000005c0| 74 6f 20 63 68 61 6e 67 | 65 20 74 68 69 73 20 66 |to chang|e this f|
|000005d0| 69 6c 65 2e 0a 25 20 0a | 25 20 0a 25 20 5c 66 69 |ile..% .|% .% \fi|
|000005e0| 0a 25 20 46 69 6c 65 6e | 61 6d 65 3a 20 63 6c 73 |.% Filen|ame: cls|
|000005f0| 67 75 69 64 65 2e 74 65 | 78 0a 0a 5c 4e 65 65 64 |guide.te|x..\Need|
|00000600| 73 54 65 58 46 6f 72 6d | 61 74 7b 4c 61 54 65 58 |sTeXForm|at{LaTeX|
|00000610| 32 65 7d 5b 31 39 39 35 | 2f 30 36 2f 30 31 5d 0a |2e}[1995|/06/01].|
|00000620| 0a 5c 64 6f 63 75 6d 65 | 6e 74 63 6c 61 73 73 7b |.\docume|ntclass{|
|00000630| 6c 74 78 67 75 69 64 65 | 7d 5b 31 39 39 34 2f 31 |ltxguide|}[1994/1|
|00000640| 31 2f 32 30 5d 0a 0a 5c | 74 69 74 6c 65 7b 5c 4c |1/20]..\|title{\L|
|00000650| 61 54 65 58 65 7e 66 6f | 72 20 63 6c 61 73 73 20 |aTeXe~fo|r class |
|00000660| 61 6e 64 20 70 61 63 6b | 61 67 65 20 77 72 69 74 |and pack|age writ|
|00000670| 65 72 73 7d 0a 0a 5c 61 | 75 74 68 6f 72 7b 43 6f |ers}..\a|uthor{Co|
|00000680| 70 79 72 69 67 68 74 20 | 5c 63 6f 70 79 72 69 67 |pyright |\copyrig|
|00000690| 68 74 7e 31 39 39 35 20 | 54 68 65 20 5c 4c 61 54 |ht~1995 |The \LaT|
|000006a0| 65 58 33 20 50 72 6f 6a | 65 63 74 5c 5c 0a 20 20 |eX3 Proj|ect\\. |
|000006b0| 20 41 6c 6c 20 72 69 67 | 68 74 73 20 72 65 73 65 | All rig|hts rese|
|000006c0| 72 76 65 64 7d 0a 0a 5c | 64 61 74 65 7b 31 30 20 |rved}..\|date{10 |
|000006d0| 4a 75 6e 65 20 31 39 39 | 35 7d 0a 20 0a 5c 62 65 |June 199|5}. .\be|
|000006e0| 67 69 6e 7b 64 6f 63 75 | 6d 65 6e 74 7d 0a 20 0a |gin{docu|ment}. .|
|000006f0| 5c 6d 61 6b 65 74 69 74 | 6c 65 0a 20 0a 5c 74 61 |\maketit|le. .\ta|
|00000700| 62 6c 65 6f 66 63 6f 6e | 74 65 6e 74 73 0a 20 0a |bleofcon|tents. .|
|00000710| 5c 73 65 63 74 69 6f 6e | 7b 49 6e 74 72 6f 64 75 |\section|{Introdu|
|00000720| 63 74 69 6f 6e 7d 0a 0a | 54 68 69 73 20 64 6f 63 |ction}..|This doc|
|00000730| 75 6d 65 6e 74 20 69 73 | 20 61 6e 20 69 6e 74 72 |ument is| an intr|
|00000740| 6f 64 75 63 74 69 6f 6e | 20 74 6f 20 77 72 69 74 |oduction| to writ|
|00000750| 69 6e 67 20 63 6c 61 73 | 73 65 73 20 61 6e 64 20 |ing clas|ses and |
|00000760| 70 61 63 6b 61 67 65 73 | 20 66 6f 72 0a 5c 4c 61 |packages| for.\La|
|00000770| 54 65 58 7b 7d 2c 20 77 | 69 74 68 20 73 70 65 63 |TeX{}, w|ith spec|
|00000780| 69 61 6c 20 61 74 74 65 | 6e 74 69 6f 6e 20 67 69 |ial atte|ntion gi|
|00000790| 76 65 6e 20 74 6f 20 75 | 70 67 72 61 64 69 6e 67 |ven to u|pgrading|
|000007a0| 20 65 78 69 73 74 69 6e | 67 0a 5c 4c 61 54 65 58 | existin|g.\LaTeX|
|000007b0| 7e 32 2e 30 39 20 70 61 | 63 6b 61 67 65 73 20 74 |~2.09 pa|ckages t|
|000007c0| 6f 20 5c 4c 61 54 65 58 | 65 7b 7d 2e 20 20 54 68 |o \LaTeX|e{}. Th|
|000007d0| 65 20 6c 61 74 74 65 72 | 20 73 75 62 6a 65 63 74 |e latter| subject|
|000007e0| 20 77 69 6c 6c 20 61 6c | 73 6f 20 62 65 0a 63 6f | will al|so be.co|
|000007f0| 76 65 72 65 64 20 69 6e | 20 61 6e 20 61 72 74 69 |vered in| an arti|
|00000800| 63 6c 65 20 62 79 20 4a | 6f 68 61 6e 6e 65 73 20 |cle by J|ohannes |
|00000810| 42 72 61 61 6d 73 20 74 | 6f 20 62 65 20 70 75 62 |Braams t|o be pub|
|00000820| 6c 69 73 68 65 64 20 69 | 6e 20 54 55 47 62 6f 61 |lished i|n TUGboa|
|00000830| 74 2e 0a 20 0a 5c 73 75 | 62 73 65 63 74 69 6f 6e |t.. .\su|bsection|
|00000840| 7b 57 72 69 74 69 6e 67 | 20 63 6c 61 73 73 65 73 |{Writing| classes|
|00000850| 20 61 6e 64 20 70 61 63 | 6b 61 67 65 73 20 66 6f | and pac|kages fo|
|00000860| 72 20 5c 4c 61 54 65 58 | 65 7d 0a 20 0a 5c 4c 61 |r \LaTeX|e}. .\La|
|00000870| 54 65 58 7b 7d 20 69 73 | 20 61 20 64 6f 63 75 6d |TeX{} is| a docum|
|00000880| 65 6e 74 20 70 72 65 70 | 61 72 61 74 69 6f 6e 20 |ent prep|aration |
|00000890| 73 79 73 74 65 6d 20 74 | 68 61 74 20 65 6e 61 62 |system t|hat enab|
|000008a0| 6c 65 73 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 |les the |document|
|000008b0| 0a 77 72 69 74 65 72 20 | 74 6f 20 63 6f 6e 63 65 |.writer |to conce|
|000008c0| 6e 74 72 61 74 65 20 6f | 6e 20 74 68 65 20 63 6f |ntrate o|n the co|
|000008d0| 6e 74 65 6e 74 73 20 6f | 66 20 74 68 65 69 72 20 |ntents o|f their |
|000008e0| 74 65 78 74 2c 20 77 69 | 74 68 6f 75 74 20 62 6f |text, wi|thout bo|
|000008f0| 74 68 65 72 69 6e 67 0a | 74 6f 6f 20 6d 75 63 68 |thering.|too much|
|00000900| 20 61 62 6f 75 74 20 74 | 68 65 20 66 6f 72 6d 61 | about t|he forma|
|00000910| 74 74 69 6e 67 20 6f 66 | 20 69 74 2e 20 20 46 6f |tting of| it. Fo|
|00000920| 72 20 65 78 61 6d 70 6c | 65 2c 20 63 68 61 70 74 |r exampl|e, chapt|
|00000930| 65 72 73 20 61 72 65 0a | 69 6e 64 69 63 61 74 65 |ers are.|indicate|
|00000940| 64 20 62 79 20 7c 5c 63 | 68 61 70 74 65 72 7b 3c |d by |\c|hapter{<|
|00000950| 74 69 74 6c 65 3e 7d 7c | 20 72 61 74 68 65 72 20 |title>}|| rather |
|00000960| 74 68 61 6e 20 62 79 20 | 73 65 6c 65 63 74 69 6e |than by |selectin|
|00000970| 67 20 31 38 70 74 20 62 | 6f 6c 64 2e 0a 20 0a 54 |g 18pt b|old.. .T|
|00000980| 68 65 20 66 69 6c 65 20 | 74 68 61 74 20 63 6f 6e |he file |that con|
|00000990| 74 61 69 6e 73 20 74 68 | 65 20 69 6e 66 6f 72 6d |tains th|e inform|
|000009a0| 61 74 69 6f 6e 20 61 62 | 6f 75 74 20 68 6f 77 20 |ation ab|out how |
|000009b0| 74 6f 20 74 75 72 6e 20 | 6c 6f 67 69 63 61 6c 0a |to turn |logical.|
|000009c0| 73 74 72 75 63 74 75 72 | 65 20 28 6c 69 6b 65 20 |structur|e (like |
|000009d0| 60 7c 5c 63 68 61 70 74 | 65 72 7c 27 29 20 69 6e |`|\chapt|er|') in|
|000009e0| 74 6f 20 66 6f 72 6d 61 | 74 74 69 6e 67 20 28 6c |to forma|tting (l|
|000009f0| 69 6b 65 20 60 31 38 70 | 74 20 62 6f 6c 64 20 72 |ike `18p|t bold r|
|00000a00| 61 67 67 65 64 0a 72 69 | 67 68 74 27 29 20 69 73 |agged.ri|ght') is|
|00000a10| 20 61 20 5c 65 6d 70 68 | 7b 64 6f 63 75 6d 65 6e | a \emph|{documen|
|00000a20| 74 20 63 6c 61 73 73 7d | 2e 20 20 49 6e 20 61 64 |t class}|. In ad|
|00000a30| 64 69 74 69 6f 6e 2c 20 | 73 6f 6d 65 20 66 65 61 |dition, |some fea|
|00000a40| 74 75 72 65 73 20 28 73 | 75 63 68 0a 61 73 20 63 |tures (s|uch.as c|
|00000a50| 6f 6c 6f 75 72 20 6f 72 | 20 69 6e 63 6c 75 64 65 |olour or| include|
|00000a60| 64 20 67 72 61 70 68 69 | 63 73 29 20 61 72 65 20 |d graphi|cs) are |
|00000a70| 69 6e 64 65 70 65 6e 64 | 65 6e 74 20 6f 66 20 74 |independ|ent of t|
|00000a80| 68 65 20 64 6f 63 75 6d | 65 6e 74 20 63 6c 61 73 |he docum|ent clas|
|00000a90| 73 0a 61 6e 64 20 74 68 | 65 73 65 20 61 72 65 20 |s.and th|ese are |
|00000aa0| 63 6f 6e 74 61 69 6e 65 | 64 20 69 6e 20 5c 65 6d |containe|d in \em|
|00000ab0| 70 68 7b 70 61 63 6b 61 | 67 65 73 7d 2e 0a 20 0a |ph{packa|ges}.. .|
|00000ac0| 4f 6e 65 20 6f 66 20 74 | 68 65 20 6c 61 72 67 65 |One of t|he large|
|00000ad0| 73 74 20 64 69 66 66 65 | 72 65 6e 63 65 73 20 62 |st diffe|rences b|
|00000ae0| 65 74 77 65 65 6e 20 5c | 4c 61 54 65 58 7e 32 2e |etween \|LaTeX~2.|
|00000af0| 30 39 20 61 6e 64 20 5c | 4c 61 54 65 58 65 7b 7d |09 and \|LaTeXe{}|
|00000b00| 20 69 73 20 69 6e 0a 74 | 68 65 20 63 6f 6d 6d 61 | is in.t|he comma|
|00000b10| 6e 64 73 20 75 73 65 64 | 20 74 6f 20 77 72 69 74 |nds used| to writ|
|00000b20| 65 20 70 61 63 6b 61 67 | 65 73 20 61 6e 64 20 63 |e packag|es and c|
|00000b30| 6c 61 73 73 65 73 2e 20 | 20 49 6e 20 5c 4c 61 54 |lasses. | In \LaT|
|00000b40| 65 58 7e 32 2e 30 39 2c | 0a 74 68 65 72 65 20 77 |eX~2.09,|.there w|
|00000b50| 61 73 20 76 65 72 79 20 | 6c 69 74 74 6c 65 20 73 |as very |little s|
|00000b60| 75 70 70 6f 72 74 20 66 | 6f 72 20 77 72 69 74 69 |upport f|or writi|
|00000b70| 6e 67 20 7c 2e 73 74 79 | 7c 20 66 69 6c 65 73 2c |ng |.sty|| files,|
|00000b80| 20 61 6e 64 20 73 6f 20 | 77 72 69 74 65 72 73 0a | and so |writers.|
|00000b90| 68 61 64 20 74 6f 20 72 | 65 73 6f 72 74 20 74 6f |had to r|esort to|
|00000ba0| 20 75 73 69 6e 67 20 6c | 6f 77 2d 6c 65 76 65 6c | using l|ow-level|
|00000bb0| 20 63 6f 6d 6d 61 6e 64 | 73 2e 0a 20 0a 5c 4c 61 | command|s.. .\La|
|00000bc0| 54 65 58 65 7b 7d 20 70 | 72 6f 76 69 64 65 73 20 |TeXe{} p|rovides |
|00000bd0| 68 69 67 68 2d 6c 65 76 | 65 6c 20 63 6f 6d 6d 61 |high-lev|el comma|
|00000be0| 6e 64 73 20 66 6f 72 20 | 73 74 72 75 63 74 75 72 |nds for |structur|
|00000bf0| 69 6e 67 20 70 61 63 6b | 61 67 65 73 2e 20 20 49 |ing pack|ages. I|
|00000c00| 74 0a 69 73 20 61 6c 73 | 6f 20 6d 75 63 68 20 65 |t.is als|o much e|
|00000c10| 61 73 69 65 72 20 74 6f | 20 62 75 69 6c 64 20 63 |asier to| build c|
|00000c20| 6c 61 73 73 65 73 20 61 | 6e 64 20 70 61 63 6b 61 |lasses a|nd packa|
|00000c30| 67 65 73 20 6f 6e 20 74 | 6f 70 20 6f 66 20 65 61 |ges on t|op of ea|
|00000c40| 63 68 0a 6f 74 68 65 72 | 2c 20 66 6f 72 20 65 78 |ch.other|, for ex|
|00000c50| 61 6d 70 6c 65 20 77 72 | 69 74 69 6e 67 20 61 20 |ample wr|iting a |
|00000c60| 6c 6f 63 61 6c 20 74 65 | 63 68 6e 69 63 61 6c 20 |local te|chnical |
|00000c70| 72 65 70 6f 72 74 20 63 | 6c 61 73 73 20 62 61 73 |report c|lass bas|
|00000c80| 65 64 20 6f 6e 0a 7c 61 | 72 74 69 63 6c 65 7c 2e |ed on.|a|rticle|.|
|00000c90| 0a 20 0a 5c 73 75 62 73 | 65 63 74 69 6f 6e 7b 4f |. .\subs|ection{O|
|00000ca0| 76 65 72 76 69 65 77 7d | 0a 20 0a 54 68 69 73 20 |verview}|. .This |
|00000cb0| 64 6f 63 75 6d 65 6e 74 | 20 63 6f 6e 74 61 69 6e |document| contain|
|00000cc0| 73 20 61 6e 20 6f 76 65 | 72 76 69 65 77 20 6f 66 |s an ove|rview of|
|00000cd0| 20 68 6f 77 20 74 6f 20 | 77 72 69 74 65 20 63 6c | how to |write cl|
|00000ce0| 61 73 73 65 73 20 61 6e | 64 0a 70 61 63 6b 61 67 |asses an|d.packag|
|00000cf0| 65 73 20 66 6f 72 20 5c | 4c 61 54 65 58 7b 7d 2e |es for \|LaTeX{}.|
|00000d00| 20 20 49 74 20 64 6f 65 | 73 20 5c 65 6d 70 68 7b | It doe|s \emph{|
|00000d10| 6e 6f 74 7d 20 69 6e 74 | 72 6f 64 75 63 65 20 61 |not} int|roduce a|
|00000d20| 6c 6c 20 6f 66 20 74 68 | 65 0a 63 6f 6d 6d 61 6e |ll of th|e.comman|
|00000d30| 64 73 20 6e 65 63 65 73 | 73 61 72 79 20 74 6f 20 |ds neces|sary to |
|00000d40| 77 72 69 74 65 20 70 61 | 63 6b 61 67 65 73 3a 20 |write pa|ckages: |
|00000d50| 74 68 65 73 65 20 63 61 | 6e 20 62 65 20 66 6f 75 |these ca|n be fou|
|00000d60| 6e 64 20 69 6e 20 65 69 | 74 68 65 72 0a 5c 65 6d |nd in ei|ther.\em|
|00000d70| 70 68 7b 5c 4c 61 54 65 | 58 62 6f 6f 6b 7d 20 6f |ph{\LaTe|Xbook} o|
|00000d80| 72 20 5c 65 6d 70 68 7b | 5c 4c 61 54 65 58 63 6f |r \emph{|\LaTeXco|
|00000d90| 6d 70 7d 2e 20 20 42 75 | 74 20 69 74 20 64 6f 65 |mp}. Bu|t it doe|
|00000da0| 73 20 64 65 73 63 72 69 | 62 65 20 74 68 65 20 6e |s descri|be the n|
|00000db0| 65 77 0a 63 6f 6d 6d 61 | 6e 64 73 20 66 6f 72 20 |ew.comma|nds for |
|00000dc0| 73 74 72 75 63 74 75 72 | 69 6e 67 20 63 6c 61 73 |structur|ing clas|
|00000dd0| 73 65 73 20 61 6e 64 20 | 70 61 63 6b 61 67 65 73 |ses and |packages|
|00000de0| 2e 0a 5c 62 65 67 69 6e | 7b 64 65 73 63 72 69 70 |..\begin|{descrip|
|00000df0| 74 69 6f 6e 7d 0a 20 0a | 5c 69 74 65 6d 5b 53 65 |tion}. .|\item[Se|
|00000e00| 63 74 69 6f 6e 7e 5c 72 | 65 66 7b 53 65 63 3a 67 |ction~\r|ef{Sec:g|
|00000e10| 65 6e 65 72 61 6c 7d 5d | 20 63 6f 6e 74 61 69 6e |eneral}]| contain|
|00000e20| 73 20 73 6f 6d 65 20 67 | 65 6e 65 72 61 6c 20 61 |s some g|eneral a|
|00000e30| 64 76 69 63 65 20 61 62 | 6f 75 74 0a 20 20 77 72 |dvice ab|out. wr|
|00000e40| 69 74 69 6e 67 20 63 6c | 61 73 73 65 73 20 61 6e |iting cl|asses an|
|00000e50| 64 20 70 61 63 6b 61 67 | 65 73 2e 20 20 49 74 20 |d packag|es. It |
|00000e60| 64 65 73 63 72 69 62 65 | 73 20 74 68 65 20 64 69 |describe|s the di|
|00000e70| 66 66 65 72 65 6e 63 65 | 20 62 65 74 77 65 65 6e |fference| between|
|00000e80| 0a 20 20 63 6c 61 73 73 | 65 73 20 61 6e 64 20 70 |. class|es and p|
|00000e90| 61 63 6b 61 67 65 73 2c | 20 74 68 65 20 63 6f 6d |ackages,| the com|
|00000ea0| 6d 61 6e 64 20 6e 61 6d | 69 6e 67 20 63 6f 6e 76 |mand nam|ing conv|
|00000eb0| 65 6e 74 69 6f 6e 73 2c | 20 74 68 65 20 75 73 65 |entions,| the use|
|00000ec0| 20 6f 66 0a 20 20 7c 64 | 6f 63 7c 20 61 6e 64 20 | of. |d|oc| and |
|00000ed0| 7c 64 6f 63 73 74 72 69 | 70 7c 2c 20 68 6f 77 20 ||docstri|p|, how |
|00000ee0| 5c 54 65 58 27 73 20 70 | 72 69 6d 69 74 69 76 65 |\TeX's p|rimitive|
|00000ef0| 20 66 69 6c 65 20 61 6e | 64 20 62 6f 78 20 63 6f | file an|d box co|
|00000f00| 6d 6d 61 6e 64 73 0a 20 | 20 69 6e 74 65 72 61 63 |mmands. | interac|
|00000f10| 74 20 77 69 74 68 20 5c | 4c 61 54 65 58 7b 7d 2e |t with \|LaTeX{}.|
|00000f20| 20 49 74 20 61 6c 73 6f | 20 63 6f 6e 74 61 69 6e | It also| contain|
|00000f30| 73 20 73 6f 6d 65 20 68 | 69 6e 74 73 20 61 62 6f |s some h|ints abo|
|00000f40| 75 74 20 67 65 6e 65 72 | 61 6c 0a 20 20 5c 4c 61 |ut gener|al. \La|
|00000f50| 54 65 58 7b 7d 20 73 74 | 79 6c 65 2e 0a 20 0a 5c |TeX{} st|yle.. .\|
|00000f60| 69 74 65 6d 5b 53 65 63 | 74 69 6f 6e 7e 5c 72 65 |item[Sec|tion~\re|
|00000f70| 66 7b 53 65 63 3a 73 74 | 72 75 63 74 75 72 65 7d |f{Sec:st|ructure}|
|00000f80| 5d 20 64 65 73 63 72 69 | 62 65 73 20 74 68 65 20 |] descri|bes the |
|00000f90| 73 74 72 75 63 74 75 72 | 65 20 6f 66 20 63 6c 61 |structur|e of cla|
|00000fa0| 73 73 65 73 0a 20 20 61 | 6e 64 20 70 61 63 6b 61 |sses. a|nd packa|
|00000fb0| 67 65 73 2e 20 20 54 68 | 69 73 20 69 6e 63 6c 75 |ges. Th|is inclu|
|00000fc0| 64 65 73 20 62 75 69 6c | 64 69 6e 67 20 63 6c 61 |des buil|ding cla|
|00000fd0| 73 73 65 73 20 61 6e 64 | 20 70 61 63 6b 61 67 65 |sses and| package|
|00000fe0| 73 20 6f 6e 20 74 6f 70 | 20 6f 66 0a 20 20 6f 74 |s on top| of. ot|
|00000ff0| 68 65 72 20 63 6c 61 73 | 73 65 73 20 61 6e 64 20 |her clas|ses and |
|00001000| 70 61 63 6b 61 67 65 73 | 2c 20 64 65 63 6c 61 72 |packages|, declar|
|00001010| 69 6e 67 20 6f 70 74 69 | 6f 6e 73 20 61 6e 64 20 |ing opti|ons and |
|00001020| 64 65 63 6c 61 72 69 6e | 67 0a 20 20 63 6f 6d 6d |declarin|g. comm|
|00001030| 61 6e 64 73 2e 20 20 49 | 74 20 61 6c 73 6f 20 63 |ands. I|t also c|
|00001040| 6f 6e 74 61 69 6e 73 20 | 65 78 61 6d 70 6c 65 20 |ontains |example |
|00001050| 63 6c 61 73 73 65 73 2e | 0a 20 0a 5c 69 74 65 6d |classes.|. .\item|
|00001060| 5b 53 65 63 74 69 6f 6e | 7e 5c 72 65 66 7b 53 65 |[Section|~\ref{Se|
|00001070| 63 3a 63 6f 6d 6d 61 6e | 64 73 7d 5d 20 6c 69 73 |c:comman|ds}] lis|
|00001080| 74 73 20 74 68 65 20 6e | 65 77 20 63 6c 61 73 73 |ts the n|ew class|
|00001090| 20 61 6e 64 20 70 61 63 | 6b 61 67 65 0a 20 20 20 | and pac|kage. |
|000010a0| 63 6f 6d 6d 61 6e 64 73 | 2e 0a 20 0a 20 5c 69 74 |commands|.. . \it|
|000010b0| 65 6d 5b 53 65 63 74 69 | 6f 6e 7e 5c 72 65 66 7b |em[Secti|on~\ref{|
|000010c0| 53 65 63 3a 75 70 67 72 | 61 64 65 7d 5d 20 67 69 |Sec:upgr|ade}] gi|
|000010d0| 76 65 73 20 64 65 74 61 | 69 6c 65 64 20 61 64 76 |ves deta|iled adv|
|000010e0| 69 63 65 20 6f 6e 20 68 | 6f 77 20 74 6f 0a 20 20 |ice on h|ow to. |
|000010f0| 20 75 70 67 72 61 64 65 | 20 65 78 69 73 74 69 6e | upgrade| existin|
|00001100| 67 20 5c 4c 61 54 65 58 | 7e 32 2e 30 39 20 63 6c |g \LaTeX|~2.09 cl|
|00001110| 61 73 73 65 73 20 61 6e | 64 20 70 61 63 6b 61 67 |asses an|d packag|
|00001120| 65 73 20 74 6f 20 5c 4c | 61 54 65 58 65 7b 7d 2e |es to \L|aTeXe{}.|
|00001130| 0a 20 0a 5c 65 6e 64 7b | 64 65 73 63 72 69 70 74 |. .\end{|descript|
|00001140| 69 6f 6e 7d 0a 20 0a 5c | 73 75 62 73 65 63 74 69 |ion}. .\|subsecti|
|00001150| 6f 6e 7b 46 75 72 74 68 | 65 72 20 69 6e 66 6f 72 |on{Furth|er infor|
|00001160| 6d 61 74 69 6f 6e 7d 0a | 20 0a 46 6f 72 20 61 20 |mation}.| .For a |
|00001170| 67 65 6e 65 72 61 6c 20 | 69 6e 74 72 6f 64 75 63 |general |introduc|
|00001180| 74 69 6f 6e 20 74 6f 20 | 5c 4c 61 54 65 58 7b 7d |tion to |\LaTeX{}|
|00001190| 2c 20 69 6e 63 6c 75 64 | 69 6e 67 20 74 68 65 20 |, includ|ing the |
|000011a0| 6e 65 77 20 66 65 61 74 | 75 72 65 73 20 6f 66 0a |new feat|ures of.|
|000011b0| 5c 4c 61 54 65 58 65 7b | 7d 2c 20 79 6f 75 20 73 |\LaTeXe{|}, you s|
|000011c0| 68 6f 75 6c 64 20 72 65 | 61 64 20 5c 65 6d 70 68 |hould re|ad \emph|
|000011d0| 7b 5c 4c 61 54 65 58 62 | 6f 6f 6b 7d 0a 62 79 20 |{\LaTeXb|ook}.by |
|000011e0| 4c 65 73 6c 69 65 20 4c | 61 6d 70 6f 72 74 7e 5c |Leslie L|amport~\|
|000011f0| 63 69 74 65 7b 41 2d 57 | 3a 4c 4c 61 39 34 7d 2e |cite{A-W|:LLa94}.|
|00001200| 0a 20 0a 41 20 6d 6f 72 | 65 20 64 65 74 61 69 6c |. .A mor|e detail|
|00001210| 65 64 20 64 65 73 63 72 | 69 70 74 69 6f 6e 20 6f |ed descr|iption o|
|00001220| 66 20 74 68 65 20 6e 65 | 77 20 66 65 61 74 75 72 |f the ne|w featur|
|00001230| 65 73 20 6f 66 20 5c 4c | 61 54 65 58 7b 7d 2c 20 |es of \L|aTeX{}, |
|00001240| 61 6e 64 20 61 6e 0a 6f | 76 65 72 76 69 65 77 20 |and an.o|verview |
|00001250| 6f 66 20 6d 6f 72 65 20 | 74 68 61 6e 20 31 35 30 |of more |than 150|
|00001260| 20 70 61 63 6b 61 67 65 | 73 2c 20 69 73 20 74 6f | package|s, is to|
|00001270| 20 62 65 20 66 6f 75 6e | 64 20 69 6e 0a 5c 65 6d | be foun|d in.\em|
|00001280| 70 68 7b 5c 4c 61 54 65 | 58 63 6f 6d 70 7d 20 62 |ph{\LaTe|Xcomp} b|
|00001290| 79 20 4d 69 63 68 65 6c | 20 47 6f 6f 73 73 65 6e |y Michel| Goossen|
|000012a0| 73 2c 20 46 72 61 6e 6b | 20 4d 69 74 74 65 6c 62 |s, Frank| Mittelb|
|000012b0| 61 63 68 20 61 6e 64 20 | 41 6c 65 78 61 6e 64 65 |ach and |Alexande|
|000012c0| 72 0a 53 61 6d 61 72 69 | 6e 7e 5c 63 69 74 65 7b |r.Samari|n~\cite{|
|000012d0| 41 2d 57 3a 47 4d 53 39 | 34 7d 2e 0a 20 0a 54 68 |A-W:GMS9|4}.. .Th|
|000012e0| 65 20 5c 4c 61 54 65 58 | 7b 7d 20 73 79 73 74 65 |e \LaTeX|{} syste|
|000012f0| 6d 20 69 73 20 62 61 73 | 65 64 20 6f 6e 20 5c 54 |m is bas|ed on \T|
|00001300| 65 58 7b 7d 2c 20 77 68 | 69 63 68 20 69 73 0a 64 |eX{}, wh|ich is.d|
|00001310| 65 73 63 72 69 62 65 64 | 20 69 6e 20 5c 65 6d 70 |escribed| in \emp|
|00001320| 68 7b 54 68 65 20 5c 54 | 65 58 20 62 6f 6f 6b 7d |h{The \T|eX book}|
|00001330| 20 62 79 20 44 6f 6e 61 | 6c 64 20 45 2e 7e 4b 6e | by Dona|ld E.~Kn|
|00001340| 75 74 68 7e 5c 63 69 74 | 65 7b 41 2d 57 3a 44 45 |uth~\cit|e{A-W:DE|
|00001350| 4b 39 31 7d 2e 0a 20 0a | 54 68 65 72 65 20 61 72 |K91}.. .|There ar|
|00001360| 65 20 61 20 6e 75 6d 62 | 65 72 20 6f 66 20 64 6f |e a numb|er of do|
|00001370| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 66 69 6c 65 |cumentat|ion file|
|00001380| 73 20 77 68 69 63 68 20 | 61 63 63 6f 6d 70 61 6e |s which |accompan|
|00001390| 79 20 65 76 65 72 79 20 | 63 6f 70 79 0a 6f 66 20 |y every |copy.of |
|000013a0| 5c 4c 61 54 65 58 7b 7d | 2e 20 20 41 20 63 6f 70 |\LaTeX{}|. A cop|
|000013b0| 79 20 6f 66 20 5c 65 6d | 70 68 7b 5c 4c 61 54 65 |y of \em|ph{\LaTe|
|000013c0| 58 7b 7d 20 4e 65 77 73 | 7d 20 77 69 6c 6c 20 63 |X{} News|} will c|
|000013d0| 6f 6d 65 20 6f 75 74 20 | 77 69 74 68 20 65 61 63 |ome out |with eac|
|000013e0| 68 0a 73 69 78 2d 6d 6f | 6e 74 68 6c 79 20 72 65 |h.six-mo|nthly re|
|000013f0| 6c 65 61 73 65 20 6f 66 | 20 5c 4c 61 54 65 58 7b |lease of| \LaTeX{|
|00001400| 7d 2c 20 61 6e 64 20 69 | 73 20 66 6f 75 6e 64 20 |}, and i|s found |
|00001410| 69 6e 20 74 68 65 20 66 | 69 6c 65 73 0a 7c 6c 74 |in the f|iles.|lt|
|00001420| 6e 65 77 73 2a 2e 74 65 | 78 7c 2e 20 20 54 68 65 |news*.te|x|. The|
|00001430| 20 61 75 74 68 6f 72 27 | 73 20 67 75 69 64 65 20 | author'|s guide |
|00001440| 5c 65 6d 70 68 7b 5c 75 | 73 72 67 75 69 64 65 7d |\emph{\u|srguide}|
|00001450| 20 64 65 73 63 72 69 62 | 65 73 20 74 68 65 20 6e | describ|es the n|
|00001460| 65 77 0a 5c 4c 61 54 65 | 58 7b 7d 20 64 6f 63 75 |ew.\LaTe|X{} docu|
|00001470| 6d 65 6e 74 20 66 65 61 | 74 75 72 65 73 3b 20 69 |ment fea|tures; i|
|00001480| 74 20 69 73 20 69 6e 20 | 7c 75 73 72 67 75 69 64 |t is in ||usrguid|
|00001490| 65 2e 74 65 78 7c 2e 20 | 20 54 68 65 20 67 75 69 |e.tex|. | The gui|
|000014a0| 64 65 0a 5c 65 6d 70 68 | 7b 5c 66 6e 74 67 75 69 |de.\emph|{\fntgui|
|000014b0| 64 65 7d 20 64 65 73 63 | 72 69 62 65 73 20 74 68 |de} desc|ribes th|
|000014c0| 65 20 5c 4c 61 54 65 58 | 7b 7d 20 66 6f 6e 74 20 |e \LaTeX|{} font |
|000014d0| 73 65 6c 65 63 74 69 6f | 6e 20 73 63 68 65 6d 65 |selectio|n scheme|
|000014e0| 20 66 6f 72 0a 63 6c 61 | 73 73 2d 20 61 6e 64 20 | for.cla|ss- and |
|000014f0| 70 61 63 6b 61 67 65 2d | 77 72 69 74 65 72 73 3b |package-|writers;|
|00001500| 20 69 74 20 69 73 20 69 | 6e 20 7c 66 6e 74 67 75 | it is i|n |fntgu|
|00001510| 69 64 65 2e 74 65 78 7c | 2e 0a 0a 57 65 20 61 72 |ide.tex||...We ar|
|00001520| 65 20 67 72 61 64 75 61 | 6c 6c 79 20 74 75 72 6e |e gradua|lly turn|
|00001530| 69 6e 67 20 74 68 65 20 | 73 6f 75 72 63 65 20 63 |ing the |source c|
|00001540| 6f 64 65 20 66 6f 72 20 | 5c 4c 61 54 65 58 7b 7d |ode for |\LaTeX{}|
|00001550| 20 69 6e 74 6f 20 61 20 | 5c 4c 61 54 65 58 7b 7d | into a |\LaTeX{}|
|00001560| 0a 64 6f 63 75 6d 65 6e | 74 20 5c 65 6d 70 68 7b |.documen|t \emph{|
|00001570| 5c 73 6f 75 72 63 65 63 | 6f 64 65 7d 2e 20 20 54 |\sourcec|ode}. T|
|00001580| 68 69 73 20 64 6f 63 75 | 6d 65 6e 74 20 69 6e 63 |his docu|ment inc|
|00001590| 6c 75 64 65 73 20 61 6e | 20 69 6e 64 65 78 20 6f |ludes an| index o|
|000015a0| 66 0a 5c 4c 61 54 65 58 | 7b 7d 20 63 6f 6d 6d 61 |f.\LaTeX|{} comma|
|000015b0| 6e 64 73 20 61 6e 64 20 | 63 61 6e 20 62 65 20 74 |nds and |can be t|
|000015c0| 79 70 65 73 65 74 20 66 | 72 6f 6d 20 7c 73 6f 75 |ypeset f|rom |sou|
|000015d0| 72 63 65 32 65 2e 74 65 | 78 7c 2e 0a 20 0a 46 6f |rce2e.te|x|.. .Fo|
|000015e0| 72 20 6d 6f 72 65 20 69 | 6e 66 6f 72 6d 61 74 69 |r more i|nformati|
|000015f0| 6f 6e 20 61 62 6f 75 74 | 20 5c 54 65 58 7b 7d 20 |on about| \TeX{} |
|00001600| 61 6e 64 20 5c 4c 61 54 | 65 58 7b 7d 2c 20 70 6c |and \LaT|eX{}, pl|
|00001610| 65 61 73 65 20 63 6f 6e | 74 61 63 74 20 79 6f 75 |ease con|tact you|
|00001620| 72 20 0a 6c 6f 63 61 6c | 20 5c 54 65 58 7b 7d 20 |r .local| \TeX{} |
|00001630| 55 73 65 72 73 20 47 72 | 6f 75 70 2c 20 6f 72 20 |Users Gr|oup, or |
|00001640| 74 68 65 20 69 6e 74 65 | 72 6e 61 74 69 6f 6e 61 |the inte|rnationa|
|00001650| 6c 20 5c 54 65 58 7b 7d | 20 55 73 65 72 73 20 47 |l \TeX{}| Users G|
|00001660| 72 6f 75 70 2c 20 0a 50 | 2e 7e 4f 2e 5c 20 42 6f |roup, .P|.~O.\ Bo|
|00001670| 78 7e 38 36 39 2c 20 53 | 61 6e 74 61 20 42 61 72 |x~869, S|anta Bar|
|00001680| 62 61 72 61 2c 20 43 41 | 20 39 33 31 30 32 2d 30 |bara, CA| 93102-0|
|00001690| 38 36 39 2c 20 55 53 41 | 2c 20 46 61 78 3a 7e 2b |869, USA|, Fax:~+|
|000016a0| 31 20 38 30 35 20 39 36 | 33 20 0a 38 33 35 38 2c |1 805 96|3 .8358,|
|000016b0| 20 45 2d 6d 61 69 6c 3a | 7e 74 75 67 40 74 75 67 | E-mail:|~tug@tug|
|000016c0| 2e 6f 72 67 2e 0a 20 0a | 0a 5c 73 65 63 74 69 6f |.org.. .|.\sectio|
|000016d0| 6e 7b 57 72 69 74 69 6e | 67 20 63 6c 61 73 73 65 |n{Writin|g classe|
|000016e0| 73 20 61 6e 64 20 70 61 | 63 6b 61 67 65 73 7d 0a |s and pa|ckages}.|
|000016f0| 5c 6c 61 62 65 6c 7b 53 | 65 63 3a 77 72 69 74 69 |\label{S|ec:writi|
|00001700| 6e 67 7d 0a 20 0a 54 68 | 69 73 20 73 65 63 74 69 |ng}. .Th|is secti|
|00001710| 6f 6e 20 63 6f 76 65 72 | 73 20 73 6f 6d 65 20 67 |on cover|s some g|
|00001720| 65 6e 65 72 61 6c 20 70 | 6f 69 6e 74 73 20 63 6f |eneral p|oints co|
|00001730| 6e 63 65 72 6e 65 64 20 | 77 69 74 68 20 77 72 69 |ncerned |with wri|
|00001740| 74 69 6e 67 0a 5c 4c 61 | 54 65 58 7b 7d 20 63 6c |ting.\La|TeX{} cl|
|00001750| 61 73 73 65 73 20 61 6e | 64 20 70 61 63 6b 61 67 |asses an|d packag|
|00001760| 65 73 2e 0a 0a 0a 5c 73 | 75 62 73 65 63 74 69 6f |es....\s|ubsectio|
|00001770| 6e 7b 4f 6c 64 20 76 65 | 72 73 69 6f 6e 73 7d 0a |n{Old ve|rsions}.|
|00001780| 0a 49 66 20 79 6f 75 20 | 61 72 65 20 75 70 67 72 |.If you |are upgr|
|00001790| 61 64 69 6e 67 20 61 6e | 20 65 78 69 73 74 69 6e |ading an| existin|
|000017a0| 67 20 5c 4c 61 54 65 58 | 7e 32 2e 30 39 20 73 74 |g \LaTeX|~2.09 st|
|000017b0| 79 6c 65 20 66 69 6c 65 | 20 74 68 65 6e 20 77 65 |yle file| then we|
|000017c0| 0a 72 65 63 6f 6d 6d 65 | 6e 64 20 66 72 65 65 7a |.recomme|nd freez|
|000017d0| 69 6e 67 20 74 68 65 20 | 32 2e 30 39 20 76 65 72 |ing the |2.09 ver|
|000017e0| 73 69 6f 6e 20 61 6e 64 | 20 6e 6f 20 6c 6f 6e 67 |sion and| no long|
|000017f0| 65 72 20 6d 61 69 6e 74 | 61 69 6e 69 6e 67 20 69 |er maint|aining i|
|00001800| 74 2e 0a 45 78 70 65 72 | 69 65 6e 63 65 20 77 69 |t..Exper|ience wi|
|00001810| 74 68 20 74 68 65 20 76 | 61 72 69 6f 75 73 20 64 |th the v|arious d|
|00001820| 69 61 6c 65 63 74 73 20 | 6f 66 20 5c 4c 61 54 65 |ialects |of \LaTe|
|00001830| 58 7b 7d 20 77 68 69 63 | 68 20 65 78 69 73 74 65 |X{} whic|h existe|
|00001840| 64 20 69 6e 20 74 68 65 | 0a 65 61 72 6c 79 20 31 |d in the|.early 1|
|00001850| 39 39 30 27 73 20 73 75 | 67 67 65 73 74 73 20 74 |990's su|ggests t|
|00001860| 68 61 74 20 6d 61 69 6e | 74 61 69 6e 69 6e 67 20 |hat main|taining |
|00001870| 70 61 63 6b 61 67 65 73 | 20 66 6f 72 20 64 69 66 |packages| for dif|
|00001880| 66 65 72 65 6e 74 20 76 | 65 72 73 69 6f 6e 73 0a |ferent v|ersions.|
|00001890| 6f 66 20 5c 4c 61 54 65 | 58 7b 7d 20 69 73 20 61 |of \LaTe|X{} is a|
|000018a0| 6c 6d 6f 73 74 20 69 6d | 70 6f 73 73 69 62 6c 65 |lmost im|possible|
|000018b0| 2e 20 20 49 74 20 77 69 | 6c 6c 2c 20 6f 66 20 63 |. It wi|ll, of c|
|000018c0| 6f 75 72 73 65 2c 20 62 | 65 20 6e 65 63 65 73 73 |ourse, b|e necess|
|000018d0| 61 72 79 0a 66 6f 72 20 | 73 6f 6d 65 20 6f 72 67 |ary.for |some org|
|000018e0| 61 6e 69 73 61 74 69 6f | 6e 73 20 74 6f 20 6d 61 |anisatio|ns to ma|
|000018f0| 69 6e 74 61 69 6e 20 62 | 6f 74 68 20 76 65 72 73 |intain b|oth vers|
|00001900| 69 6f 6e 73 20 69 6e 20 | 70 61 72 61 6c 6c 65 6c |ions in |parallel|
|00001910| 20 66 6f 72 20 73 6f 6d | 65 0a 74 69 6d 65 20 62 | for som|e.time b|
|00001920| 75 74 20 74 68 69 73 20 | 69 73 20 6e 6f 74 20 65 |ut this |is not e|
|00001930| 73 73 65 6e 74 69 61 6c | 20 66 6f 72 20 74 68 6f |ssential| for tho|
|00001940| 73 65 20 70 61 63 6b 61 | 67 65 73 20 61 6e 64 20 |se packa|ges and |
|00001950| 63 6c 61 73 73 65 73 0a | 73 75 70 70 6f 72 74 65 |classes.|supporte|
|00001960| 64 20 62 79 20 69 6e 64 | 69 76 69 64 75 61 6c 73 |d by ind|ividuals|
|00001970| 3a 20 74 68 65 79 20 73 | 68 6f 75 6c 64 20 73 75 |: they s|hould su|
|00001980| 70 70 6f 72 74 20 6f 6e | 6c 79 20 74 68 65 20 6e |pport on|ly the n|
|00001990| 65 77 20 73 74 61 6e 64 | 61 72 64 0a 5c 4c 61 54 |ew stand|ard.\LaT|
|000019a0| 65 58 65 7b 7d 2c 20 6e | 6f 74 20 6f 62 73 6f 6c |eXe{}, n|ot obsol|
|000019b0| 65 74 65 20 76 65 72 73 | 69 6f 6e 73 20 6f 66 20 |ete vers|ions of |
|000019c0| 5c 4c 61 54 65 58 7b 7d | 2e 0a 0a 0a 5c 73 75 62 |\LaTeX{}|....\sub|
|000019d0| 73 65 63 74 69 6f 6e 7b | 55 73 69 6e 67 20 64 6f |section{|Using do|
|000019e0| 63 73 74 72 69 70 20 61 | 6e 64 20 64 6f 63 7d 0a |cstrip a|nd doc}.|
|000019f0| 20 0a 49 66 20 79 6f 75 | 20 61 72 65 20 67 6f 69 | .If you| are goi|
|00001a00| 6e 67 20 74 6f 20 77 72 | 69 74 65 20 61 20 6c 61 |ng to wr|ite a la|
|00001a10| 72 67 65 20 63 6c 61 73 | 73 20 6f 72 20 70 61 63 |rge clas|s or pac|
|00001a20| 6b 61 67 65 20 66 6f 72 | 20 5c 4c 61 54 65 58 7b |kage for| \LaTeX{|
|00001a30| 7d 20 74 68 65 6e 0a 79 | 6f 75 20 73 68 6f 75 6c |} then.y|ou shoul|
|00001a40| 64 20 63 6f 6e 73 69 64 | 65 72 20 75 73 69 6e 67 |d consid|er using|
|00001a50| 20 74 68 65 20 7c 64 6f | 63 7c 20 73 6f 66 74 77 | the |do|c| softw|
|00001a60| 61 72 65 20 77 68 69 63 | 68 20 63 6f 6d 65 73 20 |are whic|h comes |
|00001a70| 77 69 74 68 0a 5c 4c 61 | 54 65 58 7b 7d 2e 20 0a |with.\La|TeX{}. .|
|00001a80| 5c 4c 61 54 65 58 7b 7d | 20 63 6c 61 73 73 65 73 |\LaTeX{}| classes|
|00001a90| 20 61 6e 64 20 70 61 63 | 6b 61 67 65 73 20 77 72 | and pac|kages wr|
|00001aa0| 69 74 74 65 6e 20 75 73 | 69 6e 67 20 74 68 69 73 |itten us|ing this|
|00001ab0| 20 63 61 6e 20 62 65 0a | 70 72 6f 63 65 73 73 65 | can be.|processe|
|00001ac0| 64 20 69 6e 20 74 77 6f | 20 77 61 79 73 3a 20 74 |d in two| ways: t|
|00001ad0| 68 65 79 20 63 61 6e 20 | 62 65 20 72 75 6e 20 74 |hey can |be run t|
|00001ae0| 68 72 6f 75 67 68 20 5c | 4c 61 54 65 58 7b 7d 2c |hrough \|LaTeX{},|
|00001af0| 20 74 6f 20 70 72 6f 64 | 75 63 65 0a 64 6f 63 75 | to prod|uce.docu|
|00001b00| 6d 65 6e 74 61 74 69 6f | 6e 3b 20 61 6e 64 20 74 |mentatio|n; and t|
|00001b10| 68 65 79 20 63 61 6e 20 | 62 65 20 70 72 6f 63 65 |hey can |be proce|
|00001b20| 73 73 65 64 20 77 69 74 | 68 20 7c 64 6f 63 73 74 |ssed wit|h |docst|
|00001b30| 72 69 70 7c 2c 20 74 6f | 20 70 72 6f 64 75 63 65 |rip|, to| produce|
|00001b40| 0a 74 68 65 20 7c 2e 63 | 6c 73 7c 20 6f 72 20 7c |.the |.c|ls| or ||
|00001b50| 2e 73 74 79 7c 20 66 69 | 6c 65 2e 0a 20 0a 54 68 |.sty| fi|le.. .Th|
|00001b60| 65 20 7c 64 6f 63 7c 20 | 73 6f 66 74 77 61 72 65 |e |doc| |software|
|00001b70| 20 63 61 6e 20 61 75 74 | 6f 6d 61 74 69 63 61 6c | can aut|omatical|
|00001b80| 6c 79 20 67 65 6e 65 72 | 61 74 65 20 69 6e 64 65 |ly gener|ate inde|
|00001b90| 78 65 73 20 6f 66 20 64 | 65 66 69 6e 69 74 69 6f |xes of d|efinitio|
|00001ba0| 6e 73 2c 0a 69 6e 64 65 | 78 65 73 20 6f 66 20 63 |ns,.inde|xes of c|
|00001bb0| 6f 6d 6d 61 6e 64 20 75 | 73 65 2c 20 61 6e 64 20 |ommand u|se, and |
|00001bc0| 63 68 61 6e 67 65 2d 6c | 6f 67 20 6c 69 73 74 73 |change-l|og lists|
|00001bd0| 2e 20 20 49 74 20 69 73 | 20 76 65 72 79 20 75 73 |. It is| very us|
|00001be0| 65 66 75 6c 20 66 6f 72 | 0a 6d 61 69 6e 74 61 69 |eful for|.maintai|
|00001bf0| 6e 69 6e 67 20 61 6e 64 | 20 64 6f 63 75 6d 65 6e |ning and| documen|
|00001c00| 74 69 6e 67 20 6c 61 72 | 67 65 20 5c 54 65 58 7b |ting lar|ge \TeX{|
|00001c10| 7d 20 73 6f 75 72 63 65 | 73 2e 0a 20 0a 54 68 65 |} source|s.. .The|
|00001c20| 20 64 6f 63 75 6d 65 6e | 74 65 64 20 73 6f 75 72 | documen|ted sour|
|00001c30| 63 65 73 20 6f 66 20 74 | 68 65 20 5c 4c 61 54 65 |ces of t|he \LaTe|
|00001c40| 58 7b 7d 20 6b 65 72 6e | 65 6c 20 69 74 73 65 6c |X{} kern|el itsel|
|00001c50| 66 20 2c 61 6e 64 20 6f | 66 20 74 68 65 0a 73 74 |f ,and o|f the.st|
|00001c60| 61 6e 64 61 72 64 20 63 | 6c 61 73 73 65 73 2c 20 |andard c|lasses, |
|00001c70| 65 74 63 2c 20 61 72 65 | 20 7c 64 6f 63 7c 20 64 |etc, are| |doc| d|
|00001c80| 6f 63 75 6d 65 6e 74 73 | 3b 20 74 68 65 79 20 61 |ocuments|; they a|
|00001c90| 72 65 20 69 6e 20 74 68 | 65 20 7c 2e 64 74 78 7c |re in th|e |.dtx||
|00001ca0| 0a 66 69 6c 65 73 20 69 | 6e 20 74 68 65 20 64 69 |.files i|n the di|
|00001cb0| 73 74 72 69 62 75 74 69 | 6f 6e 2e 20 20 59 6f 75 |stributi|on. You|
|00001cc0| 20 63 61 6e 2c 20 69 6e | 20 66 61 63 74 2c 20 74 | can, in| fact, t|
|00001cd0| 79 70 65 73 65 74 20 74 | 68 65 20 73 6f 75 72 63 |ypeset t|he sourc|
|00001ce0| 65 20 63 6f 64 65 0a 6f | 66 20 74 68 65 20 6b 65 |e code.o|f the ke|
|00001cf0| 72 6e 65 6c 20 61 73 20 | 6f 6e 65 20 6c 6f 6e 67 |rnel as |one long|
|00001d00| 20 64 6f 63 75 6d 65 6e | 74 2c 20 63 6f 6d 70 6c | documen|t, compl|
|00001d10| 65 74 65 20 77 69 74 68 | 20 69 6e 64 65 78 2c 20 |ete with| index, |
|00001d20| 62 79 20 72 75 6e 6e 69 | 6e 67 0a 5c 4c 61 54 65 |by runni|ng.\LaTe|
|00001d30| 58 7b 7d 20 6f 6e 20 7c | 73 6f 75 72 63 65 32 65 |X{} on ||source2e|
|00001d40| 2e 74 65 78 7c 2e 0a 20 | 0a 46 6f 72 20 6d 6f 72 |.tex|.. |.For mor|
|00001d50| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 6f 6e |e inform|ation on|
|00001d60| 20 7c 64 6f 63 7c 20 61 | 6e 64 20 7c 64 6f 63 73 | |doc| a|nd |docs|
|00001d70| 74 72 69 70 7c 2c 20 63 | 6f 6e 73 75 6c 74 20 74 |trip|, c|onsult t|
|00001d80| 68 65 20 66 69 6c 65 73 | 0a 7c 64 6f 63 73 74 72 |he files|.|docstr|
|00001d90| 69 70 2e 64 74 78 7c 2c | 20 7c 64 6f 63 2e 64 74 |ip.dtx|,| |doc.dt|
|00001da0| 78 7c 2c 20 61 6e 64 20 | 5c 65 6d 70 68 7b 5c 4c |x|, and |\emph{\L|
|00001db0| 61 54 65 58 63 6f 6d 70 | 7d 2e 20 20 46 6f 72 20 |aTeXcomp|}. For |
|00001dc0| 65 78 61 6d 70 6c 65 73 | 20 6f 66 20 69 74 73 0a |examples| of its.|
|00001dd0| 75 73 65 2c 20 6c 6f 6f | 6b 20 61 74 20 74 68 65 |use, loo|k at the|
|00001de0| 20 7c 2e 64 74 78 7c 20 | 66 69 6c 65 73 2e 0a 0a | |.dtx| |files...|
|00001df0| 5c 73 75 62 73 65 63 74 | 69 6f 6e 7b 49 73 20 69 |\subsect|ion{Is i|
|00001e00| 74 20 61 20 63 6c 61 73 | 73 20 6f 72 20 61 20 70 |t a clas|s or a p|
|00001e10| 61 63 6b 61 67 65 3f 7d | 0a 5c 6c 61 62 65 6c 7b |ackage?}|.\label{|
|00001e20| 53 65 63 3a 63 6c 61 73 | 73 6f 72 70 6b 67 7d 0a |Sec:clas|sorpkg}.|
|00001e30| 20 0a 54 68 65 20 66 69 | 72 73 74 20 74 68 69 6e | .The fi|rst thin|
|00001e40| 67 20 74 6f 20 64 6f 20 | 77 68 65 6e 20 79 6f 75 |g to do |when you|
|00001e50| 20 77 61 6e 74 20 74 6f | 20 70 75 74 20 73 6f 6d | want to| put som|
|00001e60| 65 20 6e 65 77 20 5c 4c | 61 54 65 58 7b 7d 20 63 |e new \L|aTeX{} c|
|00001e70| 6f 6d 6d 61 6e 64 73 0a | 69 6e 20 61 20 66 69 6c |ommands.|in a fil|
|00001e80| 65 20 69 73 20 74 6f 20 | 64 65 63 69 64 65 20 77 |e is to |decide w|
|00001e90| 68 65 74 68 65 72 20 69 | 74 20 73 68 6f 75 6c 64 |hether i|t should|
|00001ea0| 20 62 65 20 61 20 5c 65 | 6d 70 68 7b 64 6f 63 75 | be a \e|mph{docu|
|00001eb0| 6d 65 6e 74 20 63 6c 61 | 73 73 7d 20 6f 72 20 61 |ment cla|ss} or a|
|00001ec0| 0a 5c 65 6d 70 68 7b 70 | 61 63 6b 61 67 65 7d 2e |.\emph{p|ackage}.|
|00001ed0| 20 20 54 68 65 20 72 75 | 6c 65 20 6f 66 20 74 68 | The ru|le of th|
|00001ee0| 75 6d 62 20 69 73 3a 0a | 5c 62 65 67 69 6e 7b 71 |umb is:.|\begin{q|
|00001ef0| 75 6f 74 65 7d 0a 20 20 | 49 66 20 74 68 65 20 63 |uote}. |If the c|
|00001f00| 6f 6d 6d 61 6e 64 73 20 | 63 6f 75 6c 64 20 62 65 |ommands |could be|
|00001f10| 20 75 73 65 64 20 77 69 | 74 68 20 61 6e 79 20 64 | used wi|th any d|
|00001f20| 6f 63 75 6d 65 6e 74 20 | 63 6c 61 73 73 2c 20 74 |ocument |class, t|
|00001f30| 68 65 6e 20 6d 61 6b 65 | 0a 20 20 74 68 65 6d 20 |hen make|. them |
|00001f40| 61 20 70 61 63 6b 61 67 | 65 3b 20 61 6e 64 20 69 |a packag|e; and i|
|00001f50| 66 20 6e 6f 74 2c 20 74 | 68 65 6e 20 6d 61 6b 65 |f not, t|hen make|
|00001f60| 20 74 68 65 6d 20 61 20 | 63 6c 61 73 73 2e 0a 5c | them a |class..\|
|00001f70| 65 6e 64 7b 71 75 6f 74 | 65 7d 0a 0a 54 68 65 72 |end{quot|e}..Ther|
|00001f80| 65 20 61 72 65 20 74 77 | 6f 20 6d 61 6a 6f 72 20 |e are tw|o major |
|00001f90| 74 79 70 65 73 20 6f 66 | 20 63 6c 61 73 73 3a 20 |types of| class: |
|00001fa0| 74 68 6f 73 65 20 6c 69 | 6b 65 20 7c 61 72 74 69 |those li|ke |arti|
|00001fb0| 63 6c 65 7c 2c 20 7c 72 | 65 70 6f 72 74 7c 20 6f |cle|, |r|eport| o|
|00001fc0| 72 0a 7c 6c 65 74 74 65 | 72 7c 2c 20 77 68 69 63 |r.|lette|r|, whic|
|00001fd0| 68 20 61 72 65 20 66 72 | 65 65 2d 73 74 61 6e 64 |h are fr|ee-stand|
|00001fe0| 69 6e 67 3b 20 61 6e 64 | 20 74 68 6f 73 65 20 77 |ing; and| those w|
|00001ff0| 68 69 63 68 20 61 72 65 | 20 65 78 74 65 6e 73 69 |hich are| extensi|
|00002000| 6f 6e 73 20 6f 72 0a 76 | 61 72 69 61 74 69 6f 6e |ons or.v|ariation|
|00002010| 73 20 6f 66 20 6f 74 68 | 65 72 20 63 6c 61 73 73 |s of oth|er class|
|00002020| 65 73 2d 2d 2d 66 6f 72 | 20 65 78 61 6d 70 6c 65 |es---for| example|
|00002030| 2c 20 74 68 65 20 7c 70 | 72 6f 63 7c 20 64 6f 63 |, the |p|roc| doc|
|00002040| 75 6d 65 6e 74 20 63 6c | 61 73 73 2c 0a 77 68 69 |ument cl|ass,.whi|
|00002050| 63 68 20 69 73 20 62 75 | 69 6c 74 20 6f 6e 20 74 |ch is bu|ilt on t|
|00002060| 68 65 20 7c 61 72 74 69 | 63 6c 65 7c 20 64 6f 63 |he |arti|cle| doc|
|00002070| 75 6d 65 6e 74 20 63 6c | 61 73 73 2e 0a 0a 54 68 |ument cl|ass...Th|
|00002080| 75 73 2c 20 61 20 63 6f | 6d 70 61 6e 79 20 6d 69 |us, a co|mpany mi|
|00002090| 67 68 74 20 68 61 76 65 | 20 61 20 6c 6f 63 61 6c |ght have| a local|
|000020a0| 20 7c 6f 77 6e 6c 65 74 | 7c 20 63 6c 61 73 73 20 | |ownlet|| class |
|000020b0| 66 6f 72 20 70 72 69 6e | 74 69 6e 67 20 6c 65 74 |for prin|ting let|
|000020c0| 74 65 72 73 0a 77 69 74 | 68 20 74 68 65 69 72 20 |ters.wit|h their |
|000020d0| 6f 77 6e 20 68 65 61 64 | 65 64 20 6e 6f 74 65 2d |own head|ed note-|
|000020e0| 70 61 70 65 72 2e 20 20 | 53 75 63 68 20 61 20 63 |paper. |Such a c|
|000020f0| 6c 61 73 73 20 77 6f 75 | 6c 64 20 62 75 69 6c 64 |lass wou|ld build|
|00002100| 20 6f 6e 20 74 6f 70 20 | 6f 66 0a 74 68 65 20 65 | on top |of.the e|
|00002110| 78 69 73 74 69 6e 67 20 | 7c 6c 65 74 74 65 72 7c |xisting ||letter||
|00002120| 20 63 6c 61 73 73 20 62 | 75 74 20 69 74 20 63 61 | class b|ut it ca|
|00002130| 6e 6e 6f 74 20 62 65 20 | 75 73 65 64 20 77 69 74 |nnot be |used wit|
|00002140| 68 20 61 6e 79 20 6f 74 | 68 65 72 0a 64 6f 63 75 |h any ot|her.docu|
|00002150| 6d 65 6e 74 20 63 6c 61 | 73 73 2c 20 73 6f 20 77 |ment cla|ss, so w|
|00002160| 65 20 68 61 76 65 20 7c | 6f 77 6e 6c 65 74 2e 63 |e have ||ownlet.c|
|00002170| 6c 73 7c 20 72 61 74 68 | 65 72 20 74 68 61 6e 20 |ls| rath|er than |
|00002180| 7c 6f 77 6e 6c 65 74 2e | 73 74 79 7c 2e 0a 20 0a ||ownlet.|sty|.. .|
|00002190| 54 68 65 20 7c 67 72 61 | 70 68 69 63 73 7c 20 70 |The |gra|phics| p|
|000021a0| 61 63 6b 61 67 65 2c 20 | 69 6e 20 63 6f 6e 74 72 |ackage, |in contr|
|000021b0| 61 73 74 2c 20 70 72 6f | 76 69 64 65 73 20 63 6f |ast, pro|vides co|
|000021c0| 6d 6d 61 6e 64 73 20 66 | 6f 72 20 69 6e 63 6c 75 |mmands f|or inclu|
|000021d0| 64 69 6e 67 0a 69 6d 61 | 67 65 73 20 69 6e 74 6f |ding.ima|ges into|
|000021e0| 20 61 20 5c 4c 61 54 65 | 58 7b 7d 20 64 6f 63 75 | a \LaTe|X{} docu|
|000021f0| 6d 65 6e 74 2e 20 20 53 | 69 6e 63 65 20 74 68 65 |ment. S|ince the|
|00002200| 73 65 20 63 6f 6d 6d 61 | 6e 64 73 20 63 61 6e 20 |se comma|nds can |
|00002210| 62 65 20 75 73 65 64 0a | 77 69 74 68 20 61 6e 79 |be used.|with any|
|00002220| 20 64 6f 63 75 6d 65 6e | 74 20 63 6c 61 73 73 2c | documen|t class,|
|00002230| 20 77 65 20 68 61 76 65 | 20 7c 67 72 61 70 68 69 | we have| |graphi|
|00002240| 63 73 2e 73 74 79 7c 20 | 72 61 74 68 65 72 20 74 |cs.sty| |rather t|
|00002250| 68 61 6e 0a 7c 67 72 61 | 70 68 69 63 73 2e 63 6c |han.|gra|phics.cl|
|00002260| 73 7c 2e 0a 20 0a 0a 5c | 73 75 62 73 65 63 74 69 |s|.. ..\|subsecti|
|00002270| 6f 6e 7b 43 6f 6d 6d 61 | 6e 64 20 6e 61 6d 65 73 |on{Comma|nd names|
|00002280| 7d 0a 20 0a 5c 4c 61 54 | 65 58 7b 7d 20 68 61 73 |}. .\LaT|eX{} has|
|00002290| 20 74 68 72 65 65 20 74 | 79 70 65 73 20 6f 66 20 | three t|ypes of |
|000022a0| 63 6f 6d 6d 61 6e 64 2e | 0a 20 0a 54 68 65 72 65 |command.|. .There|
|000022b0| 20 61 72 65 20 74 68 65 | 20 61 75 74 68 6f 72 20 | are the| author |
|000022c0| 63 6f 6d 6d 61 6e 64 73 | 2c 20 73 75 63 68 20 61 |commands|, such a|
|000022d0| 73 20 7c 5c 73 65 63 74 | 69 6f 6e 7c 2c 20 7c 5c |s |\sect|ion|, |\|
|000022e0| 65 6d 70 68 7c 20 61 6e | 64 0a 7c 5c 74 69 6d 65 |emph| an|d.|\time|
|000022f0| 73 7c 3a 20 20 6d 6f 73 | 74 20 6f 66 20 74 68 65 |s|: mos|t of the|
|00002300| 73 65 20 68 61 76 65 20 | 73 68 6f 72 74 20 6e 61 |se have |short na|
|00002310| 6d 65 73 2c 20 61 6c 6c | 20 69 6e 20 6c 6f 77 65 |mes, all| in lowe|
|00002320| 72 20 63 61 73 65 2e 0a | 20 0a 54 68 65 72 65 20 |r case..| .There |
|00002330| 61 72 65 20 74 68 65 20 | 63 6c 61 73 73 20 61 6e |are the |class an|
|00002340| 64 20 70 61 63 6b 61 67 | 65 20 77 72 69 74 65 72 |d packag|e writer|
|00002350| 20 63 6f 6d 6d 61 6e 64 | 73 3a 0a 6d 6f 73 74 20 | command|s:.most |
|00002360| 6f 66 20 74 68 65 73 65 | 20 68 61 76 65 20 6c 6f |of these| have lo|
|00002370| 6e 67 20 6d 69 78 65 64 | 2d 63 61 73 65 20 6e 61 |ng mixed|-case na|
|00002380| 6d 65 73 20 73 75 63 68 | 20 61 73 20 74 68 65 20 |mes such| as the |
|00002390| 66 6f 6c 6c 6f 77 69 6e | 67 2e 0a 5c 62 65 67 69 |followin|g..\begi|
|000023a0| 6e 7b 76 65 72 62 61 74 | 69 6d 7d 0a 20 20 20 5c |n{verbat|im}. \|
|000023b0| 49 6e 70 75 74 49 66 46 | 69 6c 65 45 78 69 73 74 |InputIfF|ileExist|
|000023c0| 73 20 20 5c 52 65 71 75 | 69 72 65 50 61 63 6b 61 |s \Requ|irePacka|
|000023d0| 67 65 20 20 5c 50 61 73 | 73 4f 70 74 69 6f 6e 73 |ge \Pas|sOptions|
|000023e0| 54 6f 43 6c 61 73 73 0a | 5c 65 6e 64 7b 76 65 72 |ToClass.|\end{ver|
|000023f0| 62 61 74 69 6d 7d 0a 20 | 0a 46 69 6e 61 6c 6c 79 |batim}. |.Finally|
|00002400| 2c 20 74 68 65 72 65 20 | 61 72 65 20 74 68 65 20 |, there |are the |
|00002410| 69 6e 74 65 72 6e 61 6c | 20 63 6f 6d 6d 61 6e 64 |internal| command|
|00002420| 73 20 75 73 65 64 20 69 | 6e 20 74 68 65 20 5c 4c |s used i|n the \L|
|00002430| 61 54 65 58 7b 7d 0a 69 | 6d 70 6c 65 6d 65 6e 74 |aTeX{}.i|mplement|
|00002440| 61 74 69 6f 6e 2c 20 73 | 75 63 68 20 61 73 20 7c |ation, s|uch as ||
|00002450| 5c 40 74 65 6d 70 63 6e | 74 61 7c 2c 20 7c 5c 40 |\@tempcn|ta|, |\@|
|00002460| 69 66 6e 65 78 74 63 68 | 61 72 7c 20 61 6e 64 20 |ifnextch|ar| and |
|00002470| 7c 5c 40 65 68 61 7c 3a | 0a 6d 6f 73 74 20 6f 66 ||\@eha|:|.most of|
|00002480| 20 74 68 65 73 65 20 63 | 6f 6d 6d 61 6e 64 73 20 | these c|ommands |
|00002490| 63 6f 6e 74 61 69 6e 20 | 7c 40 7c 20 69 6e 20 74 |contain ||@| in t|
|000024a0| 68 65 69 72 20 6e 61 6d | 65 2c 20 77 68 69 63 68 |heir nam|e, which|
|000024b0| 20 6d 65 61 6e 73 20 74 | 68 65 79 0a 63 61 6e 6e | means t|hey.cann|
|000024c0| 6f 74 20 62 65 20 75 73 | 65 64 20 69 6e 20 64 6f |ot be us|ed in do|
|000024d0| 63 75 6d 65 6e 74 73 2c | 20 6f 6e 6c 79 20 69 6e |cuments,| only in|
|000024e0| 20 63 6c 61 73 73 20 61 | 6e 64 20 70 61 63 6b 61 | class a|nd packa|
|000024f0| 67 65 20 66 69 6c 65 73 | 2e 0a 20 0a 55 6e 66 6f |ge files|.. .Unfo|
|00002500| 72 74 75 6e 61 74 65 6c | 79 2c 20 66 6f 72 20 68 |rtunatel|y, for h|
|00002510| 69 73 74 6f 72 69 63 61 | 6c 20 72 65 61 73 6f 6e |istorica|l reason|
|00002520| 73 20 74 68 65 20 64 69 | 73 74 69 6e 63 74 69 6f |s the di|stinctio|
|00002530| 6e 20 62 65 74 77 65 65 | 6e 20 74 68 65 73 65 0a |n betwee|n these.|
|00002540| 63 6f 6d 6d 61 6e 64 73 | 20 69 73 20 6f 66 74 65 |commands| is ofte|
|00002550| 6e 20 62 6c 75 72 72 65 | 64 2e 20 20 46 6f 72 20 |n blurre|d. For |
|00002560| 65 78 61 6d 70 6c 65 2c | 20 7c 5c 68 62 6f 78 7c |example,| |\hbox||
|00002570| 20 69 73 20 61 6e 20 69 | 6e 74 65 72 6e 61 6c 0a | is an i|nternal.|
|00002580| 63 6f 6d 6d 61 6e 64 20 | 77 68 69 63 68 20 73 68 |command |which sh|
|00002590| 6f 75 6c 64 20 6f 6e 6c | 79 20 62 65 20 75 73 65 |ould onl|y be use|
|000025a0| 64 20 69 6e 20 74 68 65 | 20 5c 4c 61 54 65 58 7b |d in the| \LaTeX{|
|000025b0| 7d 20 6b 65 72 6e 65 6c | 2c 20 77 68 65 72 65 61 |} kernel|, wherea|
|000025c0| 73 0a 7c 5c 6d 40 6e 65 | 7c 20 69 73 20 74 68 65 |s.|\m@ne|| is the|
|000025d0| 20 63 6f 6e 73 74 61 6e | 74 20 24 2d 31 24 20 61 | constan|t $-1$ a|
|000025e0| 6e 64 20 63 6f 75 6c 64 | 20 68 61 76 65 20 62 65 |nd could| have be|
|000025f0| 65 6e 20 7c 5c 4d 69 6e | 75 73 4f 6e 65 7c 2e 0a |en |\Min|usOne|..|
|00002600| 20 0a 48 6f 77 65 76 65 | 72 2c 20 74 68 69 73 20 | .Howeve|r, this |
|00002610| 72 75 6c 65 20 6f 66 20 | 74 68 75 6d 62 20 69 73 |rule of |thumb is|
|00002620| 20 73 74 69 6c 6c 20 75 | 73 65 66 75 6c 3a 20 69 | still u|seful: i|
|00002630| 66 20 61 20 63 6f 6d 6d | 61 6e 64 20 68 61 73 20 |f a comm|and has |
|00002640| 7c 40 7c 20 69 6e 0a 69 | 74 73 20 6e 61 6d 65 20 ||@| in.i|ts name |
|00002650| 74 68 65 6e 20 69 74 20 | 69 73 20 6e 6f 74 20 70 |then it |is not p|
|00002660| 61 72 74 20 6f 66 20 74 | 68 65 20 73 75 70 70 6f |art of t|he suppo|
|00002670| 72 74 65 64 20 5c 4c 61 | 54 65 58 7b 7d 20 6c 61 |rted \La|TeX{} la|
|00002680| 6e 67 75 61 67 65 2d 2d | 2d 61 6e 64 0a 69 74 73 |nguage--|-and.its|
|00002690| 20 62 65 68 61 76 69 6f | 75 72 20 6d 61 79 20 63 | behavio|ur may c|
|000026a0| 68 61 6e 67 65 20 69 6e | 20 66 75 74 75 72 65 20 |hange in| future |
|000026b0| 72 65 6c 65 61 73 65 73 | 21 20 20 49 66 20 61 20 |releases|! If a |
|000026c0| 63 6f 6d 6d 61 6e 64 20 | 69 73 0a 6d 69 78 65 64 |command |is.mixed|
|000026d0| 2d 63 61 73 65 2c 20 6f | 72 20 69 73 20 64 65 73 |-case, o|r is des|
|000026e0| 63 72 69 62 65 64 20 69 | 6e 20 5c 65 6d 70 68 7b |cribed i|n \emph{|
|000026f0| 5c 4c 61 54 65 58 62 6f | 6f 6b 7d 2c 20 74 68 65 |\LaTeXbo|ok}, the|
|00002700| 6e 20 79 6f 75 20 63 61 | 6e 20 72 65 6c 79 20 6f |n you ca|n rely o|
|00002710| 6e 0a 66 75 74 75 72 65 | 20 72 65 6c 65 61 73 65 |n.future| release|
|00002720| 73 20 6f 66 20 5c 4c 61 | 54 65 58 65 7b 7d 20 73 |s of \La|TeXe{} s|
|00002730| 75 70 70 6f 72 74 69 6e | 67 20 74 68 65 20 63 6f |upportin|g the co|
|00002740| 6d 6d 61 6e 64 2e 0a 20 | 0a 5c 73 75 62 73 65 63 |mmand.. |.\subsec|
|00002750| 74 69 6f 6e 7b 42 6f 78 | 20 63 6f 6d 6d 61 6e 64 |tion{Box| command|
|00002760| 73 20 61 6e 64 20 63 6f | 6c 6f 75 72 7d 0a 5c 6c |s and co|lour}.\l|
|00002770| 61 62 65 6c 7b 53 65 63 | 3a 63 6f 6c 6f 75 72 7d |abel{Sec|:colour}|
|00002780| 0a 20 0a 45 76 65 6e 20 | 69 66 20 79 6f 75 20 64 |. .Even |if you d|
|00002790| 6f 20 6e 6f 74 20 69 6e | 74 65 6e 64 20 74 6f 20 |o not in|tend to |
|000027a0| 75 73 65 20 63 6f 6c 6f | 75 72 20 69 6e 20 79 6f |use colo|ur in yo|
|000027b0| 75 72 20 6f 77 6e 20 64 | 6f 63 75 6d 65 6e 74 73 |ur own d|ocuments|
|000027c0| 2c 20 62 79 0a 74 61 6b | 69 6e 67 20 6e 6f 74 65 |, by.tak|ing note|
|000027d0| 20 6f 66 20 74 68 65 20 | 70 6f 69 6e 74 73 20 69 | of the |points i|
|000027e0| 6e 20 74 68 69 73 20 73 | 65 63 74 69 6f 6e 20 79 |n this s|ection y|
|000027f0| 6f 75 20 63 61 6e 20 65 | 6e 73 75 72 65 20 74 68 |ou can e|nsure th|
|00002800| 61 74 20 79 6f 75 72 0a | 63 6c 61 73 73 20 6f 72 |at your.|class or|
|00002810| 20 70 61 63 6b 61 67 65 | 20 69 73 20 63 6f 6d 70 | package| is comp|
|00002820| 61 74 69 62 6c 65 20 77 | 69 74 68 20 74 68 65 20 |atible w|ith the |
|00002830| 7c 63 6f 6c 6f 72 7c 20 | 70 61 63 6b 61 67 65 2e ||color| |package.|
|00002840| 20 54 68 69 73 20 6d 61 | 79 0a 62 65 6e 65 66 69 | This ma|y.benefi|
|00002850| 74 20 70 65 6f 70 6c 65 | 20 75 73 69 6e 67 20 79 |t people| using y|
|00002860| 6f 75 72 20 63 6c 61 73 | 73 20 6f 72 20 70 61 63 |our clas|s or pac|
|00002870| 6b 61 67 65 20 77 68 6f | 20 68 61 76 65 20 61 63 |kage who| have ac|
|00002880| 63 65 73 73 20 74 6f 20 | 63 6f 6c 6f 75 72 0a 70 |cess to |colour.p|
|00002890| 72 69 6e 74 65 72 73 2e | 0a 20 0a 54 68 65 20 73 |rinters.|. .The s|
|000028a0| 69 6d 70 6c 65 73 74 20 | 77 61 79 20 74 6f 20 65 |implest |way to e|
|000028b0| 6e 73 75 72 65 20 60 63 | 6f 6c 6f 75 72 20 73 61 |nsure `c|olour sa|
|000028c0| 66 65 74 79 27 20 69 73 | 20 74 6f 20 61 6c 77 61 |fety' is| to alwa|
|000028d0| 79 73 20 75 73 65 20 5c | 4c 61 54 65 58 7b 7d 0a |ys use \|LaTeX{}.|
|000028e0| 62 6f 78 20 63 6f 6d 6d | 61 6e 64 73 20 72 61 74 |box comm|ands rat|
|000028f0| 68 65 72 20 74 68 61 6e | 20 5c 54 65 58 7b 7d 20 |her than| \TeX{} |
|00002900| 70 72 69 6d 69 74 69 76 | 65 73 2c 20 74 68 61 74 |primitiv|es, that|
|00002910| 20 69 73 20 75 73 65 20 | 7c 5c 73 62 6f 78 7c 20 | is use ||\sbox| |
|00002920| 72 61 74 68 65 72 0a 74 | 68 61 6e 20 7c 5c 73 65 |rather.t|han |\se|
|00002930| 74 62 6f 78 7c 2c 20 7c | 5c 6d 62 6f 78 7c 20 72 |tbox|, ||\mbox| r|
|00002940| 61 74 68 65 72 20 74 68 | 61 6e 20 7c 5c 68 62 6f |ather th|an |\hbo|
|00002950| 78 7c 20 61 6e 64 20 7c | 5c 70 61 72 62 6f 78 7c |x| and ||\parbox||
|00002960| 20 6f 72 0a 7c 5c 6d 69 | 6e 69 70 61 67 65 7c 20 | or.|\mi|nipage| |
|00002970| 72 61 74 68 65 72 20 74 | 68 61 6e 20 7c 5c 76 62 |rather t|han |\vb|
|00002980| 6f 78 7c 2e 20 20 54 68 | 65 20 5c 4c 61 54 65 58 |ox|. Th|e \LaTeX|
|00002990| 7b 7d 20 62 6f 78 20 63 | 6f 6d 6d 61 6e 64 73 20 |{} box c|ommands |
|000029a0| 68 61 76 65 20 6e 65 77 | 0a 6f 70 74 69 6f 6e 73 |have new|.options|
|000029b0| 20 77 68 69 63 68 20 6d | 65 61 6e 20 74 68 61 74 | which m|ean that|
|000029c0| 20 74 68 65 79 20 61 72 | 65 20 6e 6f 77 20 61 73 | they ar|e now as|
|000029d0| 20 70 6f 77 65 72 66 75 | 6c 20 61 73 20 74 68 65 | powerfu|l as the|
|000029e0| 20 5c 54 65 58 7b 7d 0a | 70 72 69 6d 69 74 69 76 | \TeX{}.|primitiv|
|000029f0| 65 73 2e 0a 20 0a 41 73 | 20 61 6e 20 65 78 61 6d |es.. .As| an exam|
|00002a00| 70 6c 65 20 6f 66 20 77 | 68 61 74 20 63 61 6e 20 |ple of w|hat can |
|00002a10| 67 6f 20 77 72 6f 6e 67 | 2c 20 63 6f 6e 73 69 64 |go wrong|, consid|
|00002a20| 65 72 20 74 68 61 74 20 | 69 6e 20 0a 7c 7b 5c 74 |er that |in .|{\t|
|00002a30| 74 66 61 6d 69 6c 79 20 | 3c 74 65 78 74 3e 7d 7c |tfamily |<text>}||
|00002a40| 0a 74 68 65 20 66 6f 6e | 74 20 69 73 20 72 65 73 |.the fon|t is res|
|00002a50| 74 6f 72 65 64 20 6a 75 | 73 74 20 5c 65 6d 70 68 |tored ju|st \emph|
|00002a60| 7b 62 65 66 6f 72 65 7d | 20 74 68 65 20 7c 7d 7c |{before}| the |}||
|00002a70| 2c 20 77 68 65 72 65 61 | 73 20 69 6e 20 74 68 65 |, wherea|s in the|
|00002a80| 0a 73 69 6d 69 6c 61 72 | 20 6c 6f 6f 6b 69 6e 67 |.similar| looking|
|00002a90| 20 63 6f 6e 73 74 72 75 | 63 74 69 6f 6e 0a 7c 7b | constru|ction.|{|
|00002aa0| 5c 63 6f 6c 6f 72 7b 67 | 72 65 65 6e 7d 20 3c 74 |\color{g|reen} <t|
|00002ab0| 65 78 74 3e 7d 7c 0a 74 | 68 65 20 63 6f 6c 6f 75 |ext>}|.t|he colou|
|00002ac0| 72 20 69 73 20 72 65 73 | 74 6f 72 65 64 20 6a 75 |r is res|tored ju|
|00002ad0| 73 74 20 5c 65 6d 70 68 | 7b 61 66 74 65 72 7d 20 |st \emph|{after} |
|00002ae0| 74 68 65 20 66 69 6e 61 | 6c 20 7c 7d 7c 2e 20 4e |the fina|l |}|. N|
|00002af0| 6f 72 6d 61 6c 6c 79 20 | 74 68 69 73 0a 64 69 73 |ormally |this.dis|
|00002b00| 74 69 6e 63 74 69 6f 6e | 20 64 6f 65 73 20 6e 6f |tinction| does no|
|00002b10| 74 20 6d 61 74 74 65 72 | 20 61 74 20 61 6c 6c 3b |t matter| at all;|
|00002b20| 20 62 75 74 20 63 6f 6e | 73 69 64 65 72 20 61 20 | but con|sider a |
|00002b30| 70 72 69 6d 69 74 69 76 | 65 20 5c 54 65 58 7b 7d |primitiv|e \TeX{}|
|00002b40| 0a 62 6f 78 20 61 73 73 | 69 67 6e 6d 65 6e 74 20 |.box ass|ignment |
|00002b50| 73 75 63 68 20 61 73 3a | 0a 5c 62 65 67 69 6e 7b |such as:|.\begin{|
|00002b60| 76 65 72 62 61 74 69 6d | 7d 0a 20 20 20 5c 73 65 |verbatim|}. \se|
|00002b70| 74 62 6f 78 30 3d 5c 68 | 62 6f 78 7b 5c 63 6f 6c |tbox0=\h|box{\col|
|00002b80| 6f 72 7b 67 72 65 65 6e | 7d 20 3c 74 65 78 74 3e |or{green|} <text>|
|00002b90| 7d 0a 5c 65 6e 64 7b 76 | 65 72 62 61 74 69 6d 7d |}.\end{v|erbatim}|
|00002ba0| 0a 4e 6f 77 20 74 68 65 | 20 63 6f 6c 6f 75 72 2d |.Now the| colour-|
|00002bb0| 72 65 73 74 6f 72 65 20 | 6f 63 63 75 72 73 20 61 |restore |occurs a|
|00002bc0| 66 74 65 72 20 74 68 65 | 20 7c 7d 7c 20 61 6e 64 |fter the| |}| and|
|00002bd0| 20 73 6f 20 69 73 20 5c | 65 6d 70 68 7b 6e 6f 74 | so is \|emph{not|
|00002be0| 7d 0a 73 74 6f 72 65 64 | 20 69 6e 20 74 68 65 20 |}.stored| in the |
|00002bf0| 62 6f 78 2e 20 45 78 61 | 63 74 6c 79 20 77 68 61 |box. Exa|ctly wha|
|00002c00| 74 20 62 61 64 20 65 66 | 66 65 63 74 73 20 74 68 |t bad ef|fects th|
|00002c10| 69 73 20 63 61 6e 20 68 | 61 76 65 20 64 65 70 65 |is can h|ave depe|
|00002c20| 6e 64 73 20 6f 6e 0a 68 | 6f 77 20 63 6f 6c 6f 75 |nds on.h|ow colou|
|00002c30| 72 20 69 73 20 69 6d 70 | 6c 65 6d 65 6e 74 65 64 |r is imp|lemented|
|00002c40| 3a 20 69 74 20 63 61 6e | 20 72 61 6e 67 65 20 66 |: it can| range f|
|00002c50| 72 6f 6d 20 67 65 74 74 | 69 6e 67 20 74 68 65 20 |rom gett|ing the |
|00002c60| 77 72 6f 6e 67 0a 63 6f | 6c 6f 75 72 73 20 69 6e |wrong.co|lours in|
|00002c70| 20 74 68 65 20 72 65 73 | 74 20 6f 66 20 74 68 65 | the res|t of the|
|00002c80| 20 64 6f 63 75 6d 65 6e | 74 2c 20 74 6f 20 63 61 | documen|t, to ca|
|00002c90| 75 73 69 6e 67 20 65 72 | 72 6f 72 73 20 69 6e 20 |using er|rors in |
|00002ca0| 74 68 65 0a 64 76 69 2d | 64 72 69 76 65 72 20 75 |the.dvi-|driver u|
|00002cb0| 73 65 64 20 74 6f 20 70 | 72 69 6e 74 20 74 68 65 |sed to p|rint the|
|00002cc0| 20 64 6f 63 75 6d 65 6e | 74 2e 0a 20 0a 41 6c 73 | documen|t.. .Als|
|00002cd0| 6f 20 6f 66 20 69 6e 74 | 65 72 65 73 74 20 69 73 |o of int|erest is|
|00002ce0| 20 74 68 65 20 63 6f 6d | 6d 61 6e 64 20 7c 5c 6e | the com|mand |\n|
|00002cf0| 6f 72 6d 61 6c 63 6f 6c | 6f 72 7c 2e 20 20 20 54 |ormalcol|or|. T|
|00002d00| 68 69 73 20 69 73 20 0a | 6e 6f 72 6d 61 6c 6c 79 |his is .|normally|
|00002d10| 20 6a 75 73 74 20 7c 5c | 72 65 6c 61 78 7c 20 28 | just |\|relax| (|
|00002d20| 69 2e 65 2e 2c 20 64 6f | 65 73 20 6e 6f 74 68 69 |i.e., do|es nothi|
|00002d30| 6e 67 29 0a 62 75 74 20 | 79 6f 75 20 63 61 6e 20 |ng).but |you can |
|00002d40| 75 73 65 20 69 74 20 72 | 61 74 68 65 72 20 6c 69 |use it r|ather li|
|00002d50| 6b 65 20 7c 5c 6e 6f 72 | 6d 61 6c 66 6f 6e 74 7c |ke |\nor|malfont||
|00002d60| 20 74 6f 20 0a 73 65 74 | 20 72 65 67 69 6f 6e 73 | to .set| regions|
|00002d70| 20 6f 66 20 74 68 65 20 | 70 61 67 65 20 73 75 63 | of the |page suc|
|00002d80| 68 20 61 73 20 63 61 70 | 74 69 6f 6e 73 20 6f 72 |h as cap|tions or|
|00002d90| 20 73 65 63 74 69 6f 6e | 20 68 65 61 64 69 6e 67 | section| heading|
|00002da0| 73 20 74 6f 20 74 68 65 | 20 0a 60 6d 61 69 6e 20 |s to the| .`main |
|00002db0| 64 6f 63 75 6d 65 6e 74 | 20 63 6f 6c 6f 75 72 27 |document| colour'|
|00002dc0| 2e 0a 0a 0a 5c 73 75 62 | 73 65 63 74 69 6f 6e 7b |....\sub|section{|
|00002dd0| 44 65 66 69 6e 69 6e 67 | 20 74 65 78 74 20 61 6e |Defining| text an|
|00002de0| 64 20 6d 61 74 68 20 63 | 68 61 72 61 63 74 65 72 |d math c|haracter|
|00002df0| 73 7d 0a 5c 6c 61 62 65 | 6c 7b 53 65 63 3a 63 68 |s}.\labe|l{Sec:ch|
|00002e00| 61 72 73 7d 0a 0a 42 65 | 63 61 75 73 65 20 5c 4c |ars}..Be|cause \L|
|00002e10| 61 54 65 58 65 7b 7d 20 | 73 75 70 70 6f 72 74 73 |aTeXe{} |supports|
|00002e20| 20 64 69 66 66 65 72 65 | 6e 74 20 65 6e 63 6f 64 | differe|nt encod|
|00002e30| 69 6e 67 73 2c 20 64 65 | 66 69 6e 69 74 69 6f 6e |ings, de|finition|
|00002e40| 73 20 6f 66 20 63 6f 6d | 6d 61 6e 64 73 0a 66 6f |s of com|mands.fo|
|00002e50| 72 20 70 72 6f 64 75 63 | 69 6e 67 20 73 79 6d 62 |r produc|ing symb|
|00002e60| 6f 6c 73 2c 20 61 63 63 | 65 6e 74 73 2c 20 63 6f |ols, acc|ents, co|
|00002e70| 6d 70 6f 73 69 74 65 20 | 67 6c 79 70 68 73 2c 20 |mposite |glyphs, |
|00002e80| 65 74 63 2e 5c 20 6d 75 | 73 74 20 62 65 0a 64 65 |etc.\ mu|st be.de|
|00002e90| 66 69 6e 65 64 20 75 73 | 69 6e 67 20 74 68 65 20 |fined us|ing the |
|00002ea0| 63 6f 6d 6d 61 6e 64 73 | 20 70 72 6f 76 69 64 65 |commands| provide|
|00002eb0| 64 20 66 6f 72 20 74 68 | 69 73 20 70 75 72 70 6f |d for th|is purpo|
|00002ec0| 73 65 20 61 6e 64 20 64 | 65 73 63 72 69 62 65 64 |se and d|escribed|
|00002ed0| 20 69 6e 0a 5c 65 6d 70 | 68 7b 5c 66 6e 74 67 75 | in.\emp|h{\fntgu|
|00002ee0| 69 64 65 7d 2e 20 20 54 | 68 69 73 20 70 61 72 74 |ide}. T|his part|
|00002ef0| 20 6f 66 20 74 68 65 20 | 73 79 73 74 65 6d 20 69 | of the |system i|
|00002f00| 73 20 73 74 69 6c 6c 20 | 75 6e 64 65 72 20 64 65 |s still |under de|
|00002f10| 76 65 6c 6f 70 6d 65 6e | 74 0a 73 6f 20 73 75 63 |velopmen|t.so suc|
|00002f20| 68 20 74 61 73 6b 73 20 | 73 68 6f 75 6c 64 20 62 |h tasks |should b|
|00002f30| 65 20 75 6e 64 65 72 74 | 61 6b 65 6e 20 77 69 74 |e undert|aken wit|
|00002f40| 68 20 67 72 65 61 74 20 | 63 61 75 74 69 6f 6e 2e |h great |caution.|
|00002f50| 0a 0a 41 6c 73 6f 2c 20 | 7c 5c 44 65 63 6c 61 72 |..Also, ||\Declar|
|00002f60| 65 52 6f 62 75 73 74 43 | 6f 6d 6d 61 6e 64 7c 20 |eRobustC|ommand| |
|00002f70| 73 68 6f 75 6c 64 20 62 | 65 20 75 73 65 64 20 66 |should b|e used f|
|00002f80| 6f 72 20 65 6e 63 6f 64 | 69 6e 67 2d 69 6e 64 65 |or encod|ing-inde|
|00002f90| 70 65 6e 64 65 6e 74 0a | 63 6f 6d 6d 61 6e 64 73 |pendent.|commands|
|00002fa0| 20 6f 66 20 74 68 69 73 | 20 74 79 70 65 2e 0a 0a | of this| type...|
|00002fb0| 4e 6f 74 65 20 74 68 61 | 74 20 69 74 20 69 73 20 |Note tha|t it is |
|00002fc0| 6e 6f 20 6c 6f 6e 67 65 | 72 20 70 6f 73 73 69 62 |no longe|r possib|
|00002fd0| 6c 65 20 74 6f 20 72 65 | 66 65 72 20 74 6f 20 74 |le to re|fer to t|
|00002fe0| 68 65 20 6d 61 74 68 20 | 66 6f 6e 74 20 73 65 74 |he math |font set|
|00002ff0| 2d 75 70 0a 6f 75 74 73 | 69 64 65 20 6d 61 74 68 |-up.outs|ide math|
|00003000| 20 6d 6f 64 65 3a 20 66 | 6f 72 20 65 78 61 6d 70 | mode: f|or examp|
|00003010| 6c 65 2c 20 6e 65 69 74 | 68 65 72 20 7c 5c 74 65 |le, neit|her |\te|
|00003020| 78 74 66 6f 6e 74 20 31 | 7c 20 6e 6f 72 0a 7c 5c |xtfont 1|| nor.|\|
|00003030| 73 63 72 69 70 74 66 6f | 6e 74 20 32 7c 20 61 72 |scriptfo|nt 2| ar|
|00003040| 65 20 67 75 61 72 61 6e | 74 65 65 64 20 74 6f 20 |e guaran|teed to |
|00003050| 62 65 20 64 65 66 69 6e | 65 64 20 69 6e 20 6f 74 |be defin|ed in ot|
|00003060| 68 65 72 20 6d 6f 64 65 | 73 2e 0a 0a 0a 5c 73 75 |her mode|s....\su|
|00003070| 62 73 65 63 74 69 6f 6e | 7b 47 65 6e 65 72 61 6c |bsection|{General|
|00003080| 20 73 74 79 6c 65 7d 0a | 5c 6c 61 62 65 6c 7b 53 | style}.|\label{S|
|00003090| 65 63 3a 67 65 6e 65 72 | 61 6c 7d 0a 0a 54 68 65 |ec:gener|al}..The|
|000030a0| 20 6e 65 77 20 73 79 73 | 74 65 6d 20 70 72 6f 76 | new sys|tem prov|
|000030b0| 69 64 65 73 20 6d 61 6e | 79 20 63 6f 6d 6d 61 6e |ides man|y comman|
|000030c0| 64 73 20 64 65 73 69 67 | 6e 65 64 20 74 6f 20 68 |ds desig|ned to h|
|000030d0| 65 6c 70 20 79 6f 75 20 | 70 72 6f 64 75 63 65 0a |elp you |produce.|
|000030e0| 77 65 6c 6c 2d 73 74 72 | 75 63 74 75 72 65 64 20 |well-str|uctured |
|000030f0| 63 6c 61 73 73 20 61 6e | 64 20 70 61 63 6b 61 67 |class an|d packag|
|00003100| 65 20 66 69 6c 65 73 20 | 74 68 61 74 20 61 72 65 |e files |that are|
|00003110| 20 62 6f 74 68 20 72 6f | 62 75 73 74 20 61 6e 64 | both ro|bust and|
|00003120| 0a 70 6f 72 74 61 62 6c | 65 2e 20 20 54 68 69 73 |.portabl|e. This|
|00003130| 20 73 65 63 74 69 6f 6e | 20 6f 75 74 6c 69 6e 65 | section| outline|
|00003140| 73 20 73 6f 6d 65 20 77 | 61 79 73 20 74 6f 20 6d |s some w|ays to m|
|00003150| 61 6b 65 20 69 6e 74 65 | 6c 6c 69 67 65 6e 74 20 |ake inte|lligent |
|00003160| 75 73 65 20 6f 66 0a 74 | 68 65 73 65 2e 20 0a 0a |use of.t|hese. ..|
|00003170| 5c 73 75 62 73 75 62 73 | 65 63 74 69 6f 6e 7b 4c |\subsubs|ection{L|
|00003180| 6f 61 64 69 6e 67 20 6f | 74 68 65 72 20 66 69 6c |oading o|ther fil|
|00003190| 65 73 7d 0a 5c 6c 61 62 | 65 6c 7b 53 65 63 3a 6c |es}.\lab|el{Sec:l|
|000031a0| 6f 61 64 69 6e 67 7d 0a | 20 0a 5c 4c 61 54 65 58 |oading}.| .\LaTeX|
|000031b0| 7b 7d 20 70 72 6f 76 69 | 64 65 73 20 74 68 65 20 |{} provi|des the |
|000031c0| 63 6f 6d 6d 61 6e 64 73 | 20 7c 5c 4c 6f 61 64 43 |commands| |\LoadC|
|000031d0| 6c 61 73 73 7c 20 61 6e | 64 20 7c 5c 52 65 71 75 |lass| an|d |\Requ|
|000031e0| 69 72 65 50 61 63 6b 61 | 67 65 7c 20 66 6f 72 0a |irePacka|ge| for.|
|000031f0| 75 73 69 6e 67 20 63 6c | 61 73 73 65 73 20 6f 72 |using cl|asses or|
|00003200| 20 70 61 63 6b 61 67 65 | 73 20 69 6e 73 69 64 65 | package|s inside|
|00003210| 20 6f 74 68 65 72 20 63 | 6c 61 73 73 65 73 20 6f | other c|lasses o|
|00003220| 72 20 70 61 63 6b 61 67 | 65 73 2e 20 20 57 65 0a |r packag|es. We.|
|00003230| 72 65 63 6f 6d 6d 65 6e | 64 20 73 74 72 6f 6e 67 |recommen|d strong|
|00003240| 6c 79 20 74 68 61 74 20 | 79 6f 75 20 75 73 65 20 |ly that |you use |
|00003250| 74 68 65 6d 2c 20 72 61 | 74 68 65 72 20 74 68 61 |them, ra|ther tha|
|00003260| 6e 20 74 68 65 20 70 72 | 69 6d 69 74 69 76 65 0a |n the pr|imitive.|
|00003270| 7c 5c 69 6e 70 75 74 7c | 20 63 6f 6d 6d 61 6e 64 ||\input|| command|
|00003280| 2c 20 66 6f 72 20 61 20 | 6e 75 6d 62 65 72 20 6f |, for a |number o|
|00003290| 66 20 72 65 61 73 6f 6e | 73 2e 0a 20 0a 46 69 6c |f reason|s.. .Fil|
|000032a0| 65 73 20 6c 6f 61 64 65 | 64 20 77 69 74 68 20 7c |es loade|d with ||
|000032b0| 5c 69 6e 70 75 74 20 3c | 66 69 6c 65 6e 61 6d 65 |\input <|filename|
|000032c0| 3e 7c 20 77 69 6c 6c 20 | 6e 6f 74 20 62 65 20 6c |>| will |not be l|
|000032d0| 69 73 74 65 64 20 69 6e | 20 74 68 65 0a 7c 5c 6c |isted in| the.|\l|
|000032e0| 69 73 74 66 69 6c 65 73 | 7c 20 6c 69 73 74 2e 0a |istfiles|| list..|
|000032f0| 20 0a 49 66 20 61 20 70 | 61 63 6b 61 67 65 20 69 | .If a p|ackage i|
|00003300| 73 20 61 6c 77 61 79 73 | 20 6c 6f 61 64 65 64 20 |s always| loaded |
|00003310| 77 69 74 68 20 7c 5c 52 | 65 71 75 69 72 65 50 61 |with |\R|equirePa|
|00003320| 63 6b 61 67 65 7c 20 6f | 72 20 7c 5c 75 73 65 70 |ckage| o|r |\usep|
|00003330| 61 63 6b 61 67 65 7c 0a | 74 68 65 6e 2c 20 65 76 |ackage|.|then, ev|
|00003340| 65 6e 20 69 66 20 69 74 | 73 20 6c 6f 61 64 69 6e |en if it|s loadin|
|00003350| 67 20 69 73 20 72 65 71 | 75 65 73 74 65 64 20 73 |g is req|uested s|
|00003360| 65 76 65 72 61 6c 20 74 | 69 6d 65 73 2c 20 69 74 |everal t|imes, it|
|00003370| 20 77 69 6c 6c 20 62 65 | 0a 6c 6f 61 64 65 64 20 | will be|.loaded |
|00003380| 6f 6e 6c 79 20 6f 6e 63 | 65 2e 20 20 42 79 20 63 |only onc|e. By c|
|00003390| 6f 6e 74 72 61 73 74 2c | 20 69 66 20 69 74 20 69 |ontrast,| if it i|
|000033a0| 73 20 6c 6f 61 64 65 64 | 20 77 69 74 68 20 7c 5c |s loaded| with |\|
|000033b0| 69 6e 70 75 74 7c 20 74 | 68 65 6e 20 69 74 0a 63 |input| t|hen it.c|
|000033c0| 61 6e 20 62 65 20 6c 6f | 61 64 65 64 20 6d 6f 72 |an be lo|aded mor|
|000033d0| 65 20 74 68 61 6e 20 6f | 6e 63 65 3b 20 73 75 63 |e than o|nce; suc|
|000033e0| 68 20 61 6e 20 65 78 74 | 72 61 20 6c 6f 61 64 69 |h an ext|ra loadi|
|000033f0| 6e 67 20 6d 61 79 20 77 | 61 73 74 65 20 74 69 6d |ng may w|aste tim|
|00003400| 65 20 61 6e 64 0a 6d 65 | 6d 6f 72 79 20 61 6e 64 |e and.me|mory and|
|00003410| 20 69 74 20 6d 61 79 20 | 70 72 6f 64 75 63 65 20 | it may |produce |
|00003420| 73 74 72 61 6e 67 65 20 | 72 65 73 75 6c 74 73 2e |strange |results.|
|00003430| 0a 20 0a 49 66 20 61 20 | 70 61 63 6b 61 67 65 20 |. .If a |package |
|00003440| 70 72 6f 76 69 64 65 73 | 20 6f 70 74 69 6f 6e 2d |provides| option-|
|00003450| 70 72 6f 63 65 73 73 69 | 6e 67 20 74 68 65 6e 2c |processi|ng then,|
|00003460| 20 61 67 61 69 6e 2c 20 | 73 74 72 61 6e 67 65 20 | again, |strange |
|00003470| 72 65 73 75 6c 74 73 0a | 61 72 65 20 70 6f 73 73 |results.|are poss|
|00003480| 69 62 6c 65 20 69 66 20 | 74 68 65 20 70 61 63 6b |ible if |the pack|
|00003490| 61 67 65 20 69 73 20 7c | 5c 69 6e 70 75 74 7c 20 |age is ||\input| |
|000034a0| 72 61 74 68 65 72 20 74 | 68 61 6e 20 6c 6f 61 64 |rather t|han load|
|000034b0| 65 64 20 62 79 20 6d 65 | 61 6e 73 20 6f 66 0a 7c |ed by me|ans of.||
|000034c0| 5c 75 73 65 70 61 63 6b | 61 67 65 7c 20 6f 72 20 |\usepack|age| or |
|000034d0| 7c 5c 52 65 71 75 69 72 | 65 50 61 63 6b 61 67 65 ||\Requir|ePackage|
|000034e0| 7c 2e 0a 20 0a 49 66 20 | 74 68 65 20 70 61 63 6b ||.. .If |the pack|
|000034f0| 61 67 65 20 7c 66 6f 6f | 2e 73 74 79 7c 20 6c 6f |age |foo|.sty| lo|
|00003500| 61 64 73 20 74 68 65 20 | 70 61 63 6b 61 67 65 20 |ads the |package |
|00003510| 7c 62 61 7a 2e 73 74 79 | 7c 20 62 79 20 75 73 65 ||baz.sty|| by use|
|00003520| 20 6f 66 0a 7c 5c 69 6e | 70 75 74 20 62 61 7a 2e | of.|\in|put baz.|
|00003530| 73 74 79 7c 20 74 68 65 | 6e 20 74 68 65 20 75 73 |sty| the|n the us|
|00003540| 65 72 20 77 69 6c 6c 20 | 67 65 74 20 61 20 77 61 |er will |get a wa|
|00003550| 72 6e 69 6e 67 3a 0a 5c | 62 65 67 69 6e 7b 76 65 |rning:.\|begin{ve|
|00003560| 72 62 61 74 69 6d 7d 0a | 20 20 20 4c 61 54 65 58 |rbatim}.| LaTeX|
|00003570| 20 57 61 72 6e 69 6e 67 | 3a 20 59 6f 75 20 68 61 | Warning|: You ha|
|00003580| 76 65 20 72 65 71 75 65 | 73 74 65 64 20 70 61 63 |ve reque|sted pac|
|00003590| 6b 61 67 65 20 60 66 6f | 6f 27 2c 0a 20 20 20 20 |kage `fo|o',. |
|000035a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 62 75 | | bu|
|000035b0| 74 20 74 68 65 20 70 61 | 63 6b 61 67 65 20 70 72 |t the pa|ckage pr|
|000035c0| 6f 76 69 64 65 73 20 60 | 62 61 7a 27 2e 0a 5c 65 |ovides `|baz'..\e|
|000035d0| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0a 54 68 75 |nd{verba|tim}.Thu|
|000035e0| 73 2c 20 66 6f 72 20 73 | 65 76 65 72 61 6c 20 72 |s, for s|everal r|
|000035f0| 65 61 73 6f 6e 73 2c 20 | 75 73 69 6e 67 20 7c 5c |easons, |using |\|
|00003600| 69 6e 70 75 74 7c 20 74 | 6f 20 6c 6f 61 64 20 70 |input| t|o load p|
|00003610| 61 63 6b 61 67 65 73 20 | 69 73 20 6e 6f 74 20 61 |ackages |is not a|
|00003620| 0a 67 6f 6f 64 20 69 64 | 65 61 2e 0a 20 0a 55 6e |.good id|ea.. .Un|
|00003630| 66 6f 72 74 75 6e 61 74 | 65 6c 79 2c 20 69 66 20 |fortunat|ely, if |
|00003640| 79 6f 75 20 61 72 65 20 | 75 70 67 72 61 64 69 6e |you are |upgradin|
|00003650| 67 20 74 68 65 20 66 69 | 6c 65 20 7c 6d 79 63 6c |g the fi|le |mycl|
|00003660| 61 73 73 2e 73 74 79 7c | 20 74 6f 20 61 20 63 6c |ass.sty|| to a cl|
|00003670| 61 73 73 0a 66 69 6c 65 | 20 74 68 65 6e 20 79 6f |ass.file| then yo|
|00003680| 75 20 68 61 76 65 20 74 | 6f 20 6d 61 6b 65 20 73 |u have t|o make s|
|00003690| 75 72 65 20 74 68 61 74 | 20 61 6e 79 20 6f 6c 64 |ure that| any old|
|000036a0| 20 66 69 6c 65 73 20 77 | 68 69 63 68 20 63 6f 6e | files w|hich con|
|000036b0| 74 61 69 6e 0a 7c 5c 69 | 6e 70 75 74 20 6d 79 63 |tain.|\i|nput myc|
|000036c0| 6c 61 73 73 2e 73 74 79 | 7c 20 73 74 69 6c 6c 20 |lass.sty|| still |
|000036d0| 77 6f 72 6b 2e 0a 0a 54 | 68 69 73 20 69 73 20 61 |work...T|his is a|
|000036e0| 6c 73 6f 20 74 72 75 65 | 20 6f 66 20 74 68 65 20 |lso true| of the |
|000036f0| 73 74 61 6e 64 61 72 64 | 20 63 6c 61 73 73 65 73 |standard| classes|
|00003700| 20 28 7c 61 72 74 69 63 | 6c 65 7c 2c 20 7c 62 6f | (|artic|le|, |bo|
|00003710| 6f 6b 7c 20 61 6e 64 0a | 7c 72 65 70 6f 72 74 7c |ok| and.||report||
|00003720| 29 2c 20 73 69 6e 63 65 | 20 61 20 6c 6f 74 20 6f |), since| a lot o|
|00003730| 66 20 65 78 69 73 74 69 | 6e 67 20 5c 4c 61 54 65 |f existi|ng \LaTe|
|00003740| 58 7e 32 2e 30 39 20 64 | 6f 63 75 6d 65 6e 74 20 |X~2.09 d|ocument |
|00003750| 73 74 79 6c 65 73 20 63 | 6f 6e 74 61 69 6e 0a 7c |styles c|ontain.||
|00003760| 5c 69 6e 70 75 74 20 61 | 72 74 69 63 6c 65 2e 73 |\input a|rticle.s|
|00003770| 74 79 7c 2e 20 20 54 68 | 65 20 61 70 70 72 6f 61 |ty|. Th|e approa|
|00003780| 63 68 20 77 68 69 63 68 | 20 77 65 20 74 6f 6f 6b |ch which| we took|
|00003790| 20 77 61 73 20 74 6f 20 | 70 72 6f 76 69 64 65 0a | was to |provide.|
|000037a0| 6d 69 6e 69 6d 61 6c 20 | 66 69 6c 65 73 20 7c 61 |minimal |files |a|
|000037b0| 72 74 69 63 6c 65 2e 73 | 74 79 7c 2c 20 7c 62 6f |rticle.s|ty|, |bo|
|000037c0| 6f 6b 2e 73 74 79 7c 20 | 61 6e 64 20 7c 72 65 70 |ok.sty| |and |rep|
|000037d0| 6f 72 74 2e 73 74 79 7c | 2c 20 77 68 69 63 68 20 |ort.sty||, which |
|000037e0| 6c 6f 61 64 0a 74 68 65 | 20 61 70 70 72 6f 70 72 |load.the| appropr|
|000037f0| 69 61 74 65 20 63 6c 61 | 73 73 20 66 69 6c 65 73 |iate cla|ss files|
|00003800| 2e 0a 0a 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |...For e|xample, |
|00003810| 7c 61 72 74 69 63 6c 65 | 2e 73 74 79 7c 20 63 6f ||article|.sty| co|
|00003820| 6e 74 61 69 6e 73 20 6a | 75 73 74 20 74 68 65 20 |ntains j|ust the |
|00003830| 66 6f 6c 6c 6f 77 69 6e | 67 20 6c 69 6e 65 73 3a |followin|g lines:|
|00003840| 0a 5c 62 65 67 69 6e 7b | 76 65 72 62 61 74 69 6d |.\begin{|verbatim|
|00003850| 7d 0a 20 20 20 5c 4e 65 | 65 64 73 54 65 58 46 6f |}. \Ne|edsTeXFo|
|00003860| 72 6d 61 74 7b 4c 61 54 | 65 58 32 65 7d 0a 20 20 |rmat{LaT|eX2e}. |
|00003870| 20 5c 40 6f 62 73 6f 6c | 65 74 65 66 69 6c 65 7b | \@obsol|etefile{|
|00003880| 61 72 74 69 63 6c 65 2e | 73 74 79 7d 7b 61 72 74 |article.|sty}{art|
|00003890| 69 63 6c 65 2e 63 6c 73 | 7d 0a 20 20 20 5c 4c 6f |icle.cls|}. \Lo|
|000038a0| 61 64 43 6c 61 73 73 7b | 61 72 74 69 63 6c 65 7d |adClass{|article}|
|000038b0| 0a 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0a |.\end{ve|rbatim}.|
|000038c0| 59 6f 75 20 6d 61 79 20 | 77 69 73 68 20 74 6f 20 |You may |wish to |
|000038d0| 64 6f 20 74 68 65 20 73 | 61 6d 65 20 6f 72 2c 20 |do the s|ame or, |
|000038e0| 69 66 20 79 6f 75 20 74 | 68 69 6e 6b 20 74 68 61 |if you t|hink tha|
|000038f0| 74 20 69 74 20 69 73 20 | 73 61 66 65 20 74 6f 20 |t it is |safe to |
|00003900| 64 6f 20 73 6f 2c 0a 79 | 6f 75 20 6d 61 79 20 64 |do so,.y|ou may d|
|00003910| 65 63 69 64 65 20 74 6f | 20 6a 75 73 74 20 72 65 |ecide to| just re|
|00003920| 6d 6f 76 65 20 7c 6d 79 | 63 6c 61 73 73 2e 73 74 |move |my|class.st|
|00003930| 79 7c 2e 0a 20 0a 5c 73 | 75 62 73 75 62 73 65 63 |y|.. .\s|ubsubsec|
|00003940| 74 69 6f 6e 7b 4d 61 6b | 65 20 69 74 20 72 6f 62 |tion{Mak|e it rob|
|00003950| 75 73 74 7d 0a 0a 57 65 | 20 63 6f 6e 73 69 64 65 |ust}..We| conside|
|00003960| 72 20 69 74 20 67 6f 6f | 64 20 70 72 61 63 74 69 |r it goo|d practi|
|00003970| 63 65 2c 20 77 68 65 6e | 20 77 72 69 74 69 6e 67 |ce, when| writing|
|00003980| 20 70 61 63 6b 61 67 65 | 73 20 61 6e 64 20 63 6c | package|s and cl|
|00003990| 61 73 73 65 73 2c 20 74 | 6f 20 75 73 65 0a 5c 4c |asses, t|o use.\L|
|000039a0| 61 54 65 58 7b 7d 20 63 | 6f 6d 6d 61 6e 64 73 20 |aTeX{} c|ommands |
|000039b0| 61 73 20 6d 75 63 68 20 | 61 73 20 70 6f 73 73 69 |as much |as possi|
|000039c0| 62 6c 65 2e 0a 0a 54 68 | 75 73 2c 20 69 6e 73 74 |ble...Th|us, inst|
|000039d0| 65 61 64 20 6f 66 20 75 | 73 69 6e 67 20 7c 5c 64 |ead of u|sing |\d|
|000039e0| 65 66 2e 2e 2e 7c 20 77 | 65 20 72 65 63 6f 6d 6d |ef...| w|e recomm|
|000039f0| 65 6e 64 20 75 73 69 6e | 67 20 6f 6e 65 20 6f 66 |end usin|g one of|
|00003a00| 0a 7c 5c 6e 65 77 63 6f | 6d 6d 61 6e 64 7c 2c 20 |.|\newco|mmand|, |
|00003a10| 7c 5c 72 65 6e 65 77 63 | 6f 6d 6d 61 6e 64 7c 20 ||\renewc|ommand| |
|00003a20| 6f 72 20 7c 5c 70 72 6f | 76 69 64 65 63 6f 6d 6d |or |\pro|videcomm|
|00003a30| 61 6e 64 7c 3b 20 7c 5c | 43 68 65 63 6b 43 6f 6d |and|; |\|CheckCom|
|00003a40| 6d 61 6e 64 7c 20 69 73 | 0a 61 6c 73 6f 20 75 73 |mand| is|.also us|
|00003a50| 65 66 75 6c 2e 20 44 6f | 69 6e 67 20 74 68 69 73 |eful. Do|ing this|
|00003a60| 20 6d 61 6b 65 73 0a 69 | 74 20 6c 65 73 73 20 6c | makes.i|t less l|
|00003a70| 69 6b 65 6c 79 20 74 68 | 61 74 20 79 6f 75 20 77 |ikely th|at you w|
|00003a80| 69 6c 6c 20 69 6e 61 64 | 76 65 72 74 65 6e 74 6c |ill inad|vertentl|
|00003a90| 79 20 72 65 64 65 66 69 | 6e 65 20 61 20 63 6f 6d |y redefi|ne a com|
|00003aa0| 6d 61 6e 64 2c 20 67 69 | 76 69 6e 67 0a 75 6e 65 |mand, gi|ving.une|
|00003ab0| 78 70 65 63 74 65 64 20 | 72 65 73 75 6c 74 73 2e |xpected |results.|
|00003ac0| 0a 20 0a 57 68 65 6e 20 | 79 6f 75 20 64 65 66 69 |. .When |you defi|
|00003ad0| 6e 65 20 61 6e 20 65 6e | 76 69 72 6f 6e 6d 65 6e |ne an en|vironmen|
|00003ae0| 74 2c 20 75 73 65 20 7c | 5c 6e 65 77 65 6e 76 69 |t, use ||\newenvi|
|00003af0| 72 6f 6e 6d 65 6e 74 7c | 20 6f 72 0a 7c 5c 72 65 |ronment|| or.|\re|
|00003b00| 6e 65 77 65 6e 76 69 72 | 6f 6e 6d 65 6e 74 7c 20 |newenvir|onment| |
|00003b10| 69 6e 73 74 65 61 64 20 | 7c 5c 64 65 66 5c 66 6f |instead ||\def\fo|
|00003b20| 6f 7b 2e 2e 2e 7d 7c 20 | 61 6e 64 20 7c 5c 64 65 |o{...}| |and |\de|
|00003b30| 66 5c 65 6e 64 66 6f 6f | 7b 2e 2e 2e 7d 7c 2e 0a |f\endfoo|{...}|..|
|00003b40| 20 0a 49 66 20 79 6f 75 | 20 6e 65 65 64 20 74 6f | .If you| need to|
|00003b50| 20 73 65 74 20 6f 72 20 | 63 68 61 6e 67 65 20 74 | set or |change t|
|00003b60| 68 65 20 76 61 6c 75 65 | 20 6f 66 20 61 20 5c 6d |he value| of a \m|
|00003b70| 7b 64 69 6d 65 6e 7d 20 | 6f 72 20 5c 6d 7b 73 6b |{dimen} |or \m{sk|
|00003b80| 69 70 7d 0a 72 65 67 69 | 73 74 65 72 2c 20 75 73 |ip}.regi|ster, us|
|00003b90| 65 20 7c 5c 73 65 74 6c | 65 6e 67 74 68 7c 2e 0a |e |\setl|ength|..|
|00003ba0| 20 0a 54 6f 20 6d 61 6e | 69 70 75 6c 61 74 65 20 | .To man|ipulate |
|00003bb0| 62 6f 78 65 73 2c 20 75 | 73 65 20 5c 4c 61 54 65 |boxes, u|se \LaTe|
|00003bc0| 58 7b 7d 20 63 6f 6d 6d | 61 6e 64 73 20 73 75 63 |X{} comm|ands suc|
|00003bd0| 68 20 61 73 20 7c 5c 73 | 62 6f 78 7c 2c 0a 7c 5c |h as |\s|box|,.|\|
|00003be0| 6d 62 6f 78 7c 20 61 6e | 64 20 7c 5c 70 61 72 62 |mbox| an|d |\parb|
|00003bf0| 6f 78 7c 20 72 61 74 68 | 65 72 20 74 68 61 6e 20 |ox| rath|er than |
|00003c00| 7c 5c 73 65 74 62 6f 78 | 7c 2c 20 7c 5c 68 62 6f ||\setbox||, |\hbo|
|00003c10| 78 7c 20 61 6e 64 20 7c | 5c 76 62 6f 78 7c 2e 0a |x| and ||\vbox|..|
|00003c20| 20 0a 55 73 65 20 7c 5c | 50 61 63 6b 61 67 65 45 | .Use |\|PackageE|
|00003c30| 72 72 6f 72 7c 2c 20 7c | 5c 50 61 63 6b 61 67 65 |rror|, ||\Package|
|00003c40| 57 61 72 6e 69 6e 67 7c | 20 6f 72 20 7c 5c 50 61 |Warning|| or |\Pa|
|00003c50| 63 6b 61 67 65 49 6e 66 | 6f 7c 20 28 6f 72 20 74 |ckageInf|o| (or t|
|00003c60| 68 65 0a 65 71 75 69 76 | 61 6c 65 6e 74 20 63 6c |he.equiv|alent cl|
|00003c70| 61 73 73 20 63 6f 6d 6d | 61 6e 64 73 29 20 72 61 |ass comm|ands) ra|
|00003c80| 74 68 65 72 20 74 68 61 | 6e 20 7c 5c 40 6c 61 74 |ther tha|n |\@lat|
|00003c90| 65 78 65 72 72 7c 2c 20 | 7c 5c 40 77 61 72 6e 69 |exerr|, ||\@warni|
|00003ca0| 6e 67 7c 20 6f 72 0a 7c | 5c 77 6c 6f 67 7c 2e 0a |ng| or.||\wlog|..|
|00003cb0| 20 0a 49 74 20 69 73 20 | 73 74 69 6c 6c 20 70 6f | .It is |still po|
|00003cc0| 73 73 69 62 6c 65 20 74 | 6f 20 64 65 63 6c 61 72 |ssible t|o declar|
|00003cd0| 65 20 6f 70 74 69 6f 6e | 73 20 62 79 20 64 65 66 |e option|s by def|
|00003ce0| 69 6e 69 6e 67 20 7c 5c | 64 73 40 3c 6f 70 74 69 |ining |\|ds@<opti|
|00003cf0| 6f 6e 3e 7c 20 61 6e 64 | 0a 63 61 6c 6c 69 6e 67 |on>| and|.calling|
|00003d00| 20 7c 5c 40 6f 70 74 69 | 6f 6e 73 7c 3b 20 62 75 | |\@opti|ons|; bu|
|00003d10| 74 20 77 65 20 72 65 63 | 6f 6d 6d 65 6e 64 20 74 |t we rec|ommend t|
|00003d20| 68 65 20 7c 5c 44 65 63 | 6c 61 72 65 4f 70 74 69 |he |\Dec|lareOpti|
|00003d30| 6f 6e 7c 20 61 6e 64 0a | 7c 5c 50 72 6f 63 65 73 |on| and.||\Proces|
|00003d40| 73 4f 70 74 69 6f 6e 73 | 7c 20 63 6f 6d 6d 61 6e |sOptions|| comman|
|00003d50| 64 73 20 69 6e 73 74 65 | 61 64 2e 20 20 54 68 65 |ds inste|ad. The|
|00003d60| 73 65 20 61 72 65 20 6d | 6f 72 65 20 70 6f 77 65 |se are m|ore powe|
|00003d70| 72 66 75 6c 20 61 6e 64 | 20 75 73 65 0a 6c 65 73 |rful and| use.les|
|00003d80| 73 20 6d 65 6d 6f 72 79 | 2e 20 20 53 6f 20 72 61 |s memory|. So ra|
|00003d90| 74 68 65 72 20 74 68 61 | 6e 20 75 73 69 6e 67 3a |ther tha|n using:|
|00003da0| 0a 5c 62 65 67 69 6e 7b | 76 65 72 62 61 74 69 6d |.\begin{|verbatim|
|00003db0| 7d 0a 20 20 20 5c 64 65 | 66 5c 64 73 40 64 72 61 |}. \de|f\ds@dra|
|00003dc0| 66 74 7b 5c 6f 76 65 72 | 66 75 6c 6c 72 75 6c 65 |ft{\over|fullrule|
|00003dd0| 20 35 70 74 7d 0a 20 20 | 20 5c 40 6f 70 74 69 6f | 5pt}. | \@optio|
|00003de0| 6e 73 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |ns.\end{|verbatim|
|00003df0| 7d 0a 79 6f 75 20 73 68 | 6f 75 6c 64 20 75 73 65 |}.you sh|ould use|
|00003e00| 3a 0a 5c 62 65 67 69 6e | 7b 76 65 72 62 61 74 69 |:.\begin|{verbati|
|00003e10| 6d 7d 0a 20 20 20 5c 44 | 65 63 6c 61 72 65 4f 70 |m}. \D|eclareOp|
|00003e20| 74 69 6f 6e 7b 64 72 61 | 66 74 7d 7b 5c 73 65 74 |tion{dra|ft}{\set|
|00003e30| 6c 65 6e 67 74 68 7b 5c | 6f 76 65 72 66 75 6c 6c |length{\|overfull|
|00003e40| 72 75 6c 65 7d 7b 35 70 | 74 7d 7d 0a 20 20 20 5c |rule}{5p|t}}. \|
|00003e50| 50 72 6f 63 65 73 73 4f | 70 74 69 6f 6e 73 0a 5c |ProcessO|ptions.\|
|00003e60| 65 6e 64 7b 76 65 72 62 | 61 74 69 6d 7d 0a 0a 54 |end{verb|atim}..T|
|00003e70| 68 65 20 61 64 76 61 6e | 74 61 67 65 20 6f 66 20 |he advan|tage of |
|00003e80| 74 68 69 73 20 6b 69 6e | 64 20 6f 66 20 70 72 61 |this kin|d of pra|
|00003e90| 63 74 69 63 65 20 69 73 | 20 74 68 61 74 20 79 6f |ctice is| that yo|
|00003ea0| 75 72 20 63 6f 64 65 20 | 69 73 20 6d 6f 72 65 0a |ur code |is more.|
|00003eb0| 72 65 61 64 61 62 6c 65 | 20 61 6e 64 2c 20 6d 6f |readable| and, mo|
|00003ec0| 72 65 20 69 6d 70 6f 72 | 74 61 6e 74 2c 20 74 68 |re impor|tant, th|
|00003ed0| 61 74 20 69 74 20 69 73 | 20 6c 65 73 73 20 6c 69 |at it is| less li|
|00003ee0| 6b 65 6c 79 20 74 6f 20 | 62 72 65 61 6b 20 77 68 |kely to |break wh|
|00003ef0| 65 6e 0a 75 73 65 64 20 | 77 69 74 68 20 66 75 74 |en.used |with fut|
|00003f00| 75 72 65 20 76 65 72 73 | 69 6f 6e 73 20 6f 66 20 |ure vers|ions of |
|00003f10| 5c 4c 61 54 65 58 7b 7d | 2e 0a 0a 5c 73 75 62 73 |\LaTeX{}|...\subs|
|00003f20| 75 62 73 65 63 74 69 6f | 6e 7b 4d 61 6b 65 20 69 |ubsectio|n{Make i|
|00003f30| 74 20 70 6f 72 74 61 62 | 6c 65 7d 0a 0a 49 74 20 |t portab|le}..It |
|00003f40| 69 73 20 61 6c 73 6f 20 | 73 65 6e 73 69 62 6c 65 |is also |sensible|
|00003f50| 20 74 6f 20 6d 61 6b 65 | 20 79 6f 75 72 20 66 69 | to make| your fi|
|00003f60| 6c 65 73 20 61 72 65 20 | 61 73 20 70 6f 72 74 61 |les are |as porta|
|00003f70| 62 6c 65 20 61 73 20 70 | 6f 73 73 69 62 6c 65 2e |ble as p|ossible.|
|00003f80| 20 54 6f 0a 65 6e 73 75 | 72 65 20 74 68 69 73 3b | To.ensu|re this;|
|00003f90| 20 74 68 65 79 20 73 68 | 6f 75 6c 64 20 63 6f 6e | they sh|ould con|
|00003fa0| 74 61 69 6e 20 6f 6e 6c | 79 20 76 69 73 69 62 6c |tain onl|y visibl|
|00003fb0| 65 20 37 2d 62 69 74 20 | 74 65 78 74 3b 20 61 6e |e 7-bit |text; an|
|00003fc0| 64 20 74 68 65 0a 66 69 | 6c 65 6e 61 6d 65 73 20 |d the.fi|lenames |
|00003fd0| 73 68 6f 75 6c 64 20 63 | 6f 6e 74 61 69 6e 20 61 |should c|ontain a|
|00003fe0| 74 20 6d 6f 73 74 20 65 | 69 67 68 74 20 63 68 61 |t most e|ight cha|
|00003ff0| 72 61 63 74 65 72 73 20 | 28 70 6c 75 73 20 74 68 |racters |(plus th|
|00004000| 65 20 74 68 72 65 65 0a | 6c 65 74 74 65 72 20 65 |e three.|letter e|
|00004010| 78 74 65 6e 73 69 6f 6e | 29 2e 0a 0a 49 74 20 69 |xtension|)...It i|
|00004020| 73 20 61 6c 73 6f 20 75 | 73 65 66 75 6c 20 69 66 |s also u|seful if|
|00004030| 20 6c 6f 63 61 6c 20 63 | 6c 61 73 73 65 73 20 6f | local c|lasses o|
|00004040| 72 20 70 61 63 6b 61 67 | 65 73 20 68 61 76 65 20 |r packag|es have |
|00004050| 61 20 63 6f 6d 6d 6f 6e | 20 70 72 65 66 69 78 2c |a common| prefix,|
|00004060| 0a 66 6f 72 20 65 78 61 | 6d 70 6c 65 20 74 68 65 |.for exa|mple the|
|00004070| 20 55 6e 69 76 65 72 73 | 69 74 79 20 6f 66 20 4e | Univers|ity of N|
|00004080| 6f 77 68 65 72 65 20 63 | 6c 61 73 73 65 73 20 6d |owhere c|lasses m|
|00004090| 69 67 68 74 20 62 65 67 | 69 6e 20 77 69 74 68 20 |ight beg|in with |
|000040a0| 7c 75 6e 77 7c 2e 0a 54 | 68 69 73 20 68 65 6c 70 ||unw|..T|his help|
|000040b0| 73 20 74 6f 20 61 76 6f | 69 64 20 65 76 65 72 79 |s to avo|id every|
|000040c0| 20 55 6e 69 76 65 72 73 | 69 74 79 20 68 61 76 69 | Univers|ity havi|
|000040d0| 6e 67 20 69 74 73 20 6f | 77 6e 20 74 68 65 73 69 |ng its o|wn thesi|
|000040e0| 73 20 63 6c 61 73 73 2c | 20 61 6c 6c 0a 63 61 6c |s class,| all.cal|
|000040f0| 6c 65 64 20 7c 74 68 65 | 73 69 73 2e 63 6c 73 7c |led |the|sis.cls||
|00004100| 2e 0a 20 0a 49 66 20 79 | 6f 75 20 72 65 6c 79 20 |.. .If y|ou rely |
|00004110| 6f 6e 20 73 6f 6d 65 20 | 66 65 61 74 75 72 65 73 |on some |features|
|00004120| 20 6f 66 20 74 68 65 20 | 5c 4c 61 54 65 58 7b 7d | of the |\LaTeX{}|
|00004130| 20 6b 65 72 6e 65 6c 2c | 20 6f 72 20 6f 6e 20 61 | kernel,| or on a|
|00004140| 20 70 61 63 6b 61 67 65 | 2c 0a 70 6c 65 61 73 65 | package|,.please|
|00004150| 20 73 70 65 63 69 66 79 | 20 74 68 65 20 72 65 6c | specify| the rel|
|00004160| 65 61 73 65 2d 64 61 74 | 65 20 79 6f 75 20 6e 65 |ease-dat|e you ne|
|00004170| 65 64 2e 20 20 46 6f 72 | 20 65 78 61 6d 70 6c 65 |ed. For| example|
|00004180| 2c 20 74 68 65 20 70 61 | 63 6b 61 67 65 0a 65 72 |, the pa|ckage.er|
|00004190| 72 6f 72 20 63 6f 6d 6d | 61 6e 64 73 20 77 65 72 |ror comm|ands wer|
|000041a0| 65 20 69 6e 74 72 6f 64 | 75 63 65 64 20 69 6e 20 |e introd|uced in |
|000041b0| 74 68 65 20 4a 75 6e 65 | 20 31 39 39 34 20 72 65 |the June| 1994 re|
|000041c0| 6c 65 61 73 65 20 73 6f | 2c 20 69 66 20 79 6f 75 |lease so|, if you|
|000041d0| 20 75 73 65 0a 74 68 65 | 6d 20 74 68 65 6e 20 79 | use.the|m then y|
|000041e0| 6f 75 20 73 68 6f 75 6c | 64 20 70 75 74 3a 0a 5c |ou shoul|d put:.\|
|000041f0| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|00004200| 20 20 20 5c 4e 65 65 64 | 73 54 65 58 46 6f 72 6d | \Need|sTeXForm|
|00004210| 61 74 7b 4c 61 54 65 58 | 32 65 7d 5b 31 39 39 34 |at{LaTeX|2e}[1994|
|00004220| 2f 30 36 2f 30 31 5d 0a | 5c 65 6e 64 7b 76 65 72 |/06/01].|\end{ver|
|00004230| 62 61 74 69 6d 7d 0a 0a | 5c 73 75 62 73 75 62 73 |batim}..|\subsubs|
|00004240| 65 63 74 69 6f 6e 7b 55 | 73 65 66 75 6c 20 68 6f |ection{U|seful ho|
|00004250| 6f 6b 73 7d 0a 0a 53 6f | 6d 65 20 70 61 63 6b 61 |oks}..So|me packa|
|00004260| 67 65 73 20 61 6e 64 20 | 64 6f 63 75 6d 65 6e 74 |ges and |document|
|00004270| 20 73 74 79 6c 65 73 20 | 68 61 64 20 74 6f 20 72 | styles |had to r|
|00004280| 65 64 65 66 69 6e 65 20 | 74 68 65 20 63 6f 6d 6d |edefine |the comm|
|00004290| 61 6e 64 0a 7c 5c 64 6f | 63 75 6d 65 6e 74 7c 20 |and.|\do|cument| |
|000042a0| 6f 72 20 7c 5c 65 6e 64 | 64 6f 63 75 6d 65 6e 74 |or |\end|document|
|000042b0| 7c 20 74 6f 20 61 63 68 | 69 65 76 65 20 74 68 65 || to ach|ieve the|
|000042c0| 69 72 20 67 6f 61 6c 2e | 20 20 54 68 69 73 20 69 |ir goal.| This i|
|000042d0| 73 20 6e 6f 0a 6c 6f 6e | 67 65 72 20 6e 65 63 65 |s no.lon|ger nece|
|000042e0| 73 73 61 72 79 2e 20 59 | 6f 75 20 63 61 6e 20 6e |ssary. Y|ou can n|
|000042f0| 6f 77 20 75 73 65 20 74 | 68 65 20 60 68 6f 6f 6b |ow use t|he `hook|
|00004300| 73 27 20 7c 5c 41 74 42 | 65 67 69 6e 44 6f 63 75 |s' |\AtB|eginDocu|
|00004310| 6d 65 6e 74 7c 20 61 6e | 64 0a 7c 5c 41 74 45 6e |ment| an|d.|\AtEn|
|00004320| 64 44 6f 63 75 6d 65 6e | 74 7c 20 28 73 65 65 20 |dDocumen|t| (see |
|00004330| 53 65 63 74 69 6f 6e 7e | 5c 72 65 66 7b 53 65 63 |Section~|\ref{Sec|
|00004340| 3a 64 65 6c 61 79 73 7d | 29 2e 20 20 41 67 61 69 |:delays}|). Agai|
|00004350| 6e 2c 20 75 73 69 6e 67 | 20 74 68 65 73 65 0a 68 |n, using| these.h|
|00004360| 6f 6f 6b 73 20 6d 61 6b | 65 73 20 69 74 20 6c 65 |ooks mak|es it le|
|00004370| 73 73 20 6c 69 6b 65 6c | 79 20 74 68 61 74 20 79 |ss likel|y that y|
|00004380| 6f 75 72 20 63 6f 64 65 | 20 62 72 65 61 6b 73 20 |our code| breaks |
|00004390| 77 69 74 68 20 66 75 74 | 75 72 65 20 76 65 72 73 |with fut|ure vers|
|000043a0| 69 6f 6e 73 0a 6f 66 20 | 5c 4c 61 54 65 58 7b 7d |ions.of |\LaTeX{}|
|000043b0| 2e 20 49 74 20 61 6c 73 | 6f 20 6d 61 6b 65 73 20 |. It als|o makes |
|000043c0| 69 74 20 6d 6f 72 65 20 | 6c 69 6b 65 6c 79 20 74 |it more |likely t|
|000043d0| 68 61 74 20 79 6f 75 72 | 20 70 61 63 6b 61 67 65 |hat your| package|
|000043e0| 20 63 61 6e 20 77 6f 72 | 6b 0a 74 6f 67 65 74 68 | can wor|k.togeth|
|000043f0| 65 72 20 77 69 74 68 20 | 73 6f 6d 65 6f 6e 65 20 |er with |someone |
|00004400| 65 6c 73 65 27 73 2e 0a | 0a 0a 5c 73 65 63 74 69 |else's..|..\secti|
|00004410| 6f 6e 7b 54 68 65 20 73 | 74 72 75 63 74 75 72 65 |on{The s|tructure|
|00004420| 20 6f 66 20 61 20 63 6c | 61 73 73 20 6f 72 20 70 | of a cl|ass or p|
|00004430| 61 63 6b 61 67 65 7d 0a | 5c 6c 61 62 65 6c 7b 53 |ackage}.|\label{S|
|00004440| 65 63 3a 73 74 72 75 63 | 74 75 72 65 7d 0a 20 0a |ec:struc|ture}. .|
|00004450| 5c 4c 61 54 65 58 65 7b | 7d 20 63 6c 61 73 73 65 |\LaTeXe{|} classe|
|00004460| 73 20 61 6e 64 20 70 61 | 63 6b 61 67 65 73 20 68 |s and pa|ckages h|
|00004470| 61 76 65 20 6d 6f 72 65 | 20 73 74 72 75 63 74 75 |ave more| structu|
|00004480| 72 65 20 74 68 61 6e 20 | 5c 4c 61 54 65 58 7e 32 |re than |\LaTeX~2|
|00004490| 2e 30 39 0a 73 74 79 6c | 65 20 66 69 6c 65 73 20 |.09.styl|e files |
|000044a0| 64 69 64 2e 20 20 54 68 | 65 20 6f 75 74 6c 69 6e |did. Th|e outlin|
|000044b0| 65 20 6f 66 20 61 20 63 | 6c 61 73 73 20 6f 72 20 |e of a c|lass or |
|000044c0| 70 61 63 6b 61 67 65 20 | 66 69 6c 65 20 69 73 3a |package |file is:|
|000044d0| 0a 5c 62 65 67 69 6e 7b | 64 65 73 63 72 69 70 74 |.\begin{|descript|
|000044e0| 69 6f 6e 7d 0a 5c 69 74 | 65 6d 5b 49 64 65 6e 74 |ion}.\it|em[Ident|
|000044f0| 69 66 69 63 61 74 69 6f | 6e 5d 20 54 68 65 20 66 |ificatio|n] The f|
|00004500| 69 6c 65 20 73 61 79 73 | 20 74 68 61 74 20 69 74 |ile says| that it|
|00004510| 20 69 73 20 61 20 5c 4c | 61 54 65 58 65 7b 7d 20 | is a \L|aTeXe{} |
|00004520| 70 61 63 6b 61 67 65 20 | 6f 72 0a 20 20 20 63 6c |package |or. cl|
|00004530| 61 73 73 2c 20 61 6e 64 | 20 67 69 76 65 73 20 61 |ass, and| gives a|
|00004540| 20 73 68 6f 72 74 20 64 | 65 73 63 72 69 70 74 69 | short d|escripti|
|00004550| 6f 6e 20 6f 66 20 69 74 | 73 65 6c 66 2e 0a 5c 69 |on of it|self..\i|
|00004560| 74 65 6d 5b 50 72 65 6c | 69 6d 69 6e 61 72 79 20 |tem[Prel|iminary |
|00004570| 64 65 63 6c 61 72 61 74 | 69 6f 6e 73 5d 0a 20 20 |declarat|ions]. |
|00004580| 20 48 65 72 65 20 74 68 | 65 20 66 69 6c 65 20 64 | Here th|e file d|
|00004590| 65 63 6c 61 72 65 73 20 | 73 6f 6d 65 20 63 6f 6d |eclares |some com|
|000045a0| 6d 61 6e 64 73 20 61 6e | 64 20 63 61 6e 20 61 6c |mands an|d can al|
|000045b0| 73 6f 20 6c 6f 61 64 0a | 20 20 20 6f 74 68 65 72 |so load.| other|
|000045c0| 20 66 69 6c 65 73 2e 20 | 20 55 73 75 61 6c 6c 79 | files. | Usually|
|000045d0| 20 74 68 65 73 65 20 63 | 6f 6d 6d 61 6e 64 73 20 | these c|ommands |
|000045e0| 77 69 6c 6c 20 62 65 20 | 6a 75 73 74 20 74 68 6f |will be |just tho|
|000045f0| 73 65 20 6e 65 65 64 65 | 64 20 66 6f 72 0a 20 20 |se neede|d for. |
|00004600| 20 74 68 65 20 63 6f 64 | 65 20 75 73 65 64 20 69 | the cod|e used i|
|00004610| 6e 20 74 68 65 20 64 65 | 63 6c 61 72 65 64 20 6f |n the de|clared o|
|00004620| 70 74 69 6f 6e 73 2e 0a | 5c 69 74 65 6d 5b 4f 70 |ptions..|\item[Op|
|00004630| 74 69 6f 6e 73 5d 20 54 | 68 65 20 66 69 6c 65 20 |tions] T|he file |
|00004640| 64 65 63 6c 61 72 65 73 | 20 61 6e 64 20 70 72 6f |declares| and pro|
|00004650| 63 65 73 73 65 73 20 69 | 74 73 20 6f 70 74 69 6f |cesses i|ts optio|
|00004660| 6e 73 2e 0a 5c 69 74 65 | 6d 5b 4d 6f 72 65 20 64 |ns..\ite|m[More d|
|00004670| 65 63 6c 61 72 61 74 69 | 6f 6e 73 5d 20 54 68 69 |eclarati|ons] Thi|
|00004680| 73 20 69 73 20 77 68 65 | 72 65 20 74 68 65 20 66 |s is whe|re the f|
|00004690| 69 6c 65 20 64 6f 65 73 | 20 6d 6f 73 74 20 6f 66 |ile does| most of|
|000046a0| 20 69 74 73 20 77 6f 72 | 6b 3a 0a 20 20 20 64 65 | its wor|k:. de|
|000046b0| 63 6c 61 72 69 6e 67 20 | 6e 65 77 20 76 61 72 69 |claring |new vari|
|000046c0| 61 62 6c 65 73 2c 20 63 | 6f 6d 6d 61 6e 64 73 20 |ables, c|ommands |
|000046d0| 61 6e 64 20 66 6f 6e 74 | 73 3b 20 61 6e 64 20 6c |and font|s; and l|
|000046e0| 6f 61 64 69 6e 67 20 6f | 74 68 65 72 20 66 69 6c |oading o|ther fil|
|000046f0| 65 73 2e 0a 5c 65 6e 64 | 7b 64 65 73 63 72 69 70 |es..\end|{descrip|
|00004700| 74 69 6f 6e 7d 0a 20 0a | 5c 73 75 62 73 65 63 74 |tion}. .|\subsect|
|00004710| 69 6f 6e 7b 49 64 65 6e | 74 69 66 69 63 61 74 69 |ion{Iden|tificati|
|00004720| 6f 6e 7d 0a 20 0a 54 68 | 65 20 66 69 72 73 74 20 |on}. .Th|e first |
|00004730| 74 68 69 6e 67 20 61 20 | 63 6c 61 73 73 20 6f 72 |thing a |class or|
|00004740| 20 70 61 63 6b 61 67 65 | 20 66 69 6c 65 20 64 6f | package| file do|
|00004750| 65 73 20 69 73 20 69 64 | 65 6e 74 69 66 79 20 69 |es is id|entify i|
|00004760| 74 73 65 6c 66 2e 0a 50 | 61 63 6b 61 67 65 20 66 |tself..P|ackage f|
|00004770| 69 6c 65 73 20 64 6f 20 | 74 68 69 73 20 61 73 20 |iles do |this as |
|00004780| 66 6f 6c 6c 6f 77 73 3a | 0a 5c 62 65 67 69 6e 7b |follows:|.\begin{|
|00004790| 76 65 72 62 61 74 69 6d | 7d 0a 20 20 20 5c 4e 65 |verbatim|}. \Ne|
|000047a0| 65 64 73 54 65 58 46 6f | 72 6d 61 74 7b 4c 61 54 |edsTeXFo|rmat{LaT|
|000047b0| 65 58 32 65 7d 0a 20 20 | 20 5c 50 72 6f 76 69 64 |eX2e}. | \Provid|
|000047c0| 65 73 50 61 63 6b 61 67 | 65 7b 3c 70 61 63 6b 61 |esPackag|e{<packa|
|000047d0| 67 65 3e 7d 5b 3c 64 61 | 74 65 3e 20 3c 6f 74 68 |ge>}[<da|te> <oth|
|000047e0| 65 72 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 3e 5d |er infor|mation>]|
|000047f0| 0a 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0a |.\end{ve|rbatim}.|
|00004800| 46 6f 72 20 65 78 61 6d | 70 6c 65 3a 0a 5c 62 65 |For exam|ple:.\be|
|00004810| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0a 20 20 |gin{verb|atim}. |
|00004820| 20 5c 4e 65 65 64 73 54 | 65 58 46 6f 72 6d 61 74 | \NeedsT|eXFormat|
|00004830| 7b 4c 61 54 65 58 32 65 | 7d 0a 20 20 20 5c 50 72 |{LaTeX2e|}. \Pr|
|00004840| 6f 76 69 64 65 73 50 61 | 63 6b 61 67 65 7b 6c 61 |ovidesPa|ckage{la|
|00004850| 74 65 78 73 79 6d 7d 5b | 31 39 39 34 2f 30 36 2f |texsym}[|1994/06/|
|00004860| 30 31 20 53 74 61 6e 64 | 61 72 64 20 4c 61 54 65 |01 Stand|ard LaTe|
|00004870| 58 20 70 61 63 6b 61 67 | 65 5d 0a 5c 65 6e 64 7b |X packag|e].\end{|
|00004880| 76 65 72 62 61 74 69 6d | 7d 0a 43 6c 61 73 73 20 |verbatim|}.Class |
|00004890| 66 69 6c 65 73 20 64 6f | 20 74 68 69 73 20 61 73 |files do| this as|
|000048a0| 20 66 6f 6c 6c 6f 77 73 | 3a 0a 5c 62 65 67 69 6e | follows|:.\begin|
|000048b0| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 20 20 20 5c 4e |{verbati|m}. \N|
|000048c0| 65 65 64 73 54 65 58 46 | 6f 72 6d 61 74 7b 4c 61 |eedsTeXF|ormat{La|
|000048d0| 54 65 58 32 65 7d 0a 20 | 20 20 5c 50 72 6f 76 69 |TeX2e}. | \Provi|
|000048e0| 64 65 73 43 6c 61 73 73 | 7b 3c 63 6c 61 73 73 2d |desClass|{<class-|
|000048f0| 6e 61 6d 65 3e 7d 5b 3c | 64 61 74 65 3e 20 3c 6f |name>}[<|date> <o|
|00004900| 74 68 65 72 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |ther inf|ormation|
|00004910| 3e 5d 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |>].\end{|verbatim|
|00004920| 7d 0a 46 6f 72 20 65 78 | 61 6d 70 6c 65 3a 0a 5c |}.For ex|ample:.\|
|00004930| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|00004940| 20 20 20 5c 4e 65 65 64 | 73 54 65 58 46 6f 72 6d | \Need|sTeXForm|
|00004950| 61 74 7b 4c 61 54 65 58 | 32 65 7d 0a 20 20 20 5c |at{LaTeX|2e}. \|
|00004960| 50 72 6f 76 69 64 65 73 | 43 6c 61 73 73 7b 61 72 |Provides|Class{ar|
|00004970| 74 69 63 6c 65 7d 5b 31 | 39 39 34 2f 30 36 2f 30 |ticle}[1|994/06/0|
|00004980| 31 20 53 74 61 6e 64 61 | 72 64 20 4c 61 54 65 58 |1 Standa|rd LaTeX|
|00004990| 20 63 6c 61 73 73 5d 0a | 5c 65 6e 64 7b 76 65 72 | class].|\end{ver|
|000049a0| 62 61 74 69 6d 7d 0a 54 | 68 65 20 5c 6d 7b 64 61 |batim}.T|he \m{da|
|000049b0| 74 65 7d 20 73 68 6f 75 | 6c 64 20 62 65 20 67 69 |te} shou|ld be gi|
|000049c0| 76 65 6e 20 69 6e 20 74 | 68 65 20 66 6f 72 6d 20 |ven in t|he form |
|000049d0| 60 5c 74 65 78 74 73 63 | 7b 79 79 79 79 2f 6d 6d |`\textsc|{yyyy/mm|
|000049e0| 2f 64 64 7d 27 2e 20 20 | 54 68 69 73 0a 64 61 74 |/dd}'. |This.dat|
|000049f0| 65 20 69 73 20 63 68 65 | 63 6b 65 64 20 77 68 65 |e is che|cked whe|
|00004a00| 6e 65 76 65 72 20 61 20 | 75 73 65 72 20 73 70 65 |never a |user spe|
|00004a10| 63 69 66 69 65 73 20 61 | 20 64 61 74 65 20 69 6e |cifies a| date in|
|00004a20| 20 74 68 65 69 72 0a 7c | 5c 64 6f 63 75 6d 65 6e | their.||\documen|
|00004a30| 74 63 6c 61 73 73 7c 20 | 6f 72 20 7c 5c 75 73 65 |tclass| |or |\use|
|00004a40| 70 61 63 6b 61 67 65 7c | 20 63 6f 6d 6d 61 6e 64 |package|| command|
|00004a50| 2e 20 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |. For e|xample, |
|00004a60| 69 66 20 79 6f 75 0a 77 | 72 6f 74 65 3a 0a 5c 62 |if you.w|rote:.\b|
|00004a70| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 0a 20 |egin{ver|batim}. |
|00004a80| 20 20 5c 64 6f 63 75 6d | 65 6e 74 63 6c 61 73 73 | \docum|entclass|
|00004a90| 7b 61 72 74 69 63 6c 65 | 7d 5b 31 39 39 35 2f 31 |{article|}[1995/1|
|00004aa0| 32 2f 32 33 5d 0a 5c 65 | 6e 64 7b 76 65 72 62 61 |2/23].\e|nd{verba|
|00004ab0| 74 69 6d 7d 0a 74 68 65 | 6e 20 75 73 65 72 73 20 |tim}.the|n users |
|00004ac0| 61 74 20 61 20 64 69 66 | 66 65 72 65 6e 74 20 6c |at a dif|ferent l|
|00004ad0| 6f 63 61 74 69 6f 6e 20 | 0a 77 6f 75 6c 64 20 67 |ocation |.would g|
|00004ae0| 65 74 20 61 20 77 61 72 | 6e 69 6e 67 20 74 68 61 |et a war|ning tha|
|00004af0| 74 20 74 68 65 69 72 20 | 63 6f 70 79 20 6f 66 20 |t their |copy of |
|00004b00| 7c 61 72 74 69 63 6c 65 | 7c 20 77 61 73 20 6f 75 ||article|| was ou|
|00004b10| 74 20 6f 66 0a 64 61 74 | 65 2e 0a 20 0a 54 68 65 |t of.dat|e.. .The|
|00004b20| 20 64 65 73 63 72 69 70 | 74 69 6f 6e 20 6f 66 20 | descrip|tion of |
|00004b30| 61 20 63 6c 61 73 73 20 | 69 73 20 64 69 73 70 6c |a class |is displ|
|00004b40| 61 79 65 64 20 77 68 65 | 6e 20 74 68 65 20 63 6c |ayed whe|n the cl|
|00004b50| 61 73 73 20 69 73 20 75 | 73 65 64 2e 20 20 54 68 |ass is u|sed. Th|
|00004b60| 65 0a 64 65 73 63 72 69 | 70 74 69 6f 6e 20 6f 66 |e.descri|ption of|
|00004b70| 20 61 20 70 61 63 6b 61 | 67 65 20 69 73 20 70 75 | a packa|ge is pu|
|00004b80| 74 20 69 6e 74 6f 20 74 | 68 65 20 6c 6f 67 20 66 |t into t|he log f|
|00004b90| 69 6c 65 2e 20 20 54 68 | 65 73 65 20 64 65 73 63 |ile. Th|ese desc|
|00004ba0| 72 69 70 74 69 6f 6e 73 | 0a 61 72 65 20 61 6c 73 |riptions|.are als|
|00004bb0| 6f 20 64 69 73 70 6c 61 | 79 65 64 20 62 79 20 74 |o displa|yed by t|
|00004bc0| 68 65 20 7c 5c 6c 69 73 | 74 66 69 6c 65 73 7c 20 |he |\lis|tfiles| |
|00004bd0| 63 6f 6d 6d 61 6e 64 2e | 0a 20 0a 5c 73 75 62 73 |command.|. .\subs|
|00004be0| 65 63 74 69 6f 6e 7b 55 | 73 69 6e 67 20 63 6c 61 |ection{U|sing cla|
|00004bf0| 73 73 65 73 20 61 6e 64 | 20 70 61 63 6b 61 67 65 |sses and| package|
|00004c00| 73 7d 0a 20 0a 54 68 65 | 20 66 69 72 73 74 20 6d |s}. .The| first m|
|00004c10| 61 6a 6f 72 20 64 69 66 | 66 65 72 65 6e 63 65 20 |ajor dif|ference |
|00004c20| 62 65 74 77 65 65 6e 20 | 5c 4c 61 54 65 58 7e 32 |between |\LaTeX~2|
|00004c30| 2e 30 39 20 73 74 79 6c | 65 20 66 69 6c 65 73 20 |.09 styl|e files |
|00004c40| 61 6e 64 0a 5c 4c 61 54 | 65 58 65 7b 7d 20 70 61 |and.\LaT|eXe{} pa|
|00004c50| 63 6b 61 67 65 73 20 61 | 6e 64 20 63 6c 61 73 73 |ckages a|nd class|
|00004c60| 65 73 20 69 73 20 74 68 | 61 74 20 5c 4c 61 54 65 |es is th|at \LaTe|
|00004c70| 58 65 7b 7d 20 73 75 70 | 70 6f 72 74 73 0a 5c 65 |Xe{} sup|ports.\e|
|00004c80| 6d 70 68 7b 6d 6f 64 75 | 6c 61 72 69 74 79 7d 2c |mph{modu|larity},|
|00004c90| 20 69 6e 20 74 68 65 20 | 73 65 6e 73 65 20 6f 66 | in the |sense of|
|00004ca0| 20 62 75 69 6c 64 69 6e | 67 20 66 69 6c 65 73 20 | buildin|g files |
|00004cb0| 66 72 6f 6d 20 73 6d 61 | 6c 6c 0a 62 75 69 6c 64 |from sma|ll.build|
|00004cc0| 69 6e 67 2d 62 6c 6f 63 | 6b 73 20 72 61 74 68 65 |ing-bloc|ks rathe|
|00004cd0| 72 20 74 68 61 6e 20 75 | 73 69 6e 67 20 6c 61 72 |r than u|sing lar|
|00004ce0| 67 65 20 73 69 6e 67 6c | 65 20 66 69 6c 65 73 2e |ge singl|e files.|
|00004cf0| 0a 20 0a 41 20 5c 4c 61 | 54 65 58 7b 7d 20 70 61 |. .A \La|TeX{} pa|
|00004d00| 63 6b 61 67 65 20 6f 72 | 20 63 6c 61 73 73 20 63 |ckage or| class c|
|00004d10| 61 6e 20 6c 6f 61 64 20 | 61 20 70 61 63 6b 61 67 |an load |a packag|
|00004d20| 65 20 61 73 20 66 6f 6c | 6c 6f 77 73 3a 0a 5c 62 |e as fol|lows:.\b|
|00004d30| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 0a 20 |egin{ver|batim}. |
|00004d40| 20 20 5c 52 65 71 75 69 | 72 65 50 61 63 6b 61 67 | \Requi|rePackag|
|00004d50| 65 5b 3c 6f 70 74 69 6f | 6e 73 3e 5d 7b 3c 70 61 |e[<optio|ns>]{<pa|
|00004d60| 63 6b 61 67 65 3e 7d 5b | 3c 64 61 74 65 3e 5d 0a |ckage>}[|<date>].|
|00004d70| 5c 65 6e 64 7b 76 65 72 | 62 61 74 69 6d 7d 0a 46 |\end{ver|batim}.F|
|00004d80| 6f 72 20 65 78 61 6d 70 | 6c 65 3a 0a 5c 62 65 67 |or examp|le:.\beg|
|00004d90| 69 6e 7b 76 65 72 62 61 | 74 69 6d 7d 0a 20 20 20 |in{verba|tim}. |
|00004da0| 5c 52 65 71 75 69 72 65 | 50 61 63 6b 61 67 65 7b |\Require|Package{|
|00004db0| 69 66 74 68 65 6e 7d 5b | 31 39 39 34 2f 30 36 2f |ifthen}[|1994/06/|
|00004dc0| 30 31 5d 0a 5c 65 6e 64 | 7b 76 65 72 62 61 74 69 |01].\end|{verbati|
|00004dd0| 6d 7d 0a 54 68 69 73 20 | 63 6f 6d 6d 61 6e 64 20 |m}.This |command |
|00004de0| 68 61 73 20 74 68 65 20 | 73 61 6d 65 20 73 79 6e |has the |same syn|
|00004df0| 74 61 78 20 61 73 20 74 | 68 65 20 61 75 74 68 6f |tax as t|he autho|
|00004e00| 72 20 63 6f 6d 6d 61 6e | 64 20 7c 5c 75 73 65 70 |r comman|d |\usep|
|00004e10| 61 63 6b 61 67 65 7c 2e | 0a 49 74 20 61 6c 6c 6f |ackage|.|.It allo|
|00004e20| 77 73 20 70 61 63 6b 61 | 67 65 73 20 6f 72 20 63 |ws packa|ges or c|
|00004e30| 6c 61 73 73 65 73 20 74 | 6f 20 75 73 65 20 66 65 |lasses t|o use fe|
|00004e40| 61 74 75 72 65 73 20 70 | 72 6f 76 69 64 65 64 20 |atures p|rovided |
|00004e50| 62 79 20 6f 74 68 65 72 | 0a 70 61 63 6b 61 67 65 |by other|.package|
|00004e60| 73 2e 20 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |s. For |example,|
|00004e70| 20 62 79 20 6c 6f 61 64 | 69 6e 67 20 74 68 65 20 | by load|ing the |
|00004e80| 7c 69 66 74 68 65 6e 7c | 20 70 61 63 6b 61 67 65 ||ifthen|| package|
|00004e90| 2c 20 61 20 70 61 63 6b | 61 67 65 0a 77 72 69 74 |, a pack|age.writ|
|00004ea0| 65 72 20 63 61 6e 20 75 | 73 65 20 74 68 65 20 60 |er can u|se the `|
|00004eb0| 69 66 5c 64 6f 74 73 20 | 74 68 65 6e 5c 64 6f 74 |if\dots |then\dot|
|00004ec0| 73 20 65 6c 73 65 5c 64 | 6f 74 73 27 20 63 6f 6d |s else\d|ots' com|
|00004ed0| 6d 61 6e 64 73 20 70 72 | 6f 76 69 64 65 64 0a 62 |mands pr|ovided.b|
|00004ee0| 79 20 74 68 61 74 20 70 | 61 63 6b 61 67 65 2e 0a |y that p|ackage..|
|00004ef0| 20 0a 41 20 5c 4c 61 54 | 65 58 7b 7d 20 63 6c 61 | .A \LaT|eX{} cla|
|00004f00| 73 73 20 63 61 6e 20 6c | 6f 61 64 20 6f 6e 65 20 |ss can l|oad one |
|00004f10| 6f 74 68 65 72 20 63 6c | 61 73 73 20 61 73 20 66 |other cl|ass as f|
|00004f20| 6f 6c 6c 6f 77 73 3a 0a | 5c 62 65 67 69 6e 7b 76 |ollows:.|\begin{v|
|00004f30| 65 72 62 61 74 69 6d 7d | 0a 20 20 20 5c 4c 6f 61 |erbatim}|. \Loa|
|00004f40| 64 43 6c 61 73 73 5b 3c | 6f 70 74 69 6f 6e 73 3e |dClass[<|options>|
|00004f50| 5d 7b 3c 63 6c 61 73 73 | 2d 6e 61 6d 65 3e 7d 5b |]{<class|-name>}[|
|00004f60| 3c 64 61 74 65 3e 5d 0a | 5c 65 6e 64 7b 76 65 72 |<date>].|\end{ver|
|00004f70| 62 61 74 69 6d 7d 0a 46 | 6f 72 20 65 78 61 6d 70 |batim}.F|or examp|
|00004f80| 6c 65 3a 0a 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |le:.\beg|in{verba|
|00004f90| 74 69 6d 7d 0a 20 20 20 | 5c 4c 6f 61 64 43 6c 61 |tim}. |\LoadCla|
|00004fa0| 73 73 5b 74 77 6f 63 6f | 6c 75 6d 6e 5d 7b 61 72 |ss[twoco|lumn]{ar|
|00004fb0| 74 69 63 6c 65 7d 0a 5c | 65 6e 64 7b 76 65 72 62 |ticle}.\|end{verb|
|00004fc0| 61 74 69 6d 7d 0a 54 68 | 69 73 20 63 6f 6d 6d 61 |atim}.Th|is comma|
|00004fd0| 6e 64 20 68 61 73 20 74 | 68 65 20 73 61 6d 65 20 |nd has t|he same |
|00004fe0| 73 79 6e 74 61 78 20 61 | 73 20 74 68 65 20 61 75 |syntax a|s the au|
|00004ff0| 74 68 6f 72 20 63 6f 6d | 6d 61 6e 64 20 7c 5c 64 |thor com|mand |\d|
|00005000| 6f 63 75 6d 65 6e 74 63 | 6c 61 73 73 7c 2e 0a 49 |ocumentc|lass|..I|
|00005010| 74 20 61 6c 6c 6f 77 73 | 20 63 6c 61 73 73 65 73 |t allows| classes|
|00005020| 20 74 6f 20 62 65 20 62 | 61 73 65 64 20 6f 6e 20 | to be b|ased on |
|00005030| 74 68 65 20 73 79 6e 74 | 61 78 20 61 6e 64 20 61 |the synt|ax and a|
|00005040| 70 70 65 61 72 61 6e 63 | 65 20 6f 66 20 61 6e 6f |ppearanc|e of ano|
|00005050| 74 68 65 72 0a 63 6c 61 | 73 73 2e 20 20 46 6f 72 |ther.cla|ss. For|
|00005060| 20 65 78 61 6d 70 6c 65 | 2c 20 62 79 20 6c 6f 61 | example|, by loa|
|00005070| 64 69 6e 67 20 74 68 65 | 20 7c 61 72 74 69 63 6c |ding the| |articl|
|00005080| 65 7c 20 63 6c 61 73 73 | 2c 20 61 20 63 6c 61 73 |e| class|, a clas|
|00005090| 73 20 77 72 69 74 65 72 | 0a 6f 6e 6c 79 20 68 61 |s writer|.only ha|
|000050a0| 73 20 74 6f 20 63 68 61 | 6e 67 65 20 74 68 65 20 |s to cha|nge the |
|000050b0| 62 69 74 73 20 6f 66 20 | 7c 61 72 74 69 63 6c 65 |bits of ||article|
|000050c0| 7c 20 74 68 65 79 20 64 | 6f 6e 27 74 20 6c 69 6b || they d|on't lik|
|000050d0| 65 2c 20 72 61 74 68 65 | 72 20 74 68 61 6e 0a 77 |e, rathe|r than.w|
|000050e0| 72 69 74 69 6e 67 20 61 | 20 6e 65 77 20 63 6c 61 |riting a| new cla|
|000050f0| 73 73 20 66 72 6f 6d 20 | 73 63 72 61 74 63 68 2e |ss from |scratch.|
|00005100| 0a 20 0a 5c 73 75 62 73 | 65 63 74 69 6f 6e 7b 44 |. .\subs|ection{D|
|00005110| 65 63 6c 61 72 69 6e 67 | 20 6f 70 74 69 6f 6e 73 |eclaring| options|
|00005120| 7d 0a 20 0a 54 68 65 20 | 6f 74 68 65 72 20 6d 61 |}. .The |other ma|
|00005130| 6a 6f 72 20 64 69 66 66 | 65 72 65 6e 63 65 20 62 |jor diff|erence b|
|00005140| 65 74 77 65 65 6e 20 5c | 4c 61 54 65 58 7e 32 2e |etween \|LaTeX~2.|
|00005150| 30 39 20 73 74 79 6c 65 | 73 20 61 6e 64 20 5c 4c |09 style|s and \L|
|00005160| 61 54 65 58 65 7b 7d 0a | 70 61 63 6b 61 67 65 73 |aTeXe{}.|packages|
|00005170| 20 61 6e 64 20 63 6c 61 | 73 73 65 73 20 69 73 20 | and cla|sses is |
|00005180| 69 6e 20 6f 70 74 69 6f | 6e 20 68 61 6e 64 6c 69 |in optio|n handli|
|00005190| 6e 67 2e 20 20 50 61 63 | 6b 61 67 65 73 20 61 6e |ng. Pac|kages an|
|000051a0| 64 20 63 6c 61 73 73 65 | 73 20 63 61 6e 0a 6e 6f |d classe|s can.no|
|000051b0| 77 20 64 65 63 6c 61 72 | 65 20 6f 70 74 69 6f 6e |w declar|e option|
|000051c0| 73 20 61 6e 64 20 74 68 | 65 73 65 20 63 61 6e 20 |s and th|ese can |
|000051d0| 62 65 20 73 70 65 63 69 | 66 69 65 64 20 62 79 20 |be speci|fied by |
|000051e0| 61 75 74 68 6f 72 73 3b | 20 66 6f 72 0a 65 78 61 |authors;| for.exa|
|000051f0| 6d 70 6c 65 2c 20 74 68 | 65 20 7c 74 77 6f 63 6f |mple, th|e |twoco|
|00005200| 6c 75 6d 6e 7c 20 6f 70 | 74 69 6f 6e 20 69 73 20 |lumn| op|tion is |
|00005210| 64 65 63 6c 61 72 65 64 | 20 62 79 20 74 68 65 20 |declared| by the |
|00005220| 7c 61 72 74 69 63 6c 65 | 7c 20 63 6c 61 73 73 2e ||article|| class.|
|00005230| 0a 20 0a 41 6e 20 6f 70 | 74 69 6f 6e 20 69 73 20 |. .An op|tion is |
|00005240| 64 65 63 6c 61 72 65 64 | 20 61 73 20 66 6f 6c 6c |declared| as foll|
|00005250| 6f 77 73 3a 0a 5c 62 65 | 67 69 6e 7b 76 65 72 62 |ows:.\be|gin{verb|
|00005260| 61 74 69 6d 7d 0a 20 20 | 20 5c 44 65 63 6c 61 72 |atim}. | \Declar|
|00005270| 65 4f 70 74 69 6f 6e 7b | 3c 6f 70 74 69 6f 6e 3e |eOption{|<option>|
|00005280| 7d 7b 3c 63 6f 64 65 3e | 7d 0a 5c 65 6e 64 7b 76 |}{<code>|}.\end{v|
|00005290| 65 72 62 61 74 69 6d 7d | 0a 46 6f 72 20 65 78 61 |erbatim}|.For exa|
|000052a0| 6d 70 6c 65 2c 20 74 68 | 65 20 7c 64 76 69 70 73 |mple, th|e |dvips|
|000052b0| 7c 20 6f 70 74 69 6f 6e | 20 74 6f 20 74 68 65 20 || option| to the |
|000052c0| 7c 67 72 61 70 68 69 63 | 73 7c 20 70 61 63 6b 61 ||graphic|s| packa|
|000052d0| 67 65 20 69 73 0a 69 6d | 70 6c 65 6d 65 6e 74 65 |ge is.im|plemente|
|000052e0| 64 20 61 73 3a 0a 5c 62 | 65 67 69 6e 7b 76 65 72 |d as:.\b|egin{ver|
|000052f0| 62 61 74 69 6d 7d 0a 20 | 20 20 5c 44 65 63 6c 61 |batim}. | \Decla|
|00005300| 72 65 4f 70 74 69 6f 6e | 7b 64 76 69 70 73 7d 7b |reOption|{dvips}{|
|00005310| 5c 69 6e 70 75 74 7b 64 | 76 69 70 73 2e 64 65 66 |\input{d|vips.def|
|00005320| 7d 7d 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |}}.\end{|verbatim|
|00005330| 7d 0a 54 68 69 73 20 6d | 65 61 6e 73 20 74 68 61 |}.This m|eans tha|
|00005340| 74 20 77 68 65 6e 20 61 | 6e 20 61 75 74 68 6f 72 |t when a|n author|
|00005350| 20 77 72 69 74 65 73 20 | 7c 5c 75 73 65 70 61 63 | writes ||\usepac|
|00005360| 6b 61 67 65 5b 64 76 69 | 70 73 5d 7b 67 72 61 70 |kage[dvi|ps]{grap|
|00005370| 68 69 63 73 7d 7c 2c 0a | 74 68 65 20 66 69 6c 65 |hics}|,.|the file|
|00005380| 20 7c 64 76 69 70 73 2e | 64 65 66 7c 20 69 73 20 | |dvips.|def| is |
|00005390| 6c 6f 61 64 65 64 2e 20 | 20 41 73 20 61 6e 6f 74 |loaded. | As anot|
|000053a0| 68 65 72 20 65 78 61 6d | 70 6c 65 2c 20 74 68 65 |her exam|ple, the|
|000053b0| 20 7c 61 34 70 61 70 65 | 72 7c 0a 6f 70 74 69 6f | |a4pape|r|.optio|
|000053c0| 6e 20 69 73 20 64 65 63 | 6c 61 72 65 64 20 69 6e |n is dec|lared in|
|000053d0| 20 74 68 65 20 7c 61 72 | 74 69 63 6c 65 7c 20 63 | the |ar|ticle| c|
|000053e0| 6c 61 73 73 20 74 6f 20 | 73 65 74 20 74 68 65 20 |lass to |set the |
|000053f0| 7c 5c 70 61 70 65 72 68 | 65 69 67 68 74 7c 0a 61 ||\paperh|eight|.a|
|00005400| 6e 64 20 7c 5c 70 61 70 | 65 72 77 69 64 74 68 7c |nd |\pap|erwidth||
|00005410| 20 6c 65 6e 67 74 68 73 | 3a 0a 5c 62 65 67 69 6e | lengths|:.\begin|
|00005420| 7b 76 65 72 62 61 74 69 | 6d 7d 0a 20 20 20 5c 44 |{verbati|m}. \D|
|00005430| 65 63 6c 61 72 65 4f 70 | 74 69 6f 6e 7b 61 34 70 |eclareOp|tion{a4p|
|00005440| 61 70 65 72 7d 7b 25 0a | 20 20 20 20 20 20 5c 73 |aper}{%.| \s|
|00005450| 65 74 6c 65 6e 67 74 68 | 7b 5c 70 61 70 65 72 68 |etlength|{\paperh|
|00005460| 65 69 67 68 74 7d 7b 32 | 39 37 6d 6d 7d 25 0a 20 |eight}{2|97mm}%. |
|00005470| 20 20 20 20 20 5c 73 65 | 74 6c 65 6e 67 74 68 7b | \se|tlength{|
|00005480| 5c 70 61 70 65 72 77 69 | 64 74 68 7d 7b 32 31 30 |\paperwi|dth}{210|
|00005490| 6d 6d 7d 25 0a 20 20 20 | 7d 0a 5c 65 6e 64 7b 76 |mm}%. |}.\end{v|
|000054a0| 65 72 62 61 74 69 6d 7d | 0a 53 6f 6d 65 74 69 6d |erbatim}|.Sometim|
|000054b0| 65 73 20 61 20 75 73 65 | 72 20 77 69 6c 6c 20 72 |es a use|r will r|
|000054c0| 65 71 75 65 73 74 20 61 | 6e 20 6f 70 74 69 6f 6e |equest a|n option|
|000054d0| 20 77 68 69 63 68 20 74 | 68 65 20 63 6c 61 73 73 | which t|he class|
|000054e0| 0a 6f 72 20 70 61 63 6b | 61 67 65 20 68 61 73 20 |.or pack|age has |
|000054f0| 6e 6f 74 20 65 78 70 6c | 69 63 69 74 6c 79 20 64 |not expl|icitly d|
|00005500| 65 63 6c 61 72 65 64 2e | 20 20 42 79 20 64 65 66 |eclared.| By def|
|00005510| 61 75 6c 74 20 74 68 69 | 73 20 77 69 6c 6c 20 70 |ault thi|s will p|
|00005520| 72 6f 64 75 63 65 0a 61 | 20 77 61 72 6e 69 6e 67 |roduce.a| warning|
|00005530| 20 28 66 6f 72 20 63 6c | 61 73 73 65 73 29 20 6f | (for cl|asses) o|
|00005540| 72 20 65 72 72 6f 72 20 | 28 66 6f 72 20 70 61 63 |r error |(for pac|
|00005550| 6b 61 67 65 73 29 3b 20 | 74 68 69 73 20 62 65 68 |kages); |this beh|
|00005560| 61 76 69 6f 75 72 0a 63 | 61 6e 20 62 65 20 61 6c |aviour.c|an be al|
|00005570| 74 65 72 65 64 20 61 73 | 20 66 6f 6c 6c 6f 77 73 |tered as| follows|
|00005580| 3a 0a 5c 62 65 67 69 6e | 7b 76 65 72 62 61 74 69 |:.\begin|{verbati|
|00005590| 6d 7d 0a 20 20 20 5c 44 | 65 63 6c 61 72 65 4f 70 |m}. \D|eclareOp|
|000055a0| 74 69 6f 6e 2a 7b 3c 63 | 6f 64 65 3e 7d 0a 5c 65 |tion*{<c|ode>}.\e|
|000055b0| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0a 46 6f 72 |nd{verba|tim}.For|
|000055c0| 20 65 78 61 6d 70 6c 65 | 2c 20 74 6f 20 6d 61 6b | example|, to mak|
|000055d0| 65 20 74 68 65 20 70 61 | 63 6b 61 67 65 20 7c 66 |e the pa|ckage |f|
|000055e0| 72 65 64 7c 20 70 72 6f | 64 75 63 65 20 61 20 77 |red| pro|duce a w|
|000055f0| 61 72 6e 69 6e 67 20 72 | 61 74 68 65 72 20 74 68 |arning r|ather th|
|00005600| 61 6e 0a 61 6e 20 65 72 | 72 6f 72 20 66 6f 72 20 |an.an er|ror for |
|00005610| 75 6e 6b 6e 6f 77 6e 20 | 6f 70 74 69 6f 6e 73 2c |unknown |options,|
|00005620| 20 79 6f 75 20 63 6f 75 | 6c 64 20 73 70 65 63 69 | you cou|ld speci|
|00005630| 66 79 3a 0a 5c 62 65 67 | 69 6e 7b 76 65 72 62 61 |fy:.\beg|in{verba|
|00005640| 74 69 6d 7d 0a 20 20 20 | 5c 44 65 63 6c 61 72 65 |tim}. |\Declare|
|00005650| 4f 70 74 69 6f 6e 2a 7b | 25 0a 20 20 20 20 20 20 |Option*{|%. |
|00005660| 5c 50 61 63 6b 61 67 65 | 57 61 72 6e 69 6e 67 7b |\Package|Warning{|
|00005670| 66 72 65 64 7d 7b 55 6e | 6b 6e 6f 77 6e 20 6f 70 |fred}{Un|known op|
|00005680| 74 69 6f 6e 20 60 5c 43 | 75 72 72 65 6e 74 4f 70 |tion `\C|urrentOp|
|00005690| 74 69 6f 6e 27 7d 25 0a | 20 20 20 7d 0a 5c 65 6e |tion'}%.| }.\en|
|000056a0| 64 7b 76 65 72 62 61 74 | 69 6d 7d 0a 54 68 65 6e |d{verbat|im}.Then|
|000056b0| 2c 20 69 66 20 61 6e 20 | 61 75 74 68 6f 72 20 77 |, if an |author w|
|000056c0| 72 69 74 65 73 20 7c 5c | 75 73 65 70 61 63 6b 61 |rites |\|usepacka|
|000056d0| 67 65 5b 66 6f 6f 5d 7b | 66 72 65 64 7d 7c 2c 20 |ge[foo]{|fred}|, |
|000056e0| 74 68 65 79 20 77 69 6c | 6c 20 67 65 74 20 61 0a |they wil|l get a.|
|000056f0| 77 61 72 6e 69 6e 67 20 | 5c 74 65 78 74 74 74 7b |warning |\texttt{|
|00005700| 50 61 63 6b 61 67 65 20 | 66 72 65 64 20 57 61 72 |Package |fred War|
|00005710| 6e 69 6e 67 3a 20 55 6e | 6b 6e 6f 77 6e 20 6f 70 |ning: Un|known op|
|00005720| 74 69 6f 6e 20 60 66 6f | 6f 27 2e 7d 20 20 41 73 |tion `fo|o'.} As|
|00005730| 0a 61 6e 6f 74 68 65 72 | 20 65 78 61 6d 70 6c 65 |.another| example|
|00005740| 2c 20 74 68 65 20 7c 66 | 6f 6e 74 65 6e 63 7c 20 |, the |f|ontenc| |
|00005750| 70 61 63 6b 61 67 65 20 | 74 72 69 65 73 20 74 6f |package |tries to|
|00005760| 20 6c 6f 61 64 20 61 20 | 66 69 6c 65 0a 7c 3c 45 | load a |file.|<E|
|00005770| 4e 43 3e 65 6e 63 2e 64 | 65 66 7c 20 77 68 65 6e |NC>enc.d|ef| when|
|00005780| 65 76 65 72 20 74 68 65 | 20 5c 6d 7b 45 4e 43 7d |ever the| \m{ENC}|
|00005790| 20 6f 70 74 69 6f 6e 20 | 69 73 20 75 73 65 64 2e | option |is used.|
|000057a0| 20 20 54 68 69 73 0a 63 | 61 6e 20 62 65 20 64 6f | This.c|an be do|
|000057b0| 6e 65 20 62 79 20 77 72 | 69 74 69 6e 67 3a 0a 5c |ne by wr|iting:.\|
|000057c0| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|000057d0| 20 20 20 5c 44 65 63 6c | 61 72 65 4f 70 74 69 6f | \Decl|areOptio|
|000057e0| 6e 2a 7b 25 0a 20 20 20 | 20 20 20 5c 69 6e 70 75 |n*{%. | \inpu|
|000057f0| 74 7b 5c 43 75 72 72 65 | 6e 74 4f 70 74 69 6f 6e |t{\Curre|ntOption|
|00005800| 20 65 6e 63 2e 64 65 66 | 7d 25 0a 20 20 20 7d 0a | enc.def|}%. }.|
|00005810| 5c 65 6e 64 7b 76 65 72 | 62 61 74 69 6d 7d 0a 49 |\end{ver|batim}.I|
|00005820| 74 20 69 73 20 70 6f 73 | 73 69 62 6c 65 20 74 6f |t is pos|sible to|
|00005830| 20 70 61 73 73 20 6f 70 | 74 69 6f 6e 73 20 6f 6e | pass op|tions on|
|00005840| 20 74 6f 20 61 6e 6f 74 | 68 65 72 20 70 61 63 6b | to anot|her pack|
|00005850| 61 67 65 20 6f 72 20 63 | 6c 61 73 73 2c 20 75 73 |age or c|lass, us|
|00005860| 69 6e 67 0a 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 |ing.the |command |
|00005870| 7c 5c 50 61 73 73 4f 70 | 74 69 6f 6e 73 54 6f 50 ||\PassOp|tionsToP|
|00005880| 61 63 6b 61 67 65 7c 20 | 6f 72 20 7c 5c 50 61 73 |ackage| |or |\Pas|
|00005890| 73 4f 70 74 69 6f 6e 73 | 54 6f 43 6c 61 73 73 7c |sOptions|ToClass||
|000058a0| 2e 20 20 46 6f 72 0a 65 | 78 61 6d 70 6c 65 2c 20 |. For.e|xample, |
|000058b0| 74 6f 20 70 61 73 73 20 | 65 76 65 72 79 20 75 6e |to pass |every un|
|000058c0| 6b 6e 6f 77 6e 20 6f 70 | 74 69 6f 6e 20 6f 6e 20 |known op|tion on |
|000058d0| 74 6f 20 74 68 65 20 7c | 61 72 74 69 63 6c 65 7c |to the ||article||
|000058e0| 20 63 6c 61 73 73 2c 20 | 79 6f 75 0a 63 61 6e 20 | class, |you.can |
|000058f0| 75 73 65 3a 0a 5c 62 65 | 67 69 6e 7b 76 65 72 62 |use:.\be|gin{verb|
|00005900| 61 74 69 6d 7d 0a 20 20 | 20 5c 44 65 63 6c 61 72 |atim}. | \Declar|
|00005910| 65 4f 70 74 69 6f 6e 2a | 7b 25 0a 20 20 20 20 20 |eOption*|{%. |
|00005920| 20 5c 50 61 73 73 4f 70 | 74 69 6f 6e 73 54 6f 43 | \PassOp|tionsToC|
|00005930| 6c 61 73 73 7b 5c 43 75 | 72 72 65 6e 74 4f 70 74 |lass{\Cu|rrentOpt|
|00005940| 69 6f 6e 7d 7b 61 72 74 | 69 63 6c 65 7d 25 0a 20 |ion}{art|icle}%. |
|00005950| 20 20 7d 0a 5c 65 6e 64 | 7b 76 65 72 62 61 74 69 | }.\end|{verbati|
|00005960| 6d 7d 0a 49 66 20 79 6f | 75 20 64 6f 20 74 68 69 |m}.If yo|u do thi|
|00005970| 73 20 74 68 65 6e 20 79 | 6f 75 20 73 68 6f 75 6c |s then y|ou shoul|
|00005980| 64 20 6d 61 6b 65 20 73 | 75 72 65 20 79 6f 75 20 |d make s|ure you |
|00005990| 6c 6f 61 64 20 74 68 65 | 20 63 6c 61 73 73 20 61 |load the| class a|
|000059a0| 74 20 73 6f 6d 65 0a 6c | 61 74 65 72 20 70 6f 69 |t some.l|ater poi|
|000059b0| 6e 74 2c 20 6f 74 68 65 | 72 77 69 73 65 20 74 68 |nt, othe|rwise th|
|000059c0| 65 20 6f 70 74 69 6f 6e | 73 20 77 69 6c 6c 20 6e |e option|s will n|
|000059d0| 65 76 65 72 20 62 65 20 | 70 72 6f 63 65 73 73 65 |ever be |processe|
|000059e0| 64 21 0a 20 0a 53 6f 20 | 66 61 72 2c 20 77 65 20 |d!. .So |far, we |
|000059f0| 68 61 76 65 20 65 78 70 | 6c 61 69 6e 65 64 20 6f |have exp|lained o|
|00005a00| 6e 6c 79 20 68 6f 77 20 | 74 6f 20 64 65 63 6c 61 |nly how |to decla|
|00005a10| 72 65 20 6f 70 74 69 6f | 6e 73 2c 20 6e 6f 74 20 |re optio|ns, not |
|00005a20| 68 6f 77 20 74 6f 0a 65 | 78 65 63 75 74 65 20 74 |how to.e|xecute t|
|00005a30| 68 65 6d 2e 20 20 54 6f | 20 70 72 6f 63 65 73 73 |hem. To| process|
|00005a40| 20 74 68 65 20 6f 70 74 | 69 6f 6e 73 20 77 69 74 | the opt|ions wit|
|00005a50| 68 20 77 68 69 63 68 20 | 74 68 65 20 66 69 6c 65 |h which |the file|
|00005a60| 20 77 61 73 20 63 61 6c | 6c 65 64 2c 0a 79 6f 75 | was cal|led,.you|
|00005a70| 20 73 68 6f 75 6c 64 20 | 75 73 65 3a 0a 5c 62 65 | should |use:.\be|
|00005a80| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0a 20 20 |gin{verb|atim}. |
|00005a90| 20 5c 50 72 6f 63 65 73 | 73 4f 70 74 69 6f 6e 73 | \Proces|sOptions|
|00005aa0| 0a 5c 65 6e 64 7b 76 65 | 72 62 61 74 69 6d 7d 0a |.\end{ve|rbatim}.|
|00005ab0| 54 68 69 73 20 65 78 65 | 63 75 74 65 73 20 74 68 |This exe|cutes th|
|00005ac0| 65 20 5c 6d 7b 63 6f 64 | 65 7d 20 66 6f 72 20 65 |e \m{cod|e} for e|
|00005ad0| 61 63 68 20 6f 70 74 69 | 6f 6e 20 74 68 61 74 20 |ach opti|on that |
|00005ae0| 77 61 73 20 62 6f 74 68 | 20 73 70 65 63 69 66 69 |was both| specifi|
|00005af0| 65 64 20 61 6e 64 0a 64 | 65 63 6c 61 72 65 64 20 |ed and.d|eclared |
|00005b00| 28 73 65 65 20 53 65 63 | 74 69 6f 6e 7e 5c 72 65 |(see Sec|tion~\re|
|00005b10| 66 7b 53 65 63 3a 63 6f | 6d 6d 61 6e 64 73 2e 6f |f{Sec:co|mmands.o|
|00005b20| 70 74 69 6f 6e 73 7d 20 | 66 6f 72 20 64 65 74 61 |ptions} |for deta|
|00005b30| 69 6c 73 20 6f 66 20 68 | 6f 77 0a 74 68 69 73 20 |ils of h|ow.this |
|00005b40| 69 73 20 64 6f 6e 65 29 | 2e 0a 20 0a 46 6f 72 20 |is done)|.. .For |
|00005b50| 65 78 61 6d 70 6c 65 2c | 20 69 66 20 74 68 65 20 |example,| if the |
|00005b60| 7c 6a 61 6e 65 7c 20 70 | 61 63 6b 61 67 65 20 66 ||jane| p|ackage f|
|00005b70| 69 6c 65 20 63 6f 6e 74 | 61 69 6e 73 3a 0a 5c 62 |ile cont|ains:.\b|
|00005b80| 65 67 69 6e 7b 76 65 72 | 62 61 74 69 6d 7d 0a 20 |egin{ver|batim}. |
|00005b90| 20 20 5c 44 65 63 6c 61 | 72 65 4f 70 74 69 6f 6e | \Decla|reOption|
|00005ba0| 7b 66 6f 6f 7d 7b 5c 74 | 79 70 65 6f 75 74 7b 53 |{foo}{\t|ypeout{S|
|00005bb0| 61 77 20 66 6f 6f 2e 7d | 7d 0a 20 20 20 5c 44 65 |aw foo.}|}. \De|
|00005bc0| 63 6c 61 72 65 4f 70 74 | 69 6f 6e 7b 62 61 7a 7d |clareOpt|ion{baz}|
|00005bd0| 7b 5c 74 79 70 65 6f 75 | 74 7b 53 61 77 20 62 61 |{\typeou|t{Saw ba|
|00005be0| 7a 2e 7d 7d 0a 20 20 20 | 5c 44 65 63 6c 61 72 65 |z.}}. |\Declare|
|00005bf0| 4f 70 74 69 6f 6e 2a 7b | 5c 74 79 70 65 6f 75 74 |Option*{|\typeout|
|00005c00| 7b 57 68 61 74 27 73 20 | 5c 43 75 72 72 65 6e 74 |{What's |\Current|
|00005c10| 4f 70 74 69 6f 6e 3f 7d | 7d 0a 20 20 20 5c 50 72 |Option?}|}. \Pr|
|00005c20| 6f 63 65 73 73 4f 70 74 | 69 6f 6e 73 0a 5c 65 6e |ocessOpt|ions.\en|
|00005c30| 64 7b 76 65 72 62 61 74 | 69 6d 7d 0a 61 6e 64 20 |d{verbat|im}.and |
|00005c40| 61 6e 20 61 75 74 68 6f | 72 20 77 72 69 74 65 73 |an autho|r writes|
|00005c50| 20 7c 5c 75 73 65 70 61 | 63 6b 61 67 65 5b 66 6f | |\usepa|ckage[fo|
|00005c60| 6f 2c 62 61 72 5d 7b 6a | 61 6e 65 7d 7c 2c 20 74 |o,bar]{j|ane}|, t|
|00005c70| 68 65 6e 20 74 68 65 79 | 20 77 69 6c 6c 20 73 65 |hen they| will se|
|00005c80| 65 0a 74 68 65 20 6d 65 | 73 73 61 67 65 73 20 5c |e.the me|ssages \|
|00005c90| 74 65 78 74 74 74 7b 53 | 61 77 20 66 6f 6f 2e 7d |texttt{S|aw foo.}|
|00005ca0| 20 61 6e 64 20 5c 74 65 | 78 74 74 74 7b 57 68 61 | and \te|xttt{Wha|
|00005cb0| 74 27 73 20 62 61 72 3f | 7d 0a 20 0a 5c 73 75 62 |t's bar?|}. .\sub|
|00005cc0| 73 65 63 74 69 6f 6e 7b | 44 65 63 6c 61 72 61 74 |section{|Declarat|
|00005cd0| 69 6f 6e 73 7d 0a 20 0a | 4d 6f 73 74 20 6f 66 20 |ions}. .|Most of |
|00005ce0| 74 68 65 20 77 6f 72 6b | 20 6f 66 20 61 20 63 6c |the work| of a cl|
|00005cf0| 61 73 73 20 6f 72 20 70 | 61 63 6b 61 67 65 20 69 |ass or p|ackage i|
|00005d00| 73 20 69 6e 20 64 65 66 | 69 6e 69 6e 67 20 6e 65 |s in def|ining ne|
|00005d10| 77 20 63 6f 6d 6d 61 6e | 64 73 2c 20 6f 72 0a 63 |w comman|ds, or.c|
|00005d20| 68 61 6e 67 69 6e 67 20 | 74 68 65 20 61 70 70 65 |hanging |the appe|
|00005d30| 61 72 61 6e 63 65 20 6f | 66 20 64 6f 63 75 6d 65 |arance o|f docume|
|00005d40| 6e 74 73 2e 20 20 54 68 | 69 73 20 69 73 20 64 6f |nts. Th|is is do|
|00005d50| 6e 65 20 69 6e 20 74 68 | 65 20 62 6f 64 79 20 6f |ne in th|e body o|
|00005d60| 66 20 74 68 65 0a 70 61 | 63 6b 61 67 65 2c 20 75 |f the.pa|ckage, u|
|00005d70| 73 69 6e 67 20 63 6f 6d | 6d 61 6e 64 73 20 73 75 |sing com|mands su|
|00005d80| 63 68 20 61 73 20 7c 5c | 6e 65 77 63 6f 6d 6d 61 |ch as |\|newcomma|
|00005d90| 6e 64 7c 20 6f 72 20 7c | 5c 73 65 74 6c 65 6e 67 |nd| or ||\setleng|
|00005da0| 74 68 7c 2e 0a 0a 5c 4c | 61 54 65 58 65 7b 7d 20 |th|...\L|aTeXe{} |
|00005db0| 70 72 6f 76 69 64 65 73 | 20 73 65 76 65 72 61 6c |provides| several|
|00005dc0| 20 6e 65 77 20 63 6f 6d | 6d 61 6e 64 73 20 74 6f | new com|mands to|
|00005dd0| 20 68 65 6c 70 20 63 6c | 61 73 73 20 61 6e 64 20 | help cl|ass and |
|00005de0| 70 61 63 6b 61 67 65 0a | 77 72 69 74 65 72 73 3b |package.|writers;|
|00005df0| 20 74 68 65 73 65 20 61 | 72 65 20 64 65 73 63 72 | these a|re descr|
|00005e00| 69 62 65 64 20 69 6e 20 | 64 65 74 61 69 6c 20 69 |ibed in |detail i|
|00005e10| 6e 20 53 65 63 74 69 6f | 6e 7e 5c 72 65 66 7b 53 |n Sectio|n~\ref{S|
|00005e20| 65 63 3a 63 6f 6d 6d 61 | 6e 64 73 7d 2e 0a 20 0a |ec:comma|nds}.. .|
|00005e30| 54 68 65 72 65 20 61 72 | 65 20 74 68 72 65 65 20 |There ar|e three |
|00005e40| 74 68 69 6e 67 73 20 74 | 68 61 74 20 65 76 65 72 |things t|hat ever|
|00005e50| 79 20 63 6c 61 73 73 20 | 66 69 6c 65 20 5c 65 6d |y class |file \em|
|00005e60| 70 68 7b 6d 75 73 74 7d | 20 63 6f 6e 74 61 69 6e |ph{must}| contain|
|00005e70| 3a 0a 74 68 65 73 65 20 | 61 72 65 20 61 20 64 65 |:.these |are a de|
|00005e80| 66 69 6e 69 74 69 6f 6e | 20 6f 66 20 7c 5c 6e 6f |finition| of |\no|
|00005e90| 72 6d 61 6c 73 69 7a 65 | 7c 20 61 6e 64 20 76 61 |rmalsize|| and va|
|00005ea0| 6c 75 65 73 20 66 6f 72 | 20 7c 5c 74 65 78 74 77 |lues for| |\textw|
|00005eb0| 69 64 74 68 7c 0a 61 6e | 64 20 7c 5c 74 65 78 74 |idth|.an|d |\text|
|00005ec0| 68 65 69 67 68 74 7c 2e | 20 20 53 6f 20 61 20 6d |height|.| So a m|
|00005ed0| 69 6e 69 6d 61 6c 20 64 | 6f 63 75 6d 65 6e 74 20 |inimal d|ocument |
|00005ee0| 63 6c 61 73 73 20 66 69 | 6c 65 20 69 73 3a 0a 5c |class fi|le is:.\|
|00005ef0| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|00005f00| 20 20 20 5c 4e 65 65 64 | 73 54 65 58 46 6f 72 6d | \Need|sTeXForm|
|00005f10| 61 74 7b 4c 61 54 65 58 | 32 65 7d 0a 20 20 20 5c |at{LaTeX|2e}. \|
|00005f20| 50 72 6f 76 69 64 65 73 | 43 6c 61 73 73 7b 6d 69 |Provides|Class{mi|
|00005f30| 6e 69 6d 61 6c 7d 5b 31 | 39 39 34 2f 30 34 2f 30 |nimal}[1|994/04/0|
|00005f40| 31 20 4d 69 6e 69 6d 61 | 6c 20 63 6c 61 73 73 5d |1 Minima|l class]|
|00005f50| 0a 20 20 20 5c 72 65 6e | 65 77 63 6f 6d 6d 61 6e |. \ren|ewcomman|
|00005f60| 64 7b 5c 6e 6f 72 6d 61 | 6c 73 69 7a 65 7d 7b 5c |d{\norma|lsize}{\|
|00005f70| 66 6f 6e 74 73 69 7a 65 | 7b 31 30 7d 7b 31 32 7d |fontsize|{10}{12}|
|00005f80| 5c 73 65 6c 65 63 74 66 | 6f 6e 74 7d 0a 20 20 20 |\selectf|ont}. |
|00005f90| 5c 73 65 74 6c 65 6e 67 | 74 68 7b 5c 74 65 78 74 |\setleng|th{\text|
|00005fa0| 77 69 64 74 68 7d 7b 36 | 2e 35 69 6e 7d 0a 20 20 |width}{6|.5in}. |
|00005fb0| 20 5c 73 65 74 6c 65 6e | 67 74 68 7b 5c 74 65 78 | \setlen|gth{\tex|
|00005fc0| 74 68 65 69 67 68 74 7d | 7b 38 69 6e 7d 0a 5c 65 |theight}|{8in}.\e|
|00005fd0| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0a 48 6f 77 |nd{verba|tim}.How|
|00005fe0| 65 76 65 72 2c 20 74 68 | 69 73 20 63 6c 61 73 73 |ever, th|is class|
|00005ff0| 20 66 69 6c 65 20 77 69 | 6c 6c 20 6e 6f 74 20 73 | file wi|ll not s|
|00006000| 75 70 70 6f 72 74 20 66 | 6f 6f 74 6e 6f 74 65 73 |upport f|ootnotes|
|00006010| 2c 20 6d 61 72 67 69 6e | 61 6c 73 2c 0a 66 6c 6f |, margin|als,.flo|
|00006020| 61 74 73 2c 20 65 74 63 | 2e 20 6e 6f 72 20 77 69 |ats, etc|. nor wi|
|00006030| 6c 6c 20 69 74 20 70 72 | 6f 76 69 64 65 20 61 6e |ll it pr|ovide an|
|00006040| 79 20 6f 66 20 74 68 65 | 20 32 2d 6c 65 74 74 65 |y of the| 2-lette|
|00006050| 72 20 66 6f 6e 74 20 63 | 6f 6d 6d 61 6e 64 73 0a |r font c|ommands.|
|00006060| 73 75 63 68 20 61 73 20 | 7c 5c 72 6d 7c 3b 20 74 |such as ||\rm|; t|
|00006070| 68 75 73 20 6d 6f 73 74 | 20 63 6c 61 73 73 65 73 |hus most| classes|
|00006080| 20 77 69 6c 6c 20 63 6f | 6e 74 61 69 6e 20 6d 6f | will co|ntain mo|
|00006090| 72 65 20 74 68 61 6e 20 | 74 68 69 73 20 6d 69 6e |re than |this min|
|000060a0| 69 6d 75 6d 21 0a 20 0a | 0a 0a 5c 73 75 62 73 65 |imum!. .|..\subse|
|000060b0| 63 74 69 6f 6e 7b 45 78 | 61 6d 70 6c 65 3a 20 61 |ction{Ex|ample: a|
|000060c0| 20 6c 6f 63 61 6c 20 6c | 65 74 74 65 72 20 63 6c | local l|etter cl|
|000060d0| 61 73 73 7d 0a 20 0a 41 | 20 63 6f 6d 70 61 6e 79 |ass}. .A| company|
|000060e0| 20 6d 61 79 20 68 61 76 | 65 20 69 74 73 20 6f 77 | may hav|e its ow|
|000060f0| 6e 20 6c 65 74 74 65 72 | 20 63 6c 61 73 73 2c 20 |n letter| class, |
|00006100| 66 6f 72 20 73 65 74 74 | 69 6e 67 20 6c 65 74 74 |for sett|ing lett|
|00006110| 65 72 73 20 69 6e 20 74 | 68 65 0a 63 6f 6d 70 61 |ers in t|he.compa|
|00006120| 6e 79 20 73 74 79 6c 65 | 2e 20 20 54 68 69 73 20 |ny style|. This |
|00006130| 73 65 63 74 69 6f 6e 20 | 73 68 6f 77 73 20 61 20 |section |shows a |
|00006140| 73 69 6d 70 6c 65 20 69 | 6d 70 6c 65 6d 65 6e 74 |simple i|mplement|
|00006150| 61 74 69 6f 6e 20 6f 66 | 20 73 75 63 68 20 61 0a |ation of| such a.|
|00006160| 63 6c 61 73 73 2c 20 61 | 6c 74 68 6f 75 67 68 20 |class, a|lthough |
|00006170| 61 20 72 65 61 6c 20 63 | 6c 61 73 73 20 77 6f 75 |a real c|lass wou|
|00006180| 6c 64 20 6e 65 65 64 20 | 6d 6f 72 65 20 73 74 72 |ld need |more str|
|00006190| 75 63 74 75 72 65 2e 0a | 20 0a 54 68 65 20 63 6c |ucture..| .The cl|
|000061a0| 61 73 73 20 62 65 67 69 | 6e 73 20 62 79 20 61 6e |ass begi|ns by an|
|000061b0| 6e 6f 75 6e 63 69 6e 67 | 20 69 74 73 65 6c 66 20 |nouncing| itself |
|000061c0| 61 73 20 7c 6e 65 70 6c | 65 74 2e 63 6c 73 7c 2e |as |nepl|et.cls|.|
|000061d0| 0a 5c 62 65 67 69 6e 7b | 76 65 72 62 61 74 69 6d |.\begin{|verbatim|
|000061e0| 7d 0a 20 20 20 5c 4e 65 | 65 64 73 54 65 58 46 6f |}. \Ne|edsTeXFo|
|000061f0| 72 6d 61 74 7b 4c 61 54 | 65 58 32 65 7d 0a 20 20 |rmat{LaT|eX2e}. |
|00006200| 20 5c 50 72 6f 76 69 64 | 65 73 43 6c 61 73 73 7b | \Provid|esClass{|
|00006210| 6e 65 70 6c 65 74 7d 5b | 31 39 39 35 2f 30 34 2f |neplet}[|1995/04/|
|00006220| 30 31 20 4e 6f 6e 45 78 | 69 73 74 65 6e 74 20 50 |01 NonEx|istent P|
|00006230| 72 65 73 73 20 6c 65 74 | 74 65 72 20 63 6c 61 73 |ress let|ter clas|
|00006240| 73 5d 0a 5c 65 6e 64 7b | 76 65 72 62 61 74 69 6d |s].\end{|verbatim|
|00006250| 7d 0a 54 68 65 6e 20 74 | 68 69 73 20 6e 65 78 74 |}.Then t|his next|
|00006260| 20 62 69 74 20 70 61 73 | 73 65 73 20 61 6e 79 20 | bit pas|ses any |
|00006270| 6f 70 74 69 6f 6e 73 20 | 6f 6e 20 74 6f 20 74 68 |options |on to th|
|00006280| 65 20 7c 6c 65 74 74 65 | 72 7c 20 63 6c 61 73 73 |e |lette|r| class|
|00006290| 2c 20 77 68 69 63 68 0a | 69 73 20 6c 6f 61 64 65 |, which.|is loade|
|000062a0| 64 20 77 69 74 68 20 74 | 68 65 20 7c 61 34 70 61 |d with t|he |a4pa|
|000062b0| 70 65 72 7c 20 6f 70 74 | 69 6f 6e 2e 0a 5c 62 65 |per| opt|ion..\be|
|000062c0| 67 69 6e 7b 76 65 72 62 | 61 74 69 6d 7d 0a 20 20 |gin{verb|atim}. |
|000062d0| 20 5c 44 65 63 6c 61 72 | 65 4f 70 74 69 6f 6e 2a | \Declar|eOption*|
|000062e0| 7b 5c 50 61 73 73 4f 70 | 74 69 6f 6e 73 54 6f 43 |{\PassOp|tionsToC|
|000062f0| 6c 61 73 73 7b 5c 43 75 | 72 72 65 6e 74 4f 70 74 |lass{\Cu|rrentOpt|
|00006300| 69 6f 6e 7d 7b 6c 65 74 | 74 65 72 7d 7d 0a 20 20 |ion}{let|ter}}. |
|00006310| 20 5c 50 72 6f 63 65 73 | 73 4f 70 74 69 6f 6e 73 | \Proces|sOptions|
|00006320| 0a 20 20 20 5c 4c 6f 61 | 64 43 6c 61 73 73 5b 61 |. \Loa|dClass[a|
|00006330| 34 70 61 70 65 72 5d 7b | 6c 65 74 74 65 72 7d 0a |4paper]{|letter}.|
|00006340| 5c 65 6e 64 7b 76 65 72 | 62 61 74 69 6d 7d 0a 49 |\end{ver|batim}.I|
|00006350| 6e 20 6f 72 64 65 72 20 | 74 6f 20 75 73 65 20 74 |n order |to use t|
|00006360| 68 65 20 63 6f 6d 70 61 | 6e 79 20 6c 65 74 74 65 |he compa|ny lette|
|00006370| 72 20 68 65 61 64 2c 20 | 69 74 20 72 65 64 65 66 |r head, |it redef|
|00006380| 69 6e 65 73 20 74 68 65 | 0a 7c 66 69 72 73 74 70 |ines the|.|firstp|
|00006390| 61 67 65 7c 20 70 61 67 | 65 20 73 74 79 6c 65 3a |age| pag|e style:|
|000063a0| 20 74 68 69 73 20 69 73 | 20 74 68 65 20 70 61 67 | this is| the pag|
|000063b0| 65 20 73 74 79 6c 65 20 | 74 68 61 74 20 69 73 20 |e style |that is |
|000063c0| 75 73 65 64 20 6f 6e 0a | 74 68 65 20 66 69 72 73 |used on.|the firs|
|000063d0| 74 20 70 61 67 65 20 6f | 66 20 6c 65 74 74 65 72 |t page o|f letter|
|000063e0| 73 2e 0a 5c 62 65 67 69 | 6e 7b 76 65 72 62 61 74 |s..\begi|n{verbat|
|000063f0| 69 6d 7d 0a 20 20 20 5c | 72 65 6e 65 77 63 6f 6d |im}. \|renewcom|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.