0

Consider this example:

\documentclass{report}
%\hyphenation{ENCODE}
\begin{document}

All data used for this study are analysed with a different release of ENCODE \textendash\ the collection of software that is used in simulation and reconstruction.

\end{document}

In the output a new line is started with a dash which seems awkward:

enter image description here

Using ~ to control the line break:

release of ENCODE~\textendash\ the collection

causes also some awkwardness - hyphenation of "ENCODE":

enter image description here

Finally I can prevent the hyphenation of "ENCODE" by uncommenting the line \hyphenation{ENCODE} to obtain the pleasing output:

enter image description here

Can all this ceremony be automated?

Viesturs
  • 7,895

1 Answers1

1

You can suppress hyphenation with a box and linebreaking with a penalty:

\documentclass{report}
\newcommand\zz{\mbox{}~\textendash\ }
\begin{document}

All data used for this study are analysed with a different release of ENCODE\zz
the collection of software that is used in simulation and reconstruction.

\end{document}

The line is 2pt over full in this case.

David Carlisle
  • 757,742