Graphics, Figures & TablesVertical alignment of figures in a table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
johnsap
Posts: 9
Joined: Sat Dec 20, 2008 3:09 am

Vertical alignment of figures in a table

Post by johnsap »

Gents,

Please advise !

I have been trying to vertically adjust pictures located in one row of the table.
But there is a space between the low border of the pictures and the lowest border of the table.
How can I put these pictures in a way there is no any space between them and cell borders (from both top and bottom sides), or at least make these distances equal and controllable ?

There is a reason I want to put figures inside the table and \multicolumn - so do not be surprised.

Code is below:

\begin{tabular}
{
>{\centering}p{0.3\textwidth}
>{\centering}p{0.3\textwidth}
>{\centering}p{0.3\textwidth}
}

\hline
\multicolumn{1}{|>{\centering}m{0.3\textwidth}|}
{
\includegraphics[width=0.12\textwidth]{pic.eps}
}
&
\multicolumn{1}{>{\centering}m{0.3\textwidth}|}
{
\includegraphics[width=0.12\textwidth]{pic.eps}
}
&
\multicolumn{1}{>{\centering}m{0.3\textwidth}|}
{
\includegraphics[width=0.12\textwidth]{pic.eps}
}\tabularnewline
\hline
\end{tabular}

Thanks in adavance ! i spent hours trying to figure it out (

Merry Christmas !!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

corderin
Posts: 77
Joined: Sun Dec 14, 2008 2:27 pm

Re: Vertical alignment of figures in a table

Post by corderin »

Try with

\renewcommand{\tabcolsep}{WIDTH}

\tabcolsep defines the separation between cell and border I guess...
Post Reply