I try to make XeLaTeX hyphenate the German word "Sicherheitsbeauftragter". I tried several values for x
in \tolerance=x
and instances of \hyphenation{Si-cher-heits-be-auf-trag-ter}
. Nothing worked. MWE:
\documentclass{article}
\usepackage{polyglossia}
\setmainlanguage{german}
\usepackage{array}
\usepackage{ragged2e}
\hyphenation{Si-cher-heits-be-auf-trag-ter}
\begin{document}
\begin{tabular}{>{\RaggedRight}p{7.7em}@{|}}
Sicherheitsbeauftragter\\
Technischer Leiter
\end{tabular}
\end{document}
I also tried babel
instead of polyglossia and pdfLaTeX
instead of XeLaTeX
but except for how the "|" looks, there is no difference.