-
Notifications
You must be signed in to change notification settings - Fork 520
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
Printing issue for JSS style #132
Comments
Yes, it is caused by the dollar sign. It is a known issue (see #10 and #49), but no one seems to have time to fix it. Technical background: jgm/pandoc#2493 |
Could we add a latex raw attribute to hook_chunks like:
previously
|
@JanMarvin Thanks! The new raw attributes in Pandoc 2.0 sounds like the right way to go. |
Until the Pandoc 2.0 solution comes in, this worked for me as a workaround, where I had one CodeOutput CodeChunk that had unbalanced $ signs. I added, immediately after it, a CodeChunk with just one dollar sign in it:
This gets placed after the r code block, in a normal markdown area. That does leave a spurious $ on the page, but at least with the # if someone tries to paste it into R it won't do anything! It is, of course, pretty hack-ish, but if I could turn the manual code block white I would almost be happy with this! With this forcing the desired CodeChunk to be correctly converted into valid LaTeX, I have then been able to use the retained .tex version, strip out this manual hack, and re-compile that to PDF to get a 'clean' version. For some reason, opening the .tex version in RStudio and clicking "Compile PDF" did not work for me, so I called texi2pdf from the console:
One other oddity: this threw an error about the bibliography file, saying "BibTeX errors:
to:
|
Fixed. Please try |
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. |
I'm running into a situation where printing certain objects does not render to .tex properly. I can't sort out what is causing the error and I'm not certain whether this is an issue with
rticles
or with pandoc. Here's a MWE:RMD document:
author:
affiliation: An affiliation
address: >
An address
email: \email{anemail@aninstitution.edu}
url: http://website.com
title:
formatted: '\pkg{apackage}'
plain: 'apackage'
short: 'apacakge'
abstract: >
blah blah blah
keywords:
formatted: [key1]
plain: [key2]
documentclass: jss
classoption: article
output: rticles::jss_article
Introduction
This non-exported function prints fine.
This one does not.
When I build, the relevant part of the .tex file looks like
END RMD DOCUMENT
Any guesses as to why the
\textbackslash{}
is being introduced?The text was updated successfully, but these errors were encountered: