
Warum wird in diesem Beispiel die Silbentrennungsregel nicht angewendet?
\documentclass{article}
\usepackage{tabu}
\hyphenation{abc-def-hij-klm-nop-qrs-tuv-wxyz}
\begin{document}
\begin{center}
\begin{tabu} {|X|X|}
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz &
abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz
\\
5 & 6 \\
\end{tabu}
\end{center}
\end{document}
Ausgabe:
Antwort1
Wie Lev Bishop schon sagte, sind die Wörter unterschiedlich,
g
im Alphabet fehlt das Wort in\hyphenation
.Wenn die Textbreite verringert wird, wird das erste Wort nicht getrennt, da TeX das erste Wort in einem Absatz nicht trennt.
\hspace{0pt}
Hier hilft das Hinzufügen von:\documentclass{article} \usepackage{tabu} \hyphenation{abc-def-ghij-klm-nop-qrs-tuv-wxyz}% g is added \setlength{\textwidth}{.5\textwidth} \begin{document} \begin{center} \begin{tabu} {|X|X|} \hspace{0pt}abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz & abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz \\ 5 & 6 \\ \end{tabu} \end{center} \end{document}