ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/matt_papers/my_CV/currvita.sty
Revision: 336
Committed: Thu Mar 13 20:09:16 2003 UTC (21 years, 3 months ago) by mmeineke
File size: 5754 byte(s)
Log Message:
Setting up my CV.

File Contents

# Content
1 %%
2 %% This is file `currvita.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% currvita.dtx (with options: `package')
8 %%
9 %% LaTeX package for a curriculum vitae
10 %%
11 %% Copyright (C) 1999 Axel Reichert
12 %% See the files README and COPYING.
13 %%
14 %% \CharacterTable
15 %% {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
16 %% 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
17 %% Digits \0\1\2\3\4\5\6\7\8\9
18 %% Exclamation \! Double quote \" Hash (number) \#
19 %% Dollar \$ Percent \% Ampersand \&
20 %% Acute accent \' Left paren \( Right paren \)
21 %% Asterisk \* Plus \+ Comma \,
22 %% Minus \- Point \. Solidus \/
23 %% Colon \: Semicolon \; Less than \<
24 %% Equals \= Greater than \> Question mark \?
25 %% Commercial at \@ Left bracket \[ Backslash \\
26 %% Right bracket \] Circumflex \^ Underscore \_
27 %% Grave accent \` Left brace \{ Vertical bar \|
28 %% Right brace \} Tilde \~}
29 \NeedsTeXFormat{LaTeX2e}[1996/12/01]%
30 \ProvidesPackage{currvita}[%
31 1999/09/13 v0.9i Typesetting a Curriculum Vitae%
32 ]%
33 \RequirePackage{ifthen}%
34 \newcommand*{\@cvplace}{\@empty}%
35 \newsavebox{\@cvlistheading}%
36 \newlength{\cvlabelsep}%
37 \newlength{\cvlabelskip}%
38 \newlength{\cvlabelwidth}%
39 \newboolean{cv@many@bibs}%
40 \newboolean{cv@no@date}%
41 \newboolean{cv@open@bib}%
42 \DeclareOption{LabelsAligned}{%
43 \setlength{\cvlabelskip}{0ex}%
44 }%
45 \DeclareOption{TextAligned}{%
46 \setlength{\cvlabelskip}{%
47 1.5\baselineskip plus 3pt minus 3pt%
48 }%
49 }%
50 \DeclareOption{openbib}{%
51 \@ifundefined{bibindent}{%
52 \newlength{\bibindent}%
53 }{}%
54 \setlength{\bibindent}{1.5em}%
55 \setboolean{cv@open@bib}{true}%
56 }%
57 \DeclareOption{ManyBibs}{%
58 \setboolean{cv@many@bibs}{true}%
59 }%
60 \DeclareOption{NoDate}{%
61 \setboolean{cv@no@date}{true}%
62 }%
63 \ExecuteOptions{TextAligned}%
64 \ProcessOptions*%
65 \AtBeginDocument{%
66 \setlength{\cvlabelsep}{1em}%
67 \settowidth{\cvlabelwidth}{%
68 \cvlabelfont 88/8888--88/8888%
69 }%
70 }%
71 \DeclareRobustCommand*{\cvheadingfont}{\bfseries\Large}%
72 \DeclareRobustCommand*{\cvbibname}{Publications}%
73 \DeclareRobustCommand*{\cvplace}[1]{%
74 \gdef\@cvplace{#1}%
75 }%
76 \providecommand*{\date}[1]{\gdef\@date{#1}}%
77 \newenvironment{cv}[1]{%
78 \ifthenelse{\equal{#1}{\@empty}}{%
79 }{%
80 {%
81 \noindent\cvheadingfont#1\par\nopagebreak
82 }%
83 }%
84 \ifthenelse{\boolean{cv@many@bibs}}{%
85 \DeclareRobustCommand*{\@biblabel}[1]{\@gobble{##1}}%
86 }{}%
87 \providecommand{\newblock}{%
88 \hspace{0.11em plus 0.33em minus 0.07em}%
89 }%
90 \long\def\thebibliography##1{%
91 \ifthenelse{\boolean{cv@many@bibs}}{%
92 }{%
93 {%
94 \noindent\cvlistheadingfont\cvbibname
95 \par\nopagebreak
96 }%
97 }%
98 \ifthenelse{\boolean{cv@open@bib}}{%
99 \renewcommand{\newblock}{\par}%
100 }{}%
101 \begin{list}{\@biblabel{\@arabic\c@enumiv}}{%
102 \setlength{\parsep}{0ex}%
103 \setlength{\itemsep}{%
104 0.5\baselineskip plus 1pt minus 1pt%
105 }%
106 \setlength{\topsep}{0ex}%
107 \setlength{\partopsep}{0ex}%
108 \ifthenelse{\boolean{cv@many@bibs}}{%
109 \setlength{\labelsep}{0em}%
110 }{}%
111 \settowidth{\labelwidth}{\@biblabel{##1}}%
112 \setlength{\leftmargin}{\labelwidth}%
113 \addtolength{\leftmargin}{\labelsep}%
114 \ifthenelse{\boolean{cv@open@bib}}{%
115 \addtolength{\leftmargin}{\bibindent}%
116 \setlength{\itemindent}{-\bibindent}%
117 \setlength{\listparindent}{\itemindent}%
118 }{}%
119 \usecounter{enumiv}%
120 \let\p@enumiv\@empty
121 \renewcommand*{\theenumiv}{\@arabic\c@enumiv}%
122 }%
123 \sloppy
124 \clubpenalty4000%
125 \@clubpenalty\clubpenalty
126 \widowpenalty4000%
127 \sfcode`\.=\@m
128 }%
129 \long\def\endthebibliography{%
130 \renewcommand*{\@noitemerr}{%
131 \@latex@warning{Empty `thebibliography' environment}%
132 }%
133 \end{list}%
134 }%
135 }{%
136 \vspace{1.333\baselineskip plus 3pt minus 3pt}%
137 \ifthenelse{\equal{\@cvplace}{\@empty}}{%
138 }{%
139 \noindent
140 \@cvplace
141 \ifthenelse{\boolean{cv@no@date}}{}{%
142 ,~%
143 }%
144 }%
145 \ifthenelse{\boolean{cv@no@date}}{}{%
146 \@date
147 }%
148 \par\noindent\ignorespacesafterend
149 }%
150 \DeclareRobustCommand*{\cvlistheadingfont}{%
151 \bfseries\large
152 }%
153 \DeclareRobustCommand*{\cvlabelfont}{%
154 \normalsize
155 }%
156 \newenvironment{cvlist}[1]{%
157 \sbox{\@cvlistheading}{\cvlistheadingfont#1}%
158 \begin{list}{}{%
159 \renewcommand*{\makelabel}[1]{%
160 \settowidth{\@tempdima}{\usebox{\@cvlistheading}}%
161 \ifthenelse{\lengthtest{\@tempdima > 0pt}}{%
162 \settowidth{\@tempdimb}{\cvlabelfont##1}%
163 \ifthenelse{%
164 \lengthtest{\@tempdima < \cvlabelwidth} \and
165 \lengthtest{\@tempdimb = 0pt}}{%
166 \parbox[b]{\cvlabelwidth}{%
167 \vspace{\cvlabelskip}%
168 \makebox[\cvlabelwidth][l]{%
169 \box\@cvlistheading
170 }%
171 }%
172 }{%
173 \parbox[b]{0pt}{%
174 \makebox[0pt][l]{\box\@cvlistheading}%
175 \\*[0.5\baselineskip plus 1pt minus 1pt]%
176 }%
177 }%
178 }{}%
179 \cvlabelfont##1\hfill
180 }%
181 \setlength{\itemsep}{0ex}%
182 \setlength{\parsep}{%
183 0.5\baselineskip plus 1pt minus 1pt%
184 }%
185 \setlength{\topsep}{%
186 1\baselineskip plus 2pt minus 2pt%
187 }%
188 \setlength{\partopsep}{0ex}%
189 \setlength{\labelsep}{\cvlabelsep}%
190 \setlength{\labelwidth}{\cvlabelwidth}%
191 \setlength{\leftmargin}{\cvlabelwidth}%
192 \addtolength{\leftmargin}{\cvlabelsep}%
193 }%
194 }{%
195 \end{list}%
196 }%
197 \endinput
198 %%
199 %% End of file `currvita.sty'.