-
Notifications
You must be signed in to change notification settings - Fork 525
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
pdf knit fails with 'Environment Shaded undefined' Error for IEEE template --> stackoverflow solution #182
Comments
Many thanks for asking and answering the question on SO! I have added the fix to |
Great, thanks, Yihui.
From: Yihui Xie [mailto:notifications@github.com]
Sent: 05 August 2018 23:15
To: rstudio/rticles
Cc: KOELLE Rainer; Author
Subject: Re: [rstudio/rticles] pdf knit fails with 'Environment Shaded undefined' Error for IEEE template --> stackoverflow solution (#182)
Many thanks for asking and answering the question on SO! I have added the fix to ieee_article().
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#182 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AQTfpF_Da_vMBsF333pgtxWVC-Tm1cJfks5uN2BHgaJpZM4Vtx2N>.
…____
This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful.
Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy.
Any views expressed in this message are those of the sender.
|
Under rticles version 0.9, this error still occurs for PeerJ-formatted documents. |
@m-macaskill Cc @zkamvar (#127) |
* this allows syntax highlighting for PeerJ see #182 (comment) * add NEWS * fix parens error in DESCRIPTION * Update NEWS.md
@m-macaskill Fixed now by @zkamvar via #238. Thanks! |
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. |
Dear all,
((I am not sure whether this is a feature request. But a bug report, did not feel right.))
I struggled heavily to work through a sort of trivial problem (c.f. my question and a related question):
Using the rticles IEEE paper template, I wanted to print a R code-chunk.
The default workaround offered on Stackoverflow is to "circumnavigate" the problem by not showing the chunk (aka setting the chunk option
echo = FALSE
which is not the desired behaviour).It took me a while to figure out where, i.e.
template.tex
in the respective rticles R library sub-folder to change the LATEX for a possible solution.The solution is to add a 3 line LATEX statement in the preamble of
template.tex
to support the highlighting:Mickey provided an elegant solution in response to the aforementioned fix identified by coatless that is based on a separate
header.tex
file. I know too little about LATEX, but given the number of lines I find this solution pretty sophisticated.Still, I believe, the support for the highlighting, i.e. Shaded environment, should be included in the rticles templates out of the box.
Thanks for considering the fix offered by coatless in the next update of the IEEE paper (and possible other templates).
The text was updated successfully, but these errors were encountered: