Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add a PNAS template#72

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jjallaire merged 12 commits intorstudio:masterfromcboettig:master
Jul 3, 2016
Merged

Add a PNAS template#72

jjallaire merged 12 commits intorstudio:masterfromcboettig:master
Jul 3, 2016

Conversation

@cboettig
Copy link
Contributor

This provides a template based on the official PNAS LaTeX template (for Overleaf, pnas-new.cls).

A few notes:

  • The LaTeX template uses quite a few custom fields, for the most part these have been turned into yaml header sections (e.g. abstract, author contributions, acknowledgements, etc). Perhaps there is a way to do this that doesn't clutter the yaml header with so much text.
  • pandoc introduces a dependency onlongtable when turning markdown tables into LaTeX.longtable is incompatible with any two-column style, including this one. Seelongtable 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.
  • The template download includes several custom.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.
  • I added a test following the existing pattern.

update to current rstudio version
includes required sty files that may not be commonly available (i.e. without texlive-full installation).
@mikabr
Copy link

mikabr commentedJun 15, 2016
edited
Loading

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 a1 instead of the appropriate letters/numbers.

@cboettig
Copy link
ContributorAuthor

@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
@jeffreyhanson
Copy link
Contributor

Hi, this looks awesome. I was wondering what the progress on this pull request is? Is it likely to change substantially in the future?

@cboettig
Copy link
ContributorAuthor

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

@jeffreyhanson
Copy link
Contributor

No worries - I'm planning to use this for a submission. Thanks again for developing this!

@jjallairejjallaire merged commit2af2d7a intorstudio:masterJul 3, 2016
yihui added a commit that referenced this pull requestDec 6, 2017
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsNov 2, 2020
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@cboettig@mikabr@jeffreyhanson@jjallaire

[8]ページ先頭

©2009-2025 Movatter.jp