Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Adding child nodes to child nodes in TikZ Mindmap has some example code, where German words are not hyphenated correctly. I was trying to fix it by using inputenc (for Umlaute) and \usepackage[ngerman]{babel}. Unfortunately it has no effect on hyphenation.

What must be changed?

Below you can see a Working Example of it, showing forced hyphenation and no hyphenation: close up of compiled MWE

\documentclass{article}
    \usepackage[ngerman]{babel}
    \usepackage{tikz}
    \usetikzlibrary{mindmap,trees}

    \begin{document}
    \begin{tikzpicture}
    \path[mindmap,concept color=black,text=white]
        node[concept] {Die Wahrnehmung}
        [clockwise from=0]
        child[concept color=green!50!black] {
        node[concept] {Sensorische Prozesse}
        [clockwise from=90]
        child { node[concept] {Schwellen} 
child {node[concept] {Unterschiedsschwelle}}
child {node[concept] {Unter\-schieds\-schwel\-le}}
}
} 
child[concept] { node[concept] {Klassifikation} };
\end{tikzpicture}
\end{document}
share|improve this question

1 Answer 1

up vote 30 down vote accepted

The reason is that TeX doesn't hyphenate the first word in a paragraph. Inserting \hspace{0pt} for example would enable hyphenation, because then the word is not at the very beginning:

child {node[concept] {\hspace{0pt}Unterschiedsschwelle}}
share|improve this answer
    
Insightful answer! I didn't think of that rule because it applies so rarely. –  Unapiedra Feb 23 '12 at 18:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.