I'm trying to create a table with 5 columns and 2 rows. The first row should shows images and the second row shows the according text. In my main tex-file I have following code to import the table \input{chapter3/buttonTable}. My buttonTable.tex File has following code in it:
\begin{table}[b]
\begin{tabularx}{\textwidth}{ |X|X|X|X|X| }
\hline
\includegraphics{./images/buttons/Windows-Buttons.png}
&
\includegraphics{./images/buttons/MacOSX-Buttons.png}
&
\includegraphics{./images/buttons/Gnome-Buttons.png}
&
\includegraphics{./images/buttons/iOS-Buttons.png}
&
\includegraphics{./images/buttons/Android-Buttons.png}
\\ \hline
Windows 7 & Mac OS X & Gnome & iOS & Android \\
\hline
\end{tabularx}
\end{table}
This is the output:

Basically I have two questions:
- Why do the images get bigger and bigger and how can I avoid it?
- How can I center the text in the table?
includegraphics[width=2cm,height=1cm,keepaspectratio]to every image but they still scale up. – Flying Rocket Jan 4 at 15:55cminstead make it dependend from your tablewidth, so for example try:\includegraphics[width=0.15\textwidth]{<name>}or you could also try to scale the images. (e.g. [scale=0.5]) – xfoo Jan 4 at 15:57