Debian Codegraph @

texmf-dist/source/latex/grant/grant.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Copyright (C) 2016-2019 Jonathan Karr <[email protected]>
4 % -----------------------------------------------------------
5 %
6 % This file may be distributed and/or modified under the conditions of
7 % the MIT License. The latest version of this license is in:
8 %
9 % https://github.com/KarrLab/latex-grant/blob/master/LICENSE
10 %
11 % \fi
12 %
13
14 % \iffalse
15 %<*driver>
16 \ProvidesFile{grant.dtx}
17 %</driver>
18 %<package>\NeedsTeXFormat{LaTeX2e}[2003/12/01]
19 %<package>\ProvidesPackage{grant}
20 %<*package>
21 [2019/02/26 v0.0.5 Grant package for formatting federal grant applications]
22 %</package>
23 %
24 %
25 %<*driver>
26 \documentclass{ltxdoc}
27 \usepackage{enumitem}
28 \usepackage{verbatim}
29 \setdescription{noitemsep, topsep=0pt, parsep=0pt, partopsep=0pt}
30 \OnlyDescription
31 \begin{document}
32 \DocInput{grant.dtx}
33 \end{document}
34 %</driver>
35 % \fi
36
37 % \CheckSum{524}
38 %
39 %% \CharacterTable
40 %% {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
41 %% 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
42 %% Digits \0\1\2\3\4\5\6\7\8\9
43 %% Exclamation \! Double quote \" Hash (number) \#
44 %% Dollar \$ Percent \% Ampersand \&
45 %% Acute accent \' Left paren \( Right paren \)
46 %% Asterisk \* Plus \+ Comma \,
47 %% Minus \- Point \. Solidus \/
48 %% Colon \: Semicolon \; Less than \<
49 %% Equals \= Greater than \> Question mark \?
50 %% Commercial at \@ Left bracket \[ Backslash \\
51 %% Right bracket \] Circumflex \^ Underscore \_
52 %% Grave accent \` Left brace \{ Vertical bar \|
53 %% Right brace \} Tilde \~}
54
55
56 % \changes{v0.0.5}{2019/02/26}{Adding examples}
57 % \changes{v0.0.4}{2016/09/26}{Debugging class renaming and .dtx file for pdf compilation}
58 % \changes{v0.0.3}{2016/08/22}{Rename classes to grant-*.cls}
59 % \changes{v0.0.2}{2016/08/17}{Packaging with ins, dtx files}
60 % \changes{v0.0.1}{2016/08/17}{Initial version}
61 %
62 % \GetFileInfo{grant.dtx}
63 %
64 % \DoNotIndex{\newcommand,\newenvironment}
65
66
67 % \title{The \textsf{grant} package \thanks{This document corresponds to \textsf{grant}~\fileversion, dated \filedate.}}
68 % \author{Jonathan Karr \\ \texttt{[email protected]}}
69 %
70 % \maketitle
71 %
72 % \section{Introduction}
73 %
74 % This package provides LaTeX classes to format grant applications for the following federal agencies:
75 % \begin{description}[labelindent=0.25in]
76 % \item[\texttt{grant-afosr}]: Air Force Office of Scientific Research
77 % \item[\texttt{grant-aro}]: Army Research Office
78 % \item[\texttt{grant-darpa}]: Defense Advanced Research Projects Agency
79 % \item[\texttt{grant-doe}]: Department of Energy
80 % \item[\texttt{grant-nih}]: National Institutes of Health
81 % \item[\texttt{grant-nrl}]: Naval Research Laboratory
82 % \item[\texttt{grant-nsf}]: National Science Foundation
83 % \item[\texttt{grant-onr}]: Office of Naval Research
84 % \end{description}
85 %
86 % \section{Usage}
87 % The example below illustrates how to use the \texttt{nsf} class. Substitute \texttt{nsf} for any of the above class names to format applications for other federal agencies.
88 %
89 % \begin{verbatim}
90 % \documentclass{nsf}
91 %
92 % \addbibresource{Bibliography.bib}
93 %
94 % \begin{document}
95 %
96 % \chapter{Project-Summary}
97 % ...
98 %
99 % \chapter{Project-Description}
100 % ...
101 %
102 % \chapter{Bibliography \& References Cited}
103 % \printbibliography[heading=none]
104 %
105 % \end{document}\end{verbatim}
106
107
108 % \StopEventually{}
109 %
110 % \section{Implementation}
111 % \begin{macrocode}
112 %<*grant>
113 % \end{macrocode}
114
115
116 \NeedsTeXFormat{LaTeX2e}
117 \ProvidesClass{grant}[2019/02/26 grant class]
118
119 %%%%%%%%%%%%%%%%%%%%%%
120 %% options
121 %%%%%%%%%%%%%%%%%%%%%%
122
123 \usepackage{etoolbox}
124
125 \newcommand{\fntsiz}{11pt}
126 \DeclareOption{10pt}{\renewcommand{\fntsiz}{10pt}}
127 \DeclareOption{11pt}{\renewcommand{\fntsiz}{11pt}}
128 \DeclareOption{12pt}{\renewcommand{\fntsiz}{12pt}}
129
130 \newbool{isdraft}
131 \boolfalse{isdraft}
132 \DeclareOption{isdraft}
133 {\booltrue{isdraft}}
134 \DeclareOption{isnotdraft}
135 {\boolfalse{isdraft}}
136
137 \newbool{iswhitepaper}
138 \boolfalse{iswhitepaper}
139 \DeclareOption{iswhitepaper}
140 {\booltrue{iswhitepaper}}
141 \DeclareOption{isnotwhitepaper}
142 {\boolfalse{iswhitepaper}}
143
144 \newbool{issectioncompact}
145 \boolfalse{issectioncompact}
146 \DeclareOption{issectioncompact}
147 {\booltrue{issectioncompact}}
148 \DeclareOption{isnotsectioncompact}
149 {\boolfalse{issectioncompact}}
150
151 \newbool{isbibcompact}
152 \boolfalse{isbibcompact}
153 \DeclareOption{isbibcompact}
154 {\booltrue{isbibcompact}}
155 \DeclareOption{isnotbibcompact}
156 {\boolfalse{isbibcompact}}
157
158 \ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact}
159 \ProcessOptions
160
161 %%%%%%%%%%%%%%%%%%%%%%
162 %% load book class
163 %%%%%%%%%%%%%%%%%%%%%%
164 \LoadClass[\fntsiz,oneside]{book}
165
166 %%%%%%%%%%%%%%%%%%%%%%
167 %% formatting
168 %%%%%%%%%%%%%%%%%%%%%%
169
170 %font
171 \usepackage[english]{babel}
172 \usepackage[utf8]{inputenc}
173 \usepackage[T1]{fontenc}
174 \usepackage{uarial}
175 \renewcommand{\familydefault}{\sfdefault}
176
177 %underline
178 \usepackage[normalem]{ulem}
179 \usepackage{soul}
180 \soulregister\cite7
181
182 %highlighting
183 \usepackage{xcolor}
184 \usepackage{framed}
185 \definecolor{hlcolor}{rgb}{1, 1, 0}
186 \sethlcolor{hlcolor}
187 \colorlet{shadecolor}{hlcolor}
188 \setlength{\fboxsep}{0.05ex}
189 \setlength{\OuterFrameSep}{-\fboxsep}
190
191 %spacing
192 \usepackage{setspace}
193 \singlespacing
194
195 %margins
196 \usepackage[paperwidth=8.5in, paperheight=11in, margin=1in, footskip=20pt]{geometry}
197
198 %paragraph spacing
199 \setlength{\parindent}{0in}
200 \setlength{\parskip}{5pt}
201
202 %section style
203 \setcounter{secnumdepth}{5}
204 \usepackage[compact,explicit]{titlesec}
205
206 \titleclass{\part}{top}
207
208 \titleformat{\part}[block]{\centering\LARGE\bfseries}{}{0pt}{\LARGE\MakeUppercase{#1}}[]
209 \titleformat{\chapter}[block]{\large\bfseries}{}{0pt}{\large\MakeUppercase{#1}}[]
210 \titleformat{\section}[block]{\bfseries}{\uline{\thesection.~}}{0ex}{\uline{#1}}[]
211 \titleformat{\subsection}[runin]{\bfseries}{\thesubsection.~}{0ex}{#1}[]
212 \titleformat{\subsubsection}[runin]{}{\uline{\thesubsubsection.~}}{0ex}{\uline{#1}}[.]
213 \titleformat{\paragraph}[runin]{\itshape}{\theparagraph.~}{0ex}{#1}[.]
214 \titleformat{\subparagraph}[runin]{}{}{0ex}{\uline{#1}}[:]
215
216 \titlespacing*{\part}{0pt}{-3.5ex}{*-1}
217 \titlespacing*{\chapter}{0pt}{-3.5ex}{*-0.5}
218 \titlespacing*{\section}{0pt}{*0.0}{*-1}
219 \titlespacing*{\subsection}{0pt}{*0.0}{*0.5}
220 \titlespacing*{\subsubsection}{0pt}{*0.0}{*0.5}
221 \titlespacing*{\paragraph}{0pt}{*0}{*0.5}
222 \titlespacing*{\subparagraph}{0pt}{*0}{*0.5}
223
224 \renewcommand*\thesection{\arabic{section}}
225 \renewcommand*\thesubsection{\Alph{subsection}}
226 \renewcommand*\thesubsubsection{\roman{subsubsection}}
227 \renewcommand*\theparagraph{\arabic{paragraph}}
228
229 \makeatletter
230 \newcommand{\chapternotitle}[1]{%
231 \begingroup
232 \let\@makechapterhead\@gobble % make \@makechapterhead do nothing
233 \chapter{#1}
234 \endgroup
235 }
236 \makeatother
237
238 \newcommand{\partnonum}[2][part]{%
239 \phantomsection%
240 \addcontentsline{toc}{#1}{#2}%
241 \part*{#2}%
242 }
243
244 \newcommand{\chapternonum}[2][chapter]{%
245 \phantomsection%
246 \addcontentsline{toc}{#1}{#2}%
247 \chapter*{#2}%
248 }
249
250 \newcommand{\sectionnonum}[2][section]{%
251 \phantomsection%
252 \addcontentsline{toc}{#1}{#2}%
253 \section*{#2}%
254 }
255 \newcommand{\subsectionnonum}[2][subsection]{%
256 \phantomsection%
257 \addcontentsline{toc}{#1}{#2}%
258 \subsection*{#2}%
259 }
260 \newcommand{\subsubsectionnonum}[2][subsubsection]{%
261 \phantomsection%
262 \addcontentsline{toc}{#1}{#2}%
263 \subsubsection*{#2}%
264 }
265
266 \ifbool{iswhitepaper}{
267 \titleformat{\section}[runin]{\bfseries}{\uline{\thesection.~}}{0ex}{\uline{#1}}[:]
268 }{
269 \usepackage[auto]{chappg}
270 }
271
272 \ifbool{issectioncompact}{
273 \titleformat{\section}[runin]{\bfseries}{\uline{\thesection.~}}{0ex}{\uline{#1}}[.]
274 \titlespacing*{\section}{0pt}{*0.0}{*0.5}
275 }{}
276
277 %page numbering
278
279 %header/footer
280 \usepackage{fancyhdr}
281 \pagestyle{fancy}
282 \assignpagestyle{\chapter}{fancy}
283 \renewcommand{\chaptermark}[1]{\markboth{#1}{}}
284 \renewcommand{\headrulewidth}{0pt}
285 \renewcommand{\footrulewidth}{0pt}
286 \fancyhf{}
287 \ifbool{isdraft}{
288 \lfoot{\small\leftmark}
289 \rfoot{\small\thepage}
290 }{}
291
292 \ifbool{iswhitepaper}{
293 \lfoot{}
294 \rfoot{}
295 \cfoot{\small\thepage}
296 }{}
297
298 %lists
299 \usepackage{paralist}
300 \usepackage{enumitem}
301 \setlist[itemize]{topsep=0pt, partopsep=0ex, parsep=0ex, itemsep=0ex, leftmargin=1em}
302 \setlist[enumerate]{topsep=0pt, partopsep=0ex, parsep=0ex, itemsep=0ex, leftmargin=1.3em}
303
304 %hyphenation
305 \usepackage{hyphenat}
306
307 %bibliography
308 %\usepackage[super,compress, numbers]{natbib}
309 \usepackage[backend=bibtex8,style=nature,citestyle=numeric-comp,sorting=none,maxbibnames=30,minbibnames=30,autocite=superscript,firstinits=true,terseinits=true]{biblatex}
310 \let\cite=\autocite
311 \renewbibmacro*{name:last-first}[4]{%
312 \ifuseprefix
313 {%
314 \usebibmacro{name:delim}{#3#1}%
315 \usebibmacro{name:hook}{#3#1}%
316 \ifblank{#3}{}
317 {%
318 \ifcapital
319 {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
320 {\mkbibnameprefix{#3}\isdot}%
321 \ifpunctmark{'}{}{\addhighpenspace}%
322 }%
323 \mkbibnamelast{#1}\isdot
324 \ifblank{#2}
325 {}{\addlowpenspace\mkbibnamefirst{#2}}%
326 \ifblank{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}%
327 }
328 {%
329 \usebibmacro{name:delim}{#1}%
330 \usebibmacro{name:hook}{#1}%
331 \mkbibnamelast{#1}\isdot
332 \ifblank{#2#3}{}{\addcomma}%
333 \ifblank{#2}{}{\addlowpenspace\mkbibnamefirst{#2}\isdot}%
334 \ifblank{#3}{}{\addlowpenspace\mkbibnameprefix{#3}\isdot}%
335 \ifblank{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}%
336 }%
337 }
338 \setlength{\bibitemsep}{0pt}
339 \setlength{\biblabelsep}{5pt}
340
341 \ifbool{isbibcompact}{
342 \defbibenvironment{bibliography}
343 {\inparaenum[ (1)]}
344 {\endinparaenum}
345 {\item}
346
347 \renewcommand{\bibfont}{\footnotesize}
348
349 \ExecuteBibliographyOptions{maxbibnames=1,minbibnames=1}
350
351 \DeclareFieldFormat[article]{title}{}
352 \DeclareFieldFormat[article]{pages}{}
353 \DeclareFieldFormat[article]{volume}{}
354 \DeclareFieldFormat[article]{number}{}
355
356 \DeclareFieldFormat[inproceedings]{title}{}
357 \DeclareFieldFormat[inproceedings]{pages}{}
358 \DeclareFieldFormat[inproceedings]{volume}{}
359 \DeclareFieldFormat[inproceedings]{number}{}
360
361 \DeclareFieldFormat[online]{url}{}
362 \DeclareFieldFormat[online]{urldate}{}
363
364 \renewbibmacro*{issue+date}{%
365 \iffieldundef{year}
366 {}
367 {%
368 \iffieldundef{issue}
369 {\printtext[]{\usebibmacro{date}}}
370 {%
371 \printtext[parens]{%
372 \printfield{issue}%
373 \setunit*{\addspace}%
374 \usebibmacro{date}%
375 }%
376 }%
377 }%
378 \newunit
379 }
380
381 \renewbibmacro*{name:last-first}[4]{%
382 \ifuseprefix
383 {%
384 \usebibmacro{name:delim}{#3#1}%
385 \usebibmacro{name:hook}{#3#1}%
386 \ifblank{#3}{}
387 {%
388 \ifcapital
389 {\mkbibnameprefix{\MakeCapital{#3}}\isdot}
390 {\mkbibnameprefix{#3}\isdot}%
391 \ifpunctmark{'}{}{\addhighpenspace}%
392 }%
393 \mkbibnamelast{#1}\isdot
394 \ifblank{#2}
395 {}{%
396 %\addlowpenspace\mkbibnamefirst{#2}
397 }%
398 \ifblank{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}%
399 }
400 {%
401 \usebibmacro{name:delim}{#1}%
402 \usebibmacro{name:hook}{#1}%
403 \mkbibnamelast{#1}\isdot
404 \ifblank{#2#3}{}{\addcomma}%
405 %\ifblank{#2}{}{\addlowpenspace\mkbibnamefirst{#2}\isdot}%
406 \ifblank{#3}{}{\addlowpenspace\mkbibnameprefix{#3}\isdot}%
407 \ifblank{#4}{}{\addlowpenspace\mkbibnameaffix{#4}\isdot}%
408 }%
409 }
410 }{}
411
412 %images
413 \usepackage{graphicx}
414 \DeclareGraphicsExtensions{%
415 .pdf,.PDF,%
416 .png,.PNG,%
417 .jpg,.jpeg}
418
419 %captions
420 \usepackage[font=footnotesize,labelfont=bf,singlelinecheck=false,labelsep=period, skip=2pt]{caption}
421
422 %urls
423 \ifbool{isdraft}{
424 \usepackage[breaklinks=true, bookmarksdepth=3]{hyperref}
425 }{
426 \usepackage[breaklinks=true, bookmarksdepth=0, bookmarks=false]{hyperref}
427 \let\oldcite\cite
428 \renewcommand{\cite}[1]{%
429 \begin{NoHyper}\oldcite{#1}\end{NoHyper}%
430 }
431 }
432
433 %tables
434 \usepackage{tabularx}
435 \usepackage{longtable}
436 \usepackage{ltxtable}
437
438 %table, figure numbering
439 \renewcommand{\figurename}{Fig.}
440 \renewcommand{\tablename}{Tab.}
441 \addto\captionsenglish{\renewcommand{\figurename}{Fig.}}
442 \addto\captionsenglish{\renewcommand{\tablename}{Tab.}}
443 \renewcommand*\thefigure{\arabic{figure}}
444 \renewcommand*\thetable{\arabic{table}}
445
446 %FloatBarrier
447 \usepackage{placeins}
448
449 %insert pdf pages
450 \usepackage{pdfpages}
451
452 %line numbers
453 \usepackage{lineno}
454
455 \setlength{\textfloatsep}{5.0pt plus 0.5pt minus 1pt}
456
457 \usepackage{tabularx}
458 \usepackage{booktabs}
459 \usepackage{wrapfig}
460
461 \usepackage{amsmath}
462 \usepackage{csquotes}
463
464 %comments
465 \usepackage[author={}, color=yellow]{pdfcomment}
466
467 %citations
468 \newcommand{\dontcite}[1]{}
469
470 %multiple columns
471 \usepackage{multicol}
472
473 %%%%%%%%%%%%%%%%%%%%
474 %% Cover page
475 %%%%%%%%%%%%%%%%%%%%
476 \newcommand{\FundingAgency}{}
477 \newcommand{\FundingId}{}
478 \newcommand{\FundingTitle}{}
479 \newcommand{\FundingUrl}{}
480 \newcommand{\FundingDeadline}{}
481
482 \newcommand{\ProposalTitle}{}
483 \newcommand{\ProposalDurationInYears}{}
484 \newcommand{\ProposalCostInMillions}{}
485
486 \newcommand{\PiName}{}
487 \newcommand{\PiTitle}{}
488 \newcommand{\PiDepartment}{}
489 \newcommand{\PiInstitution}{}
490 \newcommand{\PiAddress}{}
491 \newcommand{\PiUrl}{}
492 \newcommand{\PiEmail}{}
493 \newcommand{\PiPhone}{}
494 \newcommand{\PiFax}{}
495
496 \newcommand{\OtherKeyPersonnel}{}
497
498 \newcommand{\LeadOrganizationName}{}
499 \newcommand{\LeadOrganizationAddress}{}
500 \newcommand{\LeadOrganizationDUNS}{}
501 \newcommand{\LeadOrganizationTIN}{}
502 \newcommand{\LeadOrganizationCAGE}{}
503
504 \newcommand{\AdminName}{}
505 \newcommand{\AdminTitle}{}
506 \newcommand{\AdminAddress}{}
507 \newcommand{\AdminInstitution}{}
508 \newcommand{\AdminPhone}{}
509 \newcommand{\AdminFax}{}
510 \newcommand{\AdminEmail}{}
511
512 \newcommand{\PoName}{}
513 \newcommand{\PoAddress}{}
514 \newcommand{\PoEmail}{}
515 \newcommand{\PoPhone}{}
516
517 \newcommand{\FundingIdTitle}{\FundingId\ifdefempty{\FundingTitle}{}{: \FundingTitle}}
518
519 \newcommand{\makecoverpage}{
520 {\LARGE\bfseries
521
522 \ProposalTitle
523
524 }
525 \vskip1ex
526 \uline{Funding opportunity}
527 \\\FundingAgency
528 \\\FundingIdTitle (\href{\FundingUrl}{\FundingId})
529 \\\FundingDeadline
530
531 \uline{Applicant}
532 \\\PiName
533 \\\PiTitle
534 \\\PiDepartment
535 \\\PiInstitution
536 \\\PiAddress
537 \\\href{http://\PiUrl}{\PiUrl}
538 \\\href{mailto:\PiEmail}{\PiEmail}
539 \\\PiPhone
540
541 \uline{Program officer}
542 \\\PoName
543 \\\PoAddress
544 \\\href{mailto:\PoEmail}{\PoEmail}
545 \\\PoPhone
546 }
547
548 \newcommand{\AbstractName}{Abstract}
549 \newcommand{\AbstractOtherPersonnelName}{Other key personnel and primary subcontractors}
550 \providetoggle{AbstractIsCentered}
551 \providetoggle{AbstractShowAdminPOC}
552 \providetoggle{AbstractShowLeadOrg}
553 \providetoggle{AbstractShowOtherPersonnel}
554 \providetoggle{AbstractShowDuration}
555 \providetoggle{AbstractShowCost}
556 \settoggle{AbstractIsCentered}{false}
557 \settoggle{AbstractShowAdminPOC}{true}
558 \settoggle{AbstractShowLeadOrg}{true}
559 \settoggle{AbstractShowOtherPersonnel}{true}
560 \settoggle{AbstractShowDuration}{true}
561 \settoggle{AbstractShowCost}{true}
562
563
564 \newcommand{\makeabstractcoverpage}{
565 {\setlength{\parskip}{12pt}
566
567 \iftoggle{AbstractIsCentered}{
568 \centering
569 }{}
570
571 \begin{center}\textbf{
572 \LARGE{\MakeUppercase{\AbstractName}}\\[18pt]
573 \LARGE{\FundingId}\\
574 \large{\FundingTitle}\\[18pt]
575 \LARGE{\ProposalTitle}
576 }\end{center}
577 \vskip-8pt
578
579 \textbf{Technical point of contact: \PiName}\\
580 \PiTitle\\
581 \PiDepartment\\
582 \PiInstitution\\
583 \PiAddress\\
584 Tel: \PiPhone, Fax: \PiFax, Email: \href{mailto:\PiEmail}{\PiEmail}, Web: \href{http://www.\PiUrl}{\PiUrl}
585
586 \iftoggle{AbstractShowAdminPOC}{
587 \textbf{Administrative point of contact: \AdminName}\\
588 \AdminTitle\\
589 \AdminAddress\\
590 \AdminInstitution\\
591 Tel: \AdminPhone, Fax: \AdminFax, Email: \href{mailto:\AdminEmail}{\AdminEmail}
592 }{}
593
594 \iftoggle{AbstractShowLeadOrg}{
595 \textbf{Lead organization: \LeadOrganizationName}\\
596 \LeadOrganizationAddress\\
597 DUNS number: \LeadOrganizationDUNS\\
598 Taxpayer identification number: \LeadOrganizationTIN\\
599 CAGE code: \LeadOrganizationCAGE
600 }{}
601
602 \iftoggle{AbstractShowOtherPersonnel}{
603 \textbf{\AbstractOtherPersonnelName}\\
604 \OtherKeyPersonnel
605 }{}
606
607 \iftoggle{AbstractShowDuration}{\textbf{Duration: {\ProposalDurationInYears} years}}{}
608
609 \iftoggle{AbstractShowCost}{\textbf{Estimated cost: \${\ProposalCostInMillions} million in total costs}}{}
610
611 }
612 \clearpage
613 }
614
615
616 % \begin{macrocode}
617 %</grant>
618 % \end{macrocode}
619
620 % \begin{macrocode}
621 %<*grant-afosr>
622 % \end{macrocode}
623 \NeedsTeXFormat{LaTeX2e}
624 \ProvidesClass{grant-afosr}[2019/02/26 AFOSR class]
625
626 \newcommand{\draftstatus}{isnotdraft}
627 \DeclareOption{isdraft}{\renewcommand{\draftstatus}{isdraft}}
628 \DeclareOption{isnotdraft}{\renewcommand{\draftstatus}{isnotdraft}}
629
630 \newcommand{\whitepaperstatus}{isnotwhitepaper}
631 \DeclareOption{iswhitepaper}{\renewcommand{\whitepaperstatus}{iswhitepaper}}
632 \DeclareOption{isnotwhitepaper}{\renewcommand{\whitepaperstatus}{isnotwhitepaper}}
633
634 \newcommand{\sectioncompactstatus}{isnotsectioncompact}
635 \DeclareOption{issectioncompact}{\renewcommand{\sectioncompactstatus}{issectioncompact}}
636 \DeclareOption{isnotsectioncompact}{\renewcommand{\sectioncompactstatus}{isnotsectioncompact}}
637
638 \newcommand{\bibcompactstatus}{isnotbibcompact}
639 \DeclareOption{isbibcompact}{\renewcommand{\bibcompactstatus}{isbibcompact}}
640 \DeclareOption{isnotbibcompact}{\renewcommand{\bibcompactstatus}{isnotbibcompact}}
641
642 \ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact}
643 \ProcessOptions
644
645 \LoadClass[12pt, \draftstatus, \whitepaperstatus, \sectioncompactstatus, \bibcompactstatus]{grant}
646
647 %%%%%%%%%%%%%%%%%%%%%%
648 %% formatting
649 %%%%%%%%%%%%%%%%%%%%%%
650
651 %geometry
652 \geometry{margin=1in}
653
654 %font
655 \usepackage{times}
656 \renewcommand{\familydefault}{\rmdefault}
657
658 %paragraph skip
659 \setlength{\parskip}{4pt}
660
661 %%%%%%%%%%%%%%%%%%%%%%
662 %% abstract
663 %%%%%%%%%%%%%%%%%%%%%%
664 \renewcommand{\AbstractName}{White paper}
665 \settoggle{AbstractIsCentered}{true}
666 \settoggle{AbstractShowAdminPOC}{false}
667 \settoggle{AbstractShowLeadOrg}{false}
668 \settoggle{AbstractShowOtherPersonnel}{false}
669 \settoggle{AbstractShowDuration}{false}
670 \settoggle{AbstractShowCost}{false}
671
672 \ifbool{iswhitepaper}{
673 \titleformat{\section}[block]{\bfseries}{\uline{\thesection.~}}{0ex}{\uline{#1}}[]
674 \titleformat{\subsection}[runin]{\bfseries}{\thesubsection.~}{0ex}{#1}[.]
675 \titleformat{\subsubsection}[runin]{}{\uline{\thesubsubsection.~}}{0ex}{\uline{#1}}[.]
676
677 \titlespacing*{\section}{0pt}{*0.0}{*-1}
678
679 \renewcommand{\bibfont}{\normalsize}
680 }{}
681
682
683 % \begin{macrocode}
684 %</grant-afosr>
685 % \end{macrocode}
686
687
688 % \begin{macrocode}
689 %<*grant-aro>
690 % \end{macrocode}
691 \NeedsTeXFormat{LaTeX2e}
692 \ProvidesClass{grant-aro}[2019/02/26 ARO class]
693
694 \newcommand{\draftstatus}{isnotdraft}
695 \DeclareOption{isdraft}{\renewcommand{\draftstatus}{isdraft}}
696 \DeclareOption{isnotdraft}{\renewcommand{\draftstatus}{isnotdraft}}
697
698 \newcommand{\whitepaperstatus}{isnotwhitepaper}
699 \DeclareOption{iswhitepaper}{\renewcommand{\whitepaperstatus}{iswhitepaper}}
700 \DeclareOption{isnotwhitepaper}{\renewcommand{\whitepaperstatus}{isnotwhitepaper}}
701
702 \newcommand{\sectioncompactstatus}{isnotsectioncompact}
703 \DeclareOption{issectioncompact}{\renewcommand{\sectioncompactstatus}{issectioncompact}}
704 \DeclareOption{isnotsectioncompact}{\renewcommand{\sectioncompactstatus}{isnotsectioncompact}}
705
706 \newcommand{\bibcompactstatus}{isnotbibcompact}
707 \DeclareOption{isbibcompact}{\renewcommand{\bibcompactstatus}{isbibcompact}}
708 \DeclareOption{isnotbibcompact}{\renewcommand{\bibcompactstatus}{isnotbibcompact}}
709
710 \ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact}
711 \ProcessOptions
712
713 \LoadClass[12pt, \draftstatus, \whitepaperstatus, \sectioncompactstatus, \bibcompactstatus]{grant}
714
715 %%%%%%%%%%%%%%%%%%%%%%
716 %% formatting
717 %%%%%%%%%%%%%%%%%%%%%%
718
719 %geometry
720 \geometry{margin=1in}
721
722 %font
723 \usepackage{times}
724 \renewcommand{\familydefault}{\rmdefault}
725
726 %paragraph skip
727 \setlength{\parskip}{4pt}
728
729 %%%%%%%%%%%%%%%%%%%%%%
730 %% abstract
731 %%%%%%%%%%%%%%%%%%%%%%
732 \renewcommand{\AbstractName}{White paper}
733 \settoggle{AbstractIsCentered}{true}
734 \settoggle{AbstractShowAdminPOC}{true}
735 \settoggle{AbstractShowLeadOrg}{true}
736 \settoggle{AbstractShowOtherPersonnel}{true}
737 \settoggle{AbstractShowDuration}{false}
738 \settoggle{AbstractShowCost}{false}
739
740 \ifbool{iswhitepaper}{
741 \titleformat{\section}[block]{\bfseries}{\uline{\thesection.~}}{0ex}{\uline{#1}}[]
742 \titleformat{\subsection}[runin]{\bfseries}{\thesubsection.~}{0ex}{#1}[.]
743 \titleformat{\subsubsection}[runin]{}{\uline{\thesubsubsection.~}}{0ex}{\uline{#1}}[.]
744
745 \titlespacing*{\section}{0pt}{*0.0}{*-1}
746
747 \renewcommand{\bibfont}{\normalsize}
748 }{}
749
750
751 % \begin{macrocode}
752 %</grant-aro>
753 % \end{macrocode}
754
755
756 % \begin{macrocode}
757 %<*grant-darpa>
758 % \end{macrocode}
759 \NeedsTeXFormat{LaTeX2e}
760 \ProvidesClass{grant-darpa}[2019/02/26 DARPA class]
761
762 \newcommand{\draftstatus}{isnotdraft}
763 \DeclareOption{isdraft}{\renewcommand{\draftstatus}{isdraft}}
764 \DeclareOption{isnotdraft}{\renewcommand{\draftstatus}{isnotdraft}}
765
766 \newcommand{\whitepaperstatus}{isnotwhitepaper}
767 \DeclareOption{iswhitepaper}{\renewcommand{\whitepaperstatus}{iswhitepaper}}
768 \DeclareOption{isnotwhitepaper}{\renewcommand{\whitepaperstatus}{isnotwhitepaper}}
769
770 \newcommand{\sectioncompactstatus}{isnotsectioncompact}
771 \DeclareOption{issectioncompact}{\renewcommand{\sectioncompactstatus}{issectioncompact}}
772 \DeclareOption{isnotsectioncompact}{\renewcommand{\sectioncompactstatus}{isnotsectioncompact}}
773
774 \newcommand{\bibcompactstatus}{isnotbibcompact}
775 \DeclareOption{isbibcompact}{\renewcommand{\bibcompactstatus}{isbibcompact}}
776 \DeclareOption{isnotbibcompact}{\renewcommand{\bibcompactstatus}{isnotbibcompact}}
777
778 \ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact}
779 \ProcessOptions
780
781 \LoadClass[12pt, \draftstatus, \whitepaperstatus, \sectioncompactstatus, \bibcompactstatus]{grant}
782
783 %%%%%%%%%%%%%%%%%%%%%%
784 %% formatting
785 %%%%%%%%%%%%%%%%%%%%%%
786
787 %geometry
788 \geometry{margin=1in}
789
790 %font
791 \usepackage{times}
792 \renewcommand{\familydefault}{\rmdefault}
793
794 %paragraph skip
795 \setlength{\parskip}{4pt}
796 % \begin{macrocode}
797 %</grant-darpa>
798 % \end{macrocode}
799
800
801 % \begin{macrocode}
802 %<*grant-doe>
803 % \end{macrocode}
804 \NeedsTeXFormat{LaTeX2e}
805 \ProvidesClass{grant-doe}[2019/02/26 DOE class]
806
807 \newcommand{\draftstatus}{isnotdraft}
808 \DeclareOption{isdraft}{\renewcommand{\draftstatus}{isdraft}}
809 \DeclareOption{isnotdraft}{\renewcommand{\draftstatus}{isnotdraft}}
810
811 \newcommand{\whitepaperstatus}{isnotwhitepaper}
812 \DeclareOption{iswhitepaper}{\renewcommand{\whitepaperstatus}{iswhitepaper}}
813 \DeclareOption{isnotwhitepaper}{\renewcommand{\whitepaperstatus}{isnotwhitepaper}}
814
815 \newcommand{\sectioncompactstatus}{isnotsectioncompact}
816 \DeclareOption{issectioncompact}{\renewcommand{\sectioncompactstatus}{issectioncompact}}
817 \DeclareOption{isnotsectioncompact}{\renewcommand{\sectioncompactstatus}{isnotsectioncompact}}
818
819 \newcommand{\bibcompactstatus}{isnotbibcompact}
820 \DeclareOption{isbibcompact}{\renewcommand{\bibcompactstatus}{isbibcompact}}
821 \DeclareOption{isnotbibcompact}{\renewcommand{\bibcompactstatus}{isnotbibcompact}}
822
823 \ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact}
824 \ProcessOptions
825
826 \LoadClass[11pt, \draftstatus, \whitepaperstatus, \sectioncompactstatus, \bibcompactstatus]{grant}
827
828 %%%%%%%%%%%%%%%%%%%%%%
829 %% formatting
830 %%%%%%%%%%%%%%%%%%%%%%
831
832 %geometry
833 \geometry{margin=1in}
834
835 %font
836 \usepackage{times}
837 \renewcommand{\familydefault}{\rmdefault}
838
839 %%%%%%%%%%%%%%%%%%%%%
840 %% cover page
841 %%%%%%%%%%%%%%%%%%%%%
842 \renewcommand{\makeabstractcoverpage}{
843 \titlespacing*{\chapter}{0pt}{-4.4ex}{*-1}
844 {\centering
845 \chapter*{\centerline{\ProposalTitle}}
846 \PiName, \PiTitle\\
847 \PiDepartment, \PiInstitution\\
848 \PiPhone, \href{mailto:\PiEmail}{\PiEmail}, \href{http://www.\PiUrl}{\PiUrl}\\
849 DOE/Office of Science Program Office\\
850 Funding Opportunity Announcement Number: \FundingId\\
851 }
852 }
853
854 % \begin{macrocode}
855 %</grant-doe>
856 % \end{macrocode}
857
858
859 % \begin{macrocode}
860 %<*grant-nih>
861 % \end{macrocode}
862 \NeedsTeXFormat{LaTeX2e}
863 \ProvidesClass{grant-nih}[2019/02/26 NIH class]
864
865 \newcommand{\draftstatus}{isnotdraft}
866 \DeclareOption{isdraft}{\renewcommand{\draftstatus}{isdraft}}
867 \DeclareOption{isnotdraft}{\renewcommand{\draftstatus}{isnotdraft}}
868
869 \newcommand{\whitepaperstatus}{isnotwhitepaper}
870 \DeclareOption{iswhitepaper}{\renewcommand{\whitepaperstatus}{iswhitepaper}}
871 \DeclareOption{isnotwhitepaper}{\renewcommand{\whitepaperstatus}{isnotwhitepaper}}
872
873 \newcommand{\sectioncompactstatus}{isnotsectioncompact}
874 \DeclareOption{issectioncompact}{\renewcommand{\sectioncompactstatus}{issectioncompact}}
875 \DeclareOption{isnotsectioncompact}{\renewcommand{\sectioncompactstatus}{isnotsectioncompact}}
876
877 \newcommand{\bibcompactstatus}{isnotbibcompact}
878 \DeclareOption{isbibcompact}{\renewcommand{\bibcompactstatus}{isbibcompact}}
879 \DeclareOption{isnotbibcompact}{\renewcommand{\bibcompactstatus}{isnotbibcompact}}
880
881 \ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact}
882 \ProcessOptions
883
884 \LoadClass[\draftstatus, \whitepaperstatus, \sectioncompactstatus, \bibcompactstatus]{grant}
885
886 %%%%%%%%%%%%%%%%%%%%%%
887 %% formatting
888 %%%%%%%%%%%%%%%%%%%%%%
889
890 %geometry
891 \geometry{margin=0.5in}
892 \setlength{\parskip}{4pt}
893 % \begin{macrocode}
894 %</grant-nih>
895 % \end{macrocode}
896
897
898 % \begin{macrocode}
899 %<*grant-nrl>
900 % \end{macrocode}
901 \NeedsTeXFormat{LaTeX2e}
902 \ProvidesClass{grant-nrl}[2019/02/26 NRL class]
903
904 \newcommand{\draftstatus}{isnotdraft}
905 \DeclareOption{isdraft}{\renewcommand{\draftstatus}{isdraft}}
906 \DeclareOption{isnotdraft}{\renewcommand{\draftstatus}{isnotdraft}}
907
908 \newcommand{\whitepaperstatus}{isnotwhitepaper}
909 \DeclareOption{iswhitepaper}{\renewcommand{\whitepaperstatus}{iswhitepaper}}
910 \DeclareOption{isnotwhitepaper}{\renewcommand{\whitepaperstatus}{isnotwhitepaper}}
911
912 \newcommand{\sectioncompactstatus}{isnotsectioncompact}
913 \DeclareOption{issectioncompact}{\renewcommand{\sectioncompactstatus}{issectioncompact}}
914 \DeclareOption{isnotsectioncompact}{\renewcommand{\sectioncompactstatus}{isnotsectioncompact}}
915
916 \newcommand{\bibcompactstatus}{isnotbibcompact}
917 \DeclareOption{isbibcompact}{\renewcommand{\bibcompactstatus}{isbibcompact}}
918 \DeclareOption{isnotbibcompact}{\renewcommand{\bibcompactstatus}{isnotbibcompact}}
919
920 \ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact}
921 \ProcessOptions
922
923 \LoadClass[12pt, \draftstatus, \whitepaperstatus, \sectioncompactstatus, \bibcompactstatus]{grant}
924
925 %%%%%%%%%%%%%%%%%%%%%%
926 %% formatting
927 %%%%%%%%%%%%%%%%%%%%%%
928
929 %geometry
930 \geometry{margin=1in}
931
932 %font
933 \usepackage{times}
934 \renewcommand{\familydefault}{\rmdefault}
935
936 %paragraph skip
937 \setlength{\parskip}{4pt}
938 % \begin{macrocode}
939 %</grant-nrl>
940 % \end{macrocode}
941
942
943 % \begin{macrocode}
944 %<*grant-nsf>
945 % \end{macrocode}
946 \NeedsTeXFormat{LaTeX2e}
947 \ProvidesClass{grant-nsf}[2019/02/26 NSF class]
948
949 \newcommand{\draftstatus}{isnotdraft}
950 \DeclareOption{isdraft}{\renewcommand{\draftstatus}{isdraft}}
951 \DeclareOption{isnotdraft}{\renewcommand{\draftstatus}{isnotdraft}}
952
953 \newcommand{\whitepaperstatus}{isnotwhitepaper}
954 \DeclareOption{iswhitepaper}{\renewcommand{\whitepaperstatus}{iswhitepaper}}
955 \DeclareOption{isnotwhitepaper}{\renewcommand{\whitepaperstatus}{isnotwhitepaper}}
956
957 \newcommand{\sectioncompactstatus}{isnotsectioncompact}
958 \DeclareOption{issectioncompact}{\renewcommand{\sectioncompactstatus}{issectioncompact}}
959 \DeclareOption{isnotsectioncompact}{\renewcommand{\sectioncompactstatus}{isnotsectioncompact}}
960
961 \newcommand{\bibcompactstatus}{isnotbibcompact}
962 \DeclareOption{isbibcompact}{\renewcommand{\bibcompactstatus}{isbibcompact}}
963 \DeclareOption{isnotbibcompact}{\renewcommand{\bibcompactstatus}{isnotbibcompact}}
964
965 \ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact}
966 \ProcessOptions
967
968 \LoadClass[10pt, \draftstatus, \whitepaperstatus, \sectioncompactstatus, \bibcompactstatus]{grant}
969
970 %%%%%%%%%%%%%%%%%%%%%%
971 %% formatting
972 %%%%%%%%%%%%%%%%%%%%%%
973
974 %geometry
975 \geometry{margin=1in}
976 % \begin{macrocode}
977 %</grant-nsf>
978 % \end{macrocode}
979
980
981 % \begin{macrocode}
982 %<*grant-onr>
983 % \end{macrocode}
984 \NeedsTeXFormat{LaTeX2e}
985 \ProvidesClass{grant-onr}[2019/02/26 ONR class]
986
987 \newcommand{\draftstatus}{isnotdraft}
988 \DeclareOption{isdraft}{\renewcommand{\draftstatus}{isdraft}}
989 \DeclareOption{isnotdraft}{\renewcommand{\draftstatus}{isnotdraft}}
990
991 \newcommand{\whitepaperstatus}{isnotwhitepaper}
992 \DeclareOption{iswhitepaper}{\renewcommand{\whitepaperstatus}{iswhitepaper}}
993 \DeclareOption{isnotwhitepaper}{\renewcommand{\whitepaperstatus}{isnotwhitepaper}}
994
995 \newcommand{\sectioncompactstatus}{isnotsectioncompact}
996 \DeclareOption{issectioncompact}{\renewcommand{\sectioncompactstatus}{issectioncompact}}
997 \DeclareOption{isnotsectioncompact}{\renewcommand{\sectioncompactstatus}{isnotsectioncompact}}
998
999 \newcommand{\bibcompactstatus}{isnotbibcompact}
1000 \DeclareOption{isbibcompact}{\renewcommand{\bibcompactstatus}{isbibcompact}}
1001 \DeclareOption{isnotbibcompact}{\renewcommand{\bibcompactstatus}{isnotbibcompact}}
1002
1003 \ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact}
1004 \ProcessOptions
1005
1006 \LoadClass[12pt, \draftstatus, \whitepaperstatus, \sectioncompactstatus, \bibcompactstatus]{grant}
1007
1008 %%%%%%%%%%%%%%%%%%%%%%
1009 %% formatting
1010 %%%%%%%%%%%%%%%%%%%%%%
1011
1012 %geometry
1013 \geometry{margin=1in}
1014
1015 %font
1016 \usepackage{times}
1017 \renewcommand{\familydefault}{\rmdefault}
1018
1019 %paragraph skip
1020 \setlength{\parskip}{4pt}
1021
1022 %%%%%%%%%%%%%%%%%%%%%%
1023 %% abstract
1024 %%%%%%%%%%%%%%%%%%%%%%
1025 \renewcommand{\AbstractName}{White paper}
1026 \settoggle{AbstractIsCentered}{true}
1027 \settoggle{AbstractShowAdminPOC}{false}
1028 \settoggle{AbstractShowLeadOrg}{false}
1029 \settoggle{AbstractShowOtherPersonnel}{false}
1030 \settoggle{AbstractShowDuration}{false}
1031 \settoggle{AbstractShowCost}{false}
1032
1033 \ifbool{iswhitepaper}{
1034 \titleformat{\section}[block]{\bfseries}{\uline{\thesection.~}}{0ex}{\uline{#1}}[]
1035 \titleformat{\subsection}[runin]{\bfseries}{\thesubsection.~}{0ex}{#1}[.]
1036 \titleformat{\subsubsection}[runin]{}{\uline{\thesubsubsection.~}}{0ex}{\uline{#1}}[.]
1037
1038 \titlespacing*{\section}{0pt}{*0.0}{*-1}
1039
1040 \renewcommand{\bibfont}{\normalsize}
1041 }{}
1042
1043
1044 % \begin{macrocode}
1045 %</grant-onr>
1046 % \end{macrocode}
1047 %
1048 % \Finale