I have table which includes images and text. The point is that the document font is pretty big, therefore i need to automatically resize the pictures and the font size in the table. I also need the table to be with width=\textwidth and height of 80% of the paper height.
All of that is working except that resizing the font size stretches the text vertically.
Is there away to resize the font size with keeping the height relative to the width of the font?
I would appreciate general solution of resizing as i have many tables in the document.
Code: Select all
\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}