rstudio / rticles

LaTeX Journal Article Templates for R Markdown
https://pkgs.rstudio.com/rticles/
1.46k stars 516 forks source link

PNAS is missing extarticle #510

Closed alecristia closed 1 year ago

alecristia commented 1 year ago

The solution is simply to get it from here: http://tug.ctan.org/tex-archive/macros/latex/contrib/extsizes/extarticle.cls

cderv commented 1 year ago

The PNAS format requires installing extsizes package from CTAN. Using tinytex with R Markdwn, it should install automatically if missing. For example, I got this by rendering

tlmgr.pl: package repository https://mirrors.nxthost.com/ctan/systems/texlive/tlnet (not verified: pubkey missing)
[1/1, ??:??/??:??] install: extsizes [12k]
running mktexlsr ...
done running mktexlsr.
tlmgr.pl: package log updated: C:/Users/chris/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr.log
tlmgr.pl: command log updated: C:/Users/chris/AppData/Roaming/TinyTeX/texmf-var/web2c/tlmgr-commands.log

You can install manually using tinytex::tlmgr_install("extsizes") or using tlmgr at command line directly (or install the package fro your distribution (MikTeX maybe).

Anyway, format depends on some CTAN package that needs to be installed. Error log will tell you what is missing if you don't rely on automatic installation.

We don't usually add .cls files in the templates when they can be available through a CTAN package.

Thank for reporting though.

github-actions[bot] commented 1 year ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.