From b357cc24b778d47dd7506cb6aff87cfdfc24370e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 4 Nov 2020 21:35:39 +0000 Subject: grant (4nov20) git-svn-id: svn://tug.org/texlive/trunk@56852 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/grant/grant-afosr.cls | 104 ++++++++++++++++++++++ Master/texmf-dist/tex/latex/grant/grant-arl.cls | 47 ---------- Master/texmf-dist/tex/latex/grant/grant-aro.cls | 104 ++++++++++++++++++++++ Master/texmf-dist/tex/latex/grant/grant-darpa.cls | 39 +++++++- Master/texmf-dist/tex/latex/grant/grant-doe.cls | 53 ++++++++++- Master/texmf-dist/tex/latex/grant/grant-nih.cls | 35 +++++++- Master/texmf-dist/tex/latex/grant/grant-nrl.cls | 39 +++++++- Master/texmf-dist/tex/latex/grant/grant-nsf.cls | 34 ++++++- Master/texmf-dist/tex/latex/grant/grant-onr.cls | 61 ++++++++++++- Master/texmf-dist/tex/latex/grant/grant.cls | 91 ++++++++++++++++--- 10 files changed, 536 insertions(+), 71 deletions(-) create mode 100644 Master/texmf-dist/tex/latex/grant/grant-afosr.cls delete mode 100644 Master/texmf-dist/tex/latex/grant/grant-arl.cls create mode 100644 Master/texmf-dist/tex/latex/grant/grant-aro.cls (limited to 'Master/texmf-dist/tex/latex/grant') diff --git a/Master/texmf-dist/tex/latex/grant/grant-afosr.cls b/Master/texmf-dist/tex/latex/grant/grant-afosr.cls new file mode 100644 index 00000000000..8928c9195e9 --- /dev/null +++ b/Master/texmf-dist/tex/latex/grant/grant-afosr.cls @@ -0,0 +1,104 @@ +%% +%% This is file `grant-afosr.cls', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% grant.dtx (with options: `grant-afosr') +%% +%% This is a generated file. +%% +%% Copyright (C) 2016-2019 Jonathan Karr +%% +%% This file may be distributed and/or modified under the conditions of +%% the MIT License. The latest version of this license is in: +%% +%% https://github.com/KarrLab/latex-grant/blob/master/LICENSE +%% + + +%% \CharacterTable +%% {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 +%% 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 +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} + + + + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{grant-afosr}[2019/02/26 AFOSR class] + +\newcommand{\draftstatus}{isnotdraft} +\DeclareOption{isdraft}{\renewcommand{\draftstatus}{isdraft}} +\DeclareOption{isnotdraft}{\renewcommand{\draftstatus}{isnotdraft}} + +\newcommand{\whitepaperstatus}{isnotwhitepaper} +\DeclareOption{iswhitepaper}{\renewcommand{\whitepaperstatus}{iswhitepaper}} +\DeclareOption{isnotwhitepaper}{\renewcommand{\whitepaperstatus}{isnotwhitepaper}} + +\newcommand{\sectioncompactstatus}{isnotsectioncompact} +\DeclareOption{issectioncompact}{\renewcommand{\sectioncompactstatus}{issectioncompact}} +\DeclareOption{isnotsectioncompact}{\renewcommand{\sectioncompactstatus}{isnotsectioncompact}} + +\newcommand{\bibcompactstatus}{isnotbibcompact} +\DeclareOption{isbibcompact}{\renewcommand{\bibcompactstatus}{isbibcompact}} +\DeclareOption{isnotbibcompact}{\renewcommand{\bibcompactstatus}{isnotbibcompact}} + +\ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact} +\ProcessOptions + +\LoadClass[12pt, \draftstatus, \whitepaperstatus, \sectioncompactstatus, \bibcompactstatus]{grant} + +%%%%%%%%%%%%%%%%%%%%%% +%% formatting +%%%%%%%%%%%%%%%%%%%%%% + +\geometry{margin=1in} + +\usepackage{times} +\renewcommand{\familydefault}{\rmdefault} + +\setlength{\parskip}{4pt} + +%%%%%%%%%%%%%%%%%%%%%% +%% abstract +%%%%%%%%%%%%%%%%%%%%%% +\renewcommand{\AbstractName}{White paper} +\settoggle{AbstractIsCentered}{true} +\settoggle{AbstractShowAdminPOC}{false} +\settoggle{AbstractShowLeadOrg}{false} +\settoggle{AbstractShowOtherPersonnel}{false} +\settoggle{AbstractShowDuration}{false} +\settoggle{AbstractShowCost}{false} + +\ifbool{iswhitepaper}{ + \titleformat{\section}[block]{\bfseries}{\uline{\thesection.~}}{0ex}{\uline{#1}}[] + \titleformat{\subsection}[runin]{\bfseries}{\thesubsection.~}{0ex}{#1}[.] + \titleformat{\subsubsection}[runin]{}{\uline{\thesubsubsection.~}}{0ex}{\uline{#1}}[.] + + \titlespacing*{\section}{0pt}{*0.0}{*-1} + + \renewcommand{\bibfont}{\normalsize} +}{} + + + + + + + + +\endinput +%% +%% End of file `grant-afosr.cls'. diff --git a/Master/texmf-dist/tex/latex/grant/grant-arl.cls b/Master/texmf-dist/tex/latex/grant/grant-arl.cls deleted file mode 100644 index b460ee775aa..00000000000 --- a/Master/texmf-dist/tex/latex/grant/grant-arl.cls +++ /dev/null @@ -1,47 +0,0 @@ -%% -%% This is file `grant-arl.cls', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% grant.dtx (with options: `arl') -%% -%% This is a generated file. -%% -%% Copyright (C) 2016 Jonathan Karr -%% -%% This file may be distributed and/or modified under the conditions of -%% the MIT License. The latest version of this license is in: -%% -%% https://github.com/KarrLab/latex-grant/blob/master/LICENSE -%% - - -%% \CharacterTable -%% {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 -%% 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 -%% Digits \0\1\2\3\4\5\6\7\8\9 -%% Exclamation \! Double quote \" Hash (number) \# -%% Dollar \$ Percent \% Ampersand \& -%% Acute accent \' Left paren \( Right paren \) -%% Asterisk \* Plus \+ Comma \, -%% Minus \- Point \. Solidus \/ -%% Colon \: Semicolon \; Less than \< -%% Equals \= Greater than \> Question mark \? -%% Commercial at \@ Left bracket \[ Backslash \\ -%% Right bracket \] Circumflex \^ Underscore \_ -%% Grave accent \` Left brace \{ Vertical bar \| -%% Right brace \} Tilde \~} - - - - - - - - - - -\endinput -%% -%% End of file `grant-arl.cls'. diff --git a/Master/texmf-dist/tex/latex/grant/grant-aro.cls b/Master/texmf-dist/tex/latex/grant/grant-aro.cls new file mode 100644 index 00000000000..d3247858929 --- /dev/null +++ b/Master/texmf-dist/tex/latex/grant/grant-aro.cls @@ -0,0 +1,104 @@ +%% +%% This is file `grant-aro.cls', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% grant.dtx (with options: `grant-aro') +%% +%% This is a generated file. +%% +%% Copyright (C) 2016-2019 Jonathan Karr +%% +%% This file may be distributed and/or modified under the conditions of +%% the MIT License. The latest version of this license is in: +%% +%% https://github.com/KarrLab/latex-grant/blob/master/LICENSE +%% + + +%% \CharacterTable +%% {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 +%% 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 +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} + + + + + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{grant-aro}[2019/02/26 ARO class] + +\newcommand{\draftstatus}{isnotdraft} +\DeclareOption{isdraft}{\renewcommand{\draftstatus}{isdraft}} +\DeclareOption{isnotdraft}{\renewcommand{\draftstatus}{isnotdraft}} + +\newcommand{\whitepaperstatus}{isnotwhitepaper} +\DeclareOption{iswhitepaper}{\renewcommand{\whitepaperstatus}{iswhitepaper}} +\DeclareOption{isnotwhitepaper}{\renewcommand{\whitepaperstatus}{isnotwhitepaper}} + +\newcommand{\sectioncompactstatus}{isnotsectioncompact} +\DeclareOption{issectioncompact}{\renewcommand{\sectioncompactstatus}{issectioncompact}} +\DeclareOption{isnotsectioncompact}{\renewcommand{\sectioncompactstatus}{isnotsectioncompact}} + +\newcommand{\bibcompactstatus}{isnotbibcompact} +\DeclareOption{isbibcompact}{\renewcommand{\bibcompactstatus}{isbibcompact}} +\DeclareOption{isnotbibcompact}{\renewcommand{\bibcompactstatus}{isnotbibcompact}} + +\ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact} +\ProcessOptions + +\LoadClass[12pt, \draftstatus, \whitepaperstatus, \sectioncompactstatus, \bibcompactstatus]{grant} + +%%%%%%%%%%%%%%%%%%%%%% +%% formatting +%%%%%%%%%%%%%%%%%%%%%% + +\geometry{margin=1in} + +\usepackage{times} +\renewcommand{\familydefault}{\rmdefault} + +\setlength{\parskip}{4pt} + +%%%%%%%%%%%%%%%%%%%%%% +%% abstract +%%%%%%%%%%%%%%%%%%%%%% +\renewcommand{\AbstractName}{White paper} +\settoggle{AbstractIsCentered}{true} +\settoggle{AbstractShowAdminPOC}{true} +\settoggle{AbstractShowLeadOrg}{true} +\settoggle{AbstractShowOtherPersonnel}{true} +\settoggle{AbstractShowDuration}{false} +\settoggle{AbstractShowCost}{false} + +\ifbool{iswhitepaper}{ + \titleformat{\section}[block]{\bfseries}{\uline{\thesection.~}}{0ex}{\uline{#1}}[] + \titleformat{\subsection}[runin]{\bfseries}{\thesubsection.~}{0ex}{#1}[.] + \titleformat{\subsubsection}[runin]{}{\uline{\thesubsubsection.~}}{0ex}{\uline{#1}}[.] + + \titlespacing*{\section}{0pt}{*0.0}{*-1} + + \renewcommand{\bibfont}{\normalsize} +}{} + + + + + + + +\endinput +%% +%% End of file `grant-aro.cls'. diff --git a/Master/texmf-dist/tex/latex/grant/grant-darpa.cls b/Master/texmf-dist/tex/latex/grant/grant-darpa.cls index 3816c0df544..76ee716a84d 100644 --- a/Master/texmf-dist/tex/latex/grant/grant-darpa.cls +++ b/Master/texmf-dist/tex/latex/grant/grant-darpa.cls @@ -4,11 +4,11 @@ %% %% The original source files were: %% -%% grant.dtx (with options: `darpa') +%% grant.dtx (with options: `grant-darpa') %% %% This is a generated file. %% -%% Copyright (C) 2016 Jonathan Karr +%% Copyright (C) 2016-2019 Jonathan Karr %% %% This file may be distributed and/or modified under the conditions of %% the MIT License. The latest version of this license is in: @@ -38,6 +38,41 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{grant-darpa}[2019/02/26 DARPA class] + +\newcommand{\draftstatus}{isnotdraft} +\DeclareOption{isdraft}{\renewcommand{\draftstatus}{isdraft}} +\DeclareOption{isnotdraft}{\renewcommand{\draftstatus}{isnotdraft}} + +\newcommand{\whitepaperstatus}{isnotwhitepaper} +\DeclareOption{iswhitepaper}{\renewcommand{\whitepaperstatus}{iswhitepaper}} +\DeclareOption{isnotwhitepaper}{\renewcommand{\whitepaperstatus}{isnotwhitepaper}} + +\newcommand{\sectioncompactstatus}{isnotsectioncompact} +\DeclareOption{issectioncompact}{\renewcommand{\sectioncompactstatus}{issectioncompact}} +\DeclareOption{isnotsectioncompact}{\renewcommand{\sectioncompactstatus}{isnotsectioncompact}} + +\newcommand{\bibcompactstatus}{isnotbibcompact} +\DeclareOption{isbibcompact}{\renewcommand{\bibcompactstatus}{isbibcompact}} +\DeclareOption{isnotbibcompact}{\renewcommand{\bibcompactstatus}{isnotbibcompact}} + +\ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact} +\ProcessOptions + +\LoadClass[12pt, \draftstatus, \whitepaperstatus, \sectioncompactstatus, \bibcompactstatus]{grant} + +%%%%%%%%%%%%%%%%%%%%%% +%% formatting +%%%%%%%%%%%%%%%%%%%%%% + +\geometry{margin=1in} + +\usepackage{times} +\renewcommand{\familydefault}{\rmdefault} + +\setlength{\parskip}{4pt} + diff --git a/Master/texmf-dist/tex/latex/grant/grant-doe.cls b/Master/texmf-dist/tex/latex/grant/grant-doe.cls index e02eafae990..cd585c7590b 100644 --- a/Master/texmf-dist/tex/latex/grant/grant-doe.cls +++ b/Master/texmf-dist/tex/latex/grant/grant-doe.cls @@ -4,11 +4,11 @@ %% %% The original source files were: %% -%% grant.dtx (with options: `doe') +%% grant.dtx (with options: `grant-doe') %% %% This is a generated file. %% -%% Copyright (C) 2016 Jonathan Karr +%% Copyright (C) 2016-2019 Jonathan Karr %% %% This file may be distributed and/or modified under the conditions of %% the MIT License. The latest version of this license is in: @@ -39,6 +39,55 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{grant-doe}[2019/02/26 DOE class] + +\newcommand{\draftstatus}{isnotdraft} +\DeclareOption{isdraft}{\renewcommand{\draftstatus}{isdraft}} +\DeclareOption{isnotdraft}{\renewcommand{\draftstatus}{isnotdraft}} + +\newcommand{\whitepaperstatus}{isnotwhitepaper} +\DeclareOption{iswhitepaper}{\renewcommand{\whitepaperstatus}{iswhitepaper}} +\DeclareOption{isnotwhitepaper}{\renewcommand{\whitepaperstatus}{isnotwhitepaper}} + +\newcommand{\sectioncompactstatus}{isnotsectioncompact} +\DeclareOption{issectioncompact}{\renewcommand{\sectioncompactstatus}{issectioncompact}} +\DeclareOption{isnotsectioncompact}{\renewcommand{\sectioncompactstatus}{isnotsectioncompact}} + +\newcommand{\bibcompactstatus}{isnotbibcompact} +\DeclareOption{isbibcompact}{\renewcommand{\bibcompactstatus}{isbibcompact}} +\DeclareOption{isnotbibcompact}{\renewcommand{\bibcompactstatus}{isnotbibcompact}} + +\ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact} +\ProcessOptions + +\LoadClass[11pt, \draftstatus, \whitepaperstatus, \sectioncompactstatus, \bibcompactstatus]{grant} + +%%%%%%%%%%%%%%%%%%%%%% +%% formatting +%%%%%%%%%%%%%%%%%%%%%% + +\geometry{margin=1in} + +\usepackage{times} +\renewcommand{\familydefault}{\rmdefault} + +%%%%%%%%%%%%%%%%%%%%% +%% cover page +%%%%%%%%%%%%%%%%%%%%% +\renewcommand{\makeabstractcoverpage}{ + \titlespacing*{\chapter}{0pt}{-4.4ex}{*-1} + {\centering + \chapter*{\centerline{\ProposalTitle}} + \PiName, \PiTitle\\ + \PiDepartment, \PiInstitution\\ + \PiPhone, \href{mailto:\PiEmail}{\PiEmail}, \href{http://www.\PiUrl}{\PiUrl}\\ + DOE/Office of Science Program Office\\ + Funding Opportunity Announcement Number: \FundingId\\ + } +} + + diff --git a/Master/texmf-dist/tex/latex/grant/grant-nih.cls b/Master/texmf-dist/tex/latex/grant/grant-nih.cls index 5d9f5f38049..a09ab832640 100644 --- a/Master/texmf-dist/tex/latex/grant/grant-nih.cls +++ b/Master/texmf-dist/tex/latex/grant/grant-nih.cls @@ -4,11 +4,11 @@ %% %% The original source files were: %% -%% grant.dtx (with options: `nih') +%% grant.dtx (with options: `grant-nih') %% %% This is a generated file. %% -%% Copyright (C) 2016 Jonathan Karr +%% Copyright (C) 2016-2019 Jonathan Karr %% %% This file may be distributed and/or modified under the conditions of %% the MIT License. The latest version of this license is in: @@ -40,6 +40,37 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{grant-nih}[2019/02/26 NIH class] + +\newcommand{\draftstatus}{isnotdraft} +\DeclareOption{isdraft}{\renewcommand{\draftstatus}{isdraft}} +\DeclareOption{isnotdraft}{\renewcommand{\draftstatus}{isnotdraft}} + +\newcommand{\whitepaperstatus}{isnotwhitepaper} +\DeclareOption{iswhitepaper}{\renewcommand{\whitepaperstatus}{iswhitepaper}} +\DeclareOption{isnotwhitepaper}{\renewcommand{\whitepaperstatus}{isnotwhitepaper}} + +\newcommand{\sectioncompactstatus}{isnotsectioncompact} +\DeclareOption{issectioncompact}{\renewcommand{\sectioncompactstatus}{issectioncompact}} +\DeclareOption{isnotsectioncompact}{\renewcommand{\sectioncompactstatus}{isnotsectioncompact}} + +\newcommand{\bibcompactstatus}{isnotbibcompact} +\DeclareOption{isbibcompact}{\renewcommand{\bibcompactstatus}{isbibcompact}} +\DeclareOption{isnotbibcompact}{\renewcommand{\bibcompactstatus}{isnotbibcompact}} + +\ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact} +\ProcessOptions + +\LoadClass[\draftstatus, \whitepaperstatus, \sectioncompactstatus, \bibcompactstatus]{grant} + +%%%%%%%%%%%%%%%%%%%%%% +%% formatting +%%%%%%%%%%%%%%%%%%%%%% + +\geometry{margin=0.5in} +\setlength{\parskip}{4pt} + \endinput diff --git a/Master/texmf-dist/tex/latex/grant/grant-nrl.cls b/Master/texmf-dist/tex/latex/grant/grant-nrl.cls index f874634648f..003d6e541db 100644 --- a/Master/texmf-dist/tex/latex/grant/grant-nrl.cls +++ b/Master/texmf-dist/tex/latex/grant/grant-nrl.cls @@ -4,11 +4,11 @@ %% %% The original source files were: %% -%% grant.dtx (with options: `nrl') +%% grant.dtx (with options: `grant-nrl') %% %% This is a generated file. %% -%% Copyright (C) 2016 Jonathan Karr +%% Copyright (C) 2016-2019 Jonathan Karr %% %% This file may be distributed and/or modified under the conditions of %% the MIT License. The latest version of this license is in: @@ -41,6 +41,41 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{grant-nrl}[2019/02/26 NRL class] + +\newcommand{\draftstatus}{isnotdraft} +\DeclareOption{isdraft}{\renewcommand{\draftstatus}{isdraft}} +\DeclareOption{isnotdraft}{\renewcommand{\draftstatus}{isnotdraft}} + +\newcommand{\whitepaperstatus}{isnotwhitepaper} +\DeclareOption{iswhitepaper}{\renewcommand{\whitepaperstatus}{iswhitepaper}} +\DeclareOption{isnotwhitepaper}{\renewcommand{\whitepaperstatus}{isnotwhitepaper}} + +\newcommand{\sectioncompactstatus}{isnotsectioncompact} +\DeclareOption{issectioncompact}{\renewcommand{\sectioncompactstatus}{issectioncompact}} +\DeclareOption{isnotsectioncompact}{\renewcommand{\sectioncompactstatus}{isnotsectioncompact}} + +\newcommand{\bibcompactstatus}{isnotbibcompact} +\DeclareOption{isbibcompact}{\renewcommand{\bibcompactstatus}{isbibcompact}} +\DeclareOption{isnotbibcompact}{\renewcommand{\bibcompactstatus}{isnotbibcompact}} + +\ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact} +\ProcessOptions + +\LoadClass[12pt, \draftstatus, \whitepaperstatus, \sectioncompactstatus, \bibcompactstatus]{grant} + +%%%%%%%%%%%%%%%%%%%%%% +%% formatting +%%%%%%%%%%%%%%%%%%%%%% + +\geometry{margin=1in} + +\usepackage{times} +\renewcommand{\familydefault}{\rmdefault} + +\setlength{\parskip}{4pt} + \endinput %% diff --git a/Master/texmf-dist/tex/latex/grant/grant-nsf.cls b/Master/texmf-dist/tex/latex/grant/grant-nsf.cls index d89dda72c25..9d891fce29f 100644 --- a/Master/texmf-dist/tex/latex/grant/grant-nsf.cls +++ b/Master/texmf-dist/tex/latex/grant/grant-nsf.cls @@ -4,11 +4,11 @@ %% %% The original source files were: %% -%% grant.dtx (with options: `nsf') +%% grant.dtx (with options: `grant-nsf') %% %% This is a generated file. %% -%% Copyright (C) 2016 Jonathan Karr +%% Copyright (C) 2016-2019 Jonathan Karr %% %% This file may be distributed and/or modified under the conditions of %% the MIT License. The latest version of this license is in: @@ -42,6 +42,36 @@ +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{grant-nsf}[2019/02/26 NSF class] + +\newcommand{\draftstatus}{isnotdraft} +\DeclareOption{isdraft}{\renewcommand{\draftstatus}{isdraft}} +\DeclareOption{isnotdraft}{\renewcommand{\draftstatus}{isnotdraft}} + +\newcommand{\whitepaperstatus}{isnotwhitepaper} +\DeclareOption{iswhitepaper}{\renewcommand{\whitepaperstatus}{iswhitepaper}} +\DeclareOption{isnotwhitepaper}{\renewcommand{\whitepaperstatus}{isnotwhitepaper}} + +\newcommand{\sectioncompactstatus}{isnotsectioncompact} +\DeclareOption{issectioncompact}{\renewcommand{\sectioncompactstatus}{issectioncompact}} +\DeclareOption{isnotsectioncompact}{\renewcommand{\sectioncompactstatus}{isnotsectioncompact}} + +\newcommand{\bibcompactstatus}{isnotbibcompact} +\DeclareOption{isbibcompact}{\renewcommand{\bibcompactstatus}{isbibcompact}} +\DeclareOption{isnotbibcompact}{\renewcommand{\bibcompactstatus}{isnotbibcompact}} + +\ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact} +\ProcessOptions + +\LoadClass[10pt, \draftstatus, \whitepaperstatus, \sectioncompactstatus, \bibcompactstatus]{grant} + +%%%%%%%%%%%%%%%%%%%%%% +%% formatting +%%%%%%%%%%%%%%%%%%%%%% + +\geometry{margin=1in} + \endinput %% %% End of file `grant-nsf.cls'. diff --git a/Master/texmf-dist/tex/latex/grant/grant-onr.cls b/Master/texmf-dist/tex/latex/grant/grant-onr.cls index 5bbe8c427f6..7ee94618b4f 100644 --- a/Master/texmf-dist/tex/latex/grant/grant-onr.cls +++ b/Master/texmf-dist/tex/latex/grant/grant-onr.cls @@ -4,11 +4,11 @@ %% %% The original source files were: %% -%% grant.dtx (with options: `onr') +%% grant.dtx (with options: `grant-onr') %% %% This is a generated file. %% -%% Copyright (C) 2016 Jonathan Karr +%% Copyright (C) 2016-2019 Jonathan Karr %% %% This file may be distributed and/or modified under the conditions of %% the MIT License. The latest version of this license is in: @@ -42,6 +42,63 @@ + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{grant-onr}[2019/02/26 ONR class] + +\newcommand{\draftstatus}{isnotdraft} +\DeclareOption{isdraft}{\renewcommand{\draftstatus}{isdraft}} +\DeclareOption{isnotdraft}{\renewcommand{\draftstatus}{isnotdraft}} + +\newcommand{\whitepaperstatus}{isnotwhitepaper} +\DeclareOption{iswhitepaper}{\renewcommand{\whitepaperstatus}{iswhitepaper}} +\DeclareOption{isnotwhitepaper}{\renewcommand{\whitepaperstatus}{isnotwhitepaper}} + +\newcommand{\sectioncompactstatus}{isnotsectioncompact} +\DeclareOption{issectioncompact}{\renewcommand{\sectioncompactstatus}{issectioncompact}} +\DeclareOption{isnotsectioncompact}{\renewcommand{\sectioncompactstatus}{isnotsectioncompact}} + +\newcommand{\bibcompactstatus}{isnotbibcompact} +\DeclareOption{isbibcompact}{\renewcommand{\bibcompactstatus}{isbibcompact}} +\DeclareOption{isnotbibcompact}{\renewcommand{\bibcompactstatus}{isnotbibcompact}} + +\ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact} +\ProcessOptions + +\LoadClass[12pt, \draftstatus, \whitepaperstatus, \sectioncompactstatus, \bibcompactstatus]{grant} + +%%%%%%%%%%%%%%%%%%%%%% +%% formatting +%%%%%%%%%%%%%%%%%%%%%% + +\geometry{margin=1in} + +\usepackage{times} +\renewcommand{\familydefault}{\rmdefault} + +\setlength{\parskip}{4pt} + +%%%%%%%%%%%%%%%%%%%%%% +%% abstract +%%%%%%%%%%%%%%%%%%%%%% +\renewcommand{\AbstractName}{White paper} +\settoggle{AbstractIsCentered}{true} +\settoggle{AbstractShowAdminPOC}{false} +\settoggle{AbstractShowLeadOrg}{false} +\settoggle{AbstractShowOtherPersonnel}{false} +\settoggle{AbstractShowDuration}{false} +\settoggle{AbstractShowCost}{false} + +\ifbool{iswhitepaper}{ + \titleformat{\section}[block]{\bfseries}{\uline{\thesection.~}}{0ex}{\uline{#1}}[] + \titleformat{\subsection}[runin]{\bfseries}{\thesubsection.~}{0ex}{#1}[.] + \titleformat{\subsubsection}[runin]{}{\uline{\thesubsubsection.~}}{0ex}{\uline{#1}}[.] + + \titlespacing*{\section}{0pt}{*0.0}{*-1} + + \renewcommand{\bibfont}{\normalsize} +}{} + \endinput %% %% End of file `grant-onr.cls'. diff --git a/Master/texmf-dist/tex/latex/grant/grant.cls b/Master/texmf-dist/tex/latex/grant/grant.cls index 7daa0b01a16..04d2f3d65fc 100644 --- a/Master/texmf-dist/tex/latex/grant/grant.cls +++ b/Master/texmf-dist/tex/latex/grant/grant.cls @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2016 Jonathan Karr +%% Copyright (C) 2016-2019 Jonathan Karr %% %% This file may be distributed and/or modified under the conditions of %% the MIT License. The latest version of this license is in: @@ -37,7 +37,7 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{grant}[2016/01/12 grant class] +\ProvidesClass{grant}[2019/02/26 grant class] %%%%%%%%%%%%%%%%%%%%%% %% options @@ -57,6 +57,13 @@ \DeclareOption{isnotdraft} {\boolfalse{isdraft}} +\newbool{iswhitepaper} +\boolfalse{iswhitepaper} +\DeclareOption{iswhitepaper} + {\booltrue{iswhitepaper}} +\DeclareOption{isnotwhitepaper} + {\boolfalse{iswhitepaper}} + \newbool{issectioncompact} \boolfalse{issectioncompact} \DeclareOption{issectioncompact} @@ -71,7 +78,7 @@ \DeclareOption{isnotbibcompact} {\boolfalse{isbibcompact}} -\ExecuteOptions{isdraft, isnotdraft, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact} +\ExecuteOptions{isdraft, isnotdraft, iswhitepaper, isnotwhitepaper, issectioncompact, isnotsectioncompact, isbibcompact, isnotbibcompact} \ProcessOptions %%%%%%%%%%%%%%%%%%%%%% @@ -91,6 +98,15 @@ \usepackage[normalem]{ulem} \usepackage{soul} +\soulregister\cite7 + +\usepackage{xcolor} +\usepackage{framed} +\definecolor{hlcolor}{rgb}{1, 1, 0} +\sethlcolor{hlcolor} +\colorlet{shadecolor}{hlcolor} +\setlength{\fboxsep}{0.05ex} +\setlength{\OuterFrameSep}{-\fboxsep} \usepackage{setspace} \singlespacing @@ -163,12 +179,17 @@ \subsubsection*{#2}% } +\ifbool{iswhitepaper}{ + \titleformat{\section}[runin]{\bfseries}{\uline{\thesection.~}}{0ex}{\uline{#1}}[:] +}{ + \usepackage[auto]{chappg} +} + \ifbool{issectioncompact}{ \titleformat{\section}[runin]{\bfseries}{\uline{\thesection.~}}{0ex}{\uline{#1}}[.] \titlespacing*{\section}{0pt}{*0.0}{*0.5} }{} -\usepackage[auto]{chappg} \usepackage{fancyhdr} \pagestyle{fancy} @@ -182,6 +203,12 @@ \rfoot{\small\thepage} }{} +\ifbool{iswhitepaper}{ + \lfoot{} + \rfoot{} + \cfoot{\small\thepage} +}{} + \usepackage{paralist} \usepackage{enumitem} \setlist[itemize]{topsep=0pt, partopsep=0ex, parsep=0ex, itemsep=0ex, leftmargin=1em} @@ -230,10 +257,17 @@ \renewcommand{\bibfont}{\footnotesize} \ExecuteBibliographyOptions{maxbibnames=1,minbibnames=1} + \DeclareFieldFormat[article]{title}{} \DeclareFieldFormat[article]{pages}{} \DeclareFieldFormat[article]{volume}{} \DeclareFieldFormat[article]{number}{} + + \DeclareFieldFormat[inproceedings]{title}{} + \DeclareFieldFormat[inproceedings]{pages}{} + \DeclareFieldFormat[inproceedings]{volume}{} + \DeclareFieldFormat[inproceedings]{number}{} + \DeclareFieldFormat[online]{url}{} \DeclareFieldFormat[online]{urldate}{} @@ -379,6 +413,8 @@ \newcommand{\PoEmail}{} \newcommand{\PoPhone}{} +\newcommand{\FundingIdTitle}{\FundingId\ifdefempty{\FundingTitle}{}{: \FundingTitle}} + \newcommand{\makecoverpage}{ {\LARGE\bfseries @@ -388,7 +424,7 @@ \vskip1ex \uline{Funding opportunity} \\\FundingAgency - \\{\FundingTitle} (\href{\FundingUrl}{\FundingId}) + \\\FundingIdTitle (\href{\FundingUrl}{\FundingId}) \\\FundingDeadline \uline{Applicant} @@ -408,12 +444,35 @@ \\\PoPhone } +\newcommand{\AbstractName}{Abstract} +\newcommand{\AbstractOtherPersonnelName}{Other key personnel and primary subcontractors} +\providetoggle{AbstractIsCentered} +\providetoggle{AbstractShowAdminPOC} +\providetoggle{AbstractShowLeadOrg} +\providetoggle{AbstractShowOtherPersonnel} +\providetoggle{AbstractShowDuration} +\providetoggle{AbstractShowCost} +\settoggle{AbstractIsCentered}{false} +\settoggle{AbstractShowAdminPOC}{true} +\settoggle{AbstractShowLeadOrg}{true} +\settoggle{AbstractShowOtherPersonnel}{true} +\settoggle{AbstractShowDuration}{true} +\settoggle{AbstractShowCost}{true} + \newcommand{\makeabstractcoverpage}{ - \begin{center}\LARGE\textbf{ - ABSTRACT\\[0.5ex] - \FundingId: \FundingTitle\\[0.5ex] - \ProposalTitle + {\setlength{\parskip}{12pt} + + \iftoggle{AbstractIsCentered}{ + \centering + }{} + + \begin{center}\textbf{ + \LARGE{\MakeUppercase{\AbstractName}}\\[18pt] + \LARGE{\FundingId}\\ + \large{\FundingTitle}\\[18pt] + \LARGE{\ProposalTitle} }\end{center} + \vskip-8pt \textbf{Technical point of contact: \PiName}\\ \PiTitle\\ @@ -422,25 +481,32 @@ \PiAddress\\ Tel: \PiPhone, Fax: \PiFax, Email: \href{mailto:\PiEmail}{\PiEmail}, Web: \href{http://www.\PiUrl}{\PiUrl} + \iftoggle{AbstractShowAdminPOC}{ \textbf{Administrative point of contact: \AdminName}\\ \AdminTitle\\ \AdminAddress\\ \AdminInstitution\\ Tel: \AdminPhone, Fax: \AdminFax, Email: \href{mailto:\AdminEmail}{\AdminEmail} + }{} + \iftoggle{AbstractShowLeadOrg}{ \textbf{Lead organization: \LeadOrganizationName}\\ \LeadOrganizationAddress\\ DUNS number: \LeadOrganizationDUNS\\ Taxpayer identification number: \LeadOrganizationTIN\\ CAGE code: \LeadOrganizationCAGE + }{} - \textbf{Other key personnel and primary subcontractors}\\ + \iftoggle{AbstractShowOtherPersonnel}{ + \textbf{\AbstractOtherPersonnelName}\\ \OtherKeyPersonnel + }{} - \textbf{Duration: {\ProposalDurationInYears} years} + \iftoggle{AbstractShowDuration}{\textbf{Duration: {\ProposalDurationInYears} years}}{} - \textbf{Estimated cost: \${\ProposalCostInMillions} million in total costs} + \iftoggle{AbstractShowCost}{\textbf{Estimated cost: \${\ProposalCostInMillions} million in total costs}}{} + } \clearpage } @@ -451,6 +517,7 @@ + \endinput %% %% End of file `grant.cls'. -- cgit v1.2.3