Skip to content
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

Template for the journals from American Meteorological Society #96

Merged
merged 6 commits into from
Dec 4, 2016
Merged

Template for the journals from American Meteorological Society #96

merged 6 commits into from
Dec 4, 2016

Conversation

yufree
Copy link
Contributor

@yufree yufree commented Nov 30, 2016

No description provided.

@@ -0,0 +1,70 @@
\documentclass[$col$]{ametsoc}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any of the pandoc includes in this template (e.g. include-header, include-before, include-after). Should these be added?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it's convenient!
I also add include-header into the ACS template.
Thanks!

change col into layout to make it clear
@jjallaire
Copy link
Member

There is also include-before and include-after, see: https://github.com/jgm/pandoc-templates/blob/master/default.latex#L231-L234

Could you also add this to the tests and ensure it passes on all platforms? (see https://github.com/rstudio/rticles/blob/master/tests/testthat/test_formats.R#L42-L48)

@@ -43,10 +43,10 @@ test_format("acm_article")
test_format("elsevier_article")
test_format("jss_article")
test_format("rjournal_article", file_check = FALSE)
test_format("acs_article", os_skip = "windows")
test_format("acs_article", file_check = FALSE)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests run fine in mac and Linux.
However, for windows I found tests failed and I set the file_check to false to pass tests both for acs and ams template. Such templates could be used in windows, just do not pass the unit tests. I think the reason would be the path of the figures generated by the templates.
The pnas template also can not pass the test right now and also could be used in windows. I think os_skip would work for it while file_check does not work.

@@ -63,6 +63,14 @@
$for(header-includes)$
$header-includes$
$endfor$
$for(include-before)$
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These headers actually belong within the {document} around the $body$ (and perhaps other LaTeX that goes at the beginning or end). See https://github.com/jgm/pandoc-templates/blob/master/default.latex#L231-L272

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot and I fixed it.

@jjallaire jjallaire merged commit 10a396d into rstudio:master Dec 4, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants