Am Samstag, dem 26.07.2025 um 12:28 -0400 schrieb Richard Kimberly
Heck:
> > 1. Full support for Unicode. What I mean is Unicode in program
> > listings. I experimented with this some 6 months ago, but it was
> > problematic... and lots of warnings about making my Windows
> > computer unsafe.
> 
> I do not use program listings. Can you explain better why Unicode is
> a problem in program listings? This almost certainly could be fixed
> in 2.5.x, in principle.

The listings package itself does not support utf8 (except for
\lstinputlisting). I doubt this will get fixed soon. I'd rather expect
someone coming up with a different package that supports multibyte
encodings from the start.

See also
https://www.lyx.org/trac/ticket/8624

OTOH we support minted which handles utf8.

> > 2. The program listing environment... it would be great it was
> > possible to define named listings similar to what I can do with
> > Graphics group for figures. With figures, I can set up the scaling
> > (%) for the printed version, as well as scaling, etc. for the LyX
> > editor window. This is extremely handy for creating a consistent
> > document: I can make one graphics group named "Matlab-plot", one
> > for "Inkscape-drawing", etc., and get consistent scaling.
> > 
> > It would be super handy to have a similar "Listing group" so that I
> > can define one listing setting for in-line listing, one for
> > "displayed" listing, and perhaps various settings for different
> > programming languages ("Matlab-listing", "Python-listing", etc.).
> > Because the listing system has many more settings than the figures,
> > it would be even more useful for program listing than for figures.
> 
> Graphics groups are provided by a LaTeX package, I believe, so the
> first question is whether there is support for this kind of thing in
> LaTeX.

I don't think it requires a package. We just share InsetGraphicsParams
among the insets in the same group. Something similar probably could be
done for listings, but as you say, it is a file format change.


-- 
Jürgen
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to