I want to make a table from images of specific size (2cm) in PDF format. But in case of using article document class I got larger images. I tried to use minimal class and got right sizes, but invisible table borders.
There is my code:
\documentclass[a4paper]{minimal}
\usepackage[a4paper]{geometry}
\usepackage{graphicx}
\newcommand{\ABTile}{\includegraphics[height=2cm, width=2cm]{./AB.png}}
\newcommand{\AvTile}{\includegraphics[height=2cm, width=2cm]{./Av.png}}
\begin{document}
\begin{tabular}{|p{\tileSize}|p{\tileSize}|}
\hline
\ABTile & \ABTile \\
\AvTile & \AvTile \\
\hline
\end{tabular}
\end{document}
Result with article class (pdf)
Result with minimal class (pdf)
Is there any way to make table with right size?

\\[-1.2cm]. – Werner Jan 24 '12 at 5:51keepaspectratioto your\includegraphicsstatements - otherwise the graphics will get distored. – Martin Schröder Jan 24 '12 at 11:12