Re: Use svgnames in preamble [v2.5.0]

Baris Erkus via lyx-users <[email protected]> Sat, 28 Feb 2026 01:46:10 +0300
Newsgroups gmane.editors.lyx.general
Message-ID <DB9PR08MB640995286DBEC168033839B1DE73A@DB9PR08MB6409.eurprd08.prod.outlook.com>
On 2/23/2026 4:54 PM, Jürgen Spitzmüller via lyx-users wrote:
> 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.

For those who are interested in CTAN latexcolors package names in LyX 2.5.0:

Attached is the file, "output.txt" to be ammended to LyX/Resources 
"latexcolors" file, that adds 758 latexcolors package names to the 
existing colors.

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

Note that it uses the Hex codes. I am not sure if RGB or CYMK codes can 
be inserted in there. I have the python code and Excel file of the names 
and the code, if anyone interested.

The MWE LyX file worked fine in my case. You can test it for different 
scenarios, and see if the name clashes cause any trouble.

Baris

-- 
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users
test_colors.lyx (application/lyx, 2.9 KB) - not displayed
output.txt (text/plain, 119 KB) - not displayed