I have a continuous sequence of letters (no special characters or breaks) and TeX writes it over the right border of the page. How can I wrap this sequence such that line breaks are introduced where the page ends?
Thanks a lot for your help!!
Text Formatting ⇒ word wrapping of continuous text
NEW: TikZ book now 40% off at Amazon.com for a short time.
word wrapping of continuous text
A crude but simple hack (that destroys ligatures and hyphenation) would be to split up the letters and allow breaking everywhere:
Code: Select all
\documentclass{article}
\makeatletter
\newcommand*\wrapletters[1]{\wr@pletters#1\@nil}
\def\wr@pletters#1#2\@nil{#1\allowbreak\if&\else\wr@pletters#2\@nil\fi}
\makeatother
\begin{document}
\wrapletters{akjhghjerbhkjgxhdrjgkbhyxksrfihcgbwaemklcjtnhwabketrbmshrkncgaervbetjkewhbgrkjavkjdkvbkjsjkbtkgvnsetbjsrhtservjbtbjkhtvy}
\end{document}
Re: word wrapping of continuous text
Dear phi
Thanks a lot, that works very well! You helped me a lot.
Thanks a lot, that works very well! You helped me a lot.