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
