summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/swimgraf/swimgraf.cfg
blob: 6764ad644331e11017d3a03d15e2c1a4713cd912 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
%-------------------------------------%
% Configuration file for SWIMGRAF.STY %
%-------------------------------------%
% Path for records files
\def\swg@filepath{c:/xy/swimming/}
%
% Data filename.  (File must be in same directory as .tex file containing
% \swimgraph macro.)
\def\swg@datafile{swg.dat}
%
%-------------------------------------%
% Colors                              %
%-------------------------------------%
%
\definecolor{gold}{rgb}{1.0,.8,.1}
\definecolor{lightgold}{rgb}{1.0,.9,.2}
\definecolor{silver}{rgb}{.7,.7,.7}
\definecolor{lightsilver}{rgb}{.9,.9,.9}
\definecolor{lightmagenta}{cmyk}{0, 0.3, 0, 0}
\definecolor{lightgreen}{cmyk}{.3, 0, .3, 0}
\definecolor{lightblue}{cmyk}{0.3, 0.3, 0, 0}
\definecolor{lightcyan}{cmyk}{0.3, 0, 0, 0}

% world record
%   short course
\def\swg@wsccolor{gold}
%   long course
\def\swg@wlccolor{lightgold}

% National record
%   short course
\def\swg@nsccolor{cyan}
%   long course
\def\swg@nlccolor{lightcyan}

% Age-specific records
% age record a
%   short course
\def\swg@asccolor{magenta}
%   long course
\def\swg@alccolor{lightmagenta}
% age record b
%   short course
\def\swg@bsccolor{blue}
%   long course
\def\swg@blccolor{lightblue}
% age record c
%   short course
\def\swg@csccolor{yellow}
%   long course
\def\swg@clccolor{yellow}
% age record d
%   short course
\def\swg@dsccolor{yellow}
%   long course
\def\swg@dlccolor{yellow}
% age record e
%   short course
\def\swg@esccolor{yellow}
%   long course
\def\swg@elccolor{yellow}
% age record f
%   short course
\def\swg@fsccolor{yellow}
%   long course
\def\swg@flccolor{yellow}
%
% swimmer's times
%   short course
\def\swg@sccolor{green}
%   long course
\def\swg@lccolor{lightgreen}

% labels for meet names
\def\swg@labelcolor{green}
%
% vertical lines for months
\def\swg@monthlinecolor{lightgray}
% vertical lines for years
\def\swg@yearlinecolor{black}
% horizontal lines at one second intervals
\def\swg@oneseclinecolor{lightgray}
% horizontal lines at five second intervals
\def\swg@fiveseclinecolor{black}

%-------------------------------------%
% Font size for meet name labels      %
%-------------------------------------%
% Can be empty (in which case default font size for document used)
% or \small, \tiny, etc.
\def\swg@labelfontsize{}

%-------------------------------------%
% Distances                           %
%-------------------------------------%
% All distances can be numbers or dimensions (e.g. 5mm).  If a dimension, the
% distance is fixed.  If a number, it depends on the value of the xunit
% (if horizontal) or yunit (if vertical).  If you have graphs using various
% yunits, a dimension may be best.
%
% At top:
% Vertical distance between top of graph and base of key.
\def\swg@keyvsep{8mm}
%
% At bottom:
% Vertical distance between baseline of graph and month labels.
\def\swg@monthvsep{5mm}

% Vertical distance between baseline of month labels and year labels.
\def\swg@yearvsep{5mm}

% Vertical distance between baseline of year labels and title.
\def\swg@titlevsep{5mm}

% Vertical distance between plotted dots and meet labels
\def\swg@labelvsep{3mm}

% At side:
% Horizontal distance between "time" label and y-axis
\def\swg@tlabelpos{14mm}

% Line width for plot of swimmer's times
\def\swg@linewidth{1mm}

% Line width for record lines
\def\swg@reclinewidth{0.8mm}

%-------------------------------------%
% Default options                     %
%-------------------------------------%
% Record series a, b, n, and w
\ExecuteOptions{a,b,n,w}

%-------------------------------------%
% Units                               %
%-------------------------------------%

% The units xunit and yunit determine the size of the plot.
% Changing them here changes the default.  You can override this
% setting by using an optional argument of \swimgraph: e.g.
% \swimgraph[xunit=1mm,yunit=4mm]...
% The framesep determines the amount of white space around the boxes
% of text that block out the background (the labels for records).
\psset{xunit=.4mm,yunit=3.5mm,framesep=0pt}

%-------------------------------------%
% Formats used by \swimtext           %
%-------------------------------------%

% For interpretation, see p. 24 of LaTeX Companion
\renewcommand{\section}%
  {\@startsection{section}{1}{\z@}%
     {-2ex \@plus -.5ex \@minus -.1ex}%
     {0.7ex \@plus.1ex}%
     {\hskip-\parindent\hskip -7pt\hbox to 0pt{\hss\rule[1.8pt]{5pt}{5pt}\hss}%
        \hskip 7pt\reset@font\bfseries}}
\renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
                                     {-1.5ex\@plus -.5ex \@minus -.1ex}%
                                     {.5ex \@plus .1ex}%
                                     {\reset@font\itshape}}

\newenvironment{swgdescription}
               {\list{}{\labelwidth\z@ \itemindent-\leftmargin
                        \let\makelabel\swgdescriptionlabel
                        \parsep 0\p@
                        \itemsep 0\p@
                        \topsep 0\p@}}
               {\endlist}
\newcommand*\swgdescriptionlabel[1]{\hspace\labelsep
                                \normalfont #1}