Am Donnerstag, dem 29.01.2026 um 10:06 +0000 schrieb Bernt Lie via lyx-
users:
>    1. The default installation (MikTeX, pdflatex) does not support
> unicode in listings.
> a.. If I continue to use MikTeX, but change to another tool than
> pdflatex, will that make it possible to use Unicode? 

Minted supports unicode both with pdflatex and modern engines. See the
UserGuide, sec. 8.

Listings does not support utf8 in any engine, except for file listings
(see below)

> Is it simpler to use Unicode in listings in other OS:s, e.g., on a
> Mac?

No.

>    2. I would like to link in a file with listing, instead of
> manually pasting in code into the listing inset. Is there a way to do
> that?

Yes, via Insert > File > Child Document (if you select "Program
Listing" as Include Type). Again, see sec. 8 of the UserGuide.

UTF8 files are supported if you manually load

\usepackage{listingsutf8}

in the preamble and then put

inputencoding=utf8/latin1

to the "more parameters" widget in the file inclusion dialog.

HTH,
-- 
Jürgen
-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users

Reply via email to