-
Notifications
You must be signed in to change notification settings - Fork 16
/
nrel.cls
636 lines (583 loc) · 19.7 KB
/
nrel.cls
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
% File: nrel.cls v2.0.2, April 2022
% This class file provides basic functionality for producing
% PDFs that meet NREL's style and formatting requirements.
% -------------------------------------------------------------
% Identification Part
% -------------------------------------------------------------
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{nrel}
\typeout{ }
\typeout{NREL.cls -- v2.0.2, April 2022}
\typeout{Formats documents according to the NREL style guide}
\typeout{ }
% -------------------------------------------------------------
% Create Options
% -------------------------------------------------------------
%% PDF properties
\pdfinterwordspaceon
\pdfminorversion=6
% for processing of conditional statements
\RequirePackage{xifthen}
% Mark as draft
\newboolean{IsDraft}
\setboolean{IsDraft}{false}
% print links in black
\newboolean{blacklinks}
\setboolean{blacklinks}{false}
% Set flag to meet NREL RAAW requirements
% true by default
\newboolean{IsNREL}
\setboolean{IsNREL}{true}
% Set flag to meet EERE RAAW requirements
\newboolean{IsEERE}
\setboolean{IsEERE}{false}
% Set flag for confidentiality statement
\newboolean{IsConfidential}
\setboolean{IsConfidential}{false}
% tagged?
\newboolean{IsTagged}
\setboolean{IsTagged}{false}
% single appendix?
\newboolean{IssingleAppendix}
\setboolean{IssingleAppendix}{false}
% -------------------------------------------------------------
% Check for choice of package and formatting options
% -------------------------------------------------------------
% look out for draft
\DeclareOption{draft}{
\setboolean{IsDraft}{true}
\typeout{Formatting as draft}
}
% If EERE option is set, format as EERE RAAW
\DeclareOption{EERE}{
\setboolean{IsEERE}{true}
\setboolean{IsNREL}{false}
\def\NREL@class{report}
\typeout{Using EERE report RAAW}
}
% NREL is assumed to be true by default
% unless switched off by EERE flag
\ifthenelse{\boolean{IsNREL}}{
\def\NREL@class{report}
\typeout{Using NREL report RAAW}
}{}
% If tagged option is set, format as tagged pdf
\DeclareOption{tagged}{
\setboolean{IsTagged}{true}
\typeout{PDF will be tagged}
}
% If confidential option is set, add confidentiality statement
\DeclareOption{confidential}{
\setboolean{IsConfidential}{true}
\typeout{Confidentiality statement added to title page and headers}
}
% report has single appendix, change formatting
\DeclareOption{singleAppendix}{
\setboolean{IssingleAppendix}{true}
\typeout{Changing format for single appendix}
}
% -------------------------------------------------------------
% Process Options
% -------------------------------------------------------------
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\NREL@class}}
\ExecuteOptions{12pt}
\ProcessOptions\relax
\LoadClass{\NREL@class}
% -------------------------------------------------------------
% Package Loading
% -------------------------------------------------------------
% titlepage stu
\RequirePackage{titling}
\RequirePackage{datetime}
\newdateformat{monthyeardate}{%
\monthname[\THEMONTH], \THEYEAR}
% for multiple authors/affils
\RequirePackage{authblk}
% NAG: check for outdated packages
\RequirePackage[l2tabu, orthodox]{nag}
% GEOMETRY: set page size
% \RequirePackage[head=0.125in,top=0.9in,bottom=1in,inner=1in,outer=1in,includefoot]{geometry}
\RequirePackage[letterpaper, top=0.5in,bottom=1in,inner=1in,outer=1in,includefoot]{geometry}
% MATHPTMX Times for roman text and math (family ptm)
\RequirePackage{mathptmx}
% Helvetica for sans serif (family phv)
\RequirePackage[scaled=0.83]{helvet}
% Courier for typewriter font (family pcr)
\RequirePackage{courier}
% ams math
\RequirePackage{amsfonts,amssymb,amsmath}
% gensymb. Required for degrees symbol
\RequirePackage{gensymb}
% acronyms
\RequirePackage{acronym}
\renewcommand*\aclabelfont[1]{\acsfont{#1}}
% Prevent orphan lines and windows
\RequirePackage[all]{nowidow}
% % better tables
\RequirePackage{booktabs}
% \RequirePackage{tabularx}
% For including figures, ignoring the draft status
\RequirePackage[final]{graphicx}
% use fonts of type T1
\RequirePackage[T1]{fontenc}
% colours
\RequirePackage{xcolor}
\definecolor{nrelblue}{RGB}{0, 121, 193}
% set languages
\RequirePackage[english]{babel}
% To stop hyphenation in titles etc
\RequirePackage{hyphenat}
% prevent hyphenation across page break
\brokenpenalty10000\relax
% spacing
\RequirePackage{setspace}
\RequirePackage{parskip}
% to-do notes
\RequirePackage{todonotes}
% code listings
\RequirePackage{listings}
\RequirePackage[utf8]{inputenc}
\RequirePackage{etoolbox}
\RequirePackage[]{titlesec}
\RequirePackage[title,titletoc]{appendix}
%% ----------------------------
%% References section
%% ----------------------------
% For formatting the bibliography. See guidance
\RequirePackage[babel]{csquotes}
\RequirePackage[
style=chicago-authordate,
strict,backend=bibtex,
natbib=true,
bibencoding=inputenc,
sorting=nyt,
doi=true,
maxbibnames=10,
giveninits=true,
maxcitenames=3,
]{biblatex}
% change the name of the bib
% (see http://tex.stackexchange.com/questions/82993/how-to-change-the-name-of-document-elements-like-figure-contents-bibliogr)
\DefineBibliographyStrings{american}{%
bibliography = {References},
}
% No indentation
\setlength{\bibhang}{0pt}
% bibitemsep = 12 pt
\setlength{\bibitemsep}{8pt}
% fix spacing between heading and references
\AtBeginBibliography{
% \titleformat{\chapter}{\fontsize{18pt}{0pt}\bfseries\selectfont}
% \vspace*{12pt}
}
% see NREL formatting guidelines at
% https://communications_resources.nrel.gov/style_guide/references
% technical reports
\DeclareBibliographyAlias{techreport}{book}
% make one type of publication look like another
% map unknown bibliography entry types to the misc type
\DeclareBibliographyAlias{*}{misc}
% make sure URLs in the bibliography are shown in roman fonts
\urlstyle{same}
% --------------------------------------------------------
% Main Code
% --------------------------------------------------------
% NREL default is ragged right.
% Load ragged2e so \justifying and environment justify are available.
% Redefines \centering, \raggedleft, and \raggedright, and environments center
% flushleft and flushright to use versions made by ragged2e.
% Sets default alignment to ragged right.
% To override, use the command \justifying or the environment justify.
\RequirePackage[newcommands,document]{ragged2e}
%This changes parindent to 0
\setlength{\RaggedRightRightskip}{0pt plus 3em}
% -------------------------------------------
% Changes to TOC and list of figures/tables
% -------------------------------------------
% improved table of contents and list of figures/tables
\RequirePackage{tocloft}
% remove numbering on bibliography but still allow in TOC
\RequirePackage[nottoc, notlot, notlof]{tocbibind}
% add Figure before # and a period after
\renewcommand{\cftfigfont}{\fontfamily{phv} Figure }
\renewcommand{\cfttabfont}{\fontfamily{phv} Table }
\renewcommand{\cftfigaftersnum}{.}
\renewcommand{\cfttabaftersnum}{.}
% title font
\renewcommand{\cfttoctitlefont}{\color{nrelblue} \raggedright \fontsize{18}{6}\sffamily\bfseries}
\renewcommand{\cftloftitlefont}{\color{nrelblue} \raggedright \fontsize{18}{6}\sffamily\bfseries}
\renewcommand{\cftlottitlefont}{\color{nrelblue} \raggedright \fontsize{18}{6}\sffamily\bfseries}
\renewcommand{\cftchapfont}{ \fontsize{10pt}{10pt}\sffamily\bfseries}
\renewcommand{\cftsecfont}{ \fontsize{11pt}{11pt}}
\renewcommand{\cftsubsecfont}{ \fontsize{11pt}{11pt}}
% linespacing in the TOC
\setlength\cftparskip{-2pt}
\setlength\cftbeforechapskip{2pt}
\setlength\cftbeforesecskip{2pt}
\setlength\cftbeforesubsecskip{2pt}
\setlength\cftaftertoctitleskip{-6pt}
\setlength{\cftbeforetoctitleskip}{-6pt}
% Rename the title of contents
\addto{\captionsenglish}{\renewcommand*{\contentsname}{\fontsize{18}{18} Table of Contents}}
% add dotfill in toc
\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}}
% remove indentation
\setlength{\cftfigindent}{0pt}
\setlength{\cfttabindent}{0pt}
% don't add extra spaces in list of figures between chapters
\newcommand*{\noaddvspace}{\renewcommand*{\addvspace}[1]{}}
\addtocontents{lof}{\protect\noaddvspace}
\addtocontents{lot}{\protect\noaddvspace}
\setlength{\cftbeforefigskip}{5pt}
\setlength{\cftbeforetabskip}{5pt}
\setlength{\cftaftertoctitleskip}{0pt}
\setlength{\cftafterloftitleskip}{0pt}
\setlength{\cftafterlottitleskip}{0pt}
% -------------------------------------------
% Changes to the chapter and section markings
% -------------------------------------------
% Chapter Headings
\renewcommand{\@makechapterhead}[1]{%
\vspace*{-20\p@}%
{\color{nrelblue} \parindent \z@ \raggedright \normalfont \interlinepenalty\@M
\ifnum \c@secnumdepth >\m@ne
\fontfamily{phv} \fontsize{18}{6}\fontseries{b}\selectfont
\thechapter \hspace*{1em}#1
\else
\fontfamily{phv} \fontsize{18}{6}\fontseries{b}\selectfont #1
\fi
\par\nobreak
% \vspace*{0pt}
}}
\renewcommand{\@makeschapterhead}[1]{%
\vspace*{-20\p@}%
{\color{nrelblue} \parindent \z@ \raggedright \normalfont \interlinepenalty\@M
\Large\sffamily\bfseries #1
\par\nobreak
% \vspace*{-12pt}
}
}
% Section Headings
\renewcommand{\section}{%
\@startsection{section}{1}{\z@}
{-3.25ex \@plus -1ex \@minus -.2ex}
{0.25ex \@plus .2ex}
{\color{nrelblue}\fontfamily{phv}\fontsize{14}{14}\fontseries{b}\selectfont}}
\renewcommand{\subsection}{%
\@startsection{subsection}{2}{\z@}
{-3.25ex \@plus -1ex \@minus -.2ex}
{0.25ex \@plus .2ex}
{\color{nrelblue}\sffamily\normalsize\bfseries\slshape}}
\renewcommand{\subsubsection}{%
\@startsection{subsubsection}{3}{\z@}
{-3.25ex \@plus -1ex \@minus -.2ex}
{0.25ex \@plus .2ex}
{\color{nrelblue}\sffamily\normalsize\itshape}}
\renewcommand{\paragraph}{%
\@startsection{paragraph}{4}{\z@}
{-3.25ex \@plus -1ex \@minus -.2ex}
{0.25ex \@plus .2ex}
{\bfseries\normalsize}}
\renewcommand{\subparagraph}{%
\@startsection{subparagraph}{5}{\z@}
{-3.25ex \@plus -1ex \@minus -.2ex}
{0.25ex \@plus .2ex}
{\bfseries\normalsize\itshape}}
% \renewenvironment{table}
% {\@float{table} \fontfamily{phv}\selectfont}
% {\end@float}
% inherit fonts etc from TOC
\let\printlottitle\printtoctitle
\let\printloftitle\printtoctitle
% % Format Captions
% % see e.g. http://www.peteryu.ca/tutorials/publishing/latex_captions for details of how to adjust
\RequirePackage{caption}
\RequirePackage{subcaption}
\captionsetup[table]{font={small,sf,bf},
labelfont={small,sf,bf},
textfont={small,sf,bf},
position=above,
labelsep=period,
justification=centering,
singlelinecheck=true,
aboveskip=6pt,
aboveskip=6pt}
\captionsetup[figure]{font={small,sf,bf},
labelfont={small,sf,bf},
textfont={small,sf,bf},
position=below,
labelsep=period,
justification=centering,
singlelinecheck=true,
belowskip=-12pt,
aboveskip=12pt}
% number figures and tables continuously across chapters
\RequirePackage{chngcntr}
\counterwithout{figure}{chapter}
\counterwithout{table}{chapter}
\counterwithout{footnote}{chapter}
\RequirePackage{footmisc}
\renewcommand{\footnotelayout}{\fontsize{10pt}{10pt}}
\renewcommand{\footnoterule}{% Kerns avoid vertical space
\kern -3pt % This -3 is negative
\hrule width 0.3\textwidth height 0.4pt % of the sum of this 1
\kern 10pt} % and this 2
% \renewcommand{\thefootnote}{\fnsymbol{\fontsize{10pt}{10pt}footnote}}
% Note that if we use the front matter / main matter, we have to change numbers
% need to renew the front, main, and back matter commands
\makeatletter
\newcommand{\frontmatter}{%
\renewcommand\thechapter{\hspace{-1.65ex}}
\pagenumbering{roman} %
\setcounter{page}{3} %
\setcounter{figure}{0} %
\renewcommand{\thefigure}{\Alph{figure}} %
\setcounter{table}{0} %
\renewcommand{\thetable}{\Alph{table}}
}
\newcommand{\mainmatter}{%
\clearpage %
\renewcommand\thechapter{\arabic{chapter}}
\setcounter{chapter}{0} %
\pagenumbering{arabic} %
\setcounter{figure}{0} %
\renewcommand{\thefigure}{\arabic{figure}} %
\setcounter{table}{0} %
\renewcommand{\thetable}{\arabic{table}}%
\setlength\parskip{8pt}
}
\newcommand{\backmatter}{}
\makeatother
% deal with the appendix
\renewcommand\appendix{\par
\setcounter{chapter}{0}
\setcounter{section}{0}
\setcounter{footnote}{0}
% counters should reset each chapter
\counterwithin{figure}{chapter}
\counterwithin{table}{chapter}
% footnote formatting
\renewcommand*{\thefootnote}{\fnsymbol{\fontsize{10pt}{10pt}footnote}}
}
\ifthenelse{\boolean{IssingleAppendix}}{ % true
\AtBeginEnvironment{appendices}{
\titleformat{\chapter}{\fontfamily{phv}\fontsize{18}{0}\selectfont\bfseries}{\textcolor{nrelblue}
{Appendix}}{11pt}{\textcolor{nrelblue}}
\titlespacing*{\chapter}{0pt}{-20pt}{0pt}
} %<--------- Use this if only one appendix
\newcommand{\appchapter}[1]{
\chapter*{Appendix\hspace{11pt} #1}
\addcontentsline{toc}{chapter}{{Appendix\hspace{11pt} #1}}}
}
{% False
\AtBeginEnvironment{appendices}{
\titleformat{\chapter}{\fontfamily{phv}\fontsize{18}{0}\selectfont\bfseries}{\textcolor{nrelblue}
{Appendix \thechapter.}}{11pt}{\textcolor{nrelblue}}
\titlespacing*{\chapter}{0pt}{-20pt}{-6pt}
} %<--------- Use this if more than one appendix
\newcommand{\appchapter}[1]{
\chapter{#1}}
}
% check that the default san-serif font is sort-of-arial
% (required for tables)
% \renewcommand{\sfdefault}{phv} % Arial
% Indenting and spacing between paragraphs
\setlength{\parindent}{0pt}
%-----------------------
% GENERAL CODE
%-----------------------
% Require at least 3 characters before a hyphenation.
\lefthyphenmin=3
% Don't hyphenate the months (or any proper noun---other proper nouns must be addressed in the tex file
\hyphenation{January February April July August September October December Department Energy National Renewable Laboratory Washington Colorado Standard}
% Enumerate list environment -- change the default numbering to match our style
\renewcommand{\theenumi}{\arabic{enumi}}
\renewcommand{\theenumii}{\Alph{enumii}}
\renewcommand{\theenumiii}{\roman{enumiii}}
\renewcommand{\theenumiv}{\alph{enumiv}}
\renewcommand{\labelenumi}{\theenumi.}
\renewcommand{\labelenumii}{\theenumii.}
\renewcommand{\labelenumiii}{\theenumiii.}
\renewcommand{\labelenumiv}{\theenumiv)}
% Draft mode
\ifthenelse{\boolean{IsDraft}}{ % tue
\RequirePackage{draftwatermark}
\SetWatermarkAngle{60}
\SetWatermarkLightness{0.875}
\SetWatermarkFontSize{6cm}
\setboolean{blacklinks}{false}
}{% False
}
% % Add .pdf links
% \ifthenelse{\boolean{blacklinks}}{% True
% \RequirePackage[
% final,
% pdfa,
% linktocpage,
% colorlinks,
% linktoc=all,
% linkcolor=black,
% citecolor=black,
% menucolor=black,
% urlcolor=black,
% pdfborder={0 0 0},
% unicode,
% pdflang={en-US}
% ]{hyperref}
% }{% False
% \RequirePackage[
% final,
% pdfa,
% linktocpage,
% colorlinks,
% linktoc=all,
% linkcolor=black,
% citecolor=nrelblue,
% menucolor=black,
% urlcolor=nrelblue,
% pdfborder={0 0 0},
% unicode,
% pdflang={en-US}
% ]{hyperref}
% }
% Enable tooltips
\RequirePackage[linewidth = 0]{pdfcomment}
%%%#TODO review verbatim/listings code
%% ----------------------------
%% CODE / VERBATIM
%% ----------------------------
% \@ifundefined{lstlisting}{}{%
% \let\verbatim\relax%
% \lstnewenvironment{verbatim}{\lstset{language=[LaTeX]TeX, % the language of the code
% basicstyle=\small\sffamily,
% numbers=none, % where to put the line-numbers
% numberstyle=\tiny\color{gray}, % the style that is used for the line-numbers
% stepnumber=1, % the step between two line-numbers. If it's 1, each line will be numbered
% numbersep=5pt, % how far the line-numbers are from the code
% backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
% showspaces=false, % show spaces adding particular underscores
% showstringspaces=false, % underline spaces within strings
% breaklines=true, % sets automatic line breaking
% breakatwhitespace=true, % sets if automatic breaks should only happen at whitespace
% keywordstyle=\color{blue}, % keyword style
% commentstyle=\color{gray}, % comment style
% stringstyle=\color{green}, % string literal style
% escapeinside={\%*}{*)}, % if you want to add a comment within your code
% morekeywords={*,...}}% % if you want to add more keywords to the set
% }{}%
% }
%%#TODO update the page format (fancy head/foot)
%% ----------------------------
%% ACCESSIBILITY
%% ----------------------------
\ifthenelse{\boolean{IsTagged}}{% True
\RequirePackage[tagged,highstructure]{accessibility}
}{}
% need to add page number and availability information to every page, including new chapters.
\RequirePackage{fancyhdr}
% \fancyhf{} % clear all header and footer fields
\ifthenelse{\boolean{IsConfidential}}{%IsConfidential==True
\fancypagestyle{nrel}{%
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot[C]{\thepage\\\vspace{1em} \textbf{The contents of the report are confidential} }}
}{%IsConfidential==False
\fancypagestyle{nrel}{%
\fancyhf{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot[C]{\thepage\\\vspace{1em} \fontsize{10pt}{10pt}\sffamily \textcolor{lightgray}{This report is available at no cost from the National Renewable Energy Laboratory (NREL) at \href{www.nrel.gov/publications}{www.nrel.gov/publications}}}
}
% \renewcommand{\headrulewidth}{0.5pt}
% \renewcommand{\headrule}{\hbox to\headwidth{%
% \color{nrelblue}\leaders\hrule height \headrulewidth\hfill}}
% \renewcommand{\footrulewidth}{0.5pt}
% \renewcommand{\footrule}{\hbox to\headwidth{%
% \color{nrelblue}\leaders\hrule height \headrulewidth\hfill}}
% \thispagestyle{nrel}
% \pagestyle{nrel}
}
\appto\frontmatter{\pagestyle{nrel}}
\appto\mainmatter{\pagestyle{nrel}}
\appto\backmatter{\pagestyle{empty}}
% note that the first page of a chapter uses "plain", so we need to redefine that to match the "nrel" page style.
% \let\ps@plain\ps@nrel
%% command to scrape authors from authblk (without affils or markers)
\RequirePackage{xstring}
\RequirePackage{hyperref}
\typeout{TEST LOCATION}
\makeatletter
\typeout{AB@authlist}
\pdfstringdef\cleanlist{\AB@authlist}
\makeatother
\StrDel{\cleanlist}{1}[\cleanlist]
\StrDel{\cleanlist}{2}[\cleanlist]
\StrDel{\cleanlist}{3}[\cleanlist]
\StrDel{\cleanlist}{4}[\cleanlist]
\StrDel{\cleanlist}{5}[\cleanlist]
%% add pdf title and authors
\makeatletter
\typeout{\cleanlist}
\hypersetup{
final,
linktocpage,
colorlinks=false,
linktoc=all,
linkcolor=black,
citecolor=nrelblue,
menucolor=black,
urlcolor=nrelblue,
pdfborder={0 0 0},
unicode,
pdflang={en-US},
pdftitle=\@title,
pdfauthor={Nicholas Hamilton}
% pdfauthor={\cleanlist}
}
\makeatother
%% format of make title (title, authors, affils)
\makeatletter
\renewcommand{\maketitle}{\bgroup\setlength{\parindent}{0pt}
\null
\vskip 2em%
\begin{flushright}
\fontfamily{phv}
\textbf{\huge{\@title}}
\vskip 1.5em%
\large{\@author}
\vskip 1em%
\end{flushright}
\egroup
}
\makeatother
%#TODO add ifthenelse statement to change from NREL cover page to EERE cover page
%% THINGS WE NEED TO DO AT THE START OF THE DOCUMENT
\AtBeginDocument{
\setlength{\headsep}{6em}
% -------------------------------------
% hard-coded formatting for title page
% * no changes needed *
% -------------------------------------
\thispagestyle{empty}
\centering
% \vspace*{-8em}
% \includegraphics[width=\textwidth]{header}\\
\vspace*{4em}
\begin{flushright}
\begin{minipage}{0.7\textwidth}
\maketitle
\end{minipage}
\\
\vfill
\begin{minipage}[b]{0.75\textwidth}
\begin{minipage}[b]{0.7\textwidth}
This is a temporary cover page.
A final cover page will be generated by comms with current style and formatting.\\
\vspace{2ex}
\textbf{v2.0.2, April 2022}
\end{minipage}
\end{minipage}
\end{flushright}
\raggedright
% \clearpage
}
% end of file