I'm trying to make a table look pretty; more specifically, I want the 1st and 3rd columns to be 6-6.5 cm wide, and I want the second column to be only 1-1.5 cm wide. I also want minimal white space in the top and bottom cells.

Could you help me? What's the easiest way to do that? I'm a total tabularx newbie...

Here is what I put together with tabular... (less complicated tham with tabularx)

3 Answers
3

If you need the possibility of a pagebreak inside the tabular use package ltablex instead of tabularx.

\documentclass{article}
\usepackage{tabularx,graphicx}
\usepackage{booktabs}
\usepackage{mwe}%% Only for demo needed
\begin{document}
\noindent
\begin{tabularx}{\textwidth}{@{} >{\vspace{0pt}}X >{\vspace{0pt}}p{1cm} >{\vspace{0pt}}X @{}}\toprule
\emph{Vecindario} & \hspace{0pt}\emph{Evaluciones de $f$} & \emph{Perspectiva General}\\\midrule
The mwe package has due to its nature a little uncommon installation requirements.
While the normal package files are installed as normal, a variety of image files
are installed in the tex/latex/mwe/ folder, so that they can be accessed from
every (MWE) document. & 6 &
\includegraphics[width=\linewidth]{example-image-a}\\\midrule
The mwe package has due to its nature a little uncommon installation requirements.
While the normal package files are installed as normal, a variety of image files
are installed in the tex/latex/mwe/ folder, so that they can be accessed from
every (MWE) document. & 3 &
\includegraphics[width=\linewidth]{example-image-a}\\\bottomrule
\end{tabularx}
\end{document}

and the adopted example for two columns. Important is that you use \newline in the first column, otherwise you'll get a new tabular line and the image starts with the last line (I run it with pdflatex):

With \raisebox the reference point of the graphics can be changed. The following example defines macro \tabgraphics as shorthand for \includegraphics, whose reference point is moved below the top by the amount of the height of an uppercase letter. Also inside an X cell the maximum width is \hsize. Also the sum of \hsize in the tabularx columns specification should sum up to the number of X columns.

If you alter the size you need to make sure that the total width is unchanged so you would need to change the widths of the other two. However there is no point in making the second two columns X as they are fixed width (of the digits or the specified image width of 70mm)

so you should use

\begin{tabularx}{\textwidth}{Xcc}

Then to make the image look better you need to make its baseline go through its center by

\raisebox{-.5\height}{\includegraphics.....}

Or you can use the adjustbox package which avoids the need to use \raisebox by giving \includegraphics options to control the vertical alignment.