Ray Henry wrote:


I'm creating a 10x10 table. The first column is filled with small images. It is set to zero width. The other columns are all set to fixed width and have text wrapped. When the the image is inserted it creates space at the top of the row and pushes down the text in the other cells. The images are sized to fit inside a cell without creating additional space. What can I do to minimize the affect of inserting these images.

Is the problem that the row gets taller when you insert the image?

In that case, the image is too tall.  Not all the height of a table row
is "available for use", some of it is supposed to be white space above
and below the text.  So inserting an image taller than the font height
will make the row taller, even if the image might fit between the
tabular lines.  This because latex thinks you want a certain amount
of white space above and below - but perhaps you don't in this case.

One way of fixing this might be to use the \raisebox latex command.
It is normally used to move stuff up or down, but it may also
be used for "lying" to latex about the height of its contents.
So it can be used to tell latex that "no, this picture has no
height at all so no need to extend this row."

Use two tex boxes, one in front of your image and one immediately after it.
In the first one, type:
\raisebox{0mm}[0mm]0mm[]{
In the second box, type:
}
The second tex box merely ends the raisebox command, that's why
it only contain an ending brace.  Put your image between these two
tex boxes.

Helge Hafting

Reply via email to