## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ resize big font size in a table include images

Information and discussion about graphics, figures & tables in LaTeX documents.
Ahmed Sokar
Posts: 4
Joined: Wed Jul 27, 2016 9:43 am

### resize big font size in a table include images

Hello,

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.

\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}

Capture.JPG (32.72 KiB) Viewed 2224 times

Johannes_B
Site Moderator
Posts: 4185
Joined: Thu Nov 01, 2012 4:08 pm
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.