Bug report: List of listings incompatible with book classes

Jürgen Spitzmüller jspitzm at gmail.com
Sat Oct 5 13:49:59 UTC 2024


Am Samstag, dem 05.10.2024 um 13:52 +0200 schrieb Léo de Souza:
> Adding the following ERT at the beginnig of the document prevents
> errors :
> 
>     \renewcommand{\lstlistlistingname}{Listings}
> 
> I suspect the errors are happening because LyX automatically add a
> line in the preamble that contains \inputencoding{latin9}

Yes, but this is necessary (not with the English string and probably
not with any latin9-encoded writing system but with other
localizations) since listings does not support unicode.

Why this fails only with book classes is beyond me.

-- 
Jürgen


More information about the lyx-devel mailing list