\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{pnasinvited}[2016/02/28 v1.2 PNAS Invited Submission style]
\setboolean{shortarticle}{false}
\definecolor{color2}{RGB}{200,89,45}
\newsavebox{\authfootinfo}
\additionalelement{}
\patchcmd{\@author}{\\[\affilsep]\AB@affillist}{}{}{}
\appto{\maketitle}{
\savebox{\authfootinfo}{
\begin{minipage}{\textwidth}
\footnotesize
\vskip4pt\hrule\vskip6pt
\AB@affillist\par
\@authorcontributions\par
\@equalauthors\par
\@correspondingauthor\par
\@authordeclaration\par
\end{minipage}
}
\newlength\authfootheight
\settoheight{\authfootheight}{\usebox{\authfootinfo}}
\addtolength{\authfootheight}{\baselineskip}
\begin{authfoot}
\usebox{\authfootinfo}
\end{authfoot}
\afterpage{
\begin{authfoot}
\vskip\dimexpr(\authfootheight+\baselineskip)
\end{authfoot}
}
}
\RequirePackage{float}
\floatstyle{plain}
\newfloat{authfoot}{b!}{auf}
\renewcommand{\familydefault}{\sfdefault}
\renewcommand{\keywordsfont}{\sffamily}
\appto{\abscontent}{\par\textcolor{color2}{\hrulefill}}
\appto{\titlefont}{\color{color2}}
\titleformat{\section}
{\large\sffamily\bfseries\color{color2}}
{\thesection.}
{0.5em}
{#1}
[]
\titleformat{name=\section,numberless}
{\large\sffamily\bfseries\color{color2}}
{}
{0em}
{#1}
[]
\titleformat{\subsection}[runin]
{\sffamily\bfseries\itshape}
{\thesubsection.}
{0.5em}
{#1. }
[]
\renewcommand{\dropcap}[1]{\noindent #1}
\fancypagestyle{firststyle}{
\fancyfoot[R]{\footerfont PNAS\hspace{7pt}|\hspace{7pt}\textbf{\today}\hspace{7pt}|\hspace{7pt}vol. XXX\hspace{7pt}|\hspace{7pt}no. XX\hspace{7pt}|\hspace{7pt}\textbf{\thepage\space of\space\pageref{LastPage}}}
\fancyfoot[L]{\footerfont\@doi}
}
\fancyfoot[LE]{\footerfont\textbf{\thepage\space of\space\pageref{LastPage}}\hspace{7pt}|\hspace{7pt}\@doi}
\renewcommand\@biblabel[1]{\textbf{#1}}
\titleformat{\matmethods@section}
{\large\sffamily\bfseries\color{color2}}
{}
{0em}
{#1}
[]
\titlespacing{\matmethods@section}
{0pt}
{3.25ex plus 1ex minus .2ex}
{1.5ex plus .2ex}
\renewcommand{\showmatmethods}{
\@ifundefined{@matmethods}{}{\matmethods@section{Materials and Methods}{\noindent\@matmethods}}
}
\titleformat{\acknow@section}
{\large\sffamily\bfseries\color{color2}}
{}
{0em}
{#1}
[]
\titlespacing{\acknow@section}
{0pt}
{3.25ex plus 1ex minus .2ex}
{1.5ex plus .2ex}
\renewcommand{\showacknow}{
\@ifundefined{@acknow}{}{\acknow@section{Acknowledgments}\noindent\@acknow}
}
\newcommand{\pnasbreak}{
\begin{strip}
\vskip-5pt
\hrule
\vskip-6pt
\end{strip}
}
\endinput