LaTeX forum ⇒ Graphics, Figures & Tablesresize 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

Postby Ahmed Sokar » Tue Aug 02, 2016 2:48 am

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
Capture.JPG (32.72 KiB) Viewed 2224 times

User avatar
Johannes_B
Site Moderator
Posts: 4185
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Tue Aug 02, 2016 4:53 pm

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 4 guests