-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a PNAS template #72
Conversation
update to current rstudio version
includes required sty files that may not be commonly available (i.e. without texlive-full installation).
Was just checking this out and it looks like the author superscripts aren't getting put in correctly – knitting the default template, every author has a |
@mikabr Thanks for catching that. Just pushed a fix for the author footnotes, which should now correctly indicate both affiliations and equal authorship or corresponding author designations. Happy for feedback on how the yaml header is structured in the .Rmd file too; I think it's relatively intuitive if a bit verbose, but good to here from someone using fresh without having already looked at the underlying template. Also, I'd like the yaml header blocks to be as consistent as possible across journal formats, (i.e., authors are always a yaml list of name, code) even though journals make such different tex templates that may be limited. |
- permit lineno if requested. - Document other options for pnas_template types in yaml. - avoid possible pandoc error about tightlist
Also adds correct use of pandoc templating term sep in keyword for loop
Hi, this looks awesome. I was wondering what the progress on this pull request is? Is it likely to change substantially in the future? |
I think I'm done fiddling with it now, sorry for the multiple follow-up commits after opening the PR. Of course I'm still open to user suggestions but I think it is now reasonably comparable to the pnas LaTeX template and should be good to go |
No worries - I'm planning to use this for a submission. Thanks again for developing this! |
+ add ability to include header .tex files
This provides a template based on the official PNAS LaTeX template (for Overleaf, pnas-new.cls).
A few notes:
longtable
when turning markdown tables into LaTeX.longtable
is incompatible with any two-column style, including this one. See longtable not compatible with 2-column LaTeX documents jgm/pandoc#1023. Users can thus not create markdown tables, though can of course use knitr utilities to generate the desired LaTeX table directly anyway, so hopefully this is not an issue. (It appears thatlongtable
is also not always included in other templates here, which could create similar problems for users writing markdown tables..sty
files. Additionally I have included some.sty
files needed here that are not readily found in a tex build that is otherwise sufficient to compile R packages and the default pandoc templates (i.e. the hadleyverse docker image). I've put these inskeleton
dir, I'm sometimes unclear what goes inskeleton
and what goes inresources
. Feedback on that or anything else is welcome, will help me write these faster.