I have a big font size document where i want to add 4*9 table containing images.
I used resizebox
to automatically reduce the font size and the images to fit the cell, and to force the table to be wide as the textwidth and with height a bit less than the page height.
The problem is that the text looks weird after the resizing as the resizing vertically stretches the text.
Is there any solution?
\documentclass[48pt,oneside,a4paper,extrafontsizes]{memoir}
\usepackage[demo]{graphicx}
\begin{document}
\begin{table*}[h!]\centering
\resizebox{\textwidth}{0.4\textheight}{
\begin{tabular}{|c|c|c|c|}
\hline\noalign{}
Chair&
air&
international&
Ali
\\\hline
latex &latex &latex &latex\\\hline
latex &latex &latex &latex\\\hline
latex &latex &latex &latex\\\hline
\includegraphics[width=\linewidth,height=0.2\textwidth]{demo}
&\includegraphics[width=\linewidth,height=0.2\textwidth]{demo}
&\includegraphics[width=\linewidth,height=0.2\textwidth]{demo}
&\includegraphics[width=\linewidth,height=0.2\textwidth]{demo}\\\hline
Chair&
air&
international&
Ali
\\\hline
Chair&
air&
international&
Ali
\\\hline
latex &latex &latex &latex\\\hline
latex &latex &latex &latex\\\hline
\end{tabular}}
\end{table*}
\end{document}
{0.4\textheight}
to{!}
. – Steven B. Segletes Aug 2 '16 at 15:00\renewcommand\arraystretch{3}
(3
is adjustable) prior to the\resizebox
command. – Steven B. Segletes Aug 2 '16 at 15:17h
withtable*
so\begin{table*}[h!]
should be\begin{table*}
– David Carlisle Aug 2 '16 at 16:02width=\linewidth,height=0.2\textwidth
just specify one or the other (or addkeepaspectratio
) – David Carlisle Aug 2 '16 at 16:04