Contact Us!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: sagemathinc/cocalc-example-files
Path: blob/master/RMarkdown/rticles/pnas_article/pnasresearcharticle.sty
Views: 1197
1
%%% PNAS two column research article style file
2
%%% For use with pnas-new.cls
3
\NeedsTeXFormat{LaTeX2e}
4
\ProvidesPackage{pnasresearcharticle}[2016/02/28 v1.2 PNAS two column research article style]
5
6
%% Set whether the abstract is set into the first column
7
\setboolean{shortarticle}{true}
8
% true = set into first column
9
% false = spans page width
10
11
%% Set colors
12
\definecolor{color2}{RGB}{130,0,0} % color
13
14
%% Set up the first page footnote/fact box here
15
\RequirePackage{float}
16
\floatstyle{plain}
17
\newfloat{sigstatement}{b!}{sst}
18
19
\additionalelement{%
20
\afterpage{\begin{sigstatement}
21
\sffamily
22
\mdfdefinestyle{pnassigstyle}{linewidth=0.7pt,backgroundcolor=pnasblueback,linecolor=pnasbluetext,fontcolor=pnasbluetext,innertopmargin=6pt,innerrightmargin=6pt,innerbottommargin=6pt,innerleftmargin=6pt}
23
\@ifundefined{@significancestatement}{}{%
24
\begin{mdframed}[style=pnassigstyle]%
25
\section*{Significance Statement}%
26
\@significancestatement
27
\end{mdframed}}
28
% \medskip
29
\scriptsize
30
\@ifundefined{@authorcontributions}{}{\@authorcontributions}
31
\vskip5pt%
32
\@ifundefined{@authordeclaration}{}{\@authordeclaration}
33
\vskip5pt%
34
\@ifundefined{@equalauthors}{}{\@equalauthors}
35
\vskip5pt%
36
\@ifundefined{@correspondingauthor}{}{\@correspondingauthor}
37
\end{sigstatement}}
38
}
39
40
%% Break at end of article (before references)
41
% The blank line before the strip command ensures there is nothing placed
42
% directly before the break (which can cause formatting issues).
43
\newcommand{\pnasbreak}{
44
45
\begin{strip}
46
\vskip-11pt
47
\end{strip}
48
}
49
50
\endinput
51