-
Notifications
You must be signed in to change notification settings - Fork 522
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
Conversation
@@ -0,0 +1,70 @@ | |||
\documentclass[$col$]{ametsoc} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There is also 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) |
There was a problem hiding this comment.
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)$ |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
No description provided.