Graham Percival schrieb:
Are you referring to x11-color, or normal colors? If it's x11, I
really don't think it's worth keeping them in the docs at all. If
you're curious though, search the mailist archives. Trevor Baca made
a .ly file that demonstrates them all; I think this was approximately
two years ago.
would it be useful to
include a colour sample next to the colour name to help the user
chose the
right colour? This could just be included from within texinfo (could
it?) if
there is something like @colorbox available. I just deduced from
Latex...
Of course this is possible! Please add a snippet to LSR... although
I'd recommend only doing this for color, not x11-color.
Ok, I was thinking just about enhancing the table from the color names
to show also the colors. I have an example here done with Latex. I have
no clue how to include it into texinfo, which obviously supports only
plain tex. So there are no colour. Could it be rendered as a pdflatex
document and included into the docs at the appropriate place, thus
replacing the current table? Or do I need to think how to do this thing
in lilypond? I was also thinking that if doing it that way the X11
colours would be more useful because one can immediately see how they
will look. I just didn't find where they get defined inside of lilypond.
Till
\begin{filecontents}
\documentclass{ltxdoc}
\usepackage{color}
\usepackage{tabularx}%colors are squeezed together without extrarowheight
\newcommand*\ShowColor[2]{\fcolorbox[rgb]{0,0,0}{#1}{\phantom{000}} {#2}}
\begin{document}
according to | scm/output-lib.scm | :
\setlength{\extrarowheight}{2mm}
\setlength{\tabcolsep}{2mm}
[EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] }l}
\ShowColor{0,0,0}{black} & \ShowColor{1,1,1}{white} &
\ShowColor{1,0,0}{red} & \ShowColor{0,1,0}{green} \\
\ShowColor{0,0,1}{blue} & \ShowColor{1,0,1}{cyan} &
\ShowColor{1,0,1}{magenta} & \ShowColor{1,1,0}{yellow} \\
\ShowColor{0.5,0.5,0.5}{grey} & \ShowColor{0.5,0,0}{darkred} &
\ShowColor{0,0.5,0}{darkgreen} & \ShowColor{0,0,0.5}{darkblue} \\
\ShowColor{0,0.5,0.5}{darkcyan} & \ShowColor{0.5,0,0.5}{darkmagenta} &
\ShowColor{0.5,0.5,0}{darkyellow} & \\
\end{tabular}
\end {document}
\end{filecontents}
_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel