Re: Use svgnames in preamble [v2.5.0]

2026-03-05 Thread Jürgen Spitzmüller via lyx-users
Am Donnerstag, dem 05.03.2026 um 15:24 +0300 schrieb Baris Erkus via
lyx-users:
> Granted.

Thanks. committed

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


Re: Use svgnames in preamble [v2.5.0]

2026-03-05 Thread Baris Erkus via lyx-users


On 3/5/2026 3:21 PM, Jürgen Spitzmüller wrote:

Am Samstag, dem 28.02.2026 um 08:55 +0100 schrieb Jürgen Spitzmüller
via lyx-users:

Am Samstag, dem 28.02.2026 um 01:46 +0300 schrieb Baris Erkus via
lyx-
users:

I do not know how to convert this into a module; maybe I can look
at
it later.

That's not yet possible in 2.5.0. I am working towards it for 2.6.0.

I have now implemented this for 2.6.0. I have also turned your
definitions into a module and can add it to LyX if you agree and grant
permission to add this under the GPL license, version 2 or later.

Granted.
--
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: Use svgnames in preamble [v2.5.0]

2026-03-05 Thread Jürgen Spitzmüller via lyx-users
Am Samstag, dem 28.02.2026 um 08:55 +0100 schrieb Jürgen Spitzmüller
via lyx-users:
> Am Samstag, dem 28.02.2026 um 01:46 +0300 schrieb Baris Erkus via
> lyx-
> users:
> > I do not know how to convert this into a module; maybe I can look
> > at
> > it later.
> 
> That's not yet possible in 2.5.0. I am working towards it for 2.6.0.

I have now implemented this for 2.6.0. I have also turned your
definitions into a module and can add it to LyX if you agree and grant
permission to add this under the GPL license, version 2 or later.

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


Re: Use svgnames in preamble [v2.5.0]

2026-02-27 Thread Jürgen Spitzmüller via lyx-users
Am Samstag, dem 28.02.2026 um 01:46 +0300 schrieb Baris Erkus via lyx-
users:
> I do not know how to convert this into a module; maybe I can look at
> it later.

That's not yet possible in 2.5.0. I am working towards it for 2.6.0.

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


Re: Use svgnames in preamble [v2.5.0]

2026-02-23 Thread Jürgen Spitzmüller via lyx-users
Am Montag, dem 23.02.2026 um 16:26 +0300 schrieb Baris Erkus via lyx-
users:
> Some other color names:
> 
> https://latexcolor.com/
> 
> https://ctan.org/pkg/latexcolors

I see. I think the colors provided by xcolor are more than enough.

But you can write a module and use the color definition syntax used in
the latexcolors file (shipped with LyX) to support these. We could even
include this to the distribution.

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


Re: Use svgnames in preamble [v2.5.0]

2026-02-23 Thread Baris Erkus via lyx-users


On 2/23/2026 3:45 PM, Jürgen Spitzmüller via lyx-users wrote:

Am Montag, dem 23.02.2026 um 14:03 +0300 schrieb Baris Erkus via lyx-
users:

I wonder if "\latexcolor" names will be added in the later versions

Not sure what you mean by this.


Some other color names:

https://latexcolor.com/

https://ctan.org/pkg/latexcolors

--
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: Use svgnames in preamble [v2.5.0]

2026-02-23 Thread Jürgen Spitzmüller via lyx-users
Am Montag, dem 23.02.2026 um 14:03 +0300 schrieb Baris Erkus via lyx-
users:
> I wonder if "\latexcolor" names will be added in the later versions

Not sure what you mean by this.

> Also, there is a small bug, I guess, with the new custom color
> definitions. I cannot retrieve the properties of a previously defined
> custom color. When I press the "Alter Color" button, the values are
> all null. I have to look at the LaTeX code to see what I entered in
> there.

Thanks, fixed in master and will hopefully be backported to 2.5.1. 
 
> One more thing I observed, dark and light mode settings did not work
> on my Windows 10 laptop, but it worked fine on Windows 11...

That's well possible. Support for this (in Qt) is rather new.

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


Re: Use svgnames in preamble [v2.5.0]

2026-02-23 Thread Baris Erkus via lyx-users


On 2/23/2026 1:50 PM, Jürgen Spitzmüller via lyx-users wrote:

Am Montag, dem 23.02.2026 um 13:34 +0300 schrieb Baris Erkus via lyx-
users:

Well, see the attached MWE: LyX 2.5.0 does not load the xcolor with
dvips names "always". It loads it only if a dvips name color is used
in the text.

Sure, this is the same as with other auto-loaded packages.

Either

1. load it manually in the preamble,

2. trigger its loading by using such a color (you can do this in the
document body after an ERT % and it won't be output), or

3. add to Document Settings > Local Layout:

Requires xcolor,xcolor:dvipsnames


Thanks a bunch.

BTW, the additions of colors is a big leap, thanks for all the efforts..

I wonder if "\latexcolor" names will be added in the later versions

Also, there is a small bug, I guess, with the new custom color 
definitions. I cannot retrieve the properties of a previously defined 
custom color. When I press the "Alter Color" button, the values are all 
null. I have to look at the LaTeX code to see what I entered in there.


One more thing I observed, dark and light mode settings did not work on 
my Windows 10 laptop, but it worked fine on Windows 11...


Thanks again to the developers. Really cool improvements with 2.5.0..
-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: Use svgnames in preamble [v2.5.0]

2026-02-23 Thread Jürgen Spitzmüller via lyx-users
Am Montag, dem 23.02.2026 um 13:34 +0300 schrieb Baris Erkus via lyx-
users:
> Well, see the attached MWE: LyX 2.5.0 does not load the xcolor with
> dvips names "always". It loads it only if a dvips name color is used
> in the text.

Sure, this is the same as with other auto-loaded packages.

Either 

1. load it manually in the preamble,

2. trigger its loading by using such a color (you can do this in the
document body after an ERT % and it won't be output), or

3. add to Document Settings > Local Layout:

Requires xcolor,xcolor:dvipsnames

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


Re: Use svgnames in preamble [v2.5.0]

2026-02-23 Thread Baris Erkus via lyx-users

On 2/23/2026 10:49 AM, Jürgen Spitzmüller via lyx-users wrote:

Am Montag, dem 23.02.2026 um 00:26 +0300 schrieb Baris Erkus via lyx-
users:

Is there a way to use xcolor svgnames in preamble in v2.5.0?

LyX loads xcolor before the user preamble, so yes.


Well, see the attached MWE: LyX 2.5.0 does not load the xcolor with 
dvips names "always". It loads it only if a dvips name color is used in 
the text.


Below is the LaTeX Code preview, ("BrickRed" is a dvips color name):

% Preview source code

%% LyX 2.5.0 created this file. For more info, see https://www.lyx.org/.

%% Do not edit unless you really know what you are doing.

\documentclass[american]{article}

\usepackage[T1]{fontenc}

\usepackage[utf8]{inputenc}


\makeatletter

%% User specified LaTeX commands.

%\usepackage[dvipsnames]{xcolor}

%% Manually I have to turn this line on to load the xcolor dvips names.

%%Lyx does not load it automatically.

%%Comment this line and see if LyX loads xcolor dvips names.


\usepackage{sectsty}


\sectionfont{\color{BrickRed}}


\makeatother


\usepackage{babel}

\begin{document}


\section{Testing the Color}

\end{document}


MWE_color.lyx
Description: application/lyx
-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users


Re: Use svgnames in preamble [v2.5.0]

2026-02-22 Thread Jürgen Spitzmüller via lyx-users
Am Montag, dem 23.02.2026 um 00:26 +0300 schrieb Baris Erkus via lyx-
users:
> Is there a way to use xcolor svgnames in preamble in v2.5.0?

LyX loads xcolor before the user preamble, so yes.

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