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 -- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel