[Tex/LaTex] Break long word in tabular

line-breakingtabularx

I have a long word inside my tabular I need to break. The other rows and columns look perfect, but since this is only 1 word, the actual word overlaps on the other column. Not ideal.

Is there a SIMPLE fix? Basically here's how I make the tabular:

\begin{tabular}{|p{3.5cm}|p{3.5cm}|}
\hline

Header 
& 
Header 2\\


\hline
Marketingdivisiontesttesttest  
&
Some more text\\
\hline

\end{tabular}

Microsoft Word breaks the word easily.

Best Answer

The first word in a paragraph isn't hyphenated. Use \hspace{0pt} or lualatex whichwill hyphenate also the first word.

\documentclass{article}
\usepackage{array}
\newcolumntype{P}[1]{>{\hspace{0pt}}p{#1}}
\begin{document}
    \begin{tabular}{|P{3.5cm}|p{3.5cm}|}
        \hline
        Header 
        & 
        Header 2\\
        \hline
        Marketingdivisiontesttesttest  
        &
        Some more text\\
        \hline
    \end{tabular}
\end{document}

enter image description here

Related Question