Debian Codegraph @

texmf-dist/doc/latex/logpap/example.tex

raw
1 %%
2 %% This is file `example.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% logpap.dtx (with options: `example')
8 %%
9 %% Copyright (c) 2004 Mike Kaufmann, all rights reserved
10 %%
11 %% This program is provided under the terms of the
12 %% LaTeX Project Public License distributed from CTAN
13 %% archives in directory macros/latex/base/lppl.txt.
14 %%
15 %% Author: Mike Kaufmann
16 %% [email protected]
17 %%
18 %% \CharacterTable
19 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
20 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
21 %% Digits \0\1\2\3\4\5\6\7\8\9
22 %% Exclamation \! Double quote \" Hash (number) \#
23 %% Dollar \$ Percent \% Ampersand \&
24 %% Acute accent \' Left paren \( Right paren \)
25 %% Asterisk \* Plus \+ Comma \,
26 %% Minus \- Point \. Solidus \/
27 %% Colon \: Semicolon \; Less than \<
28 %% Equals \= Greater than \> Question mark \?
29 %% Commercial at \@ Left bracket \[ Backslash \\
30 %% Right bracket \] Circumflex \^ Underscore \_
31 %% Grave accent \` Left brace \{ Vertical bar \|
32 %% Right brace \} Tilde \~}
33 %%
34 \documentclass[a4paper]{article}
35 \usepackage[latin1]{inputenc}
36 \usepackage{logpap}
37
38 \voffset-2cm
39 \hoffset-0.5cm
40 \textheight25cm
41 \textwidth14cm
42
43 \parindent0pt
44 \parskip1ex plus.3ex minus.2ex
45 \pagestyle{empty}
46 \unitlength1mm
47
48 \newcommand*{\lp}{\textsf{logpap}}
49 \newcommand*{\bs}{\char '134 }
50 \newcommand*{\lb}{\char '173 }
51 \newcommand*{\rb}{\char '175 }
52 \newcommand*{\param}[1]{\texttt{\textit{#1}}}
53
54 \begin{document}
55 \centerline{\textbf{\LARGE Some Examples for the \lp\ package.\footnote{The
56 source of this example file is part of \texttt{logpap.dtx}.}}}
57
58 \vspace{4mm}
59 The \lp\ package provides four macros for drawing logarithmic-logarithmic,
60 logarithmic-linear, linear-logarithmic and (because it was easy to implement)
61 linear-linear graph paper with \LaTeX.
62
63 \vspace{2mm}
64 \begin{picture}(140,50)
65 \LPSet{nofsnx,notwoniney}
66 \put( 0, 5){\linlogpap(60mm,12.5mm)(6,1){0,10}{1}[X][Y]}
67 \put(75, 5){\linlinpap(60mm,12.5mm)(6,1){0,10}{0,10}[X][Y]}
68 \put( 0,32.5){\loglogpap(60mm,12.5mm)(2,1){100m}{1}[X][Y]}
69 \put(75,32.5){\loglinpap(60mm,12.5mm)(2,1){100m}{0,10}[X][Y]}
70 \end{picture}
71
72 \vspace{2mm}
73 Altough the \lp\ package only draws logarithmic graph paper, there are
74 various things that can be changed. Figure \ref{fig:ov} will give an
75 overwiev. Here the first graph paper part where made with the default
76 settings and the command
77 \verb|\put(0,91){\loglinpap(80mm,10mm)(1,1){1}| \verb|{0}[X-name][Y-name]}|.
78 On the right side you can find the commands used to change the appearance.
79
80 Not all commands possible are shown here. Every option can be used with
81 \verb|\LPSet{|\param{option1}\verb|,| \param{option2}\verb|,...}| within the
82 document, every \param{option} has a counterpart \verb|no|\param{option} and
83 for every \param{option}\verb|x| also an \param{option}\verb|y| exists. Also
84 commands to set the three line widths, colors and the appearance of the $\mu$
85 are not shown.
86
87 \begin{figure}[ht]
88 \centering
89 \begin{picture}(140,106)
90 \put( 0,91){\loglinpap(80mm,10mm)(1,1){1}{0}[X-name][Y-name]}
91 \put(85,96){\makebox(0,0)[cl]{with default settings}}
92
93 \LPSet{nodimensions,noticksupright,tenlower}
94 \put( 0,69){\loglinpap(80mm,10mm)(1,1){1}{0}[optional][optional]}
95 \put(85,78){\makebox(0,0)[cl]{\texttt{\bs LPSet\lb nodimensions,}}}
96 \put(85,74){\makebox(0,0)[cl]{\texttt{\ \ \ \ \ \ \ noticksupright,}}}
97 \put(85,70){\makebox(0,0)[cl]{\texttt{\ \ \ \ \ \ \ tenlower\rb}}}
98 \LPSet{dimensions,ticksupright,notenlower}
99
100 \LPSet{notext,nofsnx}\DefineLPMinLineDist{1.9999mm}
101 \put( 0,47){\loglinpap(80mm,10mm)(1,1){1}{0}}
102 \put(85,56){\makebox(0,0)[cl]{\texttt{\bs LPSet\lb notext,}}}
103 \put(85,52){\makebox(0,0)[cl]{\texttt{\ \ \ \ \ \ \ nofsnx\rb}}}
104 \put(85,48){\makebox(0,0)[cl]{\texttt{\bs DefineLPMinLineDist\lb 1.9999mm\rb}}}
105 \LPSet{text,fsnx}\DefineLPMinLineDist{0.9999mm}
106
107 \DefineLPText{new text\quad}\DefineLPLabelFont{\sffamily\tiny}\LPSet{notwoninex}
108 \put( 0,25){\loglinpap(80mm,10mm)(1,1){1}{0}}
109 \put(85,36){\makebox(0,0)[cl]{\texttt{\bs DefineLPText\lb new text\bs quad\rb}}}
110 \put(85,32){\makebox(0,0)[cl]{\texttt{\bs DefineLPLabelFont}}}
111 \put(85,28){\makebox(0,0)[cl]{\texttt{\ \ \ \ \lb\bs sffamily\bs tiny\rb}}}
112 \put(85,24){\makebox(0,0)[cl]{\texttt{\bs LPSet\lb notwoninex\rb}}}
113 \DefineLPText{made with \LaTeX\ and \textsf{logpap}\quad}\DefineLPLabelFont{\scriptsize}\LPSet{twoninex}
114
115 \DefineLPThickTickLen{1mm}\DefineLPMedTickLen{0.5mm}\DefineLPLabelDist{0.5mm}
116 \put( 0, 3){\loglinpap(80mm,10mm)(1,1){1}{0}}
117 \put(85,12){\makebox(0,0)[cl]{\texttt{\bs DefineLPThickTickLen\lb 1mm\rb}}}
118 \put(85, 8){\makebox(0,0)[cl]{\texttt{\bs DefineLPMedTickLen\lb 0.5mm\rb}}}
119 \put(85, 4){\makebox(0,0)[cl]{\texttt{\bs DefineLPLabelDist\lb 0.5mm\rb}}}
120 \DefineLPThickTickLen{2mm}\DefineLPMedTickLen{1mm}\DefineLPLabelDist{1mm}
121 \end{picture}
122 \caption{Overview}\label{fig:ov}
123 \end{figure}
124 \end{document}
125 \endinput
126 %%
127 %% End of file `example.tex'.