Discussion:
Reducing size of LaTeX pictures
Paul Smith
2006-04-02 11:31:44 UTC
Permalink
Dear All

I have the following picture inserted in a figure float:

\unitlength 1mm
\begin{picture}(80,40)(0,0)
\linethickness{0.2mm}
\put(0,0){\line(1,0){30}}
[snip]
\end{picture}

How can I reduce to 50% of its size, say, without having to redraw the
whole picture?

Thanks in advance,

Paul
Karsten Heymann
2006-04-02 11:52:34 UTC
Permalink
Post by Paul Smith
How can I reduce to 50% of its size, say, without having to redraw the
whole picture?
\unitlength 1mm
shouldn't \unitlength 0.5mm do the trick? Otherwise use \scalebox{0.5}{...}
Post by Paul Smith
\begin{picture}(80,40)(0,0)
\linethickness{0.2mm}
\put(0,0){\line(1,0){30}}
[snip]
\end{picture}
Yours,
Karsten
Paul Smith
2006-04-02 12:21:01 UTC
Permalink
Post by Karsten Heymann
Post by Paul Smith
How can I reduce to 50% of its size, say, without having to redraw the
whole picture?
\unitlength 1mm
shouldn't \unitlength 0.5mm do the trick? Otherwise use \scalebox{0.5}{...}
\unitlength 0.5mm does not work, as my picture has got text and the
text is not resized. I tried

\scalebox{0.5}{
\unitlength 1mm
\begin{picture}(80,40)(0,0)
\linethickness{0.2mm}
\put(0,0){\line(1,0){30}}
[snip]
\end{picture}
}

but getting

! Undefined control sequence.
l.81 \scalebox
{0.5}{

Paul
john
2006-04-02 12:43:55 UTC
Permalink
Post by Paul Smith
! Undefined control sequence.
l.81 \scalebox
{0.5}{
You'll need to put

\usepackage{graphicx}

in your preamble to be able to use scalebox.
--
John C. McCabe-Dansted
Masters Student
Paul Smith
2006-04-02 12:54:25 UTC
Permalink
Post by john
Post by Paul Smith
! Undefined control sequence.
l.81 \scalebox
{0.5}{
You'll need to put
\usepackage{graphicx}
in your preamble to be able to use scalebox.
Thanks, John, but I do not observe any size reduction with \scalebox.
(Please, see the attached example.)

Paul
john
2006-04-02 13:09:26 UTC
Permalink
Post by Paul Smith
Thanks, John, but I do not observe any size reduction with \scalebox.
(Please, see the attached example.)
Scalebox does not work with DVI preview, but should work once you
convert the document to PS or PDF.
--
John C. McCabe-Dansted
Masters Student
Paul Smith
2006-04-02 13:52:49 UTC
Permalink
Post by john
Post by Paul Smith
Thanks, John, but I do not observe any size reduction with \scalebox.
(Please, see the attached example.)
Scalebox does not work with DVI preview, but should work once you
convert the document to PS or PDF.
Thanks, John. That is it!

Paul

Loading...