-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
add acs template #15
add acs template #15
Conversation
add plos one namespace and revise yaml
You cite a couple of issues, I'm assuming that this means that the PR is not yet ready to review/merge. Let me know when these issues have been resolved and I'll review. |
csl <- find_resource("acs" ,"american-chemical-society.csl") | ||
|
||
rmarkdown::pdf_document( | ||
keep_tex = TRUE, |
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_tex
here.
Regarding the three issues you mentioned:
|
I have solved the second issue and add R code chunks in the text in a new push. So the only issue is the email.
When complied, the final pdf will show as plain tex. However, when I add the hyperref package, the compiling totally failed and I think this issue due to some wired definition of \email in the achemso package. Another way is just removing the \href{mailto:s.k.laborator@bigpharma.co} to make the email part look like the following code:
This make the compile passed. So I think the easiest way is remove some parameters from pandoc to let markdown not convert email address into a hyperlink mode automatically. However, it seemed I can only add parameter instead of removing them in Rmarkdown and I need some help here. You may test the email issue in the following code:
Thank you! |
I think I have found the solution. When I remove the |
Does it work if you do not use the |
I tried, but it failed. It seemed the achemso package has a strict definition about \email to make sure the email show at a proper position. This package even contain no \maketitle to show the title and author in the tex file. |
Fair enough. That is why I sometimes really hate LaTeX... This particular problem is not too difficult to solve, though. You just use raw commands |
Thank you very much! Finally I could write my paper in Rstudio. If I submit to another publication, I'd like to make such template for this package. P.S.: achemso package template could deal with about 40+ journals for rticles package. |
Cool. Please feel free to improve the existing template or contribute new ones. Thanks! |
add plos one namespace and revise yaml
Right now the acs(American Chemistry Society) template is more like a tex document than markdown document.
There are three issues: