1
\begin{tabular}[h]{|l|c|}
\hline
\multicolumn{2}{|l|}{Proving Rectangle}\\
\hline
4 right angles & \raisebox{-\totalheight}{\includegraphics[scale=0.3]{ProveRectangleA}}\\
\hline
Parallelogram with 1 right angle & \raisebox{-\totalheight}{\includegraphics[scale=0.3]{ProveRectangleB}}\\
\hline
\end{tabular} \end{center}

enter image description here

  • 1
    Welcome to TeX.SE. It would be helpful if you composed a fully compilable minimal working example (MWE) including \documentclass and the appropriate packages that sets up the problem. While solving problems can be fun, setting them up is not. Then, those trying to help can simply cut and paste your MWE and get started on solving the problem. – user36296 Feb 2 at 12:25
  • 2
    unrelated but tabular does not have an [h] option. – David Carlisle Feb 2 at 12:46
2

With the use of the cellspace package, you can achive a border of white space around the image. \cellspacetoplimit and \cellspacebottomlimit can be set to a length f your choice using the setlength command. In the example, I have also added a less wordy and slightly different variant of achieving top aligned images using the adjustbox package and the valign=t option. (Compare the alignment of the image the frst and second image with respect to the lines of text in the corresponding rows in the left column.)

enter image description here

\documentclass{article}
\usepackage[demo]{graphicx}

\usepackage{cellspace}
\setlength\cellspacetoplimit{6pt}
\setlength\cellspacebottomlimit{6pt}

\usepackage[export]{adjustbox}

\begin{document}

\begin{tabular}{|l|Sc|}
  \hline
  \multicolumn{2}{|l|}{Proving Rectangle}\\
  \hline
  4 right angles & \raisebox{-\totalheight}{\includegraphics[scale=0.3]{ProveRectangleA}}\\
  \hline
  Parallelogram with 1 right angle & \includegraphics[scale=0.3,valign=t]{ProveRectangleB}  \\
  \hline
\end{tabular} 

\end{document}
1

You can add an empty line with \\ &

\documentclass{article}
\usepackage{graphicx}
\usepackage{mwe}


\begin{document}
   \begin{tabular}{|l|c|}
\hline
\multicolumn{2}{|l|}{Proving Rectangle}\\
\hline
4 right angles & \raisebox{-\totalheight}{\includegraphics[scale=0.3]{example-image-a}}\\
&\\ % <----------- added
\hline
Parallelogram with 1 right angle & \raisebox{-\totalheight}{\includegraphics[scale=0.3]{example-image-b}}\\
&\\ % <------------- added
\hline
\end{tabular} 

\end{document}

enter image description here

  • Very good the question and all the answers. My compliments. – Sebastiano Feb 2 at 13:08
  • 1
    @Sebastiano Thank you very much. I really appreciate your compliments. – Hafid Boukhoulda Feb 2 at 13:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.