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
|
%% nihbiosketch.cls
%% Copyright 2016 Paul M. Magwene
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3
% of this license or (at your option) any later version.
% The latest version of this license is in
% http://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions of LaTeX
% version 008/05/04 or later.
%
% This work has the LPPL maintenance status `maintained'.
%
% The Current Maintainer of this work is Paul M. Magwene
%
% This work consists of the files nihbiosketch.cls
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{nihbiosketch}[2016/01/22 NIH Biosketch Class]
%------------------------------------------------------------------------------
\ProcessOptions\relax
\LoadClass[11pt,letterpaper]{article}
%------------------------------------------------------------------------------
% Packages
\RequirePackage{etoolbox}
\RequirePackage[letterpaper]{geometry}
\RequirePackage{ifxetex, ifluatex} % requires fontspec, so either XeTeX or LuaTeX
\RequirePackage{fontspec}
\setmainfont[Ligatures=TeX]{Arial}
\RequirePackage{microtype}
\RequirePackage{tabu}
\RequirePackage{ifthen}
\RequirePackage{ulem}
\RequirePackage{enumitem}
\setlist[enumerate,2]{label=\alph*.,itemsep=0pt,parsep=1pt,partopsep=1pt}
\RequirePackage{titlesec}
\renewcommand{\thesection}{\Alph{section}.}
\titleformat{\section}[hang]{\normalfont\bfseries}{\thesection}{0.5em}{} % section style
\titleformat{\subsection}[hang]{\normalfont\bfseries}{\thesubsection}{0.5em}{\uline} % subsection style
\titleformat{\subsubsection}[hang]{\itshape}{\thesubsubsection}{0.5em}{} % subsubsection style
\titlespacing{\section}{0pt}{2ex}{1ex}
\titlespacing{\subsection}{0pt}{1.25ex}{0.5ex}
\titlespacing{\subsubsection}{0pt}{1.25ex}{0.5ex}
\PassOptionsToPackage{urlcolor=blue,colorlinks=true,breaklinks=true}{hyperref}
\RequirePackage{hyperref}
\urlstyle{same}
%------------------------------------------------------------------------------
% New commands and environments
\newcommand{\@name}{}
\newcommand{\@eracommons}{}
\newcommand{\@position}{}
\newcommand{\name}[1]{\renewcommand{\@name}{#1}}
\newcommand{\eracommons}[1]{\renewcommand{\@eracommons}{#1}}
\newcommand{\position}[1]{\renewcommand{\@position}{#1}}
\newcommand{\pgline}{\noindent\makebox[\linewidth]{\rule{\textwidth}{0.5pt}}\newline}
\newcommand{\piinfo}
{\pgline
{\centering
\textbf{BIOGRAPHICAL SKETCH}\\
{\footnotesize
Provide the following information for the Senior/key personnel and other significant contributors.\\
Follow this format for each person. \textbf{DO NOT EXCEED FIVE PAGES}.\\}}
\pgline
NAME: \@name\\
\pgline
eRA COMMONS USER NAME (credential, e.g., agency login): \@eracommons\\
\pgline
POSITION TITLE: \@position\\
\pgline
EDUCATION/TRAINING (\textit{Begin with baccalaureate or other initial professional education, such as nursing, include postdoctoral training and residency training if applicable. Add/delete rows as necessary.})\\}
\newcommand{\grantinfo}[6]
{\begin{tabular}{@{}lll@{}}
{#1} & {#2} & {#3} \\
\end{tabular}
\newline{#4}\newline{#5}\newline{#6}}
\newenvironment{education}
{%
\bgroup\centering
\tabulinesep=1.5mm
\begin{tabu} to \textwidth {X[3.73,l,m]|X[1,c,m]|X[1,c,m]|X[1.8,l,m]}
\hline
\rowfont[c]{} % for the header only we want all the text centered
INSTITUTION AND LOCATION &
DEGREE \newline (\textit{if applicable}) &
Completion Date MM/YYYY &
FIELD OF STUDY\\
\hline}
{\end{tabu}\egroup}
\newenvironment{datetbl}
{\tabulinesep=0mm
\begin{tabu} to 7.5in{X[1,l]X[6.5,l,p]}}
{\end{tabu}}
\newenvironment{statement}
{\setlength\parindent{2em}}
{\setlength\parindent{0pt}}
%------------------------------------------------------------------------------
% setup document geometry
% turn off page numbering
\pagenumbering{gobble}
% no paragraph indentation
\setlength\parindent{0pt}
\geometry{left=0.5in,right=0.5in,top=0.5in,bottom=0.5in} % this should be the last call
%------------------------------------------------------------------------------
\AfterEndPreamble{\piinfo}
|