Quantcast
Channel: How to avoid justified text in tabularx? - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 3

How to avoid justified text in tabularx?

$
0
0

I have a table which has quite a lot of text but want to keep it on a portrait page. I am using the tabularx environment and managed to get all I want into the columns, but now the spacing between the words is super ugly. I'd rater define the orientation of my text in the table in each column, than having it justified. How can I change that? I am pretty new to latex and I still struggle a lot. I went through some similar questions already, but I only make it worse trying to fix my problem.

 \documentclass[12pt]{article}\usepackage[english]{babel}\usepackage{textcomp}\usepackage{graphicx}\usepackage{chngcntr}\counterwithin{figure}{section}\usepackage[font=small,labelfont=bf]{caption}\usepackage{tabularx}\begin{document}\begin{table}[htb]\footnotesize\begin{tabularx}{\textwidth}{>{\hsize=.4\hsize}X>{\hsize=.7\hsize}X>{\hsize=1.3\hsize}X>{\hsize=1.3\hsize}X>{\hsize=1.3\hsize}X}\hline\hline\textbf{WHO grade} & \textbf{Type} & \textbf{Description} & \textbf{Treatment} & \textbf{Outcome} \\\hline\hlineI & Pilocytic astrocytoma & low proliferative potential, not diffusive & surgical resection & not associated with recurrence after complete resection\\II & Diffuse glioma & infiltrative, low mitotic activity, well differentiated & surgical resection, adjuvant therapy & median survival $>$10 years, often recurrence as high-grade tumour\\III & Anaplastic Astrocytoma & mitotically active, anaplastic histology and infiltrative capacity & surgical resection, aggressive adjuvant therapy & median survival 2-3 years, recurrence as grade IV\\IV & GBM & mitotically active, anaplastic histology, highly infiltrative, necrisis, angiogenesis & surgical resection, aggressive adjuvant therapy & associated with rapid progression, median survival 14 month\\\hline\hline\end{tabularx}\caption{WHO Glioma Grades}\label{table:glioma types}\end{table}\end{document}

Looks like this:enter image description here


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles



Latest Images