4 Comments
Guest *ptb* @ 2012-03-03 07:37:36 originally posted:
with a4paper
documentclass[a4paper]{article}
Figures exceed the margin of the shading.
There should be an easy fix. But it is difficult to a new user like me. Many thanks!
You can set the chunk option out.width='.8textwidth', which means the figure is 80% of the text width, so it will not exceed the page margin.
Originally posted on 2012-03-03 16:44:42
Guest *ptb* @ 2012-03-05 04:18:19 originally posted:
It worked. Thanks!
Guest *baptiste auguie* @ 2012-03-14 19:03:41 originally posted:
there's also an issue with twocolumn documents
yes, I struggled with this for a while, and finally I decided to go to render_listings() for this case: https://github.com/yihui/knitr/blob/master/inst/examples/knitr-twocolumn.Rnw
Originally posted on 2012-03-15 05:55:03
Guest *Antonio* @ 2014-11-06 18:30:55 originally posted:
In beamer, I want to put a tight frame on a plot. I tried
begin{framed
<<chart02, out.width="0.6textwidth" ,="" echo="FALSE">>=
@
end{framed}
(chart02 chunk was previously defined)
but the frame is not tight, it extends to the margins.
Is there na easy way to make it tight?
Guest *Eric* @ 2016-02-19 06:29:02 originally posted:
I don't want the shading and colors. How can I remove them?
Sign in to join the discussion
Sign in with GitHub