Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/RMarkdown/rticles/pnas_article/pnasinvited.sty
Views: 1217
%%% PNAS Invited Submission style file1%%% For use with pnas-new.cls2\NeedsTeXFormat{LaTeX2e}3\ProvidesPackage{pnasinvited}[2016/02/28 v1.2 PNAS Invited Submission style]45%% Set whether the abstract is set into the first column6\setboolean{shortarticle}{false}7% true = set into first column8% false = spans page width910%% Set colors11\definecolor{color2}{RGB}{200,89,45} % color1213%% Set up the author information14\newsavebox{\authfootinfo}15\additionalelement{} % Don't use the \additionalelement field (set blank)16% Author affiliation as footnote17% Patch the \@author from authblk -- shouldn't display affiliation here18\patchcmd{\@author}{\\[\affilsep]\AB@affillist}{}{}{}1920\appto{\maketitle}{%21\savebox{\authfootinfo}{%22\begin{minipage}{\textwidth}23\footnotesize24\vskip4pt\hrule\vskip6pt25\AB@affillist\par26\@authorcontributions\par27\@equalauthors\par28\@correspondingauthor\par29\@authordeclaration\par30\end{minipage}%31}32\newlength\authfootheight33\settoheight{\authfootheight}{\usebox{\authfootinfo}}34\addtolength{\authfootheight}{\baselineskip}35\begin{authfoot}36\usebox{\authfootinfo}37\end{authfoot}38\afterpage{%39\begin{authfoot}40\vskip\dimexpr(\authfootheight+\baselineskip)41\end{authfoot}42}43}4445% Author information in a box at the bottom as two floats.46\RequirePackage{float}47\floatstyle{plain}48\newfloat{authfoot}{b!}{auf}4950%% Set sans as default font51\renewcommand{\familydefault}{\sfdefault}52\renewcommand{\keywordsfont}{\sffamily}5354% Add line after abstract55\appto{\abscontent}{\par\textcolor{color2}{\hrulefill}}5657% Add colour to the title58\appto{\titlefont}{\color{color2}}5960% ...and section headings61\titleformat{\section}62{\large\sffamily\bfseries\color{color2}}63{\thesection.}64{0.5em}65{#1}66[]67\titleformat{name=\section,numberless}68{\large\sffamily\bfseries\color{color2}}69{}70{0em}71{#1}72[]73\titleformat{\subsection}[runin]74{\sffamily\bfseries\itshape}75{\thesubsection.}76{0.5em}77{#1. }78[]79% Other section headings left unchanged.8081%% No dropcaps. So re-define to do nothing in case user switches82% from the research article template83\renewcommand{\dropcap}[1]{\noindent #1}8485%% Tweaks to footer86\fancypagestyle{firststyle}{87\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}}}88\fancyfoot[L]{\footerfont\@doi}89}9091\fancyfoot[LE]{\footerfont\textbf{\thepage\space of\space\pageref{LastPage}}\hspace{7pt}|\hspace{7pt}\@doi}9293%% Make the bibliography number labels bold94\renewcommand\@biblabel[1]{\textbf{#1}}9596%% Adjust the style of the Materials & Methods section97\titleformat{\matmethods@section}98{\large\sffamily\bfseries\color{color2}}99{}100{0em}101{#1}102[]103\titlespacing{\matmethods@section}104{0pt}105{3.25ex plus 1ex minus .2ex}106{1.5ex plus .2ex}107\renewcommand{\showmatmethods}{% Display materials&methods section108\@ifundefined{@matmethods}{}{\matmethods@section{Materials and Methods}{\noindent\@matmethods}}109}110111%% Adjust the style of the acknowledgments section112\titleformat{\acknow@section}113{\large\sffamily\bfseries\color{color2}}114{}115{0em}116{#1}117[]118\titlespacing{\acknow@section}119{0pt}120{3.25ex plus 1ex minus .2ex}121{1.5ex plus .2ex}122\renewcommand{\showacknow}{% Display acknowledgments section123\@ifundefined{@acknow}{}{\acknow@section{Acknowledgments}\noindent\@acknow}124}125126%% Break at end of article (before references)127% The blank line before the strip command ensures there is nothing placed128% directly before the break (which can cause formatting issues).129\newcommand{\pnasbreak}{130131\begin{strip}132\vskip-5pt133\hrule134\vskip-6pt135\end{strip}136}137138\endinput139140