The template provided by the PNAS Article template in therticles packagemakes it very easy and convenient to create attractive lookingtwo-column papers.
There were however a few changes we wanted to make such as the use ofstandard natbib citations, more extended use of color, a different fontas well as the removal of a number of PNAS-specific title page items aswell as general code and use simplification via a single LaTeX classfile. So thispinp package started.
A complete pdf example is providedhereby the new introductoryRcpp vignette,which is itself based on ourPeerJ Prepint.
A screenshot of the first two pages:

and the next two pages, showing a two-column figure

followed by pages five and six

and the final two pages:

The package is working and onCRAN.
Some float placements are a little fragile in LaTeX two-column mode.If in doubt, add more text around it to aid the heuristic.
Use the standard
install.packages("pinp")to install it from CRAN, and then use as a Markdown template viaRStudio, or use code such as
library(rmarkdown)draft("mypaper.Rmd",template="pdf",package="pinp",edit=FALSE)render("mypaper.Rmd")to create a first draft of a newmypaper.Rmd.
Beyond the R package dependencies, a workingpandocbinary is needed. RStudio installs its own copy, otherwise do what isneeded on your OS (i.e., something likesudo apt-get install pandoc pandoc-citeproc).
The pdf mode requires a fairly complete LaTeX installation, and hasbeen used on Ubuntu and macOS.
On Debian/Ubuntu, the following packages should provide a workingset:
texlive-basetexlive-binariestexlive-fonts-extratexlive-fonts-recommendedtexlive-generic-recommendedtexlive-humanitiestexlive-latex-basetexlive-latex-extratexlive-latex-recommendedtexlive-picturestexlive-publisherstexlive-scienceDirk Eddelbuettel and James Balamuta, leaning on the earlier work byJJ et al in therticlespackage.
The authors of the underlyingPNAS LaTeX Styleare not explicitedly listed, butPNASrefers toOverleaf.
GPL-3 for this package, as well as the short code taken with gratefulacknowledgements from therticlespackage.
The mainPNASLaTeX style file (and supporting files) are under theLPPL (LaTeX Project PublicLicense) version 1.3 or later.
Initially created: Thu Sep 14 21:07:45 CDT 2017
Last modified: Sun May 26 10:02:50 CDT 2024