Linebreak in verbatim with lualatex but not with pdflatex
Enrico Schumann
es at enricoschumann.net
Wed Sep 9 08:39:00 CEST 2020
On Tue, 08 Sep 2020, Ulrike Fischer writes:
> 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}
Thank you; that works. The issue tracker you refer to is the one at
https://github.com/latex3/latex2e ?
--
Enrico Schumann
Lucerne, Switzerland
http://enricoschumann.net
More information about the texhax
mailing list.