Skip to content
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

fixed figures by using Sweave environments in hooks #4

Merged
merged 1 commit into from
May 20, 2014

Conversation

cwickham
Copy link
Contributor

instead of \begin{example}

jjallaire added a commit that referenced this pull request May 20, 2014
fixed figures by using Sweave environments in hooks
@jjallaire jjallaire merged commit e792a5e into rstudio:master May 20, 2014
if (knitr:::output_asis(x, options)) return(x)
paste0('\\begin{example}\n', x, '\\end{example}')
paste('\\begin{Schunk}\n', x, '\\end{Schunk}', sep = '')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no longer preferred style for the R Journal. I think the only bit you really need is the knit_hooks$plot below.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, because the example environment is an extension of Verbatim, and you can't includegraphics inside it.

Could use the example environment in the input and output hooks?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see. I thought example was alltt so you could include plots.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

example* is!

@xuefliang xuefliang mentioned this pull request Feb 9, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants