home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2990 / plotcommand.tex next >
LaTeX Document  |  1991-03-06  |  1.9 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

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

You can browse this item here: plotcommand.tex

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
100% dexvert Texinfo Document (document/texInfo) magic Supported
1% dexvert Corel 10 Texture (image/corel10Texture) ext Unsupported
1% dexvert Croteam texture file (image/croteamTextureFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file LaTeX document text default
99% file TeX document text default
98% 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 (weak)
100% xdgMime text/x-matlab default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 53 6f 6d 65 20 4c | 61 54 65 58 20 6d 61 63 |% Some L|aTeX mac|
|00000010| 72 6f 73 20 66 6f 72 20 | 68 61 6e 64 6c 69 6e 67 |ros for |handling|
|00000020| 20 67 6e 75 70 6c 6f 74 | 20 70 6c 6f 74 73 0a 25 | gnuplot| plots.%|
|00000030| 20 44 61 76 69 64 20 4b | 6f 74 7a 20 64 66 6b 40 | David K|otz dfk@|
|00000040| 63 73 2e 64 75 6b 65 2e | 65 64 75 0a 0a 25 20 46 |cs.duke.|edu..% F|
|00000050| 69 6e 64 20 6f 75 74 20 | 77 68 65 74 68 65 72 20 |ind out |whether |
|00000060| 75 73 65 72 20 77 61 6e | 74 73 20 66 75 6c 6c 20 |user wan|ts full |
|00000070| 70 6c 6f 74 20 6f 72 20 | 73 6b 65 6c 65 74 6f 6e |plot or |skeleton|
|00000080| 20 70 6c 6f 74 73 0a 25 | 20 55 73 65 72 20 74 79 | plots.%| User ty|
|00000090| 70 65 73 20 65 69 74 68 | 65 72 20 60 60 70 6c 6f |pes eith|er ``plo|
|000000a0| 74 27 27 20 6f 72 20 60 | 60 73 6b 65 6c 27 27 20 |t'' or `|`skel'' |
|000000b0| 28 6e 6f 20 71 75 6f 74 | 65 73 29 0a 5c 74 79 70 |(no quot|es).\typ|
|000000c0| 65 69 6e 5b 5c 70 6c 6f | 74 73 6b 65 6c 5d 7b 44 |ein[\plo|tskel]{D|
|000000d0| 6f 20 79 6f 75 20 77 69 | 73 68 20 66 75 6c 6c 20 |o you wi|sh full |
|000000e0| 70 6c 6f 74 73 20 5b 70 | 6c 6f 74 5d 20 6f 72 20 |plots [p|lot] or |
|000000f0| 73 6b 65 6c 65 74 6f 6e | 20 70 6c 6f 74 73 20 5b |skeleton| plots [|
|00000100| 73 6b 65 6c 5d 3f 7d 0a | 0a 25 20 44 65 66 69 6e |skel]?}.|.% Defin|
|00000110| 65 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 70 6c |e the cu|rrent pl|
|00000120| 6f 74 20 64 69 72 65 63 | 74 6f 72 79 0a 5c 6e 65 |ot direc|tory.\ne|
|00000130| 77 63 6f 6d 6d 61 6e 64 | 7b 5c 70 6c 6f 74 64 69 |wcommand|{\plotdi|
|00000140| 72 7d 7b 7d 0a 25 20 52 | 65 64 65 66 69 6e 65 20 |r}{}.% R|edefine |
|00000150| 74 68 65 20 63 75 72 72 | 65 6e 74 20 70 6c 6f 74 |the curr|ent plot|
|00000160| 20 64 69 72 65 63 74 6f | 72 79 0a 5c 6e 65 77 63 | directo|ry.\newc|
|00000170| 6f 6d 6d 61 6e 64 7b 5c | 6e 65 77 70 6c 6f 74 64 |ommand{\|newplotd|
|00000180| 69 72 7d 5b 31 5d 7b 5c | 72 65 6e 65 77 63 6f 6d |ir}[1]{\|renewcom|
|00000190| 6d 61 6e 64 7b 5c 70 6c | 6f 74 64 69 72 7d 7b 23 |mand{\pl|otdir}{#|
|000001a0| 31 2f 7d 7d 0a 0a 5c 6e | 65 77 6c 65 6e 67 74 68 |1/}}..\n|ewlength|
|000001b0| 7b 5c 70 6c 6f 74 77 69 | 64 74 68 7d 0a 5c 73 65 |{\plotwi|dth}.\se|
|000001c0| 74 6c 65 6e 67 74 68 7b | 5c 70 6c 6f 74 77 69 64 |tlength{|\plotwid|
|000001d0| 74 68 7d 7b 5c 74 65 78 | 74 77 69 64 74 68 7d 0a |th}{\tex|twidth}.|
|000001e0| 5c 61 64 64 74 6f 6c 65 | 6e 67 74 68 7b 5c 70 6c |\addtole|ngth{\pl|
|000001f0| 6f 74 77 69 64 74 68 7d | 7b 2d 30 2e 31 69 6e 7d |otwidth}|{-0.1in}|
|00000200| 0a 0a 25 25 25 25 25 25 | 25 25 25 25 25 25 20 50 |..%%%%%%|%%%%%% P|
|00000210| 6c 6f 74 73 20 25 25 25 | 25 25 25 25 25 25 25 25 |lots %%%|%%%%%%%%|
|00000220| 25 25 0a 0a 25 20 44 65 | 66 69 6e 65 20 5c 70 6c |%%..% De|fine \pl|
|00000230| 6f 74 0a 25 20 49 6e 63 | 6c 75 64 65 20 61 20 70 |ot.% Inc|lude a p|
|00000240| 6c 6f 74 20 69 6e 20 74 | 68 65 20 73 74 61 6e 64 |lot in t|he stand|
|00000250| 61 72 64 20 77 61 79 0a | 25 20 20 50 61 72 6d 20 |ard way.|% Parm |
|00000260| 31 20 69 73 20 74 68 65 | 20 70 6c 6f 74 20 6e 61 |1 is the| plot na|
|00000270| 6d 65 0a 25 20 20 50 61 | 72 6d 20 32 20 69 73 20 |me.% Pa|rm 2 is |
|00000280| 74 68 65 20 63 61 70 74 | 69 6f 6e 20 66 6f 72 20 |the capt|ion for |
|00000290| 74 68 65 20 6c 6f 66 0a | 25 20 20 50 61 72 6d 20 |the lof.|% Parm |
|000002a0| 33 20 69 73 20 74 68 65 | 20 72 65 61 6c 20 63 61 |3 is the| real ca|
|000002b0| 70 74 69 6f 6e 0a 5c 6e | 65 77 63 6f 6d 6d 61 6e |ption.\n|ewcomman|
|000002c0| 64 7b 5c 70 6c 6f 74 7d | 5b 33 5d 7b 0a 20 5c 62 |d{\plot}|[3]{. \b|
|000002d0| 65 67 69 6e 7b 66 69 67 | 75 72 65 7d 5b 68 74 62 |egin{fig|ure}[htb|
|000002e0| 70 5d 0a 20 20 5c 66 72 | 61 6d 65 62 6f 78 5b 5c |p]. \fr|amebox[\|
|000002f0| 74 65 78 74 77 69 64 74 | 68 5d 7b 0a 20 20 20 20 |textwidt|h]{. |
|00000300| 5c 62 65 67 69 6e 7b 6d | 69 6e 69 70 61 67 65 7d |\begin{m|inipage}|
|00000310| 7b 5c 70 6c 6f 74 77 69 | 64 74 68 7d 0a 20 20 20 |{\plotwi|dth}. |
|00000320| 20 20 20 5c 62 65 67 69 | 6e 7b 63 65 6e 74 65 72 | \begi|n{center|
|00000330| 7d 0a 20 20 20 20 20 20 | 20 5c 69 6e 70 75 74 7b |}. | \input{|
|00000340| 66 69 67 73 2f 5c 70 6c | 6f 74 64 69 72 23 31 2f |figs/\pl|otdir#1/|
|00000350| 5c 70 6c 6f 74 73 6b 65 | 6c 7d 0a 20 20 20 20 20 |\plotske|l}. |
|00000360| 20 5c 65 6e 64 7b 63 65 | 6e 74 65 72 7d 0a 20 20 | \end{ce|nter}. |
|00000370| 20 20 20 20 5c 63 61 70 | 74 69 6f 6e 5b 23 32 5d | \cap|tion[#2]|
|00000380| 7b 23 33 7d 0a 20 20 20 | 20 20 20 5c 6c 61 62 65 |{#3}. | \labe|
|00000390| 6c 7b 66 3a 5c 70 6c 6f | 74 64 69 72 23 31 7d 0a |l{f:\plo|tdir#1}.|
|000003a0| 20 20 20 20 5c 65 6e 64 | 7b 6d 69 6e 69 70 61 67 | \end|{minipag|
|000003b0| 65 7d 0a 20 20 7d 0a 20 | 5c 65 6e 64 7b 66 69 67 |e}. }. |\end{fig|
|000003c0| 75 72 65 7d 20 20 0a 7d | 0a 0a 25 20 52 65 66 65 |ure} .}|..% Refe|
|000003d0| 72 65 6e 63 65 20 6f 6e | 65 20 6f 66 20 74 68 65 |rence on|e of the|
|000003e0| 20 61 62 6f 76 65 20 70 | 6c 6f 74 73 20 28 62 65 | above p|lots (be|
|000003f0| 66 6f 72 65 20 6f 72 20 | 61 66 74 65 72 20 69 74 |fore or |after it|
|00000400| 20 69 73 20 69 6e 70 75 | 74 29 0a 5c 6e 65 77 63 | is inpu|t).\newc|
|00000410| 6f 6d 6d 61 6e 64 7b 5c | 70 6c 6f 74 72 65 66 7d |ommand{\|plotref}|
|00000420| 5b 31 5d 7b 46 69 67 75 | 72 65 7e 5c 72 65 66 7b |[1]{Figu|re~\ref{|
|00000430| 66 3a 5c 70 6c 6f 74 64 | 69 72 23 31 7d 7d 0a 0a |f:\plotd|ir#1}}..|
|00000440| 25 20 52 65 66 65 72 65 | 6e 63 65 20 61 20 72 61 |% Refere|nce a ra|
|00000450| 6e 67 65 20 6f 66 20 70 | 6c 6f 74 73 0a 5c 6e 65 |nge of p|lots.\ne|
|00000460| 77 63 6f 6d 6d 61 6e 64 | 7b 5c 70 6c 6f 74 72 61 |wcommand|{\plotra|
|00000470| 6e 67 65 7d 5b 32 5d 7b | 46 69 67 75 72 65 73 7e |nge}[2]{|Figures~|
|00000480| 5c 72 65 66 7b 66 3a 5c | 70 6c 6f 74 64 69 72 23 |\ref{f:\|plotdir#|
|00000490| 31 7d 2d 2d 5c 72 65 66 | 7b 66 3a 5c 70 6c 6f 74 |1}--\ref|{f:\plot|
|000004a0| 64 69 72 23 32 7d 7d 0a | 0a 25 25 25 25 25 25 25 |dir#2}}.|.%%%%%%%|
|000004b0| 25 25 25 25 25 20 4d 69 | 73 63 20 66 69 67 75 72 |%%%%% Mi|sc figur|
|000004c0| 65 73 20 25 25 25 25 25 | 25 25 25 25 25 25 25 25 |es %%%%%|%%%%%%%%|
|000004d0| 0a 0a 25 20 44 65 66 69 | 6e 65 20 5c 66 69 67 0a |..% Defi|ne \fig.|
|000004e0| 25 20 49 6e 63 6c 75 64 | 65 20 61 20 6d 69 73 63 |% Includ|e a misc|
|000004f0| 65 6c 6c 61 6e 65 6f 75 | 73 20 66 69 67 75 72 65 |ellaneou|s figure|
|00000500| 20 69 6e 20 74 68 65 20 | 73 74 61 6e 64 61 72 64 | in the |standard|
|00000510| 20 77 61 79 0a 25 20 20 | 50 61 72 6d 20 31 20 69 | way.% |Parm 1 i|
|00000520| 73 20 74 68 65 20 66 69 | 67 20 6e 61 6d 65 0a 25 |s the fi|g name.%|
|00000530| 20 20 50 61 72 6d 20 32 | 20 69 73 20 74 68 65 20 | Parm 2| is the |
|00000540| 63 61 70 74 69 6f 6e 20 | 66 6f 72 20 74 68 65 20 |caption |for the |
|00000550| 6c 6f 66 0a 25 20 20 50 | 61 72 6d 20 33 20 69 73 |lof.% P|arm 3 is|
|00000560| 20 74 68 65 20 72 65 61 | 6c 20 63 61 70 74 69 6f | the rea|l captio|
|00000570| 6e 0a 5c 6e 65 77 63 6f | 6d 6d 61 6e 64 7b 5c 66 |n.\newco|mmand{\f|
|00000580| 69 67 7d 5b 33 5d 7b 0a | 20 5c 62 65 67 69 6e 7b |ig}[3]{.| \begin{|
|00000590| 66 69 67 75 72 65 7d 5b | 68 74 62 70 5d 0a 20 20 |figure}[|htbp]. |
|000005a0| 5c 66 72 61 6d 65 62 6f | 78 5b 5c 74 65 78 74 77 |\framebo|x[\textw|
|000005b0| 69 64 74 68 5d 7b 0a 20 | 20 20 20 5c 62 65 67 69 |idth]{. | \begi|
|000005c0| 6e 7b 6d 69 6e 69 70 61 | 67 65 7d 7b 5c 70 6c 6f |n{minipa|ge}{\plo|
|000005d0| 74 77 69 64 74 68 7d 0a | 20 20 20 20 20 20 5c 62 |twidth}.| \b|
|000005e0| 65 67 69 6e 7b 63 65 6e | 74 65 72 7d 0a 20 20 20 |egin{cen|ter}. |
|000005f0| 20 20 20 20 5c 69 6e 70 | 75 74 7b 66 69 67 73 2f | \inp|ut{figs/|
|00000600| 5c 70 6c 6f 74 64 69 72 | 20 6d 69 73 63 2f 23 31 |\plotdir| misc/#1|
|00000610| 7d 0a 20 20 20 20 20 20 | 5c 65 6e 64 7b 63 65 6e |}. |\end{cen|
|00000620| 74 65 72 7d 0a 20 20 20 | 20 20 20 5c 63 61 70 74 |ter}. | \capt|
|00000630| 69 6f 6e 5b 23 32 5d 7b | 23 33 7d 0a 20 20 20 20 |ion[#2]{|#3}. |
|00000640| 20 20 5c 6c 61 62 65 6c | 7b 66 3a 5c 70 6c 6f 74 | \label|{f:\plot|
|00000650| 64 69 72 20 6d 69 73 63 | 2f 23 31 7d 0a 20 20 20 |dir misc|/#1}. |
|00000660| 20 5c 65 6e 64 7b 6d 69 | 6e 69 70 61 67 65 7d 0a | \end{mi|nipage}.|
|00000670| 20 20 7d 0a 20 5c 65 6e | 64 7b 66 69 67 75 72 65 | }. \en|d{figure|
|00000680| 7d 20 20 0a 7d 0a 0a 25 | 20 52 65 66 65 72 65 6e |} .}..%| Referen|
|00000690| 63 65 20 6f 6e 65 20 6f | 66 20 74 68 65 20 61 62 |ce one o|f the ab|
|000006a0| 6f 76 65 20 66 69 67 73 | 20 28 62 65 66 6f 72 65 |ove figs| (before|
|000006b0| 20 6f 72 20 61 66 74 65 | 72 20 69 74 20 69 73 20 | or afte|r it is |
|000006c0| 69 6e 70 75 74 29 0a 5c | 6e 65 77 63 6f 6d 6d 61 |input).\|newcomma|
|000006d0| 6e 64 7b 5c 66 69 67 72 | 65 66 7d 5b 31 5d 7b 46 |nd{\figr|ef}[1]{F|
|000006e0| 69 67 75 72 65 7e 5c 72 | 65 66 7b 66 3a 5c 70 6c |igure~\r|ef{f:\pl|
|000006f0| 6f 74 64 69 72 20 6d 69 | 73 63 2f 23 31 7d 7d 0a |otdir mi|sc/#1}}.|
|00000700| 0a 25 20 52 65 66 65 72 | 65 6e 63 65 20 61 20 72 |.% Refer|ence a r|
|00000710| 61 6e 67 65 20 6f 66 20 | 66 69 67 73 0a 5c 6e 65 |ange of |figs.\ne|
|00000720| 77 63 6f 6d 6d 61 6e 64 | 7b 5c 66 69 67 72 61 6e |wcommand|{\figran|
|00000730| 67 65 7d 5b 32 5d 7b 25 | 0a 46 69 67 75 72 65 73 |ge}[2]{%|.Figures|
|00000740| 7e 5c 72 65 66 7b 66 3a | 5c 70 6c 6f 74 64 69 72 |~\ref{f:|\plotdir|
|00000750| 20 6d 69 73 63 2f 23 31 | 7d 2d 2d 5c 72 65 66 7b | misc/#1|}--\ref{|
|00000760| 66 3a 5c 70 6c 6f 74 64 | 69 72 20 6d 69 73 63 2f |f:\plotd|ir misc/|
|00000770| 23 32 7d 7d 0a | |#2}}. | |
+--------+-------------------------+-------------------------+--------+--------+