Re: Use svgnames in preamble [v2.5.0]
Baris Erkus via lyx-users <[email protected]> Mon, 23 Feb 2026 13:34:45 +0300
| Newsgroups | gmane.editors.lyx.general |
|---|---|
| Message-ID | <DB9PR08MB64096A48C897208719EEA9A3DE77A@DB9PR08MB6409.eurprd08.prod.outlook.com> |
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}
--
lyx-users mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-users
MWE_color.lyx
(application/lyx, 2.6 KB) - not displayed