-
Notifications
You must be signed in to change notification settings - Fork 524
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
Format for AAAS Science Journal #373
base: main
Are you sure you want to change the base?
Changes from all commits
5ed75a7
334ae43
0501308
ef25e65
b615e8e
96b0e8d
2fa4bc4
6d9f081
11e2fa9
54d4f99
ba51e60
3db9797
4a2b13a
3effeab
3ab5be3
a87d002
50c7529
942e790
b952db1
a637feb
c611783
ecb331a
ef1e004
4268ce1
59d9e87
46fcc80
2b6b60b
138f90a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -394,6 +394,20 @@ sage_article <- function(..., highlight = NULL, citation_package = "natbib") { | |||||
) | ||||||
} | ||||||
|
||||||
#' @section `science_article`: Format for AAAS - Science articles | ||||||
#' Based on the official Science Journal LaTeX guidelines | ||||||
#' <http://www.sciencemag.org/authors/preparing-manuscripts-using-latex>. | ||||||
#' | ||||||
#' @export | ||||||
#' @rdname article | ||||||
science_article <- function( | ||||||
..., keep_tex = TRUE, md_extensions = c("-autolink_bare_uris") | ||||||
) { | ||||||
pdf_document_format( | ||||||
"science", md_extensions = md_extensions, ... | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
) | ||||||
} | ||||||
|
||||||
#' @section `sim_article`: Format for creating submissions to Statistics in | ||||||
#' Medicine. Based on the official Statistics in Medicine | ||||||
#' [class](http://onlinelibrary.wiley.com/journal/10.1002/(ISSN)1097-0258/homepage/la_tex_class_file.htm). | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
1. Need a help to figure out how to create a pandoc template for the author's section | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems they don't have a clever system for authors. It is written as is in the template % Place the author information here. Please hand-code the contact
% information and notecalls; do *not* use \footnote commands. Let the
% author contact information appear immediately below the author names
% as shown. We would also prefer that you don't change the type-size
% settings shown here.
\author
{John Smith,$^{1\ast}$ Jane Doe,$^{1}$ Joe Scientist$^{2}$\\
\\
\normalsize{$^{1}$Department of Chemistry, University of Wherever,}\\
\normalsize{An Unknown Address, Wherever, ST 00000, USA}\\
\normalsize{$^{2}$Another Unknown Address, Palookaville, ST 99999, USA}\\
\\
\normalsize{$^\ast$To whom correspondence should be addressed; E-mail: [email protected].}
} You just need to replace this by some variable to set in the YAML header (could be several) and a for loop maybe in the template. Maybe something like authors:
- John Smith,$^{1\ast}$
- Jane Doe,$^{1}$
- Joe Scientist$^{2}$
addresses:
- $^{1}$Department of Chemistry, University of Wherever,
- An Unknown Address, Wherever, ST 00000, USA
- $^{2}$Another Unknown Address, Palookaville, ST 99999, USA
corresponding_author: |
$^\ast$To whom correspondence should be addressed; E-mail: [email protected]. would lead to this
or something else. Just try something that works. Have you look at other templates to have ideas ? |
||
2. Is there a way to get Pandoc to render all images at the end? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What do you mean by that exactly ? Not sure to understand. It would not be Pandoc but knitr or rmarkdown. Maybe this format would require a more advanced pre process and post process as other formats in the rticles package. If so, this would be done on the R side. If you explain more precisely I can guide you. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The journal requirements for figures are as follows -
So, my thought was to let the author set a variable to either "Draft" or "Final" in the YAML header and then compile the document as needed without having to change the primary rmarkdown file. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a good thought. I hope this will be possible to do so. You may try. I think it will need to be in the R function that would set or unset a value of a knitr option. It could also be a variable set in the setup chunk to use in chunks with figures. This variable would modify the value of the chunk option accordingly. I let you try what you think is better. But Pandoc itself won't be able to do that (unless maybe using a Lua filter, but it seems too much) |
||
3. Problem is that they want figures rendered for the initial draft / peer review, but no figures included for the final version - | ||
- potential solution - get pandoc variable "figures:true" to decide if images should be included in the PDF or not | ||
Comment on lines
+3
to
+4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This would need to be controlled by knitr options I think. For example What should the output document look like ? No figure inside the document but what in replacement ? |
||
4. In which format does science want references? is there a custom csl file - There only appears to be Science.bst file? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
\bibliographystyle{Science} is the one that should set the style. |
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.
Just curious why this extension needs to be unset ?