home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / nfs / amd / amd-5.2 / doc / nh.doc < prev    next >
LaTeX Document  |  1990-06-23  |  4.8 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 WANG Integrated Word Processor (document/wangIWP) ext Unsupported
1% dexvert Dynamic Publisher Document (document/dynamicPublisherDocument) ext Unsupported
1% dexvert Excellence! Document (document/excellenceDocument) ext Unsupported
1% dexvert Norton Textra Writer (document/textraWriter) ext Unsupported
1% dexvert IBM DisplayWrite Document (document/ibmDisplayWriteDocument) ext Unsupported
1% dexvert Open Access Document (document/openAccessDocument) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/281 LaTeX (Subdocument) default
100% detectItEasy Format: Plain text[LF] default
100% xdgMime text/x-matlab default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 43 68 61 6e 67 65 | 20 70 61 67 65 20 73 69 |% Change| page si|
|00000010| 7a 65 20 70 61 72 61 6d | 65 74 65 72 73 20 66 6f |ze param|eters fo|
|00000020| 72 20 41 34 20 70 61 70 | 65 72 20 6f 6e 20 4c 61 |r A4 pap|er on La|
|00000030| 73 65 72 57 72 69 74 65 | 72 2c 0a 25 20 61 6c 6c |serWrite|r,.% all|
|00000040| 6f 77 69 6e 67 20 66 6f | 72 20 68 65 61 64 65 72 |owing fo|r header|
|00000050| 73 20 61 6e 64 20 66 6f | 6f 74 65 72 73 2e 20 44 |s and fo|oters. D|
|00000060| 65 66 69 6e 65 20 73 6f | 6d 65 20 6e 65 77 20 6d |efine so|me new m|
|00000070| 61 63 72 6f 73 20 66 6f | 72 20 68 65 61 64 65 72 |acros fo|r header|
|00000080| 73 0a 25 20 61 6e 64 20 | 66 6f 6f 74 65 72 73 20 |s.% and |footers |
|00000090| 74 6f 6f 2e 0a 25 0a 25 | 20 4d 4a 57 20 37 20 4a |too..%.%| MJW 7 J|
|000000a0| 61 6e 20 31 39 38 37 0a | 25 0a 25 20 55 53 41 47 |an 1987.|%.% USAG|
|000000b0| 45 0a 25 0a 25 20 54 6f | 20 65 6e 61 62 6c 65 20 |E.%.% To| enable |
|000000c0| 74 68 69 73 20 75 73 65 | 20 5c 70 61 67 65 73 74 |this use| \pagest|
|000000d0| 79 6c 65 7b 66 6f 6f 74 | 65 72 73 7d 2e 0a 25 20 |yle{foot|ers}..% |
|000000e0| 54 68 69 73 20 61 6c 73 | 6f 20 6f 76 65 72 72 69 |This als|o overri|
|000000f0| 64 65 73 20 61 75 74 6f | 6d 61 74 69 63 61 6c 6c |des auto|maticall|
|00000100| 79 20 67 65 74 74 69 6e | 67 20 63 68 61 70 74 65 |y gettin|g chapte|
|00000110| 72 20 74 69 74 6c 65 73 | 20 69 6e 20 68 65 61 64 |r titles| in head|
|00000120| 65 72 73 2c 20 62 75 74 | 20 79 6f 75 0a 25 20 63 |ers, but| you.% c|
|00000130| 6f 75 6c 64 20 72 65 73 | 74 6f 72 65 20 74 68 69 |ould res|tore thi|
|00000140| 73 20 62 79 20 75 73 69 | 6e 67 20 5c 6c 65 66 74 |s by usi|ng \left|
|00000150| 6d 61 72 6b 20 61 6e 64 | 20 5c 72 69 67 68 74 6d |mark and| \rightm|
|00000160| 61 72 6b 0a 25 20 69 6e | 20 79 6f 75 72 20 6f 77 |ark.% in| your ow|
|00000170| 6e 20 68 65 61 64 65 72 | 73 20 61 6e 64 20 66 6f |n header|s and fo|
|00000180| 6f 74 65 72 73 2e 20 20 | 54 68 65 73 65 20 6d 61 |oters. |These ma|
|00000190| 63 72 6f 73 20 61 72 65 | 20 73 65 74 20 62 79 20 |cros are| set by |
|000001a0| 5c 63 68 61 70 74 65 72 | 6d 61 72 6b 20 28 61 6e |\chapter|mark (an|
|000001b0| 64 0a 25 20 70 6f 73 73 | 69 62 6c 79 20 6f 74 68 |d.% poss|ibly oth|
|000001c0| 65 72 20 74 68 69 6e 67 | 73 20 74 6f 6f 29 2e 20 |er thing|s too). |
|000001d0| 49 6e 20 6f 6e 65 2d 73 | 69 64 65 64 20 70 72 69 |In one-s|ided pri|
|000001e0| 6e 74 69 6e 67 20 61 6c | 6c 20 70 61 67 65 73 20 |nting al|l pages |
|000001f0| 61 72 65 20 72 69 67 68 | 74 20 6f 6e 65 73 2e 0a |are righ|t ones..|
|00000200| 25 0a 25 20 4f 6e 65 2d | 53 69 64 65 64 20 50 72 |%.% One-|Sided Pr|
|00000210| 69 6e 74 69 6e 67 0a 25 | 0a 25 20 5c 73 65 74 68 |inting.%|.% \seth|
|00000220| 65 61 64 65 72 7b 79 6f | 75 72 20 68 65 61 64 65 |eader{yo|ur heade|
|00000230| 72 7d 0a 25 20 5c 73 65 | 74 66 6f 6f 74 65 72 7b |r}.% \se|tfooter{|
|00000240| 79 6f 75 72 20 66 6f 6f | 74 65 72 7d 0a 25 20 5c |your foo|ter}.% \|
|00000250| 73 65 74 63 68 61 70 74 | 65 72 68 65 61 64 7b 68 |setchapt|erhead{h|
|00000260| 65 61 64 65 72 20 6f 6e | 20 66 69 72 73 74 20 70 |eader on| first p|
|00000270| 61 67 65 20 6f 66 20 61 | 20 63 68 61 70 74 65 72 |age of a| chapter|
|00000280| 7d 0a 25 20 5c 73 65 74 | 63 68 61 70 74 65 72 66 |}.% \set|chapterf|
|00000290| 6f 6f 74 7b 66 6f 6f 74 | 65 72 20 6f 6e 20 66 69 |oot{foot|er on fi|
|000002a0| 72 73 74 20 70 61 67 65 | 20 6f 66 20 61 20 63 68 |rst page| of a ch|
|000002b0| 61 70 74 65 72 7d 0a 25 | 0a 25 20 54 77 6f 2d 73 |apter}.%|.% Two-s|
|000002c0| 69 64 65 64 20 50 72 69 | 6e 74 69 6e 67 0a 25 0a |ided Pri|nting.%.|
|000002d0| 25 20 5c 73 65 74 62 6f | 74 68 68 65 61 64 65 72 |% \setbo|thheader|
|000002e0| 73 7b 74 68 65 20 6c 65 | 66 74 20 6f 6e 65 20 28 |s{the le|ft one (|
|000002f0| 65 76 65 6e 20 6e 6f 2e | 20 70 61 67 65 73 7d 7b |even no.| pages}{|
|00000300| 74 68 65 20 72 69 67 68 | 74 20 6f 6e 65 20 28 6f |the righ|t one (o|
|00000310| 64 64 29 7d 0a 25 20 5c | 73 65 74 62 6f 74 68 66 |dd)}.% \|setbothf|
|00000320| 6f 6f 74 65 72 73 7b 74 | 68 65 20 6c 65 66 74 20 |ooters{t|he left |
|00000330| 6f 6e 65 7d 7b 74 68 65 | 20 72 69 67 68 74 20 6f |one}{the| right o|
|00000340| 6e 65 7d 0a 25 20 5c 73 | 65 74 63 68 61 70 74 65 |ne}.% \s|etchapte|
|00000350| 72 68 65 61 64 7b 68 65 | 61 64 65 72 20 6f 6e 20 |rhead{he|ader on |
|00000360| 66 69 72 73 74 20 70 61 | 67 65 20 6f 66 20 61 20 |first pa|ge of a |
|00000370| 63 68 61 70 74 65 72 7d | 0a 25 20 5c 73 65 74 63 |chapter}|.% \setc|
|00000380| 68 61 70 74 65 72 66 6f | 6f 74 7b 66 6f 6f 74 65 |hapterfo|ot{foote|
|00000390| 72 20 6f 6e 20 66 69 72 | 73 74 20 70 61 67 65 20 |r on fir|st page |
|000003a0| 6f 66 20 61 20 63 68 61 | 70 74 65 72 7d 0a 25 0a |of a cha|pter}.%.|
|000003b0| 25 20 45 78 61 6d 70 6c | 65 73 0a 25 0a 25 20 54 |% Exampl|es.%.% T|
|000003c0| 6f 20 67 65 74 20 61 20 | 70 61 67 65 20 6e 75 6d |o get a |page num|
|000003d0| 62 65 72 20 75 73 65 20 | 5c 74 68 65 70 61 67 65 |ber use |\thepage|
|000003e0| 2e 20 55 73 65 20 5c 68 | 66 69 6c 20 74 6f 20 67 |. Use \h|fil to g|
|000003f0| 65 74 20 63 65 6e 74 72 | 69 6e 67 20 65 74 63 2e |et centr|ing etc.|
|00000400| 0a 25 20 45 78 61 6d 70 | 6c 65 20 5c 73 65 74 68 |.% Examp|le \seth|
|00000410| 65 61 64 65 72 7b 41 5c | 68 66 69 6c 5c 74 68 65 |eader{A\|hfil\the|
|00000420| 70 61 67 65 5c 68 66 69 | 6c 20 42 7d 0a 25 20 70 |page\hfi|l B}.% p|
|00000430| 72 6f 64 75 63 65 73 20 | 41 20 61 74 20 74 68 65 |roduces |A at the|
|00000440| 20 65 78 74 72 65 6d 65 | 20 6c 65 66 74 20 6f 66 | extreme| left of|
|00000450| 20 74 68 65 20 70 61 67 | 65 2c 20 74 68 65 20 6e | the pag|e, the n|
|00000460| 75 6d 62 65 72 20 69 6e | 20 74 68 65 20 6d 69 64 |umber in| the mid|
|00000470| 64 6c 65 0a 25 20 61 6e | 64 20 42 20 61 74 20 74 |dle.% an|d B at t|
|00000480| 68 65 20 65 78 74 72 65 | 6d 65 20 72 69 67 68 74 |he extre|me right|
|00000490| 2e 0a 25 0a 25 20 54 68 | 65 20 66 6f 6c 6c 6f 77 |..%.% Th|e follow|
|000004a0| 69 6e 67 20 70 72 6f 64 | 75 63 65 73 20 63 68 61 |ing prod|uces cha|
|000004b0| 70 74 65 72 20 74 69 74 | 6c 65 20 61 74 20 74 6f |pter tit|le at to|
|000004c0| 70 20 6c 65 66 74 2c 20 | 70 61 67 65 20 6e 75 6d |p left, |page num|
|000004d0| 62 65 72 20 74 6f 70 20 | 72 69 67 68 74 2c 0a 25 |ber top |right,.%|
|000004e0| 20 77 69 74 68 20 61 20 | 6c 69 6e 65 20 61 63 72 | with a |line acr|
|000004f0| 6f 73 73 20 74 68 65 20 | 70 61 67 65 20 75 6e 64 |oss the |page und|
|00000500| 65 72 6e 65 61 74 68 20 | 74 68 65 6d 2c 0a 25 20 |erneath |them,.% |
|00000510| 50 72 6f 6a 65 63 74 20 | 31 30 32 32 28 31 30 34 |Project |1022(104|
|00000520| 31 29 20 62 6f 74 74 6f | 6d 20 6c 65 66 74 2c 20 |1) botto|m left, |
|00000530| 54 61 73 6b 20 31 39 2e | 31 20 62 6f 74 74 6f 6d |Task 19.|1 bottom|
|00000540| 20 72 69 67 68 74 2e 0a | 25 20 45 78 63 65 70 74 | right..|% Except|
|00000550| 20 6f 6e 20 74 68 65 20 | 66 69 72 73 74 20 70 61 | on the |first pa|
|00000560| 67 65 20 6f 66 20 61 20 | 63 68 61 70 74 65 72 20 |ge of a |chapter |
|00000570| 77 68 65 6e 20 74 68 65 | 20 68 65 61 64 69 6e 67 |when the| heading|
|00000580| 20 69 73 20 65 6d 70 74 | 79 2c 20 61 6e 64 0a 25 | is empt|y, and.%|
|00000590| 20 74 68 65 20 66 6f 6f | 74 65 72 20 69 73 20 61 | the foo|ter is a|
|000005a0| 73 20 62 65 66 6f 72 65 | 2c 20 62 75 74 20 77 69 |s before|, but wi|
|000005b0| 74 68 20 74 68 65 20 70 | 61 67 65 20 6e 75 6d 62 |th the p|age numb|
|000005c0| 65 72 20 69 6e 20 74 68 | 65 20 6d 69 64 64 6c 65 |er in th|e middle|
|000005d0| 2e 0a 25 20 5c 70 61 67 | 65 73 74 79 6c 65 7b 66 |..% \pag|estyle{f|
|000005e0| 6f 6f 74 65 72 73 7d 0a | 25 20 5c 73 65 74 68 65 |ooters}.|% \sethe|
|000005f0| 61 64 65 72 7b 5c 76 62 | 6f 78 7b 5c 68 62 6f 78 |ader{\vb|ox{\hbox|
|00000600| 20 74 6f 5c 68 73 69 7a | 65 7b 5c 72 69 67 68 74 | to\hsiz|e{\right|
|00000610| 6d 61 72 6b 5c 68 66 69 | 6c 5c 74 68 65 70 61 67 |mark\hfi|l\thepag|
|00000620| 65 7d 5c 76 73 6b 69 70 | 20 32 70 74 5c 68 72 75 |e}\vskip| 2pt\hru|
|00000630| 6c 65 7d 7d 0a 25 20 5c | 73 65 74 66 6f 6f 74 65 |le}}.% \|setfoote|
|00000640| 72 7b 50 72 6f 6a 65 63 | 74 20 31 30 32 32 28 31 |r{Projec|t 1022(1|
|00000650| 30 34 31 29 5c 68 66 69 | 6c 20 54 61 73 6b 20 31 |041)\hfi|l Task 1|
|00000660| 39 2e 31 7d 0a 25 20 5c | 73 65 74 63 68 61 70 74 |9.1}.% \|setchapt|
|00000670| 65 72 66 6f 6f 74 7b 50 | 72 6f 6a 65 63 74 20 31 |erfoot{P|roject 1|
|00000680| 30 32 32 28 31 30 34 31 | 29 5c 68 66 69 6c 5c 74 |022(1041|)\hfil\t|
|00000690| 68 65 70 61 67 65 20 5c | 68 66 69 6c 20 54 61 73 |hepage \|hfil Tas|
|000006a0| 6b 20 31 39 2e 31 7d 0a | 0a 5c 6f 64 64 73 69 64 |k 19.1}.|.\oddsid|
|000006b0| 65 6d 61 72 67 69 6e 20 | 31 36 70 74 20 25 20 4d |emargin |16pt % M|
|000006c0| 4a 57 20 61 63 74 75 61 | 6c 6c 79 20 67 65 74 20 |JW actua|lly get |
|000006d0| 31 2f 32 20 69 6e 63 68 | 20 28 3d 33 32 70 74 29 |1/2 inch| (=32pt)|
|000006e0| 20 6d 61 72 67 69 6e 20 | 62 65 63 61 75 73 65 0a | margin |because.|
|000006f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000700| 20 20 20 25 20 6f 66 20 | 70 72 69 6e 74 65 72 20 | % of |printer |
|00000710| 6f 66 66 73 65 74 2e 20 | 77 61 73 20 31 70 74 0a |offset. |was 1pt.|
|00000720| 5c 65 76 65 6e 73 69 64 | 65 6d 61 72 67 69 6e 20 |\evensid|emargin |
|00000730| 31 36 70 74 20 25 20 77 | 61 73 20 31 70 74 0a 5c |16pt % w|as 1pt.\|
|00000740| 6d 61 72 67 69 6e 70 61 | 72 77 69 64 74 68 20 33 |marginpa|rwidth 3|
|00000750| 30 70 74 20 25 20 74 68 | 65 73 65 20 67 61 69 6e |0pt % th|ese gain|
|00000760| 20 35 33 70 74 20 77 69 | 64 74 68 0a 5c 74 6f 70 | 53pt wi|dth.\top|
|00000770| 6d 61 72 67 69 6e 20 35 | 70 74 20 20 20 20 20 20 |margin 5|pt |
|00000780| 25 20 67 61 69 6e 73 20 | 32 36 70 74 20 68 65 69 |% gains |26pt hei|
|00000790| 67 68 74 20 28 4d 4a 57 | 20 77 61 73 20 31 36 70 |ght (MJW| was 16p|
|000007a0| 74 29 0a 5c 68 65 61 64 | 68 65 69 67 68 74 20 31 |t).\head|height 1|
|000007b0| 34 70 74 20 20 20 20 20 | 20 25 20 67 61 69 6e 73 |4pt | % gains|
|000007c0| 20 31 31 70 74 20 68 65 | 69 67 68 74 20 28 4d 4a | 11pt he|ight (MJ|
|000007d0| 57 20 77 61 73 20 31 70 | 74 29 0a 5c 68 65 61 64 |W was 1p|t).\head|
|000007e0| 73 65 70 20 32 35 70 74 | 20 20 20 20 20 20 20 20 |sep 25pt| |
|000007f0| 20 25 20 67 61 69 6e 73 | 20 32 34 70 74 20 68 65 | % gains| 24pt he|
|00000800| 69 67 68 74 20 28 4d 4a | 57 20 77 61 73 20 31 70 |ight (MJ|W was 1p|
|00000810| 74 29 0a 25 5c 66 6f 6f | 74 68 65 69 67 68 74 20 |t).%\foo|theight |
|00000820| 31 32 20 70 74 20 20 20 | 25 20 63 61 6e 6e 6f 74 |12 pt |% cannot|
|00000830| 20 62 65 20 63 68 61 6e | 67 65 64 20 61 73 20 6e | be chan|ged as n|
|00000840| 75 6d 62 65 72 20 6d 75 | 73 74 20 66 69 74 0a 5c |umber mu|st fit.\|
|00000850| 66 6f 6f 74 73 6b 69 70 | 20 32 34 70 74 20 20 20 |footskip| 24pt |
|00000860| 20 20 20 20 25 20 67 61 | 69 6e 73 20 36 70 74 20 | % ga|ins 6pt |
|00000870| 68 65 69 67 68 74 0a 5c | 74 65 78 74 68 65 69 67 |height.\|textheig|
|00000880| 68 74 20 25 20 35 32 38 | 20 2b 20 32 36 20 2b 20 |ht % 528| + 26 + |
|00000890| 31 31 20 2b 20 32 34 20 | 2b 20 36 20 2b 20 35 35 |11 + 24 |+ 6 + 55|
|000008a0| 20 66 6f 72 20 6c 75 63 | 6b 20 2d 31 36 20 2b 33 | for luc|k -16 +3|
|000008b0| 32 20 28 68 65 61 64 73 | 3a 20 2d 31 30 20 2d 31 |2 (heads|: -10 -1|
|000008c0| 35 29 0a 25 20 20 20 20 | 20 20 20 20 20 20 20 36 |5).% | 6|
|000008d0| 35 30 70 74 0a 25 20 20 | 20 20 20 20 20 20 20 20 |50pt.% | |
|000008e0| 20 20 36 36 36 70 74 0a | 09 20 20 20 20 36 34 31 | 666pt.|. 641|
|000008f0| 70 74 0a 5c 74 65 78 74 | 77 69 64 74 68 20 25 20 |pt.\text|width % |
|00000900| 33 36 30 20 2b 20 35 33 | 20 2b 20 34 37 20 66 6f |360 + 53| + 47 fo|
|00000910| 72 20 6c 75 63 6b 20 2d | 31 35 20 2b 38 0a 20 20 |r luck -|15 +8. |
|00000920| 20 20 20 20 20 20 20 20 | 20 34 35 33 70 74 0a 25 | | 453pt.%|
|00000930| 5c 70 61 67 65 73 74 79 | 6c 65 7b 6d 79 68 65 61 |\pagesty|le{myhea|
|00000940| 64 69 6e 67 73 7d 0a 25 | 5c 6d 61 72 6b 62 6f 74 |dings}.%|\markbot|
|00000950| 68 7b 4c 45 46 54 7d 7b | 52 49 47 48 54 7d 0a 25 |h{LEFT}{|RIGHT}.%|
|00000960| 6c 65 66 74 20 3d 20 65 | 76 65 6e 2c 20 72 69 67 |left = e|ven, rig|
|00000970| 68 74 20 3d 20 6f 64 64 | 20 66 6f 72 20 74 77 6f |ht = odd| for two|
|00000980| 2d 73 69 64 65 64 0a 25 | 20 65 76 65 72 79 74 68 |-sided.%| everyth|
|00000990| 69 6e 67 20 69 73 20 72 | 69 67 68 74 20 66 6f 72 |ing is r|ight for|
|000009a0| 20 6f 6e 65 2d 73 69 64 | 65 64 0a 5c 64 65 66 5c | one-sid|ed.\def\|
|000009b0| 65 76 65 6e 68 65 61 64 | 6c 69 6e 65 7b 7d 5c 64 |evenhead|line{}\d|
|000009c0| 65 66 5c 6f 64 64 68 65 | 61 64 6c 69 6e 65 7b 7d |ef\oddhe|adline{}|
|000009d0| 0a 5c 64 65 66 5c 65 76 | 65 6e 66 6f 6f 74 6c 69 |.\def\ev|enfootli|
|000009e0| 6e 65 7b 7d 5c 64 65 66 | 5c 6f 64 64 66 6f 6f 74 |ne{}\def|\oddfoot|
|000009f0| 6c 69 6e 65 7b 7d 0a 0a | 25 20 55 73 65 20 74 68 |line{}..|% Use th|
|00000a00| 65 73 65 20 74 6f 20 73 | 65 74 20 68 65 61 64 65 |ese to s|et heade|
|00000a10| 72 73 20 61 6e 64 20 66 | 6f 6f 74 65 72 73 20 66 |rs and f|ooters f|
|00000a20| 6f 72 20 74 77 6f 2d 73 | 69 64 65 64 20 70 72 69 |or two-s|ided pri|
|00000a30| 6e 74 69 6e 67 2e 0a 5c | 64 65 66 5c 73 65 74 62 |nting..\|def\setb|
|00000a40| 6f 74 68 68 65 61 64 65 | 72 73 23 31 23 32 7b 5c |othheade|rs#1#2{\|
|00000a50| 64 65 66 5c 65 76 65 6e | 68 65 61 64 6c 69 6e 65 |def\even|headline|
|00000a60| 7b 23 31 7d 5c 64 65 66 | 5c 6f 64 64 68 65 61 64 |{#1}\def|\oddhead|
|00000a70| 6c 69 6e 65 7b 23 32 7d | 7d 0a 5c 64 65 66 5c 73 |line{#2}|}.\def\s|
|00000a80| 65 74 62 6f 74 68 66 6f | 6f 74 65 72 73 23 31 23 |etbothfo|oters#1#|
|00000a90| 32 7b 5c 64 65 66 5c 65 | 76 65 6e 66 6f 6f 74 6c |2{\def\e|venfootl|
|00000aa0| 69 6e 65 7b 23 31 7d 5c | 64 65 66 5c 6f 64 64 66 |ine{#1}\|def\oddf|
|00000ab0| 6f 6f 74 6c 69 6e 65 7b | 23 32 7d 7d 0a 0a 25 20 |ootline{|#2}}..% |
|00000ac0| 55 73 65 20 74 68 65 73 | 65 20 66 6f 72 20 6f 6e |Use thes|e for on|
|00000ad0| 65 2d 73 69 64 65 64 20 | 70 72 69 6e 74 69 6e 67 |e-sided |printing|
|00000ae0| 2e 0a 5c 64 65 66 5c 73 | 65 74 68 65 61 64 65 72 |..\def\s|etheader|
|00000af0| 23 31 7b 5c 64 65 66 5c | 6f 64 64 68 65 61 64 6c |#1{\def\|oddheadl|
|00000b00| 69 6e 65 7b 23 31 7d 7d | 5c 64 65 66 5c 73 65 74 |ine{#1}}|\def\set|
|00000b10| 66 6f 6f 74 65 72 23 31 | 7b 5c 64 65 66 5c 6f 64 |footer#1|{\def\od|
|00000b20| 64 66 6f 6f 74 6c 69 6e | 65 7b 23 31 7d 7d 0a 0a |dfootlin|e{#1}}..|
|00000b30| 25 20 54 6f 20 73 65 74 | 20 66 6f 6f 74 65 72 20 |% To set| footer |
|00000b40| 6f 6e 20 66 69 72 73 74 | 20 70 61 67 65 20 6f 66 |on first| page of|
|00000b50| 20 61 20 63 68 61 70 74 | 65 72 0a 5c 64 65 66 5c | a chapt|er.\def\|
|00000b60| 73 65 74 63 68 61 70 74 | 65 72 66 6f 6f 74 23 31 |setchapt|erfoot#1|
|00000b70| 7b 5c 64 65 66 5c 63 68 | 61 70 74 65 72 66 6f 6f |{\def\ch|apterfoo|
|00000b80| 74 7b 23 31 7d 7d 0a 5c | 64 65 66 5c 73 65 74 63 |t{#1}}.\|def\setc|
|00000b90| 68 61 70 74 65 72 68 65 | 61 64 23 31 7b 5c 64 65 |hapterhe|ad#1{\de|
|00000ba0| 66 5c 63 68 61 70 74 65 | 72 68 65 61 64 7b 23 31 |f\chapte|rhead{#1|
|00000bb0| 7d 7d 0a 0a 25 20 49 6e | 69 74 69 61 6c 69 73 65 |}}..% In|itialise|
|00000bc0| 20 66 6f 6f 74 65 72 73 | 20 74 6f 20 74 68 65 20 | footers| to the |
|00000bd0| 70 61 67 65 20 6e 75 6d | 62 65 72 2e 0a 5c 73 65 |page num|ber..\se|
|00000be0| 74 62 6f 74 68 66 6f 6f | 74 65 72 73 7b 5c 68 66 |tbothfoo|ters{\hf|
|00000bf0| 69 6c 5c 74 68 65 70 61 | 67 65 5c 68 66 69 6c 7d |il\thepa|ge\hfil}|
|00000c00| 7b 5c 68 66 69 6c 5c 74 | 68 65 70 61 67 65 5c 68 |{\hfil\t|hepage\h|
|00000c10| 66 69 6c 7d 0a 0a 25 20 | 49 6e 69 74 69 61 6c 69 |fil}..% |Initiali|
|00000c20| 73 65 20 63 68 61 70 74 | 65 72 20 66 6f 6f 74 65 |se chapt|er foote|
|00000c30| 72 20 74 6f 20 70 61 67 | 65 20 6e 75 6d 62 65 72 |r to pag|e number|
|00000c40| 2c 20 68 65 61 64 65 72 | 20 65 6d 70 74 79 2e 0a |, header| empty..|
|00000c50| 5c 73 65 74 63 68 61 70 | 74 65 72 66 6f 6f 74 7b |\setchap|terfoot{|
|00000c60| 5c 68 66 69 6c 5c 74 68 | 65 70 61 67 65 20 5c 68 |\hfil\th|epage \h|
|00000c70| 66 69 6c 7d 0a 5c 73 65 | 74 63 68 61 70 74 65 72 |fil}.\se|tchapter|
|00000c80| 68 65 61 64 7b 7d 0a 0a | 25 20 4d 79 20 76 65 72 |head{}..|% My ver|
|00000c90| 73 69 6f 6e 20 6f 66 20 | 5c 63 68 61 70 74 65 72 |sion of |\chapter|
|00000ca0| 0a 5c 64 65 66 5c 63 68 | 61 70 74 65 72 7b 5c 63 |.\def\ch|apter{\c|
|00000cb0| 6c 65 61 72 70 61 67 65 | 20 20 20 20 20 20 25 20 |learpage| % |
|00000cc0| 53 74 61 72 74 73 20 6e | 65 77 20 70 61 67 65 2e |Starts n|ew page.|
|00000cd0| 0a 25 20 20 5c 69 66 40 | 74 77 6f 73 69 64 65 20 |.% \if@|twoside |
|00000ce0| 5c 63 6c 65 61 72 64 6f | 75 62 6c 65 70 61 67 65 |\cleardo|ublepage|
|00000cf0| 0a 25 20 20 5c 65 6c 73 | 65 5c 63 6c 65 61 72 70 |.% \els|e\clearp|
|00000d00| 61 67 65 5c 66 69 20 20 | 20 20 20 20 25 20 53 74 |age\fi | % St|
|00000d10| 61 72 74 73 20 6e 65 77 | 20 70 61 67 65 2e 0a 20 |arts new| page.. |
|00000d20| 20 20 5c 74 68 69 73 70 | 61 67 65 73 74 79 6c 65 | \thisp|agestyle|
|00000d30| 7b 63 68 61 70 74 65 72 | 70 61 67 65 7d 20 20 20 |{chapter|page} |
|00000d40| 20 20 25 20 50 61 67 65 | 20 73 74 79 6c 65 20 6f | % Page| style o|
|00000d50| 66 20 63 68 61 70 74 65 | 72 20 70 61 67 65 20 69 |f chapte|r page i|
|00000d60| 73 20 27 63 68 61 70 74 | 65 72 70 61 67 65 27 0a |s 'chapt|erpage'.|
|00000d70| 20 20 20 5c 67 6c 6f 62 | 61 6c 5c 40 74 6f 70 6e | \glob|al\@topn|
|00000d80| 75 6d 5c 7a 40 20 20 20 | 20 20 20 20 20 25 20 50 |um\z@ | % P|
|00000d90| 72 65 76 65 6e 74 73 20 | 66 69 67 75 72 65 73 20 |revents |figures |
|00000da0| 66 72 6f 6d 20 67 6f 69 | 6e 67 20 61 74 20 74 6f |from goi|ng at to|
|00000db0| 70 20 6f 66 20 70 61 67 | 65 2e 0a 20 20 20 5c 40 |p of pag|e.. \@|
|00000dc0| 61 66 74 65 72 69 6e 64 | 65 6e 74 66 61 6c 73 65 |afterind|entfalse|
|00000dd0| 20 20 20 20 20 20 20 20 | 25 20 53 75 70 70 72 65 | |% Suppre|
|00000de0| 73 73 65 73 20 69 6e 64 | 65 6e 74 20 69 6e 20 66 |sses ind|ent in f|
|00000df0| 69 72 73 74 20 70 61 72 | 61 67 72 61 70 68 2e 20 |irst par|agraph. |
|00000e00| 20 43 68 61 6e 67 65 0a | 20 20 20 5c 73 65 63 64 | Change.| \secd|
|00000e10| 65 66 5c 40 63 68 61 70 | 74 65 72 5c 40 73 63 68 |ef\@chap|ter\@sch|
|00000e20| 61 70 74 65 72 7d 20 20 | 20 25 20 74 6f 20 5c 40 |apter} | % to \@|
|00000e30| 61 66 74 65 72 69 6e 64 | 65 6e 74 74 72 75 65 20 |afterind|enttrue |
|00000e40| 74 6f 20 68 61 76 65 20 | 69 6e 64 65 6e 74 2e 0a |to have |indent..|
|00000e50| 20 20 20 0a 25 20 53 74 | 79 6c 65 20 66 6f 72 20 | .% St|yle for |
|00000e60| 66 69 72 73 74 20 70 61 | 67 65 20 6f 66 20 61 20 |first pa|ge of a |
|00000e70| 63 68 61 70 74 65 72 0a | 5c 64 65 66 5c 70 73 40 |chapter.|\def\ps@|
|00000e80| 63 68 61 70 74 65 72 70 | 61 67 65 7b 5c 6c 65 74 |chapterp|age{\let|
|00000e90| 5c 40 6d 6b 62 6f 74 68 | 5c 6d 61 72 6b 62 6f 74 |\@mkboth|\markbot|
|00000ea0| 68 0a 5c 64 65 66 5c 40 | 65 76 65 6e 68 65 61 64 |h.\def\@|evenhead|
|00000eb0| 7b 5c 63 68 61 70 74 65 | 72 68 65 61 64 7d 5c 64 |{\chapte|rhead}\d|
|00000ec0| 65 66 5c 40 6f 64 64 68 | 65 61 64 7b 5c 63 68 61 |ef\@oddh|ead{\cha|
|00000ed0| 70 74 65 72 68 65 61 64 | 7d 0a 5c 64 65 66 5c 40 |pterhead|}.\def\@|
|00000ee0| 65 76 65 6e 66 6f 6f 74 | 7b 5c 63 68 61 70 74 65 |evenfoot|{\chapte|
|00000ef0| 72 66 6f 6f 74 7d 5c 64 | 65 66 5c 40 6f 64 64 66 |rfoot}\d|ef\@oddf|
|00000f00| 6f 6f 74 7b 5c 63 68 61 | 70 74 65 72 66 6f 6f 74 |oot{\cha|pterfoot|
|00000f10| 7d 7d 0a 0a 25 20 53 74 | 79 6c 65 20 66 6f 72 20 |}}..% St|yle for |
|00000f20| 68 65 61 64 65 72 73 20 | 41 4e 44 20 66 6f 6f 74 |headers |AND foot|
|00000f30| 65 72 73 2e 0a 5c 69 66 | 40 74 77 6f 73 69 64 65 |ers..\if|@twoside|
|00000f40| 20 20 20 20 20 20 20 20 | 20 25 20 49 66 20 74 77 | | % If tw|
|00000f50| 6f 2d 73 69 64 65 64 20 | 70 72 69 6e 74 69 6e 67 |o-sided |printing|
|00000f60| 2e 0a 5c 64 65 66 5c 70 | 73 40 66 6f 6f 74 65 72 |..\def\p|s@footer|
|00000f70| 73 7b 5c 6c 65 74 5c 40 | 6d 6b 62 6f 74 68 5c 6d |s{\let\@|mkboth\m|
|00000f80| 61 72 6b 62 6f 74 68 0a | 5c 64 65 66 5c 40 65 76 |arkboth.|\def\@ev|
|00000f90| 65 6e 68 65 61 64 7b 5c | 65 76 65 6e 68 65 61 64 |enhead{\|evenhead|
|00000fa0| 6c 69 6e 65 7d 5c 64 65 | 66 5c 40 6f 64 64 68 65 |line}\de|f\@oddhe|
|00000fb0| 61 64 7b 5c 6f 64 64 68 | 65 61 64 6c 69 6e 65 7d |ad{\oddh|eadline}|
|00000fc0| 0a 5c 64 65 66 5c 40 65 | 76 65 6e 66 6f 6f 74 7b |.\def\@e|venfoot{|
|00000fd0| 5c 65 76 65 6e 66 6f 6f | 74 6c 69 6e 65 7d 5c 64 |\evenfoo|tline}\d|
|00000fe0| 65 66 5c 40 6f 64 64 66 | 6f 6f 74 7b 5c 6f 64 64 |ef\@oddf|oot{\odd|
|00000ff0| 66 6f 6f 74 6c 69 6e 65 | 7d 0a 25 20 43 68 61 70 |footline|}.% Chap|
|00001000| 74 65 72 20 73 74 75 66 | 66 0a 5c 64 65 66 5c 63 |ter stuf|f.\def\c|
|00001010| 68 61 70 74 65 72 6d 61 | 72 6b 23 23 31 7b 5c 6d |hapterma|rk##1{\m|
|00001020| 61 72 6b 62 6f 74 68 7b | 5c 75 70 70 65 72 63 61 |arkboth{|\upperca|
|00001030| 73 65 7b 5c 69 66 6e 75 | 6d 20 5c 63 40 73 65 63 |se{\ifnu|m \c@sec|
|00001040| 6e 75 6d 64 65 70 74 68 | 20 3e 5c 6d 40 6e 65 0a |numdepth| >\m@ne.|
|00001050| 20 5c 40 63 68 61 70 61 | 70 70 5c 20 5c 74 68 65 | \@chapa|pp\ \the|
|00001060| 63 68 61 70 74 65 72 2e | 20 5c 20 5c 66 69 20 23 |chapter.| \ \fi #|
|00001070| 23 31 7d 7d 7b 7d 7d 0a | 5c 64 65 66 5c 73 65 63 |#1}}{}}.|\def\sec|
|00001080| 74 69 6f 6e 6d 61 72 6b | 23 23 31 7b 5c 6d 61 72 |tionmark|##1{\mar|
|00001090| 6b 72 69 67 68 74 7b 5c | 75 70 70 65 72 63 61 73 |kright{\|uppercas|
|000010a0| 65 7b 5c 69 66 6e 75 6d | 20 5c 63 40 73 65 63 6e |e{\ifnum| \c@secn|
|000010b0| 75 6d 64 65 70 74 68 20 | 3e 5c 7a 40 0a 20 20 20 |umdepth |>\z@. |
|000010c0| 5c 74 68 65 73 65 63 74 | 69 6f 6e 2e 20 5c 20 5c |\thesect|ion. \ \|
|000010d0| 66 69 20 23 23 31 7d 7d | 7d 0a 7d 0a 5c 65 6c 73 |fi ##1}}|}.}.\els|
|000010e0| 65 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |e | |
|000010f0| 25 20 49 66 20 6f 6e 65 | 2d 73 69 64 65 64 20 70 |% If one|-sided p|
|00001100| 72 69 6e 74 69 6e 67 2e | 0a 5c 64 65 66 5c 70 73 |rinting.|.\def\ps|
|00001110| 40 66 6f 6f 74 65 72 73 | 7b 5c 6c 65 74 5c 40 6d |@footers|{\let\@m|
|00001120| 6b 62 6f 74 68 5c 6d 61 | 72 6b 62 6f 74 68 0a 5c |kboth\ma|rkboth.\|
|00001130| 64 65 66 5c 40 65 76 65 | 6e 68 65 61 64 7b 5c 65 |def\@eve|nhead{\e|
|00001140| 76 65 6e 68 65 61 64 6c | 69 6e 65 7d 5c 64 65 66 |venheadl|ine}\def|
|00001150| 5c 40 6f 64 64 68 65 61 | 64 7b 5c 6f 64 64 68 65 |\@oddhea|d{\oddhe|
|00001160| 61 64 6c 69 6e 65 7d 0a | 5c 64 65 66 5c 40 65 76 |adline}.|\def\@ev|
|00001170| 65 6e 66 6f 6f 74 7b 5c | 65 76 65 6e 66 6f 6f 74 |enfoot{\|evenfoot|
|00001180| 6c 69 6e 65 7d 5c 64 65 | 66 5c 40 6f 64 64 66 6f |line}\de|f\@oddfo|
|00001190| 6f 74 7b 5c 6f 64 64 66 | 6f 6f 74 6c 69 6e 65 7d |ot{\oddf|ootline}|
|000011a0| 0a 25 20 43 68 61 70 74 | 65 72 20 73 74 75 66 66 |.% Chapt|er stuff|
|000011b0| 0a 5c 64 65 66 5c 63 68 | 61 70 74 65 72 6d 61 72 |.\def\ch|aptermar|
|000011c0| 6b 23 23 31 7b 5c 6d 61 | 72 6b 72 69 67 68 74 7b |k##1{\ma|rkright{|
|000011d0| 5c 75 70 70 65 72 63 61 | 73 65 7b 5c 69 66 6e 75 |\upperca|se{\ifnu|
|000011e0| 6d 20 5c 63 40 73 65 63 | 6e 75 6d 64 65 70 74 68 |m \c@sec|numdepth|
|000011f0| 20 3e 5c 6d 40 6e 65 0a | 20 5c 40 63 68 61 70 61 | >\m@ne.| \@chapa|
|00001200| 70 70 5c 20 5c 74 68 65 | 63 68 61 70 74 65 72 2e |pp\ \the|chapter.|
|00001210| 20 5c 20 5c 66 69 20 23 | 23 31 7d 7d 7d 0a 7d 0a | \ \fi #|#1}}}.}.|
|00001220| 5c 66 69 0a 0a 25 20 44 | 65 62 75 67 67 69 6e 67 |\fi..% D|ebugging|
|00001230| 20 73 74 75 66 66 2e 0a | 25 5c 6c 65 74 5c 6d 61 | stuff..|%\let\ma|
|00001240| 72 6b 62 6f 74 68 6f 72 | 69 67 5c 6d 61 72 6b 62 |rkbothor|ig\markb|
|00001250| 6f 74 68 0a 25 5c 64 65 | 66 5c 6d 61 72 6b 62 6f |oth.%\de|f\markbo|
|00001260| 74 68 23 31 23 32 7b 5c | 74 79 70 65 6f 75 74 7b |th#1#2{\|typeout{|
|00001270| 2d 2d 2d 4d 61 72 6b 62 | 6f 74 68 3a 20 5c 23 31 |---Markb|oth: \#1|
|00001280| 3d 23 31 2c 20 5c 23 32 | 3d 23 32 5c 6e 65 77 6c |=#1, \#2|=#2\newl|
|00001290| 69 6e 65 7d 0a 25 20 20 | 5c 6d 61 72 6b 62 6f 74 |ine}.% |\markbot|
|000012a0| 68 6f 72 69 67 20 7b 23 | 31 7d 20 7b 23 32 7d 7d |horig {#|1} {#2}}|
|000012b0| 0a 25 20 20 0a 25 5c 6c | 65 74 5c 6d 61 72 6b 72 |.% .%\l|et\markr|
|000012c0| 69 67 68 74 6f 72 69 67 | 5c 6d 61 72 6b 72 69 67 |ightorig|\markrig|
|000012d0| 68 74 0a 25 5c 64 65 66 | 5c 6d 61 72 6b 72 69 67 |ht.%\def|\markrig|
|000012e0| 68 74 23 31 7b 5c 74 79 | 70 65 6f 75 74 7b 2d 2d |ht#1{\ty|peout{--|
|000012f0| 2d 4d 61 72 6b 72 69 67 | 68 74 3a 20 5c 23 31 3d |-Markrig|ht: \#1=|
|00001300| 23 31 5c 6e 65 77 6c 69 | 6e 65 7d 0a 25 20 20 5c |#1\newli|ne}.% \|
|00001310| 6d 61 72 6b 72 69 67 68 | 74 6f 72 69 67 20 7b 23 |markrigh|torig {#|
|00001320| 31 7d 7d 0a | |1}}. | |
+--------+-------------------------+-------------------------+--------+--------+