Linebreak in verbatim with lualatex but not with pdflatex
Ulrike Fischer
news3 at nililand.de
Tue Sep 8 22:36:52 CEST 2020
Am Tue, 08 Sep 2020 07:45:04 +0200 schrieb Enrico Schumann:
> when I compile the following document
>
> \documentclass{article}
> \begin{document}
> \begin{verbatim}
> |-------------------------------------------------------------------|
> \end{verbatim}
> \end{document}
> When I compile with lualatex, the line is broken before the final
> vertical bar:
>
> |-------------------------------------------------------------------
> |
>
> This happens with lualatex "Version 1.10.0 (TeX Live 2019/Debian)" and
> "LuaHBTeX, Version 1.12.0 (TeX Live 2020/W32TeX)".
>
>
> Is this expected/documented?
We should really set \automatichyphenmode=1 in the format imho. Or
at least inside verbatim. Add an issue at the latex2e issue tracker.
\documentclass{article}
\begin{document}
{
\automatichyphenmode=1
\begin{verbatim}
|-------------------------------------------------------------------|
\end{verbatim}
}
\begin{verbatim}
|-------------------------------------------------------------------|
\end{verbatim}
\end{document}
--
Ulrike Fischer
https://www.troubleshooting-tex.de/
More information about the texhax
mailing list.