I am trying to adjust the column parameters but I cannot find a good combination (l
/X
/p{.1\linewidth}
).
Adding there X
makes the column extremely small in the example code of Fig. 1, which I do not understand. Therefore, I have no X
there at the moment.
Code which output fails with the last columns, in Fig. 2 without X
\documentclass{beamer}
%http://tex.stackexchange.com/a/309253/13173
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{mathpazo}
\usepackage[warn]{textcomp}
\usepackage{adjustbox}
\usepackage{tabularx}
\begin{document}
\begin{table}
\centering
\resizebox{.5\textheight}{!}{
\begin{tabularx}{\textwidth}{| l | p{.27\linewidth} | p{.27\linewidth} | p{.27\linewidth} | p{.2\linewidth} |} %
\hline
\textbf{Feature} & \textbf{Cytotoxic edema}
& \textbf{Vasogenic edema}
& \textbf{Interstitial edema}
& \textbf{Osmotic edema} \\ \hline
Composition & i/c, acc. of water and Na+
& e/c, ultrafiltrate of plasma
& CSF
& V(e/c) $>$ V(i/c) \\ \hline
Location of edema & Gray-white matter
& White - -
& Periventricular white - -
& White - - \\ \hline
V(E/c fluid) & \textdownarrow
& \textuparrow
& \textuparrow
& \textuparrow \\ \hline
Etiology & DM, hypothermia, ...
& Tumors, trauma, ...
& Hydrocephalus
& Hemodialysis, hypertensive crisis, ...\\ \hline
Response to therapy & Yes/No (diuretics transiently eff.)
& Yes (corticosteroids)
& Yes (diuretics transiently eff.)
& Yes/No \\ \hline
\end{tabularx}
}
\caption{Types of brain edema.}
\end{table}
\end{document}
Fig. 1 Output without X
,
Fig. 2 Output with one X
tabularx
to work, you need at least oneX
-column. Your example code shows you're not using any. – Werner Mar 1 '17 at 19:17X
makes the column extremely small, which I do not understand. Therefore, I have noX
there at the moment. - - I added an output with oneX
. – Léo Léopold Hertz 준영 Mar 1 '17 at 19:31X
-column once the other columns take up\textwidth
... – Werner Mar 1 '17 at 20:11