Several rows in a table cell

I have a table as shown in this figure:

alt text

LaTeX code for the table:

\begin{table} \begin{tabular}{ | c | c | } \hline \includegraphics[scale=0.45]{../0_1.eps} & 1.10 2.20 3.30 4.40 \\ \hline \end{tabular} \end{table} 

I would like four numbers to appear on different lines inside the second cell to reduce its width. I wonder how to do this?




EDIT:

I tried \ linebreak,

 \includegraphics[scale=0.45]{../0_1.eps} & 1.10 \linebreak 2.20 \linebreak 3.30 \linebreak 4.40 \\ 

But the result is the same as before, i.e. without \ linebreak.




EDIT:

I just tried what Rob suggested. But the result is not compact, because I intend to reduce the size of the table. See picture below:

alt text

+8
latex
Apr 21 '10 at
source share
6 answers

Try

 \begin{table} \def\baselinestretch {}\selectfont % % \baselineskip = 14.4pt\relax %% Uncomment this if the result is not compact. \begin{tabular}{ | c | p{2cm} | } \hline $\vcenter{\hbox{\includegraphics[scale=0.45]{../0_1.eps}}$ & $\vcenter{\strut 1.10\par 2.20\par 3.30\par 4.40\strut}$ \\ \hline \end{tabular} \end{table} 
+7
Apr 22 2018-10-22T00:
source share

Try using the p column with \ par to indicate line breaks.

 \begin{table} \begin{tabular}{ | c | p{2cm} | } \hline \includegraphics[scale=0.45]{../0_1.eps} & 1.10\par 2.20\par 3.30\par 4.40 \\ \hline \end{tabular} \end{table} 
+8
Apr 21 '10 at 23:59
source share

You can use mathmode in the last cell: ${1.10 \atop 2.20 } \atop {3.30 \atop 4.40}$ .

It will be good and not enough ...

If you want it to be larger, cf. Indication of terms of fractions that will be more in the equation .

+3
Apr 22 '10 at 6:55
source share

I would consider using the multirow package. Details on overlapping multiple columns / rows here .

+3
Mar 20 '12 at 20:17
source share

\ linebreak? sometimes works for me at tables, and sometimes not.

+1
Apr 21 '10 at 23:44
source share

Minipage can do this.

 \begin{minipage}{3in} % escape the weirdness of tabular with your own mini page 1.10 \\ 2.20 \\ 3.30 \\ 4.40 \end{minipage} 

You may also need \strut in the first and last lines to prevent touching any table borders.

+1
Mar 21 '13 at 2:21
source share



All Articles