Skip to content

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
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