-
Notifications
You must be signed in to change notification settings - Fork 0
/
matt_currvita.sty
238 lines (238 loc) · 6.77 KB
/
matt_currvita.sty
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
%%
%% This is file `currvita.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% currvita.dtx (with options: `package')
%%
%% LaTeX package for a curriculum vitae
%%
%% Copyright (C) 1999 Axel Reichert
%% See the files README and COPYING.
%%
%% \CharacterTable
%% {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
%% 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
%% Digits \0\1\2\3\4\5\6\7\8\9
%% Exclamation \! Double quote \" Hash (number) \#
%% Dollar \$ Percent \% Ampersand \&
%% Acute accent \' Left paren \( Right paren \)
%% Asterisk \* Plus \+ Comma \,
%% Minus \- Point \. Solidus \/
%% Colon \: Semicolon \; Less than \<
%% Equals \= Greater than \> Question mark \?
%% Commercial at \@ Left bracket \[ Backslash \\
%% Right bracket \] Circumflex \^ Underscore \_
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
\NeedsTeXFormat{LaTeX2e}[1996/12/01]%
\ProvidesPackage{currvita}[%
1999/09/13 v0.9i Typesetting a Curriculum Vitae%
]%
\RequirePackage{ifthen}%
\newcommand*{\@cvplace}{\@empty}%
\newsavebox{\@cvlistheading}%
\newlength{\cvlabelsep}%
\newlength{\cvlabelskip}%
\newlength{\cvlabelwidth}%
\newboolean{cv@many@bibs}%
\newboolean{cv@no@date}%
\newboolean{cv@open@bib}%
% MATT
\@ifundefined{bibindent}{%
\newlength{\bibindent}%
}{}%
% This bibindent value will be used unless the openbib
% option is specified or the user specifies a different
% value
\setlength{\bibindent}{\itemindent}%
\@ifundefined{biblabelsep}{%
\newlength{\biblabelsep}%
}{}%
% Set biblabelsep to the same as what cvlistsep will
% be set to in AtBeginDocument. This is the value
% it will be unless manybib is used or the user
% specifies a different value
\setlength{\biblabelsep}{1em}%
% bibaddtoleftmargin allows the user to move the entire bititem,
% including the label over by a specified amount. By default, it
% is zero and not used. Helpful when manybib is not used.
\@ifundefined{bibaddtoleftmargin}{%
\newlength{\bibaddtoleftmargin}%
}{}%
\setlength{\bibaddtoleftmargin}{0em}%
% end MATT
\DeclareOption{LabelsAligned}{%
\setlength{\cvlabelskip}{0ex}%
}%
\DeclareOption{TextAligned}{%
\setlength{\cvlabelskip}{%
1.5\baselineskip plus 3pt minus 3pt%
}%
}%
\DeclareOption{openbib}{%
\@ifundefined{bibindent}{%
\newlength{\bibindent}%
}{}%
\setlength{\bibindent}{1.5em}%
\setboolean{cv@open@bib}{true}%
}%
\DeclareOption{ManyBibs}{%
% MATT
\setlength{\bibindent}{0em}%
\setlength{\biblabelsep}{0em}%
% end MATT
\setboolean{cv@many@bibs}{true}%
}%
\DeclareOption{NoDate}{%
\setboolean{cv@no@date}{true}%
}%
\ExecuteOptions{TextAligned}%
\ProcessOptions*%
\AtBeginDocument{%
\setlength{\cvlabelsep}{1em}%
\settowidth{\cvlabelwidth}{%
\cvlabelfont 88/8888--88/8888%
}%
}%
\DeclareRobustCommand*{\cvheadingfont}{\bfseries\Large}%
\DeclareRobustCommand*{\cvbibname}{Publications}%
\DeclareRobustCommand*{\cvplace}[1]{%
\gdef\@cvplace{#1}%
}%
\providecommand*{\date}[1]{\gdef\@date{#1}}%
\newenvironment{cv}[1]{%
\ifthenelse{\equal{#1}{\@empty}}{%
}{%
{%
\noindent\cvheadingfont#1\par\nopagebreak
}%
}%
\ifthenelse{\boolean{cv@many@bibs}}{%
\DeclareRobustCommand*{\@biblabel}[1]{\@gobble{##1}}%
}{}%
\providecommand{\newblock}{%
\hspace{0.11em plus 0.33em minus 0.07em}%
}%
\long\def\thebibliography##1{%
\ifthenelse{\boolean{cv@many@bibs}}{%
}{%
{%
\noindent\cvlistheadingfont\cvbibname
\par\nopagebreak
}%
}%
\ifthenelse{\boolean{cv@open@bib}}{%
\renewcommand{\newblock}{\par}%
}{}%
\begin{list}{\@biblabel{\@arabic\c@enumiv}}{%
\setlength{\parsep}{0ex}%
\setlength{\itemsep}{%
0.5\baselineskip plus 1pt minus 1pt%
}%
\setlength{\topsep}{0ex}%
\setlength{\partopsep}{0ex}%
% MATT
%\ifthenelse{\boolean{cv@many@bibs}}{%
% \setlength{\labelsep}{0em}%
%}{}%
\setlength{\labelsep}{\biblabelsep}%
% end MATT
\settowidth{\labelwidth}{\@biblabel{##1}}%
\setlength{\leftmargin}{\labelwidth}%
\addtolength{\leftmargin}{\labelsep}%
% MATT
%\ifthenelse{\boolean{cv@open@bib}}{%
% \addtolength{\leftmargin}{\bibindent}%
% \setlength{\itemindent}{-\bibindent}%
% \setlength{\listparindent}{\itemindent}%
%}{}%
%}{%
\addtolength{\leftmargin}{\bibindent}%
\addtolength{\leftmargin}{\bibaddtoleftmargin}%
\setlength{\itemindent}{-\bibindent}%
\setlength{\listparindent}{\itemindent}%
%}%
% end MATT
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand*{\theenumiv}{\@arabic\c@enumiv}%
}%
\sloppy
\clubpenalty4000%
\@clubpenalty\clubpenalty
\widowpenalty4000%
\sfcode`\.=\@m
}%
\long\def\endthebibliography{%
\renewcommand*{\@noitemerr}{%
\@latex@warning{Empty `thebibliography' environment}%
}%
\end{list}%
}%
}{%
\vspace{1.333\baselineskip plus 3pt minus 3pt}%
\ifthenelse{\equal{\@cvplace}{\@empty}}{%
}{%
\noindent
\@cvplace
\ifthenelse{\boolean{cv@no@date}}{}{%
,~%
}%
}%
\ifthenelse{\boolean{cv@no@date}}{}{%
\@date
}%
\par\noindent\ignorespacesafterend
}%
\DeclareRobustCommand*{\cvlistheadingfont}{%
\bfseries\large
}%
\DeclareRobustCommand*{\cvlabelfont}{%
\normalsize
}%
\newenvironment{cvlist}[1]{%
\sbox{\@cvlistheading}{\cvlistheadingfont#1}%
\begin{list}{}{%
\renewcommand*{\makelabel}[1]{%
\settowidth{\@tempdima}{\usebox{\@cvlistheading}}%
\ifthenelse{\lengthtest{\@tempdima > 0pt}}{%
\settowidth{\@tempdimb}{\cvlabelfont##1}%
\ifthenelse{%
\lengthtest{\@tempdima < \cvlabelwidth} \and
\lengthtest{\@tempdimb = 0pt}}{%
\parbox[b]{\cvlabelwidth}{%
\vspace{\cvlabelskip}%
\makebox[\cvlabelwidth][l]{%
\box\@cvlistheading
}%
}%
}{%
\parbox[b]{0pt}{%
\makebox[0pt][l]{\box\@cvlistheading}%
\\*[0.5\baselineskip plus 1pt minus 1pt]%
}%
}%
}{}%
\cvlabelfont##1\hfill
}%
\setlength{\itemsep}{0ex}%
\setlength{\parsep}{%
0.5\baselineskip plus 1pt minus 1pt%
}%
\setlength{\topsep}{%
1\baselineskip plus 2pt minus 2pt%
}%
\setlength{\partopsep}{0ex}%
\setlength{\labelsep}{\cvlabelsep}%
\setlength{\labelwidth}{\cvlabelwidth}%
\setlength{\leftmargin}{\cvlabelwidth}%
\addtolength{\leftmargin}{\cvlabelsep}%
}%
}{%
\end{list}%
}%
\endinput
%%
%% End of file `currvita.sty'.