I would like to know how to manually insert a line break inside a table cell. Sometimes, this just looks so much better. However, I have not found anything that helped me out. I tried using \shortstack but the headspace to the horizontal lines is very small.
Here's my code:
\begin{table}[htbp]
\centering
\resizebox{0.8\textwidth}{!}{
\begin{tabular}{p{4cm} c|c}
Parameter Category & Mathworks Toolbox & LMN Toolbox \\
\hline
Estimation Focus (Prediction or Simulation) & Focus-Parameter & kStepPrediction Value \\
\hline
\end{tabular}
}
\caption{ARX vs. OE Model Structure}
\label{tab:modelParameters}
\end{table}
I'd like to put '(Prediction or Simulation)' in a new line in the same cell under Estimation Focus.
Thank you in advance !

tabularxthat allows you to specify an overall width of your table and adds a flexible width column type that lets your table adapt to this overall width. – leandriis Jan 05 '20 at 20:36