summaryrefslogtreecommitdiff
path: root/macros/latex209/contrib/misc/vita.sty
blob: 69e899c87023c0966b3f118ef603c37fdd2f3a9a (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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%						kcb@hss.caltech.edu 9-90
%% 	Vita style option along the lines of A Handbook for Scholars.
%%	Use with article style, e.g.: \documentstyle[vita,11pt]{article}
%%	SAMPLE  USAGE:
%%
%% \documentstyle[vita]{article}
%% \newcategory{Cookbooks and other nonacademic publications}
%%
%% \begin{document} 
%% \name{Woodrow Wilson}
%% \businessadress{The White House\\Washington D.C.}
%% \homeaddress{Also The White House\\Washington D.C.}
%%
%% \begin{vita}
%% \begin{Degrees} \item B.S. etc.  \item Ph.D. ... \end{Degrees}
%%     ...
%% \begin{Publications} \item My First One
%%   \item My Last One
%% \end{Publications}
%%      ...
%% \begin{References}
%% My Advisor \\ Big 10 U \and My Mother \\ Home  
%% \end{References}
%%
%% \end{vita} 
%% \end{document}
%%%%%%%%%%%%%%%%%
%%
%% Predefined categories include (from a Handbook for Scholars, in order):
%% 	Degrees, Additional education, Experience, Honors, Grants,
%%      Memberships, Personal information, References, Publications
%% and (not from a Handbook for Scholars):
%%	Books, Articles, Reviews, Invited seminars, Professional activities
%%
%% Entries in each category are preceded by \item EXCEPT  for
%% references. References are inputted in a format similar to the
%% \author command. In particular, multiple references are separated
%% by the \and command.
%%
%% The \newcategory command allows you to create new categories. It
%% takes a single argument, namely the heading for the category.
%% Categories produced with the \newcategory command should have their
%% entries preceded by \item.
%%
%% Note the use of uppercase letters in the arguments of \begin and
%% \end for categories.  Also note the \begin{vita} and \end{vita}
%% commands which produce the heading, headers, date, etc.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%%	Command to define new categories:
\newcommand{\newcategory}[1]{\newenvironment{#1}
 {\sectionheading{#1}\begin{description}}{\end{description}\par}}
\newcommand{\sectionheading}[1]{\medskip\pagebreak[2]\par
 {\small\bf #1}\nopagebreak}
%%
%% 	Category headings defined already: (in order of Handbook for Scholars)
\newcategory{Degrees}
\newcategory{Additional education}
\newcategory{Experience}
\newcategory{Honors}
\newcategory{Grants}
\newcategory{Memberships}
\newcategory{Personal information}
\newcategory{Publications}
%
%  Other predefined categories not from Handbook for Scholars:
\newcategory{Work in progress}
\newcategory{Books}
\newcategory{Articles}
\newcategory{Reviews}
\newcategory{Invited seminars}
\newcategory{Professional activities}
%%
%%
%% 	New commands
\def\@name{}
\def\@homeaddress{}
\def\@businessaddress{Division of the Humanities and Social Sciences\\
California Institute of Technology\\Pasadena, CA 91125}
%
\newcommand{\name}[1]{\renewcommand{\@name}{#1}}
\newcommand{\businessaddress}[1]{\renewcommand{\@businessaddress}{#1}}
\newcommand{\homeaddress}[1]{\renewcommand{\@homeaddress}{#1}}
%
%	this formats the above information:
\newenvironment{vita}{\thispagestyle{empty}
\ifx\@name\@empty\@warning{Missing name command}\fi
\markright{\protect\small\rm\@name}
\vspace*{-\headsep}\vspace*{-\headheight}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ll@{}}
\begin{tabular}[t]{@{}l@{}}
\@name\\
\@businessaddress
\end{tabular}
&
\ifx\@homeaddress\@empty\@warning{Missing homeaddress}\else
\begin{tabular}[t]{@{}l@{}}
{\small home:}\\
\@homeaddress
\end{tabular}
\fi
\end{tabular*}
\bigskip}{\par\nopagebreak\vfill\hfill \today}
%
%
\newenvironment{References}{\sectionheading{References}\begin{description}
 \item[]
 \begin{tabular}[t]{l}}{\end{tabular}\end{description}\par}
\renewcommand{\and}{\end{tabular}\item[]\begin{tabular}[t]{l}}
%
%
\renewcommand{\today}{\ifcase\month\or
 January\or February\or March\or April\or May\or June\or
 July\or August\or September\or October\or November\or December\fi,
 \space\number\year}
%
%
%% 	Formatting parameters
\raggedright\sloppy
\pagestyle{myheadings}
%
\parindent 0pt
\let\@listi\@listii
\let\@listii\@listiii
\@listi
%
\nofiles
%%
%%