Debian Codegraph @

texmf-dist/tex/latex/swimgraf/swimgraf.cfg

raw
1 %-------------------------------------%
2 % Configuration file for SWIMGRAF.STY %
3 %-------------------------------------%
4 % Path for records files
5 \def\swg@filepath{c:/xy/swimming/}
6 %
7 % Data filename. (File must be in same directory as .tex file containing
8 % \swimgraph macro.)
9 \def\swg@datafile{swg.dat}
10 %
11 %-------------------------------------%
12 % Colors %
13 %-------------------------------------%
14 %
15 \definecolor{gold}{rgb}{1.0,.8,.1}
16 \definecolor{lightgold}{rgb}{1.0,.9,.2}
17 \definecolor{silver}{rgb}{.7,.7,.7}
18 \definecolor{lightsilver}{rgb}{.9,.9,.9}
19 \definecolor{lightmagenta}{cmyk}{0, 0.3, 0, 0}
20 \definecolor{lightgreen}{cmyk}{.3, 0, .3, 0}
21 \definecolor{lightblue}{cmyk}{0.3, 0.3, 0, 0}
22 \definecolor{lightcyan}{cmyk}{0.3, 0, 0, 0}
23
24 % world record
25 % short course
26 \def\swg@wsccolor{gold}
27 % long course
28 \def\swg@wlccolor{lightgold}
29
30 % National record
31 % short course
32 \def\swg@nsccolor{cyan}
33 % long course
34 \def\swg@nlccolor{lightcyan}
35
36 % Age-specific records
37 % age record a
38 % short course
39 \def\swg@asccolor{magenta}
40 % long course
41 \def\swg@alccolor{lightmagenta}
42 % age record b
43 % short course
44 \def\swg@bsccolor{blue}
45 % long course
46 \def\swg@blccolor{lightblue}
47 % age record c
48 % short course
49 \def\swg@csccolor{yellow}
50 % long course
51 \def\swg@clccolor{yellow}
52 % age record d
53 % short course
54 \def\swg@dsccolor{yellow}
55 % long course
56 \def\swg@dlccolor{yellow}
57 % age record e
58 % short course
59 \def\swg@esccolor{yellow}
60 % long course
61 \def\swg@elccolor{yellow}
62 % age record f
63 % short course
64 \def\swg@fsccolor{yellow}
65 % long course
66 \def\swg@flccolor{yellow}
67 %
68 % swimmer's times
69 % short course
70 \def\swg@sccolor{green}
71 % long course
72 \def\swg@lccolor{lightgreen}
73
74 % labels for meet names
75 \def\swg@labelcolor{green}
76 %
77 % vertical lines for months
78 \def\swg@monthlinecolor{lightgray}
79 % vertical lines for years
80 \def\swg@yearlinecolor{black}
81 % horizontal lines at one second intervals
82 \def\swg@oneseclinecolor{lightgray}
83 % horizontal lines at five second intervals
84 \def\swg@fiveseclinecolor{black}
85
86 %-------------------------------------%
87 % Font size for meet name labels %
88 %-------------------------------------%
89 % Can be empty (in which case default font size for document used)
90 % or \small, \tiny, etc.
91 \def\swg@labelfontsize{}
92
93 %-------------------------------------%
94 % Distances %
95 %-------------------------------------%
96 % All distances can be numbers or dimensions (e.g. 5mm). If a dimension, the
97 % distance is fixed. If a number, it depends on the value of the xunit
98 % (if horizontal) or yunit (if vertical). If you have graphs using various
99 % yunits, a dimension may be best.
100 %
101 % At top:
102 % Vertical distance between top of graph and base of key.
103 \def\swg@keyvsep{8mm}
104 %
105 % At bottom:
106 % Vertical distance between baseline of graph and month labels.
107 \def\swg@monthvsep{5mm}
108
109 % Vertical distance between baseline of month labels and year labels.
110 \def\swg@yearvsep{5mm}
111
112 % Vertical distance between baseline of year labels and title.
113 \def\swg@titlevsep{5mm}
114
115 % Vertical distance between plotted dots and meet labels
116 \def\swg@labelvsep{3mm}
117
118 % At side:
119 % Horizontal distance between "time" label and y-axis
120 \def\swg@tlabelpos{14mm}
121
122 % Line width for plot of swimmer's times
123 \def\swg@linewidth{1mm}
124
125 % Line width for record lines
126 \def\swg@reclinewidth{0.8mm}
127
128 %-------------------------------------%
129 % Default options %
130 %-------------------------------------%
131 % Record series a, b, n, and w
132 \ExecuteOptions{a,b,n,w}
133
134 %-------------------------------------%
135 % Units %
136 %-------------------------------------%
137
138 % The units xunit and yunit determine the size of the plot.
139 % Changing them here changes the default. You can override this
140 % setting by using an optional argument of \swimgraph: e.g.
141 % \swimgraph[xunit=1mm,yunit=4mm]...
142 % The framesep determines the amount of white space around the boxes
143 % of text that block out the background (the labels for records).
144 \psset{xunit=.4mm,yunit=3.5mm,framesep=0pt}
145
146 %-------------------------------------%
147 % Formats used by \swimtext %
148 %-------------------------------------%
149
150 % For interpretation, see p. 24 of LaTeX Companion
151 \renewcommand{\section}%
152 {\@startsection{section}{1}{\z@}%
153 {-2ex \@plus -.5ex \@minus -.1ex}%
154 {0.7ex \@plus.1ex}%
155 {\hskip-\parindent\hskip -7pt\hbox to 0pt{\hss\rule[1.8pt]{5pt}{5pt}\hss}%
156 \hskip 7pt\reset@font\bfseries}}
157 \renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
158 {-1.5ex\@plus -.5ex \@minus -.1ex}%
159 {.5ex \@plus .1ex}%
160 {\reset@font\itshape}}
161
162 \newenvironment{swgdescription}
163 {\list{}{\labelwidth\z@ \itemindent-\leftmargin
164 \let\makelabel\swgdescriptionlabel
165 \parsep 0\p@
166 \itemsep 0\p@
167 \topsep 0\p@}}
168 {\endlist}
169 \newcommand*\swgdescriptionlabel[1]{\hspace\labelsep
170 \normalfont #1}
171
172
173