-
Notifications
You must be signed in to change notification settings - Fork 523
add acs template #15
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
Merged
Merged
add acs template #15
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,3 +4,5 @@ export(acm) | |
| export(jss_article) | ||
| export(rjournal_article) | ||
| export(use_r_abstract) | ||
| export(plos_article) | ||
| export(acs) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #' @export | ||
| acs <- function(keep_tex = TRUE) { | ||
| template <- find_resource("acs", "template.tex") | ||
| csl <- find_resource("acs" ,"american-chemical-society.csl") | ||
|
|
||
| rmarkdown::pdf_document( | ||
| keep_tex = TRUE, | ||
| template = template, | ||
| pandoc_args = c("--csl", rmarkdown::pandoc_path_arg(csl))) | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
204 changes: 204 additions & 0 deletions
204
inst/rmarkdown/templates/acs/resources/american-chemical-society.csl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,204 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" page-range-format="expanded" default-locale="en-US"> | ||
| <info> | ||
| <title>American Chemical Society</title> | ||
| <title-short>ACS</title-short> | ||
| <id>http://www.zotero.org/styles/american-chemical-society</id> | ||
| <link href="http://www.zotero.org/styles/american-chemical-society" rel="self"/> | ||
| <link href="http://pubs.acs.org/doi/pdf/10.1021/bk-2006-STYG.ch014" rel="documentation"/> | ||
| <author> | ||
| <name>Julian Onions</name> | ||
| <email>julian.onions@gmail.com</email> | ||
| </author> | ||
| <contributor> | ||
| <name>Ivan Bushmarinov</name> | ||
| <email>ib@ineos.ac.ru</email> | ||
| </contributor> | ||
| <category citation-format="numeric"/> | ||
| <category field="chemistry"/> | ||
| <summary>The American Chemical Society style.</summary> | ||
| <updated>2014-09-06T22:02:33+00:00</updated> | ||
| <rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights> | ||
| </info> | ||
| <macro name="editor"> | ||
| <names variable="editor"> | ||
| <name sort-separator=", " initialize-with=". " name-as-sort-order="all" delimiter="; " delimiter-precedes-last="always"/> | ||
| <label form="short" prefix=", " text-case="capitalize-first"/> | ||
| </names> | ||
| </macro> | ||
| <macro name="author"> | ||
| <names variable="author" suffix="."> | ||
| <name sort-separator=", " initialize-with=". " name-as-sort-order="all" delimiter="; " delimiter-precedes-last="always"/> | ||
| <label form="short" prefix=", " text-case="capitalize-first"/> | ||
| </names> | ||
| </macro> | ||
| <macro name="publisher"> | ||
| <group delimiter=": "> | ||
| <text variable="publisher"/> | ||
| <text variable="publisher-place"/> | ||
| </group> | ||
| </macro> | ||
| <macro name="volume"> | ||
| <group delimiter=" "> | ||
| <text term="volume" form="short" text-case="capitalize-first"/> | ||
| <text variable="volume"/> | ||
| </group> | ||
| </macro> | ||
| <macro name="series"> | ||
| <text variable="collection-title"/> | ||
| </macro> | ||
| <macro name="pages"> | ||
| <label variable="page" form="short" suffix=" "/> | ||
| <text variable="page"/> | ||
| </macro> | ||
| <macro name="book-container"> | ||
| <group delimiter=" "> | ||
| <text term="in" text-case="capitalize-first"/> | ||
| <text variable="container-title" font-style="italic"/> | ||
| </group> | ||
| </macro> | ||
| <macro name="issued"> | ||
| <date variable="issued" delimiter=" "> | ||
| <date-part name="year"/> | ||
| </date> | ||
| </macro> | ||
| <macro name="full-issued"> | ||
| <date variable="issued" delimiter=" "> | ||
| <date-part name="month" form="long" suffix=" "/> | ||
| <date-part name="day" suffix=", "/> | ||
| <date-part name="year"/> | ||
| </date> | ||
| </macro> | ||
| <macro name="edition"> | ||
| <choose> | ||
| <if is-numeric="edition"> | ||
| <group delimiter=" "> | ||
| <number variable="edition" form="ordinal"/> | ||
| <text term="edition" form="short"/> | ||
| </group> | ||
| </if> | ||
| <else> | ||
| <text variable="edition" suffix="."/> | ||
| </else> | ||
| </choose> | ||
| </macro> | ||
| <citation collapse="citation-number"> | ||
| <sort> | ||
| <key variable="citation-number"/> | ||
| </sort> | ||
| <layout delimiter="," vertical-align="sup"> | ||
| <text variable="citation-number"/> | ||
| </layout> | ||
| </citation> | ||
| <bibliography second-field-align="flush" entry-spacing="0"> | ||
| <layout suffix="."> | ||
| <text variable="citation-number" prefix="(" suffix=") "/> | ||
| <text macro="author" suffix=" "/> | ||
| <choose> | ||
| <if type="article-magazine"> | ||
| <group delimiter=" "> | ||
| <text variable="container-title" font-style="italic" suffix="."/> | ||
| <text macro="edition"/> | ||
| <text macro="publisher"/> | ||
| <text macro="full-issued" suffix=","/> | ||
| <text macro="pages"/> | ||
| </group> | ||
| </if> | ||
| <else-if type="thesis"> | ||
| <group delimiter=", "> | ||
| <group delimiter=". "> | ||
| <text variable="title"/> | ||
| <text variable="genre"/> | ||
| </group> | ||
| <text macro="publisher"/> | ||
| <text macro="issued"/> | ||
| <text macro="volume"/> | ||
| <text macro="pages"/> | ||
| </group> | ||
| </else-if> | ||
| <else-if type="bill book graphic legal_case legislation motion_picture report song" match="any"> | ||
| <group delimiter="; "> | ||
| <text variable="title" font-style="italic"/> | ||
| <text macro="editor" prefix=" "/> | ||
| <text macro="series"/> | ||
| <text macro="edition"/> | ||
| <choose> | ||
| <if type="report"> | ||
| <group delimiter=" "> | ||
| <text variable="genre"/> | ||
| <text variable="number"/> | ||
| </group> | ||
| </if> | ||
| </choose> | ||
| <group delimiter=", "> | ||
| <text macro="publisher"/> | ||
| <text macro="issued"/> | ||
| </group> | ||
| <group delimiter=", "> | ||
| <text macro="volume"/> | ||
| <text macro="pages"/> | ||
| </group> | ||
| </group> | ||
| </else-if> | ||
| <else-if type="patent"> | ||
| <group delimiter=", "> | ||
| <group delimiter=". "> | ||
| <text variable="title"/> | ||
| <text variable="number"/> | ||
| </group> | ||
| <date variable="issued" form="text"/> | ||
| </group> | ||
| </else-if> | ||
| <else-if type="chapter paper-conference" match="any"> | ||
| <group delimiter="; "> | ||
| <text macro="book-container"/> | ||
| <text macro="editor"/> | ||
| <text macro="series"/> | ||
| <group delimiter=", "> | ||
| <text macro="publisher"/> | ||
| <text macro="issued"/> | ||
| </group> | ||
| <group delimiter=", "> | ||
| <text macro="volume"/> | ||
| <text macro="pages"/> | ||
| </group> | ||
| </group> | ||
| </else-if> | ||
| <else-if type="webpage"> | ||
| <group delimiter=" "> | ||
| <text variable="title"/> | ||
| <text variable="URL"/> | ||
| <date variable="accessed" prefix="(accessed " suffix=")" delimiter=" "> | ||
| <date-part name="month" form="short" strip-periods="true"/> | ||
| <date-part name="day" suffix=", "/> | ||
| <date-part name="year"/> | ||
| </date> | ||
| </group> | ||
| </else-if> | ||
| <else-if type="article-journal"> | ||
| <group delimiter=" "> | ||
| <text variable="container-title" font-style="italic" form="short"/> | ||
| <group delimiter=", "> | ||
| <text macro="issued" font-weight="bold"/> | ||
| <text variable="volume" font-style="italic"/> | ||
| <text variable="page"/> | ||
| </group> | ||
| </group> | ||
| </else-if> | ||
| <else> | ||
| <group delimiter=", "> | ||
| <group delimiter=". "> | ||
| <text variable="title"/> | ||
| <text variable="container-title" font-style="italic"/> | ||
| </group> | ||
| <group delimiter=", "> | ||
| <text macro="issued"/> | ||
| <text variable="volume" font-style="italic"/> | ||
| <text variable="page"/> | ||
| </group> | ||
| </group> | ||
| </else> | ||
| </choose> | ||
| </layout> | ||
| </bibliography> | ||
| </style> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| \documentclass[journal=$journal$,manuscript=$type$]{achemso} | ||
| \usepackage[version=3]{mhchem} | ||
| \usepackage{amsmath} | ||
| \newcommand*\mycommand[1]{\texttt{\emph{#1}}} | ||
|
|
||
| \author{$author$} | ||
| \affiliation{$aff$} | ||
| \alsoaffiliation{$alsoaff$} | ||
| \altaffiliation{$altaff$} | ||
| \email{$mail$} | ||
| \phone{$phone$} | ||
| \fax{$fax$} | ||
|
|
||
| $if(abbr)$ | ||
| \abbreviations{$abbr$} | ||
| $endif$ | ||
|
|
||
| $if(keywords)$ | ||
| \keywords{$keywords$} | ||
| $endif$ | ||
|
|
||
| \title[$title.short$]{$title.formatted$} | ||
|
|
||
| \begin{document} | ||
|
|
||
| $body$ | ||
|
|
||
| \end{document} | ||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Known Bugs | ||
| === | ||
| - email escape | ||
| - muti-author problem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| @article{Garnier2007, | ||
| abstract = {The roots of swarm intelligence are deeply embedded in the biological study of self-organized behaviors in social insects. From the routing of traffic in telecommunication networks to the design of control algorithms for groups of autonomous robots, the collective behaviors of these animals have inspired many of the foundational works in this emerging research field. For the first issue of this journal dedicated to swarm intelligence, we review the main biological principles that underlie the organization of insects’ colonies. We begin with some reminders about the decentralized nature of such systems and we describe the un- derlying mechanisms of complex collective behaviors of social insects, from the concept of stigmergy to the theory of self-organization in biological systems.We emphasize in partic- ular the role of interactions and the importance of bifurcations that appear in the collective output of the colony when some of the system’s parameters change. We then propose to categorize the collective behaviors displayed by insect colonies according to four functions that emerge at the level of the colony and that organize its global behavior. Finally, we ad- dress the role of modulations of individual behaviors by disturbances (either environmental or internal to the colony) in the overall flexibility of insect colonies. We conclude that fu- ture studies about self-organized biological behaviors should investigate such modulations to better understand how insect colonies adapt to uncertain worlds.}, | ||
| author = {Garnier, Simon and Gautrais, Jacques and Theraulaz, Guy}, | ||
| doi = {10.1007/s11721-007-0004-y}, | ||
| file = {:Users/simongarnier/Work/bibliography/Mendeley/Swarm Intelligence/2007/Garnier, Gautrais, Theraulaz - 2007.pdf:pdf}, | ||
| issn = {1935-3812}, | ||
| journal = {Swarm Intelligence}, | ||
| keywords = {self organization collective,self-organization collective,social insects,stigmergy,swarm intelligence}, | ||
| mendeley-tags = {swarm intelligence}, | ||
| month = jul, | ||
| number = {1}, | ||
| pages = {3--31}, | ||
| title = {{The biological principles of swarm intelligence}}, | ||
| url = {http://www.springerlink.com/index/10.1007/s11721-007-0004-y}, | ||
| volume = {1}, | ||
| year = {2007} | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 think you mean
keep_tex = keep_texhere.