Hi, have a problem with the current color behaviour. If I want to define a color in the LaTeX-preamble with \definecolor and use it for text with \textcolor, I have to load the package color manually with a separate preamble-line. But LyX loads the color package automatically when using colored text with the predefined colors. The problem occurs when I have a colored text with a predefined color and with the self-defined color. In this case the package color is loaded twice. This causes no LaTeX errors but is quite ugly. If I delete in this case the \usepackage command and delete the colored text later, the package is no more loaded. If I want to produce a correct file I have to think everytime at the package-loading.
So wouldn't it be better to load the package color automatically when \definecolor or a predefined color is used. Another solution is to load it everytime. Color is part of every standard LaTeX-installation so that this shouldn't produce problems. regards Uwe example for the double loading: %% LyX 1.3 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[12pt,ngerman,fleqn]{scrartcl} \usepackage{ae} \usepackage{aecompl} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{a4wide} \pagestyle{plain} \setlength\parskip{\medskipamount} \setlength\parindent{0pt} \usepackage{amsmath} \usepackage{color} \usepackage{amssymb} \makeatletter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. \usepackage{color} \definecolor{darkgreen}{cmyk}{0.5, 0, 1, 0.5} \usepackage{babel} \makeatother \begin{document} asg \textcolor{darkgreen}{dfsg} fsdg \textcolor{magenta}{sfag} \end{document} "Who sleeps at night needn't to wonder that he's working during the day!"