1

i have a problem with the the width of a table,this is the code:

\begin{table}
    \centering
    \begin{tabular}{|cl|c|c|}
        \hline
        & \emph{\textbf{OWL Syntaxaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa}}  
        & \emph{\textbf{DL syntax}} 
        & \emph{\textbf{Example}}\\ 
        \hline
        & Thing
        & $\top$  
        & \\
        \hline
    \end{tabular}
    \caption{Exemplary table}
    \label{ft_tab_ex}
\end{table}

This is the result: enter image description here

How can i do to split the word and start a new line??

Torbjørn T.
  • 206,688
  • Use \tabularx and a X column for the first one –  Nov 28 '15 at 21:45
  • @Herbert could you be more specific? i have to substitute tabular with tabularx and? – Marcello Chiurazzi Nov 28 '15 at 21:50
  • 1
    search here for tabularx and you'll find a lot of examples –  Nov 28 '15 at 21:51
  • 1
    tabularx chooses the widths automatically but you can also just do it by change change the first c to p{3cm} (or whatever width you need) then that may be enough or you might need explicit \newline commands to force line breaking if it is really a non-word like aaaaaaaaaaaaaaaaa that tex can not break over a line – David Carlisle Nov 28 '15 at 21:59
  • suppose "i want to break the line" instead of aaaaa. I want that latex splits the sentence in two rows in a way that allow the table to stay in tha page – Marcello Chiurazzi Nov 28 '15 at 22:03
  • @MarcelloChiurazzi You may be interested in http://tex.stackexchange.com/questions/2441/how-to-add-a-forced-line-break-inside-a-table-cell – egreg Nov 28 '15 at 22:23
  • 1
    If TeX can break the line, it will if you just say p{30mm} or whatever you prefer. – cfr Nov 29 '15 at 00:52

0 Answers0