home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2990 < prev    next >
SHell self-extracting ARchive  |  1991-03-06  |  12.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: SHell self-extracting ARchive (archive/shar).

You can browse this item here: 2990

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert SHell self-extracting ARchive (archive/shar) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news or mail, ASCII text default
100% TrID E-Mail message (Var. 2) default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/329 Shell Archive Format default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/rfc822 default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 46 72 6f 6d 3a 20 64 66 | 6b 40 64 75 6b 65 2e 63 |From: df|k@duke.c|
|00000010| 73 2e 64 75 6b 65 2e 65 | 64 75 20 28 44 61 76 69 |s.duke.e|du (Davi|
|00000020| 64 20 46 2e 20 4b 6f 74 | 7a 29 0a 4e 65 77 73 67 |d F. Kot|z).Newsg|
|00000030| 72 6f 75 70 73 3a 20 63 | 6f 6d 70 2e 74 65 78 74 |roups: c|omp.text|
|00000040| 2e 74 65 78 2c 61 6c 74 | 2e 73 6f 75 72 63 65 73 |.tex,alt|.sources|
|00000050| 0a 53 75 62 6a 65 63 74 | 3a 20 47 6e 75 70 6c 6f |.Subject|: Gnuplo|
|00000060| 74 20 61 6e 64 20 4c 61 | 54 65 58 20 75 73 65 72 |t and La|TeX user|
|00000070| 73 0a 4d 65 73 73 61 67 | 65 2d 49 44 3a 20 3c 31 |s.Messag|e-ID: <1|
|00000080| 39 39 31 4d 61 72 36 2e | 30 30 33 34 32 31 2e 31 |991Mar6.|003421.1|
|00000090| 38 38 36 40 73 6f 66 74 | 77 61 72 65 2e 6f 72 67 |886@soft|ware.org|
|000000a0| 3e 0a 44 61 74 65 3a 20 | 34 20 4d 61 72 20 39 31 |>.Date: |4 Mar 91|
|000000b0| 20 31 39 3a 31 31 3a 33 | 30 20 47 4d 54 0a 0a 48 | 19:11:3|0 GMT..H|
|000000c0| 65 72 65 20 61 72 65 20 | 73 6f 6d 65 20 68 61 6e |ere are |some han|
|000000d0| 64 79 20 74 68 69 6e 67 | 73 20 66 6f 72 20 67 6e |dy thing|s for gn|
|000000e0| 75 70 6c 6f 74 20 75 73 | 65 72 73 20 74 68 61 74 |uplot us|ers that|
|000000f0| 20 75 73 65 20 74 68 65 | 20 6c 61 74 65 78 20 64 | use the| latex d|
|00000100| 72 69 76 65 72 2e 0a 54 | 68 65 73 65 20 61 72 65 |river..T|hese are|
|00000110| 20 61 6c 73 6f 20 61 76 | 61 69 6c 61 62 6c 65 20 | also av|ailable |
|00000120| 66 6f 72 20 66 74 70 20 | 66 72 6f 6d 20 63 73 2e |for ftp |from cs.|
|00000130| 64 75 6b 65 2e 65 64 75 | 20 61 73 0a 09 20 20 20 |duke.edu| as.. |
|00000140| 64 69 73 74 2f 73 6f 75 | 72 63 65 73 2f 67 6e 75 |dist/sou|rces/gnu|
|00000150| 70 6c 6f 74 2f 67 6e 75 | 70 6c 6f 74 2d 6c 61 74 |plot/gnu|plot-lat|
|00000160| 65 78 2e 73 68 61 72 20 | 0a 54 68 69 73 20 69 73 |ex.shar |.This is|
|00000170| 20 61 6e 20 75 70 64 61 | 74 65 20 74 6f 20 61 6e | an upda|te to an|
|00000180| 20 6f 6c 64 65 72 20 76 | 65 72 73 69 6f 6e 20 6f | older v|ersion o|
|00000190| 66 20 74 68 69 73 20 73 | 74 75 66 66 20 66 72 6f |f this s|tuff fro|
|000001a0| 6d 20 6c 61 73 74 20 79 | 65 61 72 2e 0a 0a 54 68 |m last y|ear...Th|
|000001b0| 65 73 65 20 61 72 65 20 | 73 6f 6d 65 20 6d 61 6b |ese are |some mak|
|000001c0| 65 66 69 6c 65 73 2c 20 | 73 68 65 6c 6c 20 73 63 |efiles, |shell sc|
|000001d0| 72 69 70 74 73 2c 20 61 | 6e 64 20 6c 61 74 65 78 |ripts, a|nd latex|
|000001e0| 20 63 6f 64 65 20 74 68 | 61 74 20 49 20 75 73 65 | code th|at I use|
|000001f0| 0a 77 69 74 68 20 67 6e | 75 70 6c 6f 74 20 74 6f |.with gn|uplot to|
|00000200| 20 6d 61 6b 65 20 6c 61 | 74 65 78 20 64 6f 63 75 | make la|tex docu|
|00000210| 6d 65 6e 74 73 20 77 69 | 74 68 20 70 6c 6f 74 73 |ments wi|th plots|
|00000220| 2e 20 59 6f 75 20 6d 61 | 79 20 74 61 69 6c 6f 72 |. You ma|y tailor|
|00000230| 20 74 6f 0a 73 75 69 74 | 20 79 6f 75 72 73 65 6c | to.suit| yoursel|
|00000240| 66 2e 20 54 68 65 73 65 | 20 61 72 65 20 76 65 72 |f. These| are ver|
|00000250| 79 20 73 68 6f 72 74 2c | 20 72 65 61 6c 6c 79 2e |y short,| really.|
|00000260| 20 49 20 61 6c 73 6f 20 | 64 6f 20 6e 6f 74 20 70 | I also |do not p|
|00000270| 6c 61 6e 20 74 6f 0a 72 | 65 61 6c 6c 79 20 73 75 |lan to.r|eally su|
|00000280| 70 70 6f 72 74 20 74 68 | 65 6d 2e 20 49 20 6a 75 |pport th|em. I ju|
|00000290| 73 74 20 66 6f 75 6e 64 | 20 74 68 65 6d 20 68 61 |st found| them ha|
|000002a0| 6e 64 79 2e 20 0a 0a 44 | 75 72 69 6e 67 20 72 65 |ndy. ..D|uring re|
|000002b0| 76 69 73 69 6f 6e 20 6f | 66 20 74 68 65 20 64 6f |vision o|f the do|
|000002c0| 63 75 6d 65 6e 74 2c 20 | 77 68 65 6e 20 49 20 61 |cument, |when I a|
|000002d0| 6d 20 63 6f 6e 63 65 6e | 74 72 61 74 69 6e 67 20 |m concen|trating |
|000002e0| 6f 6e 20 74 68 65 20 74 | 65 78 74 2c 0a 49 20 6f |on the t|ext,.I o|
|000002f0| 66 74 65 6e 20 74 69 72 | 65 20 6f 66 20 77 61 69 |ften tir|e of wai|
|00000300| 74 69 6e 67 20 66 6f 72 | 20 6c 61 74 65 78 20 28 |ting for| latex (|
|00000310| 61 6e 64 20 74 68 65 20 | 70 72 69 6e 74 65 72 2c |and the |printer,|
|00000320| 20 6f 72 20 70 72 65 76 | 69 65 77 65 72 29 20 74 | or prev|iewer) t|
|00000330| 6f 0a 70 72 6f 63 65 73 | 73 20 70 6c 6f 74 73 20 |o.proces|s plots |
|00000340| 74 68 61 74 20 49 20 61 | 6d 20 67 6f 69 6e 67 20 |that I a|m going |
|00000350| 74 6f 20 69 67 6e 6f 72 | 65 20 61 6e 79 77 61 79 |to ignor|e anyway|
|00000360| 2e 20 4f 72 2c 20 77 68 | 65 6e 20 6c 61 74 65 78 |. Or, wh|en latex|
|00000370| 0a 72 65 71 75 69 72 65 | 73 20 6d 75 6c 74 69 70 |.require|s multip|
|00000380| 6c 65 20 70 61 73 73 65 | 73 20 74 6f 20 67 65 74 |le passe|s to get|
|00000390| 20 63 72 6f 73 73 2d 72 | 65 66 65 72 65 6e 63 65 | cross-r|eference|
|000003a0| 73 20 72 69 67 68 74 2c | 20 49 20 68 61 74 65 0a |s right,| I hate.|
|000003b0| 70 72 6f 63 65 73 73 69 | 6e 67 20 61 6c 6c 20 74 |processi|ng all t|
|000003c0| 68 6f 73 65 20 70 6c 6f | 74 73 20 6f 76 65 72 20 |hose plo|ts over |
|000003d0| 61 6e 64 20 6f 76 65 72 | 2e 20 54 68 65 73 65 20 |and over|. These |
|000003e0| 6d 61 63 72 6f 73 20 28 | 31 29 20 6d 61 6b 65 20 |macros (|1) make |
|000003f0| 69 74 0a 65 61 73 69 65 | 72 20 74 6f 20 69 6e 63 |it.easie|r to inc|
|00000400| 6c 75 64 65 20 70 6c 6f | 74 73 20 61 6e 64 20 28 |lude plo|ts and (|
|00000410| 32 29 20 6d 61 6b 65 20 | 74 68 65 20 69 6e 69 74 |2) make |the init|
|00000420| 69 61 6c 20 6f 72 20 64 | 72 61 66 74 20 70 61 73 |ial or d|raft pas|
|00000430| 73 65 73 20 6f 66 0a 6c | 61 74 65 78 20 4d 55 43 |ses of.l|atex MUC|
|00000440| 48 20 66 61 73 74 65 72 | 2c 20 62 79 20 69 67 6e |H faster|, by ign|
|00000450| 6f 72 69 6e 67 20 74 68 | 65 20 70 6c 6f 74 20 63 |oring th|e plot c|
|00000460| 6f 6e 74 65 6e 74 73 2e | 0a 0a 23 21 20 2f 62 69 |ontents.|..#! /bi|
|00000470| 6e 2f 73 68 0a 23 20 54 | 68 69 73 20 69 73 20 61 |n/sh.# T|his is a|
|00000480| 20 73 68 65 6c 6c 20 61 | 72 63 68 69 76 65 2c 20 | shell a|rchive, |
|00000490| 6d 65 61 6e 69 6e 67 3a | 0a 23 20 31 2e 20 52 65 |meaning:|.# 1. Re|
|000004a0| 6d 6f 76 65 20 65 76 65 | 72 79 74 68 69 6e 67 20 |move eve|rything |
|000004b0| 61 62 6f 76 65 20 74 68 | 65 20 23 21 20 2f 62 69 |above th|e #! /bi|
|000004c0| 6e 2f 73 68 20 6c 69 6e | 65 2e 0a 23 20 32 2e 20 |n/sh lin|e..# 2. |
|000004d0| 53 61 76 65 20 74 68 65 | 20 72 65 73 75 6c 74 69 |Save the| resulti|
|000004e0| 6e 67 20 74 65 78 74 20 | 69 6e 20 61 20 66 69 6c |ng text |in a fil|
|000004f0| 65 2e 0a 23 20 33 2e 20 | 45 78 65 63 75 74 65 20 |e..# 3. |Execute |
|00000500| 74 68 65 20 66 69 6c 65 | 20 77 69 74 68 20 2f 62 |the file| with /b|
|00000510| 69 6e 2f 73 68 20 28 6e | 6f 74 20 63 73 68 29 20 |in/sh (n|ot csh) |
|00000520| 74 6f 20 63 72 65 61 74 | 65 20 74 68 65 20 66 69 |to creat|e the fi|
|00000530| 6c 65 73 3a 0a 23 09 52 | 45 41 44 4d 45 0a 23 09 |les:.#.R|EADME.#.|
|00000540| 66 69 67 73 0a 23 09 70 | 6c 6f 74 63 6f 6d 6d 61 |figs.#.p|lotcomma|
|00000550| 6e 64 2e 74 65 78 0a 23 | 09 70 6c 6f 74 73 6b 65 |nd.tex.#|.plotske|
|00000560| 6c 0a 23 20 54 68 69 73 | 20 61 72 63 68 69 76 65 |l.# This| archive|
|00000570| 20 63 72 65 61 74 65 64 | 3a 20 4d 6f 6e 20 4d 61 | created|: Mon Ma|
|00000580| 72 20 20 34 20 31 34 3a | 30 36 3a 31 39 20 31 39 |r 4 14:|06:19 19|
|00000590| 39 31 0a 23 20 42 79 3a | 09 44 61 76 69 64 20 46 |91.# By:|.David F|
|000005a0| 2e 20 4b 6f 74 7a 20 28 | 64 66 6b 40 63 73 2e 64 |. Kotz (|dfk@cs.d|
|000005b0| 75 6b 65 2e 65 64 75 29 | 0a 23 20 09 44 75 6b 65 |uke.edu)|.# .Duke|
|000005c0| 20 55 6e 69 76 65 72 73 | 69 74 79 20 43 53 20 44 | Univers|ity CS D|
|000005d0| 65 70 74 2e 0a 65 78 70 | 6f 72 74 20 50 41 54 48 |ept..exp|ort PATH|
|000005e0| 3b 20 50 41 54 48 3d 2f | 62 69 6e 3a 24 50 41 54 |; PATH=/|bin:$PAT|
|000005f0| 48 0a 69 66 20 74 65 73 | 74 20 2d 66 20 27 52 45 |H.if tes|t -f 'RE|
|00000600| 41 44 4d 45 27 0a 74 68 | 65 6e 0a 09 65 63 68 6f |ADME'.th|en..echo|
|00000610| 20 73 68 61 72 3a 20 77 | 69 6c 6c 20 6e 6f 74 20 | shar: w|ill not |
|00000620| 6f 76 65 72 2d 77 72 69 | 74 65 20 65 78 69 73 74 |over-wri|te exist|
|00000630| 69 6e 67 20 66 69 6c 65 | 20 22 27 52 45 41 44 4d |ing file| "'READM|
|00000640| 45 27 22 0a 65 6c 73 65 | 0a 73 65 64 20 27 73 2f |E'".else|.sed 's/|
|00000650| 5e 58 2f 2f 27 20 3c 3c | 20 5c 53 48 41 52 5f 45 |^X//' <<| \SHAR_E|
|00000660| 4f 46 20 3e 20 27 52 45 | 41 44 4d 45 27 0a 58 47 |OF > 'RE|ADME'.XG|
|00000670| 6e 75 70 6c 6f 74 2d 4c | 61 54 65 58 20 68 61 6e |nuplot-L|aTeX han|
|00000680| 64 79 20 74 68 69 6e 67 | 73 20 76 32 2e 30 20 20 |dy thing|s v2.0 |
|00000690| 4d 61 72 63 68 20 31 39 | 39 31 0a 58 0a 58 48 65 |March 19|91.X.XHe|
|000006a0| 72 65 20 61 72 65 20 73 | 6f 6d 65 20 68 61 6e 64 |re are s|ome hand|
|000006b0| 79 20 74 68 69 6e 67 73 | 20 66 6f 72 20 67 6e 75 |y things| for gnu|
|000006c0| 70 6c 6f 74 20 75 73 65 | 72 73 20 74 68 61 74 20 |plot use|rs that |
|000006d0| 75 73 65 20 74 68 65 20 | 6c 61 74 65 78 20 64 72 |use the |latex dr|
|000006e0| 69 76 65 72 2e 0a 58 0a | 58 54 68 65 73 65 20 61 |iver..X.|XThese a|
|000006f0| 72 65 20 73 6f 6d 65 20 | 6d 61 6b 65 66 69 6c 65 |re some |makefile|
|00000700| 73 2c 20 73 68 65 6c 6c | 20 73 63 72 69 70 74 73 |s, shell| scripts|
|00000710| 2c 20 61 6e 64 20 6c 61 | 74 65 78 20 63 6f 64 65 |, and la|tex code|
|00000720| 20 74 68 61 74 20 49 20 | 75 73 65 0a 58 77 69 74 | that I |use.Xwit|
|00000730| 68 20 67 6e 75 70 6c 6f | 74 20 74 6f 20 6d 61 6b |h gnuplo|t to mak|
|00000740| 65 20 6c 61 74 65 78 20 | 64 6f 63 75 6d 65 6e 74 |e latex |document|
|00000750| 73 20 77 69 74 68 20 70 | 6c 6f 74 73 2e 20 59 6f |s with p|lots. Yo|
|00000760| 75 20 6d 61 79 20 74 61 | 69 6c 6f 72 20 74 6f 0a |u may ta|ilor to.|
|00000770| 58 73 75 69 74 20 79 6f | 75 72 73 65 6c 66 2e 20 |Xsuit yo|urself. |
|00000780| 54 68 65 73 65 20 61 72 | 65 20 76 65 72 79 20 73 |These ar|e very s|
|00000790| 68 6f 72 74 2c 20 72 65 | 61 6c 6c 79 2e 20 49 20 |hort, re|ally. I |
|000007a0| 61 6c 73 6f 20 64 6f 20 | 6e 6f 74 20 70 6c 61 6e |also do |not plan|
|000007b0| 20 74 6f 0a 58 72 65 61 | 6c 6c 79 20 73 75 70 70 | to.Xrea|lly supp|
|000007c0| 6f 72 74 20 74 68 65 6d | 2e 20 49 20 6a 75 73 74 |ort them|. I just|
|000007d0| 20 66 6f 75 6e 64 20 74 | 68 65 6d 20 68 61 6e 64 | found t|hem hand|
|000007e0| 79 2e 20 0a 58 0a 58 44 | 75 72 69 6e 67 20 72 65 |y. .X.XD|uring re|
|000007f0| 76 69 73 69 6f 6e 20 6f | 66 20 74 68 65 20 64 6f |vision o|f the do|
|00000800| 63 75 6d 65 6e 74 2c 20 | 77 68 65 6e 20 49 20 61 |cument, |when I a|
|00000810| 6d 20 63 6f 6e 63 65 6e | 74 72 61 74 69 6e 67 20 |m concen|trating |
|00000820| 6f 6e 20 74 68 65 20 74 | 65 78 74 2c 0a 58 49 20 |on the t|ext,.XI |
|00000830| 6f 66 74 65 6e 20 74 69 | 72 65 20 6f 66 20 77 61 |often ti|re of wa|
|00000840| 69 74 69 6e 67 20 66 6f | 72 20 6c 61 74 65 78 20 |iting fo|r latex |
|00000850| 28 61 6e 64 20 74 68 65 | 20 70 72 69 6e 74 65 72 |(and the| printer|
|00000860| 2c 20 6f 72 20 70 72 65 | 76 69 65 77 65 72 29 20 |, or pre|viewer) |
|00000870| 74 6f 0a 58 70 72 6f 63 | 65 73 73 20 70 6c 6f 74 |to.Xproc|ess plot|
|00000880| 73 20 74 68 61 74 20 49 | 20 61 6d 20 67 6f 69 6e |s that I| am goin|
|00000890| 67 20 74 6f 20 69 67 6e | 6f 72 65 20 61 6e 79 77 |g to ign|ore anyw|
|000008a0| 61 79 2e 20 4f 72 2c 20 | 77 68 65 6e 20 6c 61 74 |ay. Or, |when lat|
|000008b0| 65 78 0a 58 72 65 71 75 | 69 72 65 73 20 6d 75 6c |ex.Xrequ|ires mul|
|000008c0| 74 69 70 6c 65 20 70 61 | 73 73 65 73 20 74 6f 20 |tiple pa|sses to |
|000008d0| 67 65 74 20 63 72 6f 73 | 73 2d 72 65 66 65 72 65 |get cros|s-refere|
|000008e0| 6e 63 65 73 20 72 69 67 | 68 74 2c 20 49 20 68 61 |nces rig|ht, I ha|
|000008f0| 74 65 0a 58 70 72 6f 63 | 65 73 73 69 6e 67 20 61 |te.Xproc|essing a|
|00000900| 6c 6c 20 74 68 6f 73 65 | 20 70 6c 6f 74 73 20 6f |ll those| plots o|
|00000910| 76 65 72 20 61 6e 64 20 | 6f 76 65 72 2e 20 54 68 |ver and |over. Th|
|00000920| 65 73 65 20 6d 61 63 72 | 6f 73 20 28 31 29 20 6d |ese macr|os (1) m|
|00000930| 61 6b 65 20 69 74 0a 58 | 65 61 73 69 65 72 20 74 |ake it.X|easier t|
|00000940| 6f 20 69 6e 63 6c 75 64 | 65 20 70 6c 6f 74 73 20 |o includ|e plots |
|00000950| 61 6e 64 20 28 32 29 20 | 6d 61 6b 65 20 74 68 65 |and (2) |make the|
|00000960| 20 69 6e 69 74 69 61 6c | 20 6f 72 20 64 72 61 66 | initial| or draf|
|00000970| 74 20 70 61 73 73 65 73 | 20 6f 66 0a 58 6c 61 74 |t passes| of.Xlat|
|00000980| 65 78 20 4d 55 43 48 20 | 66 61 73 74 65 72 2c 20 |ex MUCH |faster, |
|00000990| 62 79 20 69 67 6e 6f 72 | 69 6e 67 20 74 68 65 20 |by ignor|ing the |
|000009a0| 70 6c 6f 74 20 63 6f 6e | 74 65 6e 74 73 2e 0a 58 |plot con|tents..X|
|000009b0| 0a 58 54 6f 20 65 66 66 | 65 63 74 69 76 65 6c 79 |.XTo eff|ectively|
|000009c0| 20 75 73 65 20 74 68 69 | 73 20 73 6f 66 74 77 61 | use thi|s softwa|
|000009d0| 72 65 2c 20 79 6f 75 20 | 6d 75 73 74 20 6c 61 79 |re, you |must lay|
|000009e0| 20 6f 75 74 20 79 6f 75 | 72 20 66 69 6c 65 73 20 | out you|r files |
|000009f0| 61 73 0a 58 66 6f 6c 6c | 6f 77 73 3a 20 6d 61 6b |as.Xfoll|ows: mak|
|00000a00| 65 20 61 20 73 75 62 64 | 69 72 65 63 74 6f 72 79 |e a subd|irectory|
|00000a10| 20 63 61 6c 6c 65 64 20 | 22 66 69 67 73 22 20 69 | called |"figs" i|
|00000a20| 6e 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 64 69 |n the cu|rrent di|
|00000a30| 72 65 63 74 6f 72 79 2e | 0a 58 50 75 74 20 74 68 |rectory.|.XPut th|
|00000a40| 65 20 66 69 6c 65 20 4d | 61 6b 65 66 69 6c 65 2e |e file M|akefile.|
|00000a50| 65 61 63 68 2c 20 61 6e | 64 20 70 69 63 2e 74 65 |each, an|d pic.te|
|00000a60| 78 2c 20 69 6e 20 66 69 | 67 73 2e 20 4d 61 6b 65 |x, in fi|gs. Make|
|00000a70| 20 61 20 73 75 62 64 69 | 72 65 63 74 6f 72 79 0a | a subdi|rectory.|
|00000a80| 58 69 6e 20 66 69 67 73 | 20 66 6f 72 20 65 61 63 |Xin figs| for eac|
|00000a90| 68 20 70 6c 6f 74 2e 20 | 20 4d 61 6b 65 20 61 20 |h plot. | Make a |
|00000aa0| 6c 69 6e 6b 20 74 6f 20 | 4d 61 6b 65 66 69 6c 65 |link to |Makefile|
|00000ab0| 2e 65 61 63 68 20 63 61 | 6c 6c 65 64 20 22 4d 61 |.each ca|lled "Ma|
|00000ac0| 6b 65 66 69 6c 65 22 0a | 58 69 6e 20 65 61 63 68 |kefile".|Xin each|
|00000ad0| 20 6f 66 20 74 68 65 20 | 70 6c 6f 74 20 73 75 62 | of the |plot sub|
|00000ae0| 64 69 72 65 63 74 6f 72 | 69 65 73 2e 20 49 6e 20 |director|ies. In |
|00000af0| 65 61 63 68 20 70 6c 6f | 74 20 73 75 62 64 69 72 |each plo|t subdir|
|00000b00| 65 63 74 6f 72 79 2c 20 | 74 68 65 72 65 0a 58 73 |ectory, |there.Xs|
|00000b10| 68 6f 75 6c 64 20 62 65 | 20 61 20 66 69 6c 65 20 |hould be| a file |
|00000b20| 63 61 6c 6c 65 64 20 22 | 70 6c 6f 74 22 2c 20 77 |called "|plot", w|
|00000b30| 68 69 63 68 20 69 73 20 | 74 68 65 20 67 6e 75 70 |hich is |the gnup|
|00000b40| 6c 6f 74 20 69 6e 70 75 | 74 2e 20 54 68 65 72 65 |lot inpu|t. There|
|00000b50| 0a 58 73 68 6f 75 6c 64 | 20 61 6c 73 6f 20 62 65 |.Xshould| also be|
|00000b60| 20 61 6e 79 20 64 61 74 | 61 20 66 69 6c 65 73 20 | any dat|a files |
|00000b70| 6e 65 65 64 65 64 20 62 | 79 20 74 68 61 74 20 70 |needed b|y that p|
|00000b80| 6c 6f 74 2e 20 28 49 66 | 20 74 68 65 73 65 20 68 |lot. (If| these h|
|00000b90| 61 76 65 0a 58 73 74 61 | 6e 64 61 72 64 20 6e 61 |ave.Xsta|ndard na|
|00000ba0| 6d 65 73 2c 20 79 6f 75 | 20 6d 61 79 20 77 61 6e |mes, you| may wan|
|00000bb0| 74 20 74 6f 20 61 64 64 | 20 74 68 65 6d 20 74 6f |t to add| them to|
|00000bc0| 20 74 68 65 20 64 65 70 | 65 6e 64 65 6e 63 79 20 | the dep|endency |
|00000bd0| 6c 69 73 74 20 66 6f 72 | 0a 58 70 6c 6f 74 2e 74 |list for|.Xplot.t|
|00000be0| 65 78 20 61 6e 64 20 73 | 6b 65 6c 2e 74 65 78 20 |ex and s|kel.tex |
|00000bf0| 69 6e 20 74 68 65 20 6d | 61 6b 65 66 69 6c 65 29 |in the m|akefile)|
|00000c00| 2e 0a 58 0a 58 54 68 75 | 73 2c 20 79 6f 75 20 73 |..X.XThu|s, you s|
|00000c10| 68 6f 75 6c 64 20 68 61 | 76 65 3a 0a 58 20 74 6f |hould ha|ve:.X to|
|00000c20| 70 3a 0a 58 20 20 20 20 | 6d 61 69 6e 2e 74 65 78 |p:.X |main.tex|
|00000c30| 20 70 6c 6f 74 63 6f 6d | 6d 61 6e 64 2e 74 65 78 | plotcom|mand.tex|
|00000c40| 20 66 69 67 73 2f 20 2e | 2e 2e 0a 58 20 66 69 67 | figs/ .|...X fig|
|00000c50| 73 3a 0a 58 20 20 20 4d | 61 6b 65 66 69 6c 65 2e |s:.X M|akefile.|
|00000c60| 65 61 63 68 20 6d 61 6b | 65 61 6c 6c 20 70 69 63 |each mak|eall pic|
|00000c70| 2e 74 65 78 20 6f 6e 65 | 2f 20 74 77 6f 2f 20 74 |.tex one|/ two/ t|
|00000c80| 68 72 65 65 2f 0a 58 20 | 6f 6e 65 3a 0a 58 20 20 |hree/.X |one:.X |
|00000c90| 20 4d 61 6b 65 66 69 6c | 65 20 70 6c 6f 74 20 6f | Makefil|e plot o|
|00000ca0| 6e 65 2e 64 61 74 61 66 | 69 6c 65 0a 58 20 74 77 |ne.dataf|ile.X tw|
|00000cb0| 6f 3a 0a 58 20 20 20 4d | 61 6b 65 66 69 6c 65 20 |o:.X M|akefile |
|00000cc0| 70 6c 6f 74 20 74 77 6f | 2e 64 61 74 61 66 69 6c |plot two|.datafil|
|00000cd0| 65 0a 58 20 74 68 72 65 | 65 3a 0a 58 20 20 20 4d |e.X thre|e:.X M|
|00000ce0| 61 6b 65 66 69 6c 65 20 | 70 6c 6f 74 20 74 68 72 |akefile |plot thr|
|00000cf0| 65 65 2e 64 61 74 61 66 | 69 6c 65 0a 58 4e 6f 74 |ee.dataf|ile.XNot|
|00000d00| 65 20 68 65 72 65 20 74 | 68 61 74 20 61 6c 6c 20 |e here t|hat all |
|00000d10| 74 68 72 65 65 20 4d 61 | 6b 65 66 69 6c 65 73 20 |three Ma|kefiles |
|00000d20| 61 72 65 20 6c 69 6e 6b | 65 64 20 74 6f 20 4d 61 |are link|ed to Ma|
|00000d30| 6b 65 66 69 6c 65 2e 65 | 61 63 68 2e 0a 58 0a 58 |kefile.e|ach..X.X|
|00000d40| 0a 58 70 6c 6f 74 73 6b | 65 6c 3a 0a 58 20 20 49 |.Xplotsk|el:.X I|
|00000d50| 20 66 69 6e 64 20 74 68 | 69 73 20 73 68 65 6c 6c | find th|is shell|
|00000d60| 20 73 63 72 69 70 74 20 | 68 61 6e 64 79 20 77 68 | script |handy wh|
|00000d70| 65 6e 20 49 20 77 6f 72 | 6b 20 6f 6e 20 61 20 6c |en I wor|k on a l|
|00000d80| 61 72 67 65 20 64 6f 63 | 75 6d 65 6e 74 20 74 68 |arge doc|ument th|
|00000d90| 61 74 0a 58 63 6f 6e 74 | 61 69 6e 73 20 6d 61 6e |at.Xcont|ains man|
|00000da0| 79 20 70 6c 6f 74 73 2e | 20 54 68 69 73 20 73 68 |y plots.| This sh|
|00000db0| 65 6c 6c 20 73 63 72 69 | 70 74 20 74 61 6b 65 73 |ell scri|pt takes|
|00000dc0| 20 61 20 67 6e 75 70 6c | 6f 74 20 28 6f 72 20 67 | a gnupl|ot (or g|
|00000dd0| 6e 75 74 65 78 2c 20 66 | 6f 72 0a 58 74 68 6f 73 |nutex, f|or.Xthos|
|00000de0| 65 20 77 69 74 68 20 6f | 6c 64 20 67 6e 75 74 65 |e with o|ld gnute|
|00000df0| 78 20 66 69 6c 65 73 20 | 61 72 6f 75 6e 64 29 20 |x files |around) |
|00000e00| 6f 75 74 70 75 74 20 66 | 69 6c 65 20 28 69 6e 20 |output f|ile (in |
|00000e10| 6c 61 74 65 78 29 20 61 | 6e 64 0a 58 63 6f 6e 76 |latex) a|nd.Xconv|
|00000e20| 65 72 74 73 20 69 74 20 | 74 6f 20 61 20 6d 69 6e |erts it |to a min|
|00000e30| 69 6d 75 6d 20 73 6b 65 | 6c 65 74 6f 6e 20 74 68 |imum ske|leton th|
|00000e40| 61 74 20 68 61 73 20 74 | 68 65 20 73 61 6d 65 2d |at has t|he same-|
|00000e50| 73 69 7a 65 20 62 6f 78 | 2e 20 54 68 69 73 0a 58 |size box|. This.X|
|00000e60| 74 61 6b 65 73 20 6c 61 | 74 65 78 20 6e 6f 20 74 |takes la|tex no t|
|00000e70| 69 6d 65 20 61 74 20 61 | 6c 6c 20 74 6f 20 70 72 |ime at a|ll to pr|
|00000e80| 6f 63 65 73 73 2c 20 62 | 75 74 20 66 69 6c 6c 73 |ocess, b|ut fills|
|00000e90| 20 74 68 65 20 73 61 6d | 65 20 70 6c 61 63 65 20 | the sam|e place |
|00000ea0| 69 6e 20 74 68 65 0a 58 | 64 6f 63 75 6d 65 6e 74 |in the.X|document|
|00000eb0| 2e 20 53 6f 20 75 73 65 | 20 74 68 65 20 73 6b 65 |. So use| the ske|
|00000ec0| 6c 65 74 6f 6e 20 75 6e | 74 69 6c 20 79 6f 75 20 |leton un|til you |
|00000ed0| 61 72 65 20 72 65 61 64 | 79 20 74 6f 20 69 6e 63 |are read|y to inc|
|00000ee0| 6c 75 64 65 20 74 68 65 | 0a 58 70 6c 6f 74 73 2c |lude the|.Xplots,|
|00000ef0| 20 74 68 65 6e 20 75 73 | 65 20 74 68 65 20 72 65 | then us|e the re|
|00000f00| 61 6c 20 70 6c 6f 74 2e | 20 54 68 65 20 4d 61 6b |al plot.| The Mak|
|00000f10| 65 66 69 6c 65 20 49 20 | 73 75 70 70 6c 79 20 61 |efile I |supply a|
|00000f20| 75 74 6f 6d 61 74 69 63 | 61 6c 6c 79 0a 58 63 72 |utomatic|ally.Xcr|
|00000f30| 65 61 74 65 73 20 74 68 | 65 20 73 6b 65 6c 65 74 |eates th|e skelet|
|00000f40| 6f 6e 20 73 6b 65 6c 2e | 74 65 78 20 66 6f 72 20 |on skel.|tex for |
|00000f50| 74 68 65 20 70 6c 6f 74 | 20 70 6c 6f 74 2e 74 65 |the plot| plot.te|
|00000f60| 78 2e 20 57 68 65 6e 20 | 6c 61 74 65 78 20 69 73 |x. When |latex is|
|00000f70| 0a 58 72 75 6e 2c 20 70 | 6c 6f 74 63 6f 6d 6d 61 |.Xrun, p|lotcomma|
|00000f80| 6e 64 2e 74 65 78 20 61 | 73 6b 73 20 74 68 65 20 |nd.tex a|sks the |
|00000f90| 75 73 65 72 20 77 68 65 | 74 68 65 72 20 74 6f 20 |user whe|ther to |
|00000fa0| 69 6e 63 6c 75 64 65 20 | 73 6b 65 6c 65 74 6f 6e |include |skeleton|
|00000fb0| 73 20 6f 72 0a 58 70 6c | 6f 74 73 2e 20 54 68 69 |s or.Xpl|ots. Thi|
|00000fc0| 73 20 73 68 6f 75 6c 64 | 20 62 65 20 69 6e 73 74 |s should| be inst|
|00000fd0| 61 6c 6c 65 64 20 73 6f | 6d 65 77 68 65 72 65 20 |alled so|mewhere |
|00000fe0| 6f 6e 20 79 6f 75 72 20 | 70 61 74 68 3b 20 69 74 |on your |path; it|
|00000ff0| 20 69 73 20 75 73 65 64 | 20 62 79 0a 58 74 68 65 | is used| by.Xthe|
|00001000| 20 4d 61 6b 65 66 69 6c | 65 73 2e 0a 58 0a 58 70 | Makefil|es..X.Xp|
|00001010| 6c 6f 74 63 6f 6d 6d 61 | 6e 64 2e 74 65 78 3a 0a |lotcomma|nd.tex:.|
|00001020| 58 20 20 54 68 69 73 20 | 64 65 66 69 6e 65 73 20 |X This |defines |
|00001030| 73 6f 6d 65 20 6d 61 63 | 72 6f 73 20 66 6f 72 20 |some mac|ros for |
|00001040| 63 6f 6e 76 65 6e 69 65 | 6e 74 6c 79 20 69 6e 63 |convenie|ntly inc|
|00001050| 6c 75 64 69 6e 67 20 70 | 6c 6f 74 73 20 69 6e 20 |luding p|lots in |
|00001060| 79 6f 75 72 0a 58 64 6f | 63 75 6d 65 6e 74 20 69 |your.Xdo|cument i|
|00001070| 6e 20 61 20 73 74 61 6e | 64 61 72 64 20 77 61 79 |n a stan|dard way|
|00001080| 2e 20 54 68 65 20 66 69 | 6c 65 73 20 6d 75 73 74 |. The fi|les must|
|00001090| 20 62 65 20 6f 72 67 61 | 6e 69 7a 65 64 20 61 73 | be orga|nized as|
|000010a0| 20 64 65 73 63 72 69 62 | 65 64 0a 58 61 62 6f 76 | describ|ed.Xabov|
|000010b0| 65 2e 20 49 6e 70 75 74 | 20 74 68 69 73 20 61 74 |e. Input| this at|
|000010c0| 20 74 68 65 20 74 6f 70 | 20 6f 66 20 79 6f 75 72 | the top| of your|
|000010d0| 20 64 6f 63 75 6d 65 6e | 74 20 62 65 66 6f 72 65 | documen|t before|
|000010e0| 20 74 68 65 0a 58 5c 62 | 65 67 69 6e 7b 64 6f 63 | the.X\b|egin{doc|
|000010f0| 75 6d 65 6e 74 7d 2e 20 | 54 6f 20 69 6e 63 6c 75 |ument}. |To inclu|
|00001100| 64 65 20 61 20 70 6c 6f | 74 2c 20 75 73 65 20 0a |de a plo|t, use .|
|00001110| 58 20 20 20 20 5c 70 6c | 6f 74 7b 70 6c 6f 74 6e |X \pl|ot{plotn|
|00001120| 61 6d 65 7d 7b 6c 6f 66 | 2d 63 61 70 74 69 6f 6e |ame}{lof|-caption|
|00001130| 7d 7b 63 61 70 74 69 6f | 6e 7d 0a 58 54 68 65 20 |}{captio|n}.XThe |
|00001140| 70 6c 6f 74 6e 61 6d 65 | 20 69 73 20 74 68 65 20 |plotname| is the |
|00001150| 6e 61 6d 65 20 6f 66 20 | 74 68 65 20 73 75 62 64 |name of |the subd|
|00001160| 69 72 65 63 74 6f 72 79 | 20 6f 66 20 22 66 69 67 |irectory| of "fig|
|00001170| 73 22 20 74 68 61 74 20 | 63 6f 6e 74 61 69 6e 73 |s" that |contains|
|00001180| 0a 58 74 68 65 20 70 6c | 6f 74 2e 20 54 68 75 73 |.Xthe pl|ot. Thus|
|00001190| 2c 20 69 66 20 74 68 65 | 72 65 20 69 73 20 61 20 |, if the|re is a |
|000011a0| 64 69 72 65 63 74 6f 72 | 79 20 63 61 6c 6c 65 64 |director|y called|
|000011b0| 20 66 69 67 73 2f 66 6f | 6f 62 61 72 2c 20 74 68 | figs/fo|obar, th|
|000011c0| 65 6e 0a 58 66 6f 6f 62 | 61 72 20 69 73 20 74 68 |en.Xfoob|ar is th|
|000011d0| 65 20 70 6c 6f 74 6e 61 | 6d 65 2e 20 54 68 65 20 |e plotna|me. The |
|000011e0| 6c 6f 66 2d 63 61 70 74 | 69 6f 6e 20 69 73 20 75 |lof-capt|ion is u|
|000011f0| 73 65 64 20 6f 6e 6c 79 | 20 74 6f 20 67 65 6e 65 |sed only| to gene|
|00001200| 72 61 74 65 20 61 0a 58 | 6c 69 73 74 20 6f 66 20 |rate a.X|list of |
|00001210| 66 69 67 75 72 65 73 2e | 20 49 66 20 79 6f 75 20 |figures.| If you |
|00001220| 64 6f 6e 27 74 20 64 6f | 20 74 68 69 73 2c 20 6c |don't do| this, l|
|00001230| 65 61 76 65 20 74 68 69 | 73 20 65 6d 70 74 79 2e |eave thi|s empty.|
|00001240| 20 28 59 6f 75 20 6d 61 | 79 20 63 75 74 0a 58 64 | (You ma|y cut.Xd|
|00001250| 6f 77 6e 20 74 68 65 20 | 5c 70 6c 6f 74 20 6d 61 |own the |\plot ma|
|00001260| 63 72 6f 20 74 6f 20 72 | 65 6d 6f 76 65 20 74 68 |cro to r|emove th|
|00001270| 69 73 20 6f 70 74 69 6f | 6e 29 2e 20 54 68 65 20 |is optio|n). The |
|00001280| 63 61 70 74 69 6f 6e 20 | 66 6f 72 20 74 68 65 0a |caption |for the.|
|00001290| 58 66 69 67 75 72 65 20 | 73 68 6f 75 6c 64 20 62 |Xfigure |should b|
|000012a0| 65 20 73 70 65 63 69 66 | 69 65 64 2e 20 54 68 69 |e specif|ied. Thi|
|000012b0| 73 20 63 6f 6d 6d 61 6e | 64 20 63 72 65 61 74 65 |s comman|d create|
|000012c0| 73 20 61 20 5c 6c 61 62 | 65 6c 20 63 61 6c 6c 65 |s a \lab|el calle|
|000012d0| 64 0a 58 22 66 3a 70 6c | 6f 74 6e 61 6d 65 22 2e |d.X"f:pl|otname".|
|000012e0| 20 0a 58 20 20 54 6f 20 | 72 65 66 65 72 20 74 6f | .X To |refer to|
|000012f0| 20 74 68 65 20 66 69 67 | 75 72 65 20 74 68 61 74 | the fig|ure that|
|00001300| 20 68 61 73 20 61 20 67 | 69 76 65 6e 20 70 6c 6f | has a g|iven plo|
|00001310| 74 6e 61 6d 65 2c 20 75 | 73 65 0a 58 5c 70 6c 6f |tname, u|se.X\plo|
|00001320| 74 72 65 66 7b 70 6c 6f | 74 6e 61 6d 65 7d 2e 20 |tref{plo|tname}. |
|00001330| 54 68 69 73 20 77 69 6c | 6c 20 67 65 6e 65 72 61 |This wil|l genera|
|00001340| 74 65 20 74 65 78 74 2c | 20 65 67 20 22 46 69 67 |te text,| eg "Fig|
|00001350| 75 72 65 20 31 30 22 2e | 20 53 6f 20 79 6f 75 0a |ure 10".| So you.|
|00001360| 58 63 61 6e 20 73 61 79 | 20 74 68 69 6e 67 73 20 |Xcan say| things |
|00001370| 6c 69 6b 65 20 74 68 69 | 73 3a 0a 58 20 20 20 5c |like thi|s:.X \|
|00001380| 70 6c 6f 74 72 65 66 7b | 66 6f 6f 7d 20 73 68 6f |plotref{|foo} sho|
|00001390| 77 73 20 74 68 69 73 20 | 65 66 66 65 63 74 20 69 |ws this |effect i|
|000013a0| 6e 20 67 6f 72 65 79 20 | 64 65 74 61 69 6c 20 28 |n gorey |detail (|
|000013b0| 73 65 65 20 61 6c 73 6f | 20 5c 70 6c 6f 74 72 65 |see also| \plotre|
|000013c0| 66 7b 62 61 72 7d 29 2e | 20 0a 58 20 20 49 66 20 |f{bar}).| .X If |
|000013d0| 79 6f 75 20 64 6f 6e 27 | 74 20 6c 69 6b 65 20 74 |you don'|t like t|
|000013e0| 68 65 20 77 61 79 20 69 | 74 20 61 73 6b 73 20 66 |he way i|t asks f|
|000013f0| 6f 72 20 69 6e 70 75 74 | 20 61 74 20 65 61 63 68 |or input| at each|
|00001400| 20 72 75 6e 2c 20 63 68 | 61 6e 67 65 20 74 68 65 | run, ch|ange the|
|00001410| 0a 58 5c 74 79 70 65 69 | 6e 20 74 6f 20 61 20 5c |.X\typei|n to a \|
|00001420| 6e 65 77 63 6f 6d 6d 61 | 6e 64 20 74 6f 20 64 65 |newcomma|nd to de|
|00001430| 66 69 6e 65 20 5c 70 6c | 6f 74 73 6b 65 6c 20 74 |fine \pl|otskel t|
|00001440| 6f 20 62 65 20 65 69 74 | 68 65 72 20 22 73 6b 65 |o be eit|her "ske|
|00001450| 6c 22 20 6f 72 0a 58 22 | 70 6c 6f 74 22 2e 20 42 |l" or.X"|plot". B|
|00001460| 75 74 20 74 68 65 6e 20 | 74 68 69 73 20 64 65 66 |ut then |this def|
|00001470| 65 61 74 73 20 74 68 65 | 20 70 75 72 70 6f 73 65 |eats the| purpose|
|00001480| 20 6f 66 20 63 68 6f 6f | 73 69 6e 67 20 70 6c 6f | of choo|sing plo|
|00001490| 74 20 6f 72 20 73 6b 65 | 6c 20 6f 6e 0a 58 65 61 |t or ske|l on.Xea|
|000014a0| 63 68 20 72 75 6e 2e 20 | 0a 58 20 20 53 65 65 20 |ch run. |.X See |
|000014b0| 74 68 65 20 61 64 76 61 | 6e 63 65 64 20 75 73 61 |the adva|nced usa|
|000014c0| 67 65 2c 20 61 6e 64 20 | 22 4d 69 73 63 20 66 69 |ge, and |"Misc fi|
|000014d0| 67 75 72 65 73 22 20 62 | 65 6c 6f 77 2e 0a 58 0a |gures" b|elow..X.|
|000014e0| 58 4d 61 6b 65 66 69 6c | 65 2e 65 61 63 68 3a 0a |XMakefil|e.each:.|
|000014f0| 58 20 20 54 68 69 73 20 | 69 73 20 61 20 6d 61 6b |X This |is a mak|
|00001500| 65 66 69 6c 65 20 74 6f | 20 68 65 6c 70 20 79 6f |efile to| help yo|
|00001510| 75 20 61 75 74 6f 6d 61 | 74 65 20 74 68 65 20 70 |u automa|te the p|
|00001520| 72 6f 63 65 73 73 20 6f | 66 20 75 70 64 61 74 69 |rocess o|f updati|
|00001530| 6e 67 20 79 6f 75 72 0a | 58 67 6e 75 70 6c 6f 74 |ng your.|Xgnuplot|
|00001540| 20 72 75 6e 73 2e 20 54 | 68 69 73 20 73 68 6f 75 | runs. T|his shou|
|00001550| 6c 64 20 62 65 20 6c 69 | 6e 6b 65 64 20 74 6f 20 |ld be li|nked to |
|00001560| 22 4d 61 6b 65 66 69 6c | 65 22 20 69 6e 20 65 61 |"Makefil|e" in ea|
|00001570| 63 68 20 70 6c 6f 74 0a | 58 73 75 62 64 69 72 65 |ch plot.|Xsubdire|
|00001580| 63 74 6f 72 79 2e 20 4a | 75 73 74 20 27 6d 61 6b |ctory. J|ust 'mak|
|00001590| 65 27 20 77 69 6c 6c 20 | 6d 61 6b 65 20 70 6c 6f |e' will |make plo|
|000015a0| 74 2e 74 65 78 20 61 6e | 64 20 73 6b 65 6c 2e 74 |t.tex an|d skel.t|
|000015b0| 65 78 2c 20 66 6f 72 0a | 58 69 6e 63 6c 75 73 69 |ex, for.|Xinclusi|
|000015c0| 6f 6e 20 69 6e 74 6f 20 | 79 6f 75 72 20 64 6f 63 |on into |your doc|
|000015d0| 75 6d 65 6e 74 2e 20 27 | 6d 61 6b 65 20 64 76 69 |ument. '|make dvi|
|000015e0| 27 20 77 69 6c 6c 20 6d | 61 6b 65 20 61 20 64 76 |' will m|ake a dv|
|000015f0| 69 20 66 69 6c 65 20 77 | 69 74 68 0a 58 6a 75 73 |i file w|ith.Xjus|
|00001600| 74 20 74 68 61 74 20 70 | 6c 6f 74 20 28 73 65 65 |t that p|lot (see|
|00001610| 20 70 69 63 2e 74 65 78 | 29 2e 20 27 6d 61 6b 65 | pic.tex|). 'make|
|00001620| 20 63 6c 65 61 6e 27 20 | 63 6c 65 61 6e 73 20 75 | clean' |cleans u|
|00001630| 70 20 64 76 69 2d 6d 61 | 6b 69 6e 67 20 6d 65 73 |p dvi-ma|king mes|
|00001640| 73 2e 0a 58 27 6d 61 6b | 65 20 73 70 6f 74 6c 65 |s..X'mak|e spotle|
|00001650| 73 73 27 20 72 65 64 75 | 63 65 73 20 74 68 65 20 |ss' redu|ces the |
|00001660| 64 69 72 65 63 74 6f 72 | 79 20 74 6f 20 6d 69 6e |director|y to min|
|00001670| 69 6d 61 6c 20 73 69 7a | 65 3b 20 69 65 20 74 68 |imal siz|e; ie th|
|00001680| 69 73 20 72 65 6d 6f 76 | 65 73 0a 58 70 6c 6f 74 |is remov|es.Xplot|
|00001690| 2e 74 65 78 20 61 73 20 | 77 65 6c 6c 2e 20 27 6d |.tex as |well. 'm|
|000016a0| 61 6b 65 20 76 69 65 77 | 27 20 77 69 6c 6c 20 6d |ake view|' will m|
|000016b0| 61 6b 65 20 61 20 64 76 | 69 20 66 69 6c 65 20 61 |ake a dv|i file a|
|000016c0| 6e 64 20 76 69 65 77 20 | 69 74 20 28 79 6f 75 0a |nd view |it (you.|
|000016d0| 58 63 61 6e 20 63 68 61 | 6e 67 65 20 74 6f 20 79 |Xcan cha|nge to y|
|000016e0| 6f 75 72 20 70 72 65 76 | 69 65 77 65 72 29 2e 20 |our prev|iewer). |
|000016f0| 27 6d 61 6b 65 20 70 72 | 69 6e 74 27 20 77 69 6c |'make pr|int' wil|
|00001700| 6c 20 6d 61 6b 65 20 61 | 20 64 76 69 20 66 69 6c |l make a| dvi fil|
|00001710| 65 20 61 6e 64 0a 58 70 | 72 69 6e 74 20 69 74 2e |e and.Xp|rint it.|
|00001720| 20 4e 6f 74 65 20 74 68 | 61 74 20 6d 61 6b 69 6e | Note th|at makin|
|00001730| 67 20 61 20 64 76 69 20 | 66 69 6c 65 20 6f 66 74 |g a dvi |file oft|
|00001740| 65 6e 20 72 65 6d 6f 76 | 65 73 20 73 6b 65 6c 2e |en remov|es skel.|
|00001750| 74 65 78 3b 20 73 6f 20 | 79 6f 75 0a 58 73 68 6f |tex; so |you.Xsho|
|00001760| 75 6c 64 20 27 6d 61 6b | 65 20 63 6c 65 61 6e 3b |uld 'mak|e clean;|
|00001770| 20 6d 61 6b 65 27 20 61 | 66 74 65 72 20 70 6c 61 | make' a|fter pla|
|00001780| 79 69 6e 67 20 77 69 74 | 68 20 64 76 69 20 66 69 |ying wit|h dvi fi|
|00001790| 6c 65 73 2e 0a 58 0a 58 | 6d 61 6b 65 61 6c 6c 3a |les..X.X|makeall:|
|000017a0| 0a 58 20 54 68 69 73 20 | 73 63 72 69 70 74 20 73 |.X This |script s|
|000017b0| 68 6f 75 6c 64 20 62 65 | 20 69 6e 20 66 69 67 73 |hould be| in figs|
|000017c0| 2f 2e 20 49 74 20 77 69 | 6c 6c 20 72 75 6e 20 6d |/. It wi|ll run m|
|000017d0| 61 6b 65 20 69 6e 20 61 | 6c 6c 0a 58 73 75 62 64 |ake in a|ll.Xsubd|
|000017e0| 69 72 65 63 74 6f 72 69 | 65 73 2c 20 77 69 74 68 |irectori|es, with|
|000017f0| 20 74 68 65 20 67 69 76 | 65 6e 20 61 72 67 75 6d | the giv|en argum|
|00001800| 65 6e 74 73 20 70 61 73 | 73 65 64 20 74 6f 20 65 |ents pas|sed to e|
|00001810| 61 63 68 20 6d 61 6b 65 | 2e 20 54 68 75 73 2c 0a |ach make|. Thus,.|
|00001820| 58 79 6f 75 20 63 61 6e | 20 27 6d 61 6b 65 61 6c |Xyou can| 'makeal|
|00001830| 6c 20 63 6c 65 61 6e 27 | 20 6f 72 20 6a 75 73 74 |l clean'| or just|
|00001840| 20 27 6d 61 6b 65 61 6c | 6c 27 2e 0a 58 0a 58 70 | 'makeal|l'..X.Xp|
|00001850| 69 63 2e 74 65 78 3a 0a | 58 20 54 68 69 73 20 69 |ic.tex:.|X This i|
|00001860| 73 20 61 20 73 6d 61 6c | 6c 20 77 72 61 70 70 65 |s a smal|l wrappe|
|00001870| 72 20 66 6f 72 20 67 65 | 6e 65 72 61 74 69 6e 67 |r for ge|nerating|
|00001880| 20 61 20 64 76 69 20 66 | 69 6c 65 20 77 69 74 68 | a dvi f|ile with|
|00001890| 20 6a 75 73 74 20 6f 6e | 65 20 70 6c 6f 74 2e 0a | just on|e plot..|
|000018a0| 58 49 74 20 64 6f 65 73 | 20 6e 6f 74 20 64 72 61 |XIt does| not dra|
|000018b0| 77 20 74 68 65 20 62 6f | 78 20 6c 69 6b 65 20 74 |w the bo|x like t|
|000018c0| 68 65 20 5c 70 6c 6f 74 | 20 63 6f 6d 6d 61 6e 64 |he \plot| command|
|000018d0| 20 28 61 62 6f 76 65 29 | 20 64 6f 65 73 2e 20 54 | (above)| does. T|
|000018e0| 68 65 0a 58 6d 61 6b 65 | 66 69 6c 65 20 77 69 6c |he.Xmake|file wil|
|000018f0| 6c 20 75 73 65 20 74 68 | 69 73 2e 20 49 74 20 73 |l use th|is. It s|
|00001900| 68 6f 75 6c 64 20 62 65 | 20 61 63 63 65 73 73 61 |hould be| accessa|
|00001910| 62 6c 65 20 61 73 20 2e | 2e 2f 70 69 63 2e 74 65 |ble as .|./pic.te|
|00001920| 78 20 74 6f 20 61 6c 6c | 0a 58 4d 61 6b 65 66 69 |x to all|.XMakefi|
|00001930| 6c 65 73 2e 0a 58 0a 58 | 4d 69 73 63 65 6c 6c 61 |les..X.X|Miscella|
|00001940| 6e 65 6f 75 73 20 66 69 | 67 75 72 65 73 3a 0a 58 |neous fi|gures:.X|
|00001950| 20 20 49 66 20 79 6f 75 | 20 68 61 76 65 20 70 6c | If you| have pl|
|00001960| 6f 74 73 2c 20 74 68 65 | 6e 20 77 68 79 20 6e 6f |ots, the|n why no|
|00001970| 74 20 6f 74 68 65 72 20 | 66 69 67 75 72 65 73 3f |t other |figures?|
|00001980| 20 49 20 68 61 76 65 20 | 61 20 73 69 6d 69 6c 61 | I have |a simila|
|00001990| 72 0a 58 6d 61 63 72 6f | 20 74 68 61 74 20 49 20 |r.Xmacro| that I |
|000019a0| 75 73 65 20 66 6f 72 20 | 6e 6f 72 6d 61 6c 20 65 |use for |normal e|
|000019b0| 76 65 72 79 64 61 79 20 | 66 69 67 75 72 65 73 20 |veryday |figures |
|000019c0| 28 65 67 2c 20 66 72 6f | 6d 20 22 46 69 67 22 29 |(eg, fro|m "Fig")|
|000019d0| 2e 20 54 68 69 73 0a 58 | 77 6f 72 6b 73 20 6a 75 |. This.X|works ju|
|000019e0| 73 74 20 6c 69 6b 65 20 | 5c 70 6c 6f 74 2c 20 65 |st like |\plot, e|
|000019f0| 78 63 65 70 74 20 69 74 | 20 69 73 20 63 61 6c 6c |xcept it| is call|
|00001a00| 65 64 20 5c 66 69 67 2e | 20 54 68 65 72 65 20 61 |ed \fig.| There a|
|00001a10| 72 65 20 5c 66 69 67 72 | 65 66 20 61 6e 64 0a 58 |re \figr|ef and.X|
|00001a20| 5c 66 69 67 72 61 6e 67 | 65 2c 20 6c 69 6b 65 20 |\figrang|e, like |
|00001a30| 5c 70 6c 6f 74 72 65 66 | 20 61 6e 64 20 5c 70 6c |\plotref| and \pl|
|00001a40| 6f 74 72 61 6e 67 65 2e | 20 54 68 65 20 5c 66 69 |otrange.| The \fi|
|00001a50| 67 20 6d 61 63 72 6f 20 | 6c 6f 61 64 73 20 61 20 |g macro |loads a |
|00001a60| 2e 74 65 78 0a 58 66 69 | 6c 65 20 62 79 20 74 68 |.tex.Xfi|le by th|
|00001a70| 65 20 67 69 76 65 6e 20 | 66 69 67 20 6e 61 6d 65 |e given |fig name|
|00001a80| 20 66 72 6f 6d 20 74 68 | 65 20 66 69 67 73 2f 6d | from th|e figs/m|
|00001a90| 69 73 63 20 64 69 72 65 | 63 74 6f 72 79 2c 20 61 |isc dire|ctory, a|
|00001aa0| 6e 64 20 70 75 74 73 20 | 61 0a 58 62 6f 78 20 61 |nd puts |a.Xbox a|
|00001ab0| 72 6f 75 6e 64 20 69 74 | 2c 20 6c 69 6b 65 20 66 |round it|, like f|
|00001ac0| 6f 72 20 74 68 65 20 70 | 6c 6f 74 73 2e 20 54 68 |or the p|lots. Th|
|00001ad0| 69 73 20 63 72 65 61 74 | 65 73 20 61 20 6c 61 62 |is creat|es a lab|
|00001ae0| 65 6c 20 6c 69 6b 65 0a | 58 22 66 3a 6d 69 73 63 |el like.|X"f:misc|
|00001af0| 2f 66 69 67 6e 61 6d 65 | 22 2e 20 0a 58 0a 58 41 |/figname|". .X.XA|
|00001b00| 64 76 61 6e 63 65 64 20 | 75 73 61 67 65 3a 0a 58 |dvanced |usage:.X|
|00001b10| 20 49 66 20 74 68 65 20 | 64 6f 63 75 6d 65 6e 74 | If the |document|
|00001b20| 20 69 73 20 72 65 61 6c | 6c 79 20 62 69 67 2c 20 | is real|ly big, |
|00001b30| 74 68 65 6e 20 79 6f 75 | 20 63 61 6e 20 64 69 76 |then you| can div|
|00001b40| 69 64 65 20 74 68 65 20 | 22 66 69 67 73 22 0a 58 |ide the |"figs".X|
|00001b50| 64 69 72 65 63 74 6f 72 | 79 20 69 6e 74 6f 20 73 |director|y into s|
|00001b60| 75 62 64 69 72 65 63 74 | 6f 72 69 65 73 2e 20 50 |ubdirect|ories. P|
|00001b70| 75 74 20 61 6c 6c 20 79 | 6f 75 72 20 70 6c 6f 74 |ut all y|our plot|
|00001b80| 73 20 69 6e 74 6f 20 6f | 6e 65 20 6f 66 20 74 68 |s into o|ne of th|
|00001b90| 65 0a 58 73 75 62 64 69 | 72 65 63 74 6f 72 69 65 |e.Xsubdi|rectorie|
|00001ba0| 73 20 6f 66 20 66 69 67 | 73 2e 20 4e 6f 77 2c 20 |s of fig|s. Now, |
|00001bb0| 79 6f 75 20 6d 69 67 68 | 74 20 68 61 76 65 3a 0a |you migh|t have:.|
|00001bc0| 58 20 74 6f 70 3a 0a 58 | 20 20 20 20 6d 61 69 6e |X top:.X| main|
|00001bd0| 2e 74 65 78 20 70 6c 6f | 74 63 6f 6d 6d 61 6e 64 |.tex plo|tcommand|
|00001be0| 2e 74 65 78 20 66 69 67 | 73 2f 20 2e 2e 2e 0a 58 |.tex fig|s/ ....X|
|00001bf0| 20 66 69 67 73 3a 0a 58 | 20 20 20 20 63 68 61 70 | figs:.X| chap|
|00001c00| 41 2f 20 63 68 61 70 42 | 2f 20 0a 58 20 66 69 67 |A/ chapB|/ .X fig|
|00001c10| 73 2f 63 68 61 70 41 3a | 0a 58 20 20 20 20 4d 61 |s/chapA:|.X Ma|
|00001c20| 6b 65 66 69 6c 65 2e 65 | 61 63 68 20 6d 61 6b 65 |kefile.e|ach make|
|00001c30| 61 6c 6c 20 70 69 63 2e | 74 65 78 20 6f 6e 65 2f |all pic.|tex one/|
|00001c40| 20 74 77 6f 2f 20 6d 69 | 73 63 2f 0a 58 20 66 69 | two/ mi|sc/.X fi|
|00001c50| 67 73 2f 63 68 61 70 42 | 3a 0a 58 20 20 20 20 4d |gs/chapB|:.X M|
|00001c60| 61 6b 65 66 69 6c 65 2e | 65 61 63 68 20 6d 61 6b |akefile.|each mak|
|00001c70| 65 61 6c 6c 20 70 69 63 | 2e 74 65 78 20 6f 6e 65 |eall pic|.tex one|
|00001c80| 2f 20 74 77 6f 2f 20 6d | 69 73 63 2f 0a 58 20 66 |/ two/ m|isc/.X f|
|00001c90| 69 67 73 2f 63 68 61 70 | 41 2f 6f 6e 65 3a 0a 58 |igs/chap|A/one:.X|
|00001ca0| 20 20 20 4d 61 6b 65 66 | 69 6c 65 20 70 6c 6f 74 | Makef|ile plot|
|00001cb0| 20 6f 6e 65 2e 64 61 74 | 61 66 69 6c 65 0a 58 20 | one.dat|afile.X |
|00001cc0| 66 69 67 73 2f 63 68 61 | 70 41 2f 74 77 6f 3a 0a |figs/cha|pA/two:.|
|00001cd0| 58 20 20 20 4d 61 6b 65 | 66 69 6c 65 20 70 6c 6f |X Make|file plo|
|00001ce0| 74 20 74 77 6f 2e 64 61 | 74 61 66 69 6c 65 0a 58 |t two.da|tafile.X|
|00001cf0| 20 66 69 67 73 2f 63 68 | 61 70 41 2f 6d 69 73 63 | figs/ch|apA/misc|
|00001d00| 3a 0a 58 20 20 20 66 6f | 6f 2e 66 69 67 20 66 6f |:.X fo|o.fig fo|
|00001d10| 6f 2e 74 65 78 0a 58 20 | 66 69 67 73 2f 63 68 61 |o.tex.X |figs/cha|
|00001d20| 70 42 2f 6f 6e 65 3a 0a | 58 20 20 20 4d 61 6b 65 |pB/one:.|X Make|
|00001d30| 66 69 6c 65 20 70 6c 6f | 74 20 6f 6e 65 2e 64 61 |file plo|t one.da|
|00001d40| 74 61 66 69 6c 65 0a 58 | 20 66 69 67 73 2f 63 68 |tafile.X| figs/ch|
|00001d50| 61 70 42 2f 74 77 6f 3a | 0a 58 20 20 20 4d 61 6b |apB/two:|.X Mak|
|00001d60| 65 66 69 6c 65 20 70 6c | 6f 74 20 74 77 6f 2e 64 |efile pl|ot two.d|
|00001d70| 61 74 61 66 69 6c 65 0a | 58 20 66 69 67 73 2f 63 |atafile.|X figs/c|
|00001d80| 68 61 70 43 2f 6d 69 73 | 63 3a 0a 58 20 20 20 62 |hapC/mis|c:.X b|
|00001d90| 61 72 2e 66 69 67 20 62 | 61 72 2e 74 65 78 20 6a |ar.fig b|ar.tex j|
|00001da0| 75 6e 6b 2e 66 69 67 20 | 6a 75 6e 6b 2e 74 65 78 |unk.fig |junk.tex|
|00001db0| 0a 58 54 68 65 6e 2c 20 | 69 6e 20 79 6f 75 72 20 |.XThen, |in your |
|00001dc0| 64 6f 63 75 6d 65 6e 74 | 2c 20 79 6f 75 20 63 61 |document|, you ca|
|00001dd0| 6e 20 75 73 65 20 74 68 | 65 6d 20 6c 69 6b 65 20 |n use th|em like |
|00001de0| 74 68 69 73 3a 0a 58 20 | 20 20 20 5c 6e 65 77 70 |this:.X | \newp|
|00001df0| 6c 6f 74 64 69 72 7b 63 | 68 61 70 41 7d 0a 58 20 |lotdir{c|hapA}.X |
|00001e00| 20 20 20 5c 70 6c 6f 74 | 7b 6f 6e 65 7d 7b 7d 7b | \plot|{one}{}{|
|00001e10| 54 68 69 73 20 69 73 20 | 70 6c 6f 74 20 63 68 61 |This is |plot cha|
|00001e20| 70 41 2f 6f 6e 65 7d 0a | 58 20 20 20 20 5c 70 6c |pA/one}.|X \pl|
|00001e30| 6f 74 7b 74 77 6f 7d 7b | 7d 7b 54 68 69 73 20 69 |ot{two}{|}{This i|
|00001e40| 73 20 70 6c 6f 74 20 63 | 68 61 70 41 2f 74 77 6f |s plot c|hapA/two|
|00001e50| 7d 0a 58 20 20 20 20 5c | 70 6c 6f 74 72 65 66 7b |}.X \|plotref{|
|00001e60| 6f 6e 65 7d 20 72 65 66 | 65 72 73 20 74 6f 20 63 |one} ref|ers to c|
|00001e70| 68 61 70 41 2f 6f 6e 65 | 2e 0a 58 20 20 20 20 5c |hapA/one|..X \|
|00001e80| 66 69 67 7b 66 6f 6f 7d | 7b 7d 7b 54 68 69 73 20 |fig{foo}|{}{This |
|00001e90| 69 73 20 66 69 67 75 72 | 65 20 63 68 61 70 41 2f |is figur|e chapA/|
|00001ea0| 6d 69 73 63 2f 66 6f 6f | 7d 0a 58 0a 58 20 20 20 |misc/foo|}.X.X |
|00001eb0| 20 5c 6e 65 77 70 6c 6f | 74 64 69 72 7b 63 68 61 | \newplo|tdir{cha|
|00001ec0| 70 42 7d 0a 58 20 20 20 | 20 5c 70 6c 6f 74 7b 6f |pB}.X | \plot{o|
|00001ed0| 6e 65 7d 7b 7d 7b 54 68 | 69 73 20 69 73 20 70 6c |ne}{}{Th|is is pl|
|00001ee0| 6f 74 20 63 68 61 70 42 | 2f 6f 6e 65 7d 0a 58 20 |ot chapB|/one}.X |
|00001ef0| 20 20 20 5c 70 6c 6f 74 | 7b 74 77 6f 7d 7b 7d 7b | \plot|{two}{}{|
|00001f00| 54 68 69 73 20 69 73 20 | 70 6c 6f 74 20 63 68 61 |This is |plot cha|
|00001f10| 70 42 2f 74 77 6f 7d 0a | 58 20 20 20 20 5c 70 6c |pB/two}.|X \pl|
|00001f20| 6f 74 72 65 66 7b 6f 6e | 65 7d 20 72 65 66 65 72 |otref{on|e} refer|
|00001f30| 73 20 74 6f 20 63 68 61 | 70 42 2f 6f 6e 65 2c 20 |s to cha|pB/one, |
|00001f40| 4e 4f 54 20 63 68 61 70 | 41 2f 6f 6e 65 2e 20 57 |NOT chap|A/one. W|
|00001f50| 65 20 68 61 76 65 20 74 | 77 6f 0a 58 09 70 69 63 |e have t|wo.X.pic|
|00001f60| 74 75 72 65 73 2c 20 5c | 66 69 67 72 61 6e 67 65 |tures, \|figrange|
|00001f70| 7b 62 61 72 7d 7b 6a 75 | 6e 6b 7d 2e 0a 58 20 20 |{bar}{ju|nk}..X |
|00001f80| 20 20 5c 66 69 67 7b 62 | 61 72 7d 7b 7d 7b 54 68 | \fig{b|ar}{}{Th|
|00001f90| 69 73 20 69 73 20 70 6c | 6f 74 20 63 68 61 70 42 |is is pl|ot chapB|
|00001fa0| 2f 6d 69 73 63 2f 62 61 | 72 7d 0a 58 20 20 20 20 |/misc/ba|r}.X |
|00001fb0| 5c 66 69 67 7b 6a 75 6e | 6b 7d 7b 7d 7b 54 68 69 |\fig{jun|k}{}{Thi|
|00001fc0| 73 20 69 73 20 70 6c 6f | 74 20 63 68 61 70 42 2f |s is plo|t chapB/|
|00001fd0| 6d 69 73 63 2f 6a 75 6e | 6b 7d 0a 58 54 79 70 69 |misc/jun|k}.XTypi|
|00001fe0| 63 61 6c 6c 79 2c 20 49 | 20 68 61 76 65 20 6f 6e |cally, I| have on|
|00001ff0| 65 20 70 6c 6f 74 64 69 | 72 20 66 6f 72 20 65 61 |e plotdi|r for ea|
|00002000| 63 68 20 63 68 61 70 74 | 65 72 20 6f 72 20 6f 74 |ch chapt|er or ot|
|00002010| 68 65 72 20 6d 61 6a 6f | 72 0a 58 73 65 63 74 69 |her majo|r.Xsecti|
|00002020| 6f 6e 61 6c 20 75 6e 69 | 74 2e 20 54 68 69 73 20 |onal uni|t. This |
|00002030| 69 73 20 61 20 63 6f 6e | 76 65 6e 69 65 6e 74 20 |is a con|venient |
|00002040| 77 61 79 20 74 6f 20 61 | 76 6f 69 64 20 6e 61 6d |way to a|void nam|
|00002050| 65 20 63 6c 61 73 68 65 | 73 20 69 6e 20 70 6c 6f |e clashe|s in plo|
|00002060| 74 0a 58 6e 61 6d 65 73 | 2e 20 46 6f 72 20 65 76 |t.Xnames|. For ev|
|00002070| 65 72 79 64 61 79 20 75 | 73 61 67 65 2c 20 6e 6f |eryday u|sage, no|
|00002080| 20 5c 6e 65 77 70 6c 6f | 74 64 69 72 20 69 73 20 | \newplo|tdir is |
|00002090| 6e 65 65 64 65 64 2c 20 | 61 6e 64 20 61 6c 6c 20 |needed, |and all |
|000020a0| 70 6c 6f 74 64 69 72 73 | 0a 58 73 68 6f 75 6c 64 |plotdirs|.Xshould|
|000020b0| 20 62 65 20 64 69 72 65 | 63 74 6c 79 20 69 6e 20 | be dire|ctly in |
|000020c0| 66 69 67 73 2f 2e 0a 58 | 0a 58 0a 58 44 61 76 69 |figs/..X|.X.XDavi|
|000020d0| 64 20 4b 6f 74 7a 0a 58 | 64 66 6b 40 63 73 2e 64 |d Kotz.X|dfk@cs.d|
|000020e0| 75 6b 65 2e 65 64 75 0a | 58 4d 61 72 63 68 20 31 |uke.edu.|XMarch 1|
|000020f0| 39 39 31 0a 58 0a 58 0a | 53 48 41 52 5f 45 4f 46 |991.X.X.|SHAR_EOF|
|00002100| 0a 66 69 20 23 20 65 6e | 64 20 6f 66 20 6f 76 65 |.fi # en|d of ove|
|00002110| 72 77 72 69 74 69 6e 67 | 20 63 68 65 63 6b 0a 69 |rwriting| check.i|
|00002120| 66 20 74 65 73 74 20 21 | 20 2d 64 20 27 66 69 67 |f test !| -d 'fig|
|00002130| 73 27 0a 74 68 65 6e 0a | 09 6d 6b 64 69 72 20 27 |s'.then.|.mkdir '|
|00002140| 66 69 67 73 27 0a 66 69 | 0a 63 64 20 27 66 69 67 |figs'.fi|.cd 'fig|
|00002150| 73 27 0a 69 66 20 74 65 | 73 74 20 2d 66 20 27 70 |s'.if te|st -f 'p|
|00002160| 69 63 2e 74 65 78 27 0a | 74 68 65 6e 0a 09 65 63 |ic.tex'.|then..ec|
|00002170| 68 6f 20 73 68 61 72 3a | 20 77 69 6c 6c 20 6e 6f |ho shar:| will no|
|00002180| 74 20 6f 76 65 72 2d 77 | 72 69 74 65 20 65 78 69 |t over-w|rite exi|
|00002190| 73 74 69 6e 67 20 66 69 | 6c 65 20 22 27 70 69 63 |sting fi|le "'pic|
|000021a0| 2e 74 65 78 27 22 0a 65 | 6c 73 65 0a 73 65 64 20 |.tex'".e|lse.sed |
|000021b0| 27 73 2f 5e 58 2f 2f 27 | 20 3c 3c 20 5c 53 48 41 |'s/^X//'| << \SHA|
|000021c0| 52 5f 45 4f 46 20 3e 20 | 27 70 69 63 2e 74 65 78 |R_EOF > |'pic.tex|
|000021d0| 27 0a 58 5c 64 6f 63 75 | 6d 65 6e 74 73 74 79 6c |'.X\docu|mentstyl|
|000021e0| 65 7b 61 72 74 69 63 6c | 65 7d 0a 58 5c 70 61 67 |e{articl|e}.X\pag|
|000021f0| 65 73 74 79 6c 65 7b 65 | 6d 70 74 79 7d 0a 58 5c |estyle{e|mpty}.X\|
|00002200| 62 65 67 69 6e 7b 64 6f | 63 75 6d 65 6e 74 7d 0a |begin{do|cument}.|
|00002210| 58 5c 73 6c 6f 70 70 79 | 0a 58 5c 73 65 74 6c 65 |X\sloppy|.X\setle|
|00002220| 6e 67 74 68 7b 5c 74 65 | 78 74 77 69 64 74 68 7d |ngth{\te|xtwidth}|
|00002230| 7b 38 69 6e 7d 0a 58 5c | 73 65 74 6c 65 6e 67 74 |{8in}.X\|setlengt|
|00002240| 68 7b 5c 74 65 78 74 68 | 65 69 67 68 74 7d 7b 39 |h{\texth|eight}{9|
|00002250| 69 6e 7d 0a 58 5c 73 65 | 74 6c 65 6e 67 74 68 7b |in}.X\se|tlength{|
|00002260| 5c 74 6f 70 6d 61 72 67 | 69 6e 7d 7b 2d 30 2e 35 |\topmarg|in}{-0.5|
|00002270| 69 6e 7d 0a 58 5c 73 65 | 74 6c 65 6e 67 74 68 7b |in}.X\se|tlength{|
|00002280| 5c 6f 64 64 73 69 64 65 | 6d 61 72 67 69 6e 7d 7b |\oddside|margin}{|
|00002290| 30 70 74 7d 0a 58 5c 73 | 65 74 6c 65 6e 67 74 68 |0pt}.X\s|etlength|
|000022a0| 7b 5c 65 76 65 6e 73 69 | 64 65 6d 61 72 67 69 6e |{\evensi|demargin|
|000022b0| 7d 7b 30 70 74 7d 0a 58 | 5c 62 65 67 69 6e 7b 63 |}{0pt}.X|\begin{c|
|000022c0| 65 6e 74 65 72 7d 0a 58 | 5c 69 6e 70 75 74 20 7b |enter}.X|\input {|
|000022d0| 70 6c 6f 74 7d 0a 58 5c | 65 6e 64 7b 63 65 6e 74 |plot}.X\|end{cent|
|000022e0| 65 72 7d 0a 58 5c 65 6e | 64 7b 64 6f 63 75 6d 65 |er}.X\en|d{docume|
|000022f0| 6e 74 7d 0a 53 48 41 52 | 5f 45 4f 46 0a 66 69 20 |nt}.SHAR|_EOF.fi |
|00002300| 23 20 65 6e 64 20 6f 66 | 20 6f 76 65 72 77 72 69 |# end of| overwri|
|00002310| 74 69 6e 67 20 63 68 65 | 63 6b 0a 69 66 20 74 65 |ting che|ck.if te|
|00002320| 73 74 20 2d 66 20 27 6d | 61 6b 65 61 6c 6c 27 0a |st -f 'm|akeall'.|
|00002330| 74 68 65 6e 0a 09 65 63 | 68 6f 20 73 68 61 72 3a |then..ec|ho shar:|
|00002340| 20 77 69 6c 6c 20 6e 6f | 74 20 6f 76 65 72 2d 77 | will no|t over-w|
|00002350| 72 69 74 65 20 65 78 69 | 73 74 69 6e 67 20 66 69 |rite exi|sting fi|
|00002360| 6c 65 20 22 27 6d 61 6b | 65 61 6c 6c 27 22 0a 65 |le "'mak|eall'".e|
|00002370| 6c 73 65 0a 73 65 64 20 | 27 73 2f 5e 58 2f 2f 27 |lse.sed |'s/^X//'|
|00002380| 20 3c 3c 20 5c 53 48 41 | 52 5f 45 4f 46 20 3e 20 | << \SHA|R_EOF > |
|00002390| 27 6d 61 6b 65 61 6c 6c | 27 0a 58 23 21 2f 62 69 |'makeall|'.X#!/bi|
|000023a0| 6e 2f 63 73 68 20 2d 66 | 0a 58 23 20 4d 61 6b 65 |n/csh -f|.X# Make|
|000023b0| 20 61 6c 6c 20 66 69 67 | 75 72 65 73 0a 58 23 20 | all fig|ures.X# |
|000023c0| 61 72 67 75 6d 65 6e 74 | 73 20 61 72 65 20 70 61 |argument|s are pa|
|000023d0| 73 73 65 64 20 6f 6e 20 | 74 6f 20 65 61 63 68 20 |ssed on |to each |
|000023e0| 6d 61 6b 65 0a 58 0a 58 | 69 66 20 28 24 31 20 3d |make.X.X|if ($1 =|
|000023f0| 3d 20 63 6c 65 61 6e 20 | 7c 7c 20 24 31 20 3d 3d |= clean ||| $1 ==|
|00002400| 20 73 70 6f 74 6c 65 73 | 73 29 20 74 68 65 6e 0a | spotles|s) then.|
|00002410| 58 09 20 20 20 66 6f 72 | 65 61 63 68 20 69 20 28 |X. for|each i (|
|00002420| 2a 2f 4d 61 6b 65 66 69 | 6c 65 29 0a 58 09 20 20 |*/Makefi|le).X. |
|00002430| 20 09 20 20 20 69 66 20 | 28 24 69 3a 68 20 3d 3d | . if |($i:h ==|
|00002440| 20 6d 69 73 63 29 20 63 | 6f 6e 74 69 6e 75 65 0a | misc) c|ontinue.|
|00002450| 58 09 20 20 20 09 20 20 | 20 65 63 68 6f 20 24 69 |X. . | echo $i|
|00002460| 3a 68 0a 58 09 20 20 20 | 09 20 20 20 28 63 64 20 |:h.X. |. (cd |
|00002470| 24 69 3a 68 3b 20 6d 61 | 6b 65 20 24 2a 29 0a 58 |$i:h; ma|ke $*).X|
|00002480| 09 20 20 20 65 6e 64 0a | 58 09 20 20 20 28 63 64 |. end.|X. (cd|
|00002490| 20 6d 69 73 63 3b 20 6d | 61 6b 65 20 63 6c 65 61 | misc; m|ake clea|
|000024a0| 6e 29 0a 58 65 6c 73 65 | 0a 58 09 20 20 20 66 6f |n).Xelse|.X. fo|
|000024b0| 72 65 61 63 68 20 69 20 | 28 2a 2f 4d 61 6b 65 66 |reach i |(*/Makef|
|000024c0| 69 6c 65 29 0a 58 09 20 | 20 20 09 20 20 20 65 63 |ile).X. | . ec|
|000024d0| 68 6f 20 24 69 3a 68 0a | 58 09 20 20 20 09 20 20 |ho $i:h.|X. . |
|000024e0| 20 28 63 64 20 24 69 3a | 68 3b 20 6d 61 6b 65 20 | (cd $i:|h; make |
|000024f0| 24 2a 29 0a 58 09 20 20 | 20 65 6e 64 0a 58 65 6e |$*).X. | end.Xen|
|00002500| 64 69 66 0a 53 48 41 52 | 5f 45 4f 46 0a 63 68 6d |dif.SHAR|_EOF.chm|
|00002510| 6f 64 20 2b 78 20 27 6d | 61 6b 65 61 6c 6c 27 0a |od +x 'm|akeall'.|
|00002520| 66 69 20 23 20 65 6e 64 | 20 6f 66 20 6f 76 65 72 |fi # end| of over|
|00002530| 77 72 69 74 69 6e 67 20 | 63 68 65 63 6b 0a 69 66 |writing |check.if|
|00002540| 20 74 65 73 74 20 2d 66 | 20 27 4d 61 6b 65 66 69 | test -f| 'Makefi|
|00002550| 6c 65 2e 65 61 63 68 27 | 0a 74 68 65 6e 0a 09 65 |le.each'|.then..e|
|00002560| 63 68 6f 20 73 68 61 72 | 3a 20 77 69 6c 6c 20 6e |cho shar|: will n|
|00002570| 6f 74 20 6f 76 65 72 2d | 77 72 69 74 65 20 65 78 |ot over-|write ex|
|00002580| 69 73 74 69 6e 67 20 66 | 69 6c 65 20 22 27 4d 61 |isting f|ile "'Ma|
|00002590| 6b 65 66 69 6c 65 2e 65 | 61 63 68 27 22 0a 65 6c |kefile.e|ach'".el|
|000025a0| 73 65 0a 73 65 64 20 27 | 73 2f 5e 58 2f 2f 27 20 |se.sed '|s/^X//' |
|000025b0| 3c 3c 20 5c 53 48 41 52 | 5f 45 4f 46 20 3e 20 27 |<< \SHAR|_EOF > '|
|000025c0| 4d 61 6b 65 66 69 6c 65 | 2e 65 61 63 68 27 0a 58 |Makefile|.each'.X|
|000025d0| 23 20 54 68 69 73 20 69 | 73 20 6c 69 6e 6b 65 64 |# This i|s linked|
|000025e0| 20 69 6e 74 6f 20 65 61 | 63 68 20 70 6c 6f 74 20 | into ea|ch plot |
|000025f0| 64 69 72 65 63 74 6f 72 | 79 20 61 73 20 27 4d 61 |director|y as 'Ma|
|00002600| 6b 65 66 69 6c 65 27 0a | 58 0a 58 74 65 78 3a 20 |kefile'.|X.Xtex: |
|00002610| 70 6c 6f 74 2e 74 65 78 | 20 73 6b 65 6c 2e 74 65 |plot.tex| skel.te|
|00002620| 78 0a 58 0a 58 23 20 6d | 61 6b 65 20 61 20 6e 65 |x.X.X# m|ake a ne|
|00002630| 77 20 74 65 78 20 70 6c | 6f 74 20 66 69 6c 65 0a |w tex pl|ot file.|
|00002640| 58 70 6c 6f 74 2e 74 65 | 78 3a 20 70 6c 6f 74 0a |Xplot.te|x: plot.|
|00002650| 58 09 67 6e 75 70 6c 6f | 74 20 70 6c 6f 74 0a 58 |X.gnuplo|t plot.X|
|00002660| 09 72 6d 20 2d 66 20 73 | 6b 65 6c 2e 74 65 78 0a |.rm -f s|kel.tex.|
|00002670| 58 0a 58 23 20 6d 61 6b | 65 20 61 20 73 6b 65 6c |X.X# mak|e a skel|
|00002680| 65 74 6f 6e 20 66 69 6c | 65 20 66 6f 72 20 71 75 |eton fil|e for qu|
|00002690| 69 63 6b 65 72 20 64 72 | 61 66 74 20 6c 61 74 65 |icker dr|aft late|
|000026a0| 78 69 6e 67 0a 58 73 6b | 65 6c 2e 74 65 78 3a 20 |xing.Xsk|el.tex: |
|000026b0| 70 6c 6f 74 2e 74 65 78 | 0a 58 09 70 6c 6f 74 73 |plot.tex|.X.plots|
|000026c0| 6b 65 6c 20 70 6c 6f 74 | 2e 74 65 78 20 3e 20 73 |kel plot|.tex > s|
|000026d0| 6b 65 6c 2e 74 65 78 0a | 58 0a 58 23 20 6f 72 20 |kel.tex.|X.X# or |
|000026e0| 79 6f 75 20 76 69 65 77 | 20 69 74 0a 58 76 20 76 |you view| it.Xv v|
|000026f0| 69 65 77 3a 20 70 69 63 | 2e 64 76 69 0a 58 09 78 |iew: pic|.dvi.X.x|
|00002700| 74 65 78 20 70 69 63 0a | 58 0a 58 23 20 6f 72 20 |tex pic.|X.X# or |
|00002710| 79 6f 75 20 70 72 69 6e | 74 20 69 74 0a 58 70 20 |you prin|t it.Xp |
|00002720| 70 72 69 6e 74 3a 20 70 | 69 63 2e 64 76 69 0a 58 |print: p|ic.dvi.X|
|00002730| 09 74 65 78 70 72 69 6e | 74 20 70 69 63 0a 58 0a |.texprin|t pic.X.|
|00002740| 58 72 65 6d 61 6b 65 3a | 0a 58 09 72 6d 20 2d 66 |Xremake:|.X.rm -f|
|00002750| 20 70 6c 6f 74 2e 74 65 | 78 20 73 6b 65 6c 2e 74 | plot.te|x skel.t|
|00002760| 65 78 0a 58 0a 58 64 76 | 69 3a 20 70 69 63 2e 64 |ex.X.Xdv|i: pic.d|
|00002770| 76 69 0a 58 0a 58 70 69 | 63 2e 64 76 69 3a 20 70 |vi.X.Xpi|c.dvi: p|
|00002780| 6c 6f 74 2e 74 65 78 0a | 58 09 6c 61 74 65 78 20 |lot.tex.|X.latex |
|00002790| 2e 2e 2f 70 69 63 0a 58 | 0a 58 63 6c 65 61 6e 3a |../pic.X|.Xclean:|
|000027a0| 0a 58 09 72 6d 20 2d 66 | 20 2a 7e 20 70 69 63 2e |.X.rm -f| *~ pic.|
|000027b0| 64 76 69 20 70 69 63 2e | 61 75 78 20 70 69 63 2e |dvi pic.|aux pic.|
|000027c0| 6c 6f 67 0a 58 0a 58 73 | 70 6f 74 6c 65 73 73 3a |log.X.Xs|potless:|
|000027d0| 20 63 6c 65 61 6e 0a 58 | 09 72 6d 20 2d 66 20 70 | clean.X|.rm -f p|
|000027e0| 6c 6f 74 2e 74 65 78 20 | 73 6b 65 6c 2e 74 65 78 |lot.tex |skel.tex|
|000027f0| 0a 53 48 41 52 5f 45 4f | 46 0a 66 69 20 23 20 65 |.SHAR_EO|F.fi # e|
|00002800| 6e 64 20 6f 66 20 6f 76 | 65 72 77 72 69 74 69 6e |nd of ov|erwritin|
|00002810| 67 20 63 68 65 63 6b 0a | 63 64 20 2e 2e 0a 69 66 |g check.|cd ...if|
|00002820| 20 74 65 73 74 20 2d 66 | 20 27 70 6c 6f 74 63 6f | test -f| 'plotco|
|00002830| 6d 6d 61 6e 64 2e 74 65 | 78 27 0a 74 68 65 6e 0a |mmand.te|x'.then.|
|00002840| 09 65 63 68 6f 20 73 68 | 61 72 3a 20 77 69 6c 6c |.echo sh|ar: will|
|00002850| 20 6e 6f 74 20 6f 76 65 | 72 2d 77 72 69 74 65 20 | not ove|r-write |
|00002860| 65 78 69 73 74 69 6e 67 | 20 66 69 6c 65 20 22 27 |existing| file "'|
|00002870| 70 6c 6f 74 63 6f 6d 6d | 61 6e 64 2e 74 65 78 27 |plotcomm|and.tex'|
|00002880| 22 0a 65 6c 73 65 0a 73 | 65 64 20 27 73 2f 5e 58 |".else.s|ed 's/^X|
|00002890| 2f 2f 27 20 3c 3c 20 5c | 53 48 41 52 5f 45 4f 46 |//' << \|SHAR_EOF|
|000028a0| 20 3e 20 27 70 6c 6f 74 | 63 6f 6d 6d 61 6e 64 2e | > 'plot|command.|
|000028b0| 74 65 78 27 0a 58 25 20 | 53 6f 6d 65 20 4c 61 54 |tex'.X% |Some LaT|
|000028c0| 65 58 20 6d 61 63 72 6f | 73 20 66 6f 72 20 68 61 |eX macro|s for ha|
|000028d0| 6e 64 6c 69 6e 67 20 67 | 6e 75 70 6c 6f 74 20 70 |ndling g|nuplot p|
|000028e0| 6c 6f 74 73 0a 58 25 20 | 44 61 76 69 64 20 4b 6f |lots.X% |David Ko|
|000028f0| 74 7a 20 64 66 6b 40 63 | 73 2e 64 75 6b 65 2e 65 |tz dfk@c|s.duke.e|
|00002900| 64 75 0a 58 0a 58 25 20 | 46 69 6e 64 20 6f 75 74 |du.X.X% |Find out|
|00002910| 20 77 68 65 74 68 65 72 | 20 75 73 65 72 20 77 61 | whether| user wa|
|00002920| 6e 74 73 20 66 75 6c 6c | 20 70 6c 6f 74 20 6f 72 |nts full| plot or|
|00002930| 20 73 6b 65 6c 65 74 6f | 6e 20 70 6c 6f 74 73 0a | skeleto|n plots.|
|00002940| 58 25 20 55 73 65 72 20 | 74 79 70 65 73 20 65 69 |X% User |types ei|
|00002950| 74 68 65 72 20 60 60 70 | 6c 6f 74 27 27 20 6f 72 |ther ``p|lot'' or|
|00002960| 20 60 60 73 6b 65 6c 27 | 27 20 28 6e 6f 20 71 75 | ``skel'|' (no qu|
|00002970| 6f 74 65 73 29 0a 58 5c | 74 79 70 65 69 6e 5b 5c |otes).X\|typein[\|
|00002980| 70 6c 6f 74 73 6b 65 6c | 5d 7b 44 6f 20 79 6f 75 |plotskel|]{Do you|
|00002990| 20 77 69 73 68 20 66 75 | 6c 6c 20 70 6c 6f 74 73 | wish fu|ll plots|
|000029a0| 20 5b 70 6c 6f 74 5d 20 | 6f 72 20 73 6b 65 6c 65 | [plot] |or skele|
|000029b0| 74 6f 6e 20 70 6c 6f 74 | 73 20 5b 73 6b 65 6c 5d |ton plot|s [skel]|
|000029c0| 3f 7d 0a 58 0a 58 25 20 | 44 65 66 69 6e 65 20 74 |?}.X.X% |Define t|
|000029d0| 68 65 20 63 75 72 72 65 | 6e 74 20 70 6c 6f 74 20 |he curre|nt plot |
|000029e0| 64 69 72 65 63 74 6f 72 | 79 0a 58 5c 6e 65 77 63 |director|y.X\newc|
|000029f0| 6f 6d 6d 61 6e 64 7b 5c | 70 6c 6f 74 64 69 72 7d |ommand{\|plotdir}|
|00002a00| 7b 7d 0a 58 25 20 52 65 | 64 65 66 69 6e 65 20 74 |{}.X% Re|define t|
|00002a10| 68 65 20 63 75 72 72 65 | 6e 74 20 70 6c 6f 74 20 |he curre|nt plot |
|00002a20| 64 69 72 65 63 74 6f 72 | 79 0a 58 5c 6e 65 77 63 |director|y.X\newc|
|00002a30| 6f 6d 6d 61 6e 64 7b 5c | 6e 65 77 70 6c 6f 74 64 |ommand{\|newplotd|
|00002a40| 69 72 7d 5b 31 5d 7b 5c | 72 65 6e 65 77 63 6f 6d |ir}[1]{\|renewcom|
|00002a50| 6d 61 6e 64 7b 5c 70 6c | 6f 74 64 69 72 7d 7b 23 |mand{\pl|otdir}{#|
|00002a60| 31 2f 7d 7d 0a 58 0a 58 | 5c 6e 65 77 6c 65 6e 67 |1/}}.X.X|\newleng|
|00002a70| 74 68 7b 5c 70 6c 6f 74 | 77 69 64 74 68 7d 0a 58 |th{\plot|width}.X|
|00002a80| 5c 73 65 74 6c 65 6e 67 | 74 68 7b 5c 70 6c 6f 74 |\setleng|th{\plot|
|00002a90| 77 69 64 74 68 7d 7b 5c | 74 65 78 74 77 69 64 74 |width}{\|textwidt|
|00002aa0| 68 7d 0a 58 5c 61 64 64 | 74 6f 6c 65 6e 67 74 68 |h}.X\add|tolength|
|00002ab0| 7b 5c 70 6c 6f 74 77 69 | 64 74 68 7d 7b 2d 30 2e |{\plotwi|dth}{-0.|
|00002ac0| 31 69 6e 7d 0a 58 0a 58 | 25 25 25 25 25 25 25 25 |1in}.X.X|%%%%%%%%|
|00002ad0| 25 25 25 25 20 50 6c 6f | 74 73 20 25 25 25 25 25 |%%%% Plo|ts %%%%%|
|00002ae0| 25 25 25 25 25 25 25 25 | 0a 58 0a 58 25 20 44 65 |%%%%%%%%|.X.X% De|
|00002af0| 66 69 6e 65 20 5c 70 6c | 6f 74 0a 58 25 20 49 6e |fine \pl|ot.X% In|
|00002b00| 63 6c 75 64 65 20 61 20 | 70 6c 6f 74 20 69 6e 20 |clude a |plot in |
|00002b10| 74 68 65 20 73 74 61 6e | 64 61 72 64 20 77 61 79 |the stan|dard way|
|00002b20| 0a 58 25 20 20 50 61 72 | 6d 20 31 20 69 73 20 74 |.X% Par|m 1 is t|
|00002b30| 68 65 20 70 6c 6f 74 20 | 6e 61 6d 65 0a 58 25 20 |he plot |name.X% |
|00002b40| 20 50 61 72 6d 20 32 20 | 69 73 20 74 68 65 20 63 | Parm 2 |is the c|
|00002b50| 61 70 74 69 6f 6e 20 66 | 6f 72 20 74 68 65 20 6c |aption f|or the l|
|00002b60| 6f 66 0a 58 25 20 20 50 | 61 72 6d 20 33 20 69 73 |of.X% P|arm 3 is|
|00002b70| 20 74 68 65 20 72 65 61 | 6c 20 63 61 70 74 69 6f | the rea|l captio|
|00002b80| 6e 0a 58 5c 6e 65 77 63 | 6f 6d 6d 61 6e 64 7b 5c |n.X\newc|ommand{\|
|00002b90| 70 6c 6f 74 7d 5b 33 5d | 7b 0a 58 20 5c 62 65 67 |plot}[3]|{.X \beg|
|00002ba0| 69 6e 7b 66 69 67 75 72 | 65 7d 5b 68 74 62 70 5d |in{figur|e}[htbp]|
|00002bb0| 0a 58 20 20 5c 66 72 61 | 6d 65 62 6f 78 5b 5c 74 |.X \fra|mebox[\t|
|00002bc0| 65 78 74 77 69 64 74 68 | 5d 7b 0a 58 20 20 20 20 |extwidth|]{.X |
|00002bd0| 5c 62 65 67 69 6e 7b 6d | 69 6e 69 70 61 67 65 7d |\begin{m|inipage}|
|00002be0| 7b 5c 70 6c 6f 74 77 69 | 64 74 68 7d 0a 58 20 20 |{\plotwi|dth}.X |
|00002bf0| 20 20 20 20 5c 62 65 67 | 69 6e 7b 63 65 6e 74 65 | \beg|in{cente|
|00002c00| 72 7d 0a 58 20 20 20 20 | 20 20 20 5c 69 6e 70 75 |r}.X | \inpu|
|00002c10| 74 7b 66 69 67 73 2f 5c | 70 6c 6f 74 64 69 72 23 |t{figs/\|plotdir#|
|00002c20| 31 2f 5c 70 6c 6f 74 73 | 6b 65 6c 7d 0a 58 20 20 |1/\plots|kel}.X |
|00002c30| 20 20 20 20 5c 65 6e 64 | 7b 63 65 6e 74 65 72 7d | \end|{center}|
|00002c40| 0a 58 20 20 20 20 20 20 | 5c 63 61 70 74 69 6f 6e |.X |\caption|
|00002c50| 5b 23 32 5d 7b 23 33 7d | 0a 58 20 20 20 20 20 20 |[#2]{#3}|.X |
|00002c60| 5c 6c 61 62 65 6c 7b 66 | 3a 5c 70 6c 6f 74 64 69 |\label{f|:\plotdi|
|00002c70| 72 23 31 7d 0a 58 20 20 | 20 20 5c 65 6e 64 7b 6d |r#1}.X | \end{m|
|00002c80| 69 6e 69 70 61 67 65 7d | 0a 58 20 20 7d 0a 58 20 |inipage}|.X }.X |
|00002c90| 5c 65 6e 64 7b 66 69 67 | 75 72 65 7d 20 20 0a 58 |\end{fig|ure} .X|
|00002ca0| 7d 0a 58 0a 58 25 20 52 | 65 66 65 72 65 6e 63 65 |}.X.X% R|eference|
|00002cb0| 20 6f 6e 65 20 6f 66 20 | 74 68 65 20 61 62 6f 76 | one of |the abov|
|00002cc0| 65 20 70 6c 6f 74 73 20 | 28 62 65 66 6f 72 65 20 |e plots |(before |
|00002cd0| 6f 72 20 61 66 74 65 72 | 20 69 74 20 69 73 20 69 |or after| it is i|
|00002ce0| 6e 70 75 74 29 0a 58 5c | 6e 65 77 63 6f 6d 6d 61 |nput).X\|newcomma|
|00002cf0| 6e 64 7b 5c 70 6c 6f 74 | 72 65 66 7d 5b 31 5d 7b |nd{\plot|ref}[1]{|
|00002d00| 46 69 67 75 72 65 7e 5c | 72 65 66 7b 66 3a 5c 70 |Figure~\|ref{f:\p|
|00002d10| 6c 6f 74 64 69 72 23 31 | 7d 7d 0a 58 0a 58 25 20 |lotdir#1|}}.X.X% |
|00002d20| 52 65 66 65 72 65 6e 63 | 65 20 61 20 72 61 6e 67 |Referenc|e a rang|
|00002d30| 65 20 6f 66 20 70 6c 6f | 74 73 0a 58 5c 6e 65 77 |e of plo|ts.X\new|
|00002d40| 63 6f 6d 6d 61 6e 64 7b | 5c 70 6c 6f 74 72 61 6e |command{|\plotran|
|00002d50| 67 65 7d 5b 32 5d 7b 46 | 69 67 75 72 65 73 7e 5c |ge}[2]{F|igures~\|
|00002d60| 72 65 66 7b 66 3a 5c 70 | 6c 6f 74 64 69 72 23 31 |ref{f:\p|lotdir#1|
|00002d70| 7d 2d 2d 5c 72 65 66 7b | 66 3a 5c 70 6c 6f 74 64 |}--\ref{|f:\plotd|
|00002d80| 69 72 23 32 7d 7d 0a 58 | 0a 58 25 25 25 25 25 25 |ir#2}}.X|.X%%%%%%|
|00002d90| 25 25 25 25 25 25 20 4d | 69 73 63 20 66 69 67 75 |%%%%%% M|isc figu|
|00002da0| 72 65 73 20 25 25 25 25 | 25 25 25 25 25 25 25 25 |res %%%%|%%%%%%%%|
|00002db0| 25 0a 58 0a 58 25 20 44 | 65 66 69 6e 65 20 5c 66 |%.X.X% D|efine \f|
|00002dc0| 69 67 0a 58 25 20 49 6e | 63 6c 75 64 65 20 61 20 |ig.X% In|clude a |
|00002dd0| 6d 69 73 63 65 6c 6c 61 | 6e 65 6f 75 73 20 66 69 |miscella|neous fi|
|00002de0| 67 75 72 65 20 69 6e 20 | 74 68 65 20 73 74 61 6e |gure in |the stan|
|00002df0| 64 61 72 64 20 77 61 79 | 0a 58 25 20 20 50 61 72 |dard way|.X% Par|
|00002e00| 6d 20 31 20 69 73 20 74 | 68 65 20 66 69 67 20 6e |m 1 is t|he fig n|
|00002e10| 61 6d 65 0a 58 25 20 20 | 50 61 72 6d 20 32 20 69 |ame.X% |Parm 2 i|
|00002e20| 73 20 74 68 65 20 63 61 | 70 74 69 6f 6e 20 66 6f |s the ca|ption fo|
|00002e30| 72 20 74 68 65 20 6c 6f | 66 0a 58 25 20 20 50 61 |r the lo|f.X% Pa|
|00002e40| 72 6d 20 33 20 69 73 20 | 74 68 65 20 72 65 61 6c |rm 3 is |the real|
|00002e50| 20 63 61 70 74 69 6f 6e | 0a 58 5c 6e 65 77 63 6f | caption|.X\newco|
|00002e60| 6d 6d 61 6e 64 7b 5c 66 | 69 67 7d 5b 33 5d 7b 0a |mmand{\f|ig}[3]{.|
|00002e70| 58 20 5c 62 65 67 69 6e | 7b 66 69 67 75 72 65 7d |X \begin|{figure}|
|00002e80| 5b 68 74 62 70 5d 0a 58 | 20 20 5c 66 72 61 6d 65 |[htbp].X| \frame|
|00002e90| 62 6f 78 5b 5c 74 65 78 | 74 77 69 64 74 68 5d 7b |box[\tex|twidth]{|
|00002ea0| 0a 58 20 20 20 20 5c 62 | 65 67 69 6e 7b 6d 69 6e |.X \b|egin{min|
|00002eb0| 69 70 61 67 65 7d 7b 5c | 70 6c 6f 74 77 69 64 74 |ipage}{\|plotwidt|
|00002ec0| 68 7d 0a 58 20 20 20 20 | 20 20 5c 62 65 67 69 6e |h}.X | \begin|
|00002ed0| 7b 63 65 6e 74 65 72 7d | 0a 58 20 20 20 20 20 20 |{center}|.X |
|00002ee0| 20 5c 69 6e 70 75 74 7b | 66 69 67 73 2f 5c 70 6c | \input{|figs/\pl|
|00002ef0| 6f 74 64 69 72 20 6d 69 | 73 63 2f 23 31 7d 0a 58 |otdir mi|sc/#1}.X|
|00002f00| 20 20 20 20 20 20 5c 65 | 6e 64 7b 63 65 6e 74 65 | \e|nd{cente|
|00002f10| 72 7d 0a 58 20 20 20 20 | 20 20 5c 63 61 70 74 69 |r}.X | \capti|
|00002f20| 6f 6e 5b 23 32 5d 7b 23 | 33 7d 0a 58 20 20 20 20 |on[#2]{#|3}.X |
|00002f30| 20 20 5c 6c 61 62 65 6c | 7b 66 3a 5c 70 6c 6f 74 | \label|{f:\plot|
|00002f40| 64 69 72 20 6d 69 73 63 | 2f 23 31 7d 0a 58 20 20 |dir misc|/#1}.X |
|00002f50| 20 20 5c 65 6e 64 7b 6d | 69 6e 69 70 61 67 65 7d | \end{m|inipage}|
|00002f60| 0a 58 20 20 7d 0a 58 20 | 5c 65 6e 64 7b 66 69 67 |.X }.X |\end{fig|
|00002f70| 75 72 65 7d 20 20 0a 58 | 7d 0a 58 0a 58 25 20 52 |ure} .X|}.X.X% R|
|00002f80| 65 66 65 72 65 6e 63 65 | 20 6f 6e 65 20 6f 66 20 |eference| one of |
|00002f90| 74 68 65 20 61 62 6f 76 | 65 20 66 69 67 73 20 28 |the abov|e figs (|
|00002fa0| 62 65 66 6f 72 65 20 6f | 72 20 61 66 74 65 72 20 |before o|r after |
|00002fb0| 69 74 20 69 73 20 69 6e | 70 75 74 29 0a 58 5c 6e |it is in|put).X\n|
|00002fc0| 65 77 63 6f 6d 6d 61 6e | 64 7b 5c 66 69 67 72 65 |ewcomman|d{\figre|
|00002fd0| 66 7d 5b 31 5d 7b 46 69 | 67 75 72 65 7e 5c 72 65 |f}[1]{Fi|gure~\re|
|00002fe0| 66 7b 66 3a 5c 70 6c 6f | 74 64 69 72 20 6d 69 73 |f{f:\plo|tdir mis|
|00002ff0| 63 2f 23 31 7d 7d 0a 58 | 0a 58 25 20 52 65 66 65 |c/#1}}.X|.X% Refe|
|00003000| 72 65 6e 63 65 20 61 20 | 72 61 6e 67 65 20 6f 66 |rence a |range of|
|00003010| 20 66 69 67 73 0a 58 5c | 6e 65 77 63 6f 6d 6d 61 | figs.X\|newcomma|
|00003020| 6e 64 7b 5c 66 69 67 72 | 61 6e 67 65 7d 5b 32 5d |nd{\figr|ange}[2]|
|00003030| 7b 25 0a 58 46 69 67 75 | 72 65 73 7e 5c 72 65 66 |{%.XFigu|res~\ref|
|00003040| 7b 66 3a 5c 70 6c 6f 74 | 64 69 72 20 6d 69 73 63 |{f:\plot|dir misc|
|00003050| 2f 23 31 7d 2d 2d 5c 72 | 65 66 7b 66 3a 5c 70 6c |/#1}--\r|ef{f:\pl|
|00003060| 6f 74 64 69 72 20 6d 69 | 73 63 2f 23 32 7d 7d 0a |otdir mi|sc/#2}}.|
|00003070| 53 48 41 52 5f 45 4f 46 | 0a 66 69 20 23 20 65 6e |SHAR_EOF|.fi # en|
|00003080| 64 20 6f 66 20 6f 76 65 | 72 77 72 69 74 69 6e 67 |d of ove|rwriting|
|00003090| 20 63 68 65 63 6b 0a 69 | 66 20 74 65 73 74 20 2d | check.i|f test -|
|000030a0| 66 20 27 70 6c 6f 74 73 | 6b 65 6c 27 0a 74 68 65 |f 'plots|kel'.the|
|000030b0| 6e 0a 09 65 63 68 6f 20 | 73 68 61 72 3a 20 77 69 |n..echo |shar: wi|
|000030c0| 6c 6c 20 6e 6f 74 20 6f | 76 65 72 2d 77 72 69 74 |ll not o|ver-writ|
|000030d0| 65 20 65 78 69 73 74 69 | 6e 67 20 66 69 6c 65 20 |e existi|ng file |
|000030e0| 22 27 70 6c 6f 74 73 6b | 65 6c 27 22 0a 65 6c 73 |"'plotsk|el'".els|
|000030f0| 65 0a 73 65 64 20 27 73 | 2f 5e 58 2f 2f 27 20 3c |e.sed 's|/^X//' <|
|00003100| 3c 20 5c 53 48 41 52 5f | 45 4f 46 20 3e 20 27 70 |< \SHAR_|EOF > 'p|
|00003110| 6c 6f 74 73 6b 65 6c 27 | 0a 58 23 21 2f 62 69 6e |lotskel'|.X#!/bin|
|00003120| 2f 63 73 68 20 2d 66 20 | 0a 58 23 0a 58 23 20 4d |/csh -f |.X#.X# M|
|00003130| 61 6b 65 20 61 20 73 6b | 65 6c 65 74 6f 6e 20 76 |ake a sk|eleton v|
|00003140| 65 72 73 69 6f 6e 20 6f | 66 20 61 20 67 6e 75 70 |ersion o|f a gnup|
|00003150| 6c 6f 74 20 6f 72 20 67 | 6e 75 74 65 78 20 70 6c |lot or g|nutex pl|
|00003160| 6f 74 2e 74 65 78 20 66 | 69 6c 65 0a 58 23 20 54 |ot.tex f|ile.X# T|
|00003170| 68 69 73 20 63 61 6e 20 | 62 65 20 75 73 65 64 20 |his can |be used |
|00003180| 69 6e 20 74 68 65 20 73 | 61 6d 65 20 77 61 79 2c |in the s|ame way,|
|00003190| 20 61 6e 64 20 74 61 6b | 65 73 20 75 70 20 74 68 | and tak|es up th|
|000031a0| 65 20 73 61 6d 65 20 61 | 6d 6f 75 6e 74 20 6f 66 |e same a|mount of|
|000031b0| 0a 58 23 20 73 70 61 63 | 65 20 6f 6e 20 74 68 65 |.X# spac|e on the|
|000031c0| 20 70 61 67 65 2c 20 62 | 75 74 20 77 69 6c 6c 20 | page, b|ut will |
|000031d0| 72 75 6e 20 74 68 72 6f | 75 67 68 20 6c 61 74 65 |run thro|ugh late|
|000031e0| 78 20 4d 55 43 48 20 66 | 61 73 74 65 72 2e 20 47 |x MUCH f|aster. G|
|000031f0| 6f 6f 64 0a 58 23 20 66 | 6f 72 20 71 75 69 63 6b |ood.X# f|or quick|
|00003200| 20 64 72 61 66 74 73 2e | 0a 58 23 0a 58 23 20 55 | drafts.|.X#.X# U|
|00003210| 73 61 67 65 3a 0a 58 23 | 20 20 20 70 6c 6f 74 73 |sage:.X#| plots|
|00003220| 6b 65 6c 20 70 6c 6f 74 | 2e 74 65 78 20 0a 58 23 |kel plot|.tex .X#|
|00003230| 20 53 74 61 6e 64 61 72 | 64 20 6f 75 74 70 75 74 | Standar|d output|
|00003240| 20 69 73 20 73 6b 65 6c | 65 74 6f 6e 20 66 69 6c | is skel|eton fil|
|00003250| 65 0a 58 0a 58 69 66 20 | 28 24 23 61 72 67 76 20 |e.X.Xif |($#argv |
|00003260| 21 3d 20 31 29 20 74 68 | 65 6e 0a 58 09 20 20 20 |!= 1) th|en.X. |
|00003270| 65 63 68 6f 20 75 73 61 | 67 65 3a 20 70 6c 6f 74 |echo usa|ge: plot|
|00003280| 73 6b 65 6c 20 70 6c 6f | 74 2e 74 65 78 0a 58 09 |skel plo|t.tex.X.|
|00003290| 20 20 20 65 78 69 74 20 | 31 0a 58 65 6e 64 69 66 | exit |1.Xendif|
|000032a0| 0a 58 0a 58 73 65 64 20 | 2d 6e 20 2d 65 20 27 31 |.X.Xsed |-n -e '1|
|000032b0| 2c 2f 62 65 67 69 6e 7b | 70 69 63 74 75 72 65 7d |,/begin{|picture}|
|000032c0| 2f 70 27 20 2d 65 20 27 | 2f 65 6e 64 7b 70 69 63 |/p' -e '|/end{pic|
|000032d0| 74 75 72 65 7d 2f 2c 24 | 70 27 20 24 31 0a 53 48 |ture}/,$|p' $1.SH|
|000032e0| 41 52 5f 45 4f 46 0a 63 | 68 6d 6f 64 20 2b 78 20 |AR_EOF.c|hmod +x |
|000032f0| 27 70 6c 6f 74 73 6b 65 | 6c 27 0a 66 69 20 23 20 |'plotske|l'.fi # |
|00003300| 65 6e 64 20 6f 66 20 6f | 76 65 72 77 72 69 74 69 |end of o|verwriti|
|00003310| 6e 67 20 63 68 65 63 6b | 0a 23 09 45 6e 64 20 6f |ng check|.#.End o|
|00003320| 66 20 73 68 65 6c 6c 20 | 61 72 63 68 69 76 65 0a |f shell |archive.|
|00003330| 65 78 69 74 20 30 0a 2d | 2d 20 0a 44 65 70 61 72 |exit 0.-|- .Depar|
|00003340| 74 6d 65 6e 74 20 6f 66 | 20 43 6f 6d 70 75 74 65 |tment of| Compute|
|00003350| 72 20 53 63 69 65 6e 63 | 65 2c 20 44 75 6b 65 20 |r Scienc|e, Duke |
|00003360| 55 6e 69 76 65 72 73 69 | 74 79 2c 20 44 75 72 68 |Universi|ty, Durh|
|00003370| 61 6d 2c 20 4e 43 20 32 | 37 37 30 36 20 55 53 41 |am, NC 2|7706 USA|
|00003380| 0a 41 52 50 41 3a 09 64 | 66 6b 40 63 73 2e 64 75 |.ARPA:.d|fk@cs.du|
|00003390| 6b 65 2e 65 64 75 0a 43 | 53 4e 45 54 3a 09 64 66 |ke.edu.C|SNET:.df|
|000033a0| 6b 40 64 75 6b 65 20 20 | 20 20 20 20 20 20 0a 55 |k@duke | .U|
|000033b0| 55 43 50 3a 09 64 65 63 | 76 61 78 21 64 75 6b 65 |UCP:.dec|vax!duke|
|000033c0| 21 64 66 6b 0a | |!dfk. | |
+--------+-------------------------+-------------------------+--------+--------+