## Break or wrap a continuous text in Latex

The situation is that I have a long continuous text such as “adfadfadfasldfkasldfadfklasjhdfalkdfasldfahdlfad”, and it won’t break or wrap at the end of the line. To fix the problem, we need to define a new wrapletters command as follows.

\newcommand*\wrapletters[1]{\wr@pletters#1\@nil}
\def\wr@pletters#1#2\@nil{#1\allowbreak\if&#2&\else\wr@pletters#2\@nil\fi}

Then, to wrap a long continuous text, do the following.