[Tex/LaTex] Automatic line-break in tabular

line-breakingtablestabularx

I'm making a tabular and I'd like to automatically do a like break rather than going beyond the page.

This is my tabular code:

\begin{table}[h]
\begin{tabular}{|l|l|l|}
Use Case Navn:          & \multicolumn{2}{l}{Opret Server} \\
Scenarie:               & \multicolumn{2}{l}{At oprette en server med bestemte regler som tillader folk at spille sammen. More Text more text More Text} \\
\end{tabular}
\end{table}

This is my preamble:

\documentclass[danish,a4paper,twoside,11pt]{report}
\usepackage{babel}
\usepackage[utf8x]{inputenc}
\usepackage{natbib}
\usepackage{graphicx}
\usepackage{epstopdf}
\usepackage{titling}
\usepackage{color}
\usepackage{xcolor}
\usepackage{nag}
\usepackage{tabularx}

\newcommand{\myparagraph}[1]{\paragraph{#1}\mbox{}\\}

This is how it looks right now: image

Best Answer

Since you've tagged the question tabularx, this is a solution with tabularx (no need for those \multicolumns)

\documentclass[danish,a4paper,twoside,11pt]{report}

\usepackage{tabularx}

\begin{document}
\begin{table}[h]
\begin{tabularx}{\textwidth}{|l|X|}
Use Case Navn:          & Opret Server \\
Scenarie:               & At oprette en server med bestemte regler som tillader folk at spille sammen. More Text more text More Text \\
\end{tabularx}
\end{table}
\end{document} 

enter image description here

The column type X takes all the space left from other columns till \textwidth or whatever you specify in the first argument.

Related Question