As mentioned in the title, I would like to create a nice and simple table of three column and about 14 rows. If all could not fit in one frame. It would be OK to use 2 frames. The first column should content 1 picture for each row. The second column should content only some text of about 10 to 15 characters and the third ones only digit – 2 maximum. That's why I don't want the 2nd and 3rd column take too much space for no reason.
Here's a sketch:
I tried the following ones after the help of Zarko but now I want put 2 of this table in 1 frame.
I really like this ones
\documentclass{beamer}
\usetheme{Berlin}
\setbeamercolor{mycolor}{fg=black,bg=blue!30}
\usepackage{tikz}
\usepackage[export]{adjustbox}
\newsavebox\mytable
\newlength{\mytablelength}
\begin{document}
\begin{frame}
\sbox\mytable{\begin{tabular}{@{}p{0.3\textwidth} |c| c| @{}}
\hline
\includegraphics[width=\linewidth,valign=M]{example-image-a}
& longer text & some text \\ \hline
\includegraphics[width=\linewidth,valign=M]{example-image-a}
& longer text & some text \\ \hline
\includegraphics[width=\linewidth,valign=M]{example-image-a}
& longer text & some text \\ \hline
\end{tabular}
}
\settowidth{\mytablelength}{\usebox\mytable}
\hfil%
\begin{beamercolorbox}[wd=\mytablelength,sep=1ex,rounded=true,shadow]{mycolor}
\centering
\usebox\mytable
\end{beamercolorbox}
\end{frame}
\end{document}
The header is not mandatory.
First of thank. I just try to change the width of the second column but, it moves the vertical and horizontal lines that separate the rows and columns.
(Putting it here just because the indentation of the was not working well with the add comment method)
\begin{tabular}{p{0.45\textwidth}|p{0.25\textwidth}}
\textcolor{white}{\bf Head 1} & \textcolor{white}{\bf Head 2} \\
\includegraphics[scale=.1]{Images.png} & \begin{itemize}\item 4\end{itemize}\\ \hline
\begin{itemize}\item 5\end{itemize} & \begin{itemize}\item 6\end{itemize} \\ \hline
\begin{itemize}\item \includegraphics[scale=.15]{Im.png}\end{itemize}
& \begin{itemize}\item 8\end{itemize} \\
\end{tabular}
Best Answer
your question is not clear so all in further is based on guessing what you mean with "appropriate start point" ...
As starting point for tweaking your table (adding vertical line, size of picture, colors, ect) can serve the following MWE:
which gives:
In above MWE the width of
beamercolorbox
is adopted to table width. For the are added all complications with save box, defining new length and set width to measured with of table.Image width is determined with width of the first column, i.e.:
p{0.3\textwidth}
. If you like to change width of picture, you only need to change this column width. Picture is vertical centered in table row (consequently also text in other two columns looks as vertical centered. with changevalingn
option (provided with packageadjustbox
) to T or delete it you can change position to top or baseline aligned respectively.Addendum: After editing of question some thing are more clear ... so it seems that you looking for something like this:
For this is employed
tcolorbox
package. MWE (complex version):Considering, than on one slide can be placed only four rows, you can define line width as 57mm and simplified code to MWE (simpler version):
Addendum (2): Improved version of suggestion in the first addendum. For purpose of distinguishes from it I select different colors for table, which can be easy to change of desired one.
Main differences:
tcolorbox
for tables with colored first table row and added fuzzy shadow (for more fancy looks)C
for centering of second and third columns)adjustbox
package. By it helps is defined top and bottom margin around image as well position regarding baseline in row (in the first part of table is demonstrated possible positions: in the first two row is vertical centered by optionM
andm
respectively, in the third row is top aligned by optiont
and in the third part bottom aligned /o option, default feature/, other two parts use optionM
).Obtained first part of table is:
MWE: