In a descriptive diagram, how do I prevent smart diagram from hyphenating texts when there are two more lines? Adding \raggedright
does not work for me.
A minimal example
\documentclass{article}
\usepackage{smartdiagram}
\begin{document}
\smartdiagramset{description title text width=1.5cm,
description text width=7cm,description width=8cm}
\smartdiagram[descriptive diagram]{
{x,the contribution to the projection Xxxxxxxxx Xxxxx}}
\end{document}
Note that technically I can change the width to be really wide, but it's too troubling when there are too many long descriptions...
\hyphenpenalty10000 \exhyphenpenalty10000
. these are the settings to suppress hyphenation using the primitive attributes that govern hyphenation of ordinary words and words that already contain hyphens, respectively. when you exit the group, the values are automatically restored to the usual for the body text. – barbara beeton Apr 15 '16 at 0:58smardiagram
usesalign=center
in the nodes, but doesn't seem to have any option for changing it toalign=flush center
(which would avoid hyphenation). – egreg Apr 15 '16 at 8:36