Home Comments Thread
New Thread

4 Comments

giscus-bot giscus-bot 2022-12-16 21:40:50
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!

yihui yihui 2022-12-16 21:40:54

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

giscus-bot giscus-bot 2022-12-16 21:40:55
Guest *ptb* @ 2012-03-05 04:18:19 originally posted:

 It worked. Thanks!

giscus-bot giscus-bot 2022-12-16 21:40:52
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?

giscus-bot giscus-bot 2022-12-16 21:40:53
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