summaryrefslogtreecommitdiff
path: root/macros/plain/formats/texsis/styles/CVformat.txs
blob: d7835d129cbbf823fcf4e144ca7f0e570ccc63a7 (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
% file: CVformat.txs                                    TeXsis 2.15
%======================================================================*
% CVformat.txs  --  macros for producing a Curriculum Vitae and
%                   publication list.  Modify these as you like or
%                   add to it.
%
%  Eric Myers,  Brookhaven National Laboratory,  7 November, 1985
%======================================================================*
\ATunlock
\emsg{\@comment CVformat: Curriculum Vitae macros}%

\def\CVformat{%                 CVformat: Curriculum Vitae macros
   \hsize=6.0 true in
   \nopagenumbers
   \auxswitchfalse
   \quoteon                                % turn on easyquotes
   \twelvepoint
   \parindent=2.5cm
   \raggedright\tolerance=800              % ragged right with looser tolerance
   \def\NAME{}%
   \def\endmode{\relax}%
%
% headline placement and spacing:
%
   \ifx\empty\NAME\else
      \headline={\ifnum\pageno>1
        {\twelvepoint\sl Curriculum Vitae of \NAME\hfil Page \folio}%
        \else \hfil\fi}\fi
   \headlineoffset=0.5cm
   }

% MACRO DEFINITIONS:
% \item, \EXitem, \pubitem

\def\Education{\ITEM{EDUCATION:}}
\def\Experience{\ITEM{EXPERIENCE:}}

\def\ITEM#1{\endmode
   \begingroup
     \def\endmode{\endgroup}%
     \tolerance=2000
     \bigskip\goodbreak
     \item{\bf #1}\smallskip
     \let\itm=\EXitem
    }

\def\hang{\hangindent=\parindent}
\def\item{\medskip\par\hang\textindent}
\def\textindent#1{\indent\llap{\hbox to \parindent{#1\hss}}\ignorespaces}

% \EXitem{note} puts the note in the left margin in \tenpoint,
% and you can break the line with \n

\def\EXitem#1{%
   \item{\def\n{\hss\egroup\hbox to \hangindent\bgroup}%
     \hbox to 0pt{%
       \vtop to 0pt{\tenpoint\rm
          \hbox to \hangindent\bgroup#1\hss\egroup\vss}%
    }}}


% \Publications begins list of publications

\def\Publications{\endmode
   \pageno=1
   \ifx\empty\NAME\else
     \headline={{\twelvepoint\sl Publications of \NAME\hfil Page \folio}}\fi
   \headlineoffset=0.5cm
   \parindent=1.0cm
   \raggedright \tolerance=2200
   \item{\bf PUBLICATIONS:}
   \smallskip
   \let\itm=\pubitem
   }

% \pubitem is \itm for publications list
% \pubitem is like \item, but it automatically gives the item a number

\newcount\pubnum        \pubnum=0

\def\pubitem{\medskip
   \advance\pubnum by 1
   \item{\the\pubnum.}}
               
\def\vol#1{\undertext{#1}}

% \nl skips to a new line in the reference text
\def\nl{\hfil\break}

%  \undertext underscores any text
\def\undertext#1{$\underline{\hbox{#1}}$}

% \booktitle is used in the reference text to cause the title of a book
%  to be printed in italics.
\def\booktitle#1{{\sl #1}}

\def\references{\parindent=1.0cm
   \pageno=1
   \ifx\empty\NAME\else
     \headline={{\twelvepoint\sl References for \NAME\hfil}}\fi
    \headlineoffset=0.5cm
   \item{\bf REFERENCES:}
   \smallskip}
               
\ATlock

%>>> EOF CVformat.txs <<<