📚 The CoCalc Library - books, templates and other resources
cocalc-examples / cocalc-example-files / RMarkdown / rticles / pnas_article / pnasresearcharticle.sty
132930 viewsLicense: OTHER
%%% PNAS two column research article style file1%%% For use with pnas-new.cls2\NeedsTeXFormat{LaTeX2e}3\ProvidesPackage{pnasresearcharticle}[2016/02/28 v1.2 PNAS two column research article style]45%% Set whether the abstract is set into the first column6\setboolean{shortarticle}{true}7% true = set into first column8% false = spans page width910%% Set colors11\definecolor{color2}{RGB}{130,0,0} % color1213%% Set up the first page footnote/fact box here14\RequirePackage{float}15\floatstyle{plain}16\newfloat{sigstatement}{b!}{sst}1718\additionalelement{%19\afterpage{\begin{sigstatement}20\sffamily21\mdfdefinestyle{pnassigstyle}{linewidth=0.7pt,backgroundcolor=pnasblueback,linecolor=pnasbluetext,fontcolor=pnasbluetext,innertopmargin=6pt,innerrightmargin=6pt,innerbottommargin=6pt,innerleftmargin=6pt}22\@ifundefined{@significancestatement}{}{%23\begin{mdframed}[style=pnassigstyle]%24\section*{Significance Statement}%25\@significancestatement26\end{mdframed}}27% \medskip28\scriptsize29\@ifundefined{@authorcontributions}{}{\@authorcontributions}30\vskip5pt%31\@ifundefined{@authordeclaration}{}{\@authordeclaration}32\vskip5pt%33\@ifundefined{@equalauthors}{}{\@equalauthors}34\vskip5pt%35\@ifundefined{@correspondingauthor}{}{\@correspondingauthor}36\end{sigstatement}}37}3839%% Break at end of article (before references)40% The blank line before the strip command ensures there is nothing placed41% directly before the break (which can cause formatting issues).42\newcommand{\pnasbreak}{4344\begin{strip}45\vskip-11pt46\end{strip}47}4849\endinput5051