pnasresearcharticle.sty 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. %% Set whether the abstract is set into the first column
  6. \setboolean{shortarticle}{true}
  7. % true = set into first column
  8. % false = spans page width
  9. %% Set colors
  10. \definecolor{color2}{RGB}{130,0,0} % color
  11. %% Set up the first page footnote/fact box here
  12. \RequirePackage{float}
  13. \floatstyle{plain}
  14. \newfloat{sigstatement}{b!}{sst}
  15. \additionalelement{%
  16. \afterpage{\begin{sigstatement}
  17. \sffamily
  18. \mdfdefinestyle{pnassigstyle}{linewidth=0.7pt,backgroundcolor=pnasblueback,linecolor=pnasbluetext,fontcolor=pnasbluetext,innertopmargin=6pt,innerrightmargin=6pt,innerbottommargin=6pt,innerleftmargin=6pt}
  19. \@ifundefined{@significancestatement}{}{%
  20. \begin{mdframed}[style=pnassigstyle]%
  21. \section*{Significance Statement}%
  22. \@significancestatement
  23. \end{mdframed}}
  24. % \medskip
  25. \scriptsize
  26. \@ifundefined{@authorcontributions}{}{\@authorcontributions}
  27. \vskip5pt%
  28. \@ifundefined{@authordeclaration}{}{\@authordeclaration}
  29. \vskip5pt%
  30. \@ifundefined{@equalauthors}{}{\@equalauthors}
  31. \vskip5pt%
  32. \@ifundefined{@correspondingauthor}{}{\@correspondingauthor}
  33. \end{sigstatement}}
  34. }
  35. %% Break at end of article (before references)
  36. % The blank line before the strip command ensures there is nothing placed
  37. % directly before the break (which can cause formatting issues).
  38. \newcommand{\pnasbreak}{
  39. \begin{strip}
  40. \vskip-11pt
  41. \end{strip}
  42. }
  43. \endinput