-
Notifications
You must be signed in to change notification settings - Fork 518
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
RJournal template can't handle some characters in R chunks #49
Comments
This tool chain works for me: Adding the code below into the first chunk of an Rmd document, then pressing "Knit" in RStudio results is a fully rendered PDF file. Note the chunk output option escapes the problematic characters ($ becomes $). This enables pandoc to convert to latex. The calls to pandoc and other operating system commands are made from the document output option. Perl is used to remove the escape ("") again. Subsequently, the latex tools are run. Note to adapt the pandoc command to reference the specific template file for the intended journal. Maybe this hack is helpful for others wanting to use the templates. Thanks for knitr, rticles, pandoc!
|
Fixed. Please try |
Very cool, many thanks for fixing and closing! |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
Most notably,
$
and^
fail because of how knitr, pandoc, and latex interact with the RJournal requirement that code and output be placed inSinput
andSoutput
environments.See jgm/pandoc#2493 for more discussion.
For many uses, this will be a blocking failure that will preclude authors from being able to use this template easily.
The text was updated successfully, but these errors were encountered: