Discussion:
figure/caption overlap
(too old to reply)
J P Fudger
2004-11-23 10:37:29 UTC
Permalink
Hi everyone,

I have a figure composed of three picture environments all on one line.
The results look great, but the caption to this figure overlaps with the
figure itself. I think it is related to my definitions of the x- and
y-offsets in the pictures, i.e.

\begin{picture}(100,50)(0,25)

but this is necessary for the figure to look right. Is there a way, for
example, of defining a "box" inside which the caption cannot be placed?

I've been using LaTeX for a while, but am fairly new to graphics. Hope
this is enough info, any help welcomed!

Thanks,
Jonathan.
Piet van Oostrum
2004-11-23 11:31:50 UTC
Permalink
JPF> Hi everyone,
JPF> I have a figure composed of three picture environments all on one line. The
JPF> results look great, but the caption to this figure overlaps with the figure
JPF> itself. I think it is related to my definitions of the x- and y-offsets in
JPF> the pictures, i.e.

JPF> \begin{picture}(100,50)(0,25)

JPF> but this is necessary for the figure to look right. Is there a way, for
JPF> example, of defining a "box" inside which the caption cannot be placed?

That box is what is defined by the arguments to the picture environment. In
your case it is the box from (0,25) to (100,75). I guess you are writing
outside the box, e.g. \put(0,0)...

The easiest is to adapt the coordinates so that the box will include all
drawn element, e.g.
\begin{picture}(100,75)(0,0)
As you are drawing a number of picture next to each other you have to shift
them all with the same amount. For the rest there shouldn't be any changes
necessary. If for any reason you can't do it, you can put the picture
inside a larger picture which has a large enough box:

\begin{picture}(300,100)
\put(0,25){\begin{picture}...picture 1...\end{picture}}
\put(100,25) tetc..
\end{picture}
--
Piet van Oostrum <***@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: ***@hccnet.nl
Loading...