Changes

Jump to navigation Jump to search
492 bytes added ,  15:04, 7 October 2019
m
→‎Defining New Colors: bit of visual cleanup
| {{src|colo-imp-x11.mkiv}}
| 658 extended Xorg color keywords (WWW), defined in hex RGB
|-
| crayola || <code>\usecolors[crayola] </code>
| {{src|colo-imp-crayola.mkiv}} || 235 Crayola (Binney & Smith) colors
|-
| ema || <code>\usecolors[ema]</code>
| {{src|colo-imp-ema.mkiv}} || 549 Emacs colors
|-
| RAL || <code>\usecolors[ral]</code>
| {{src|colo-imp-ral.mkiv}} || 213 RAL color system (Deutsches Institut für Gütesicherung und Kennzeichnung)
|-
| Solarized || <code>\usecolors[solarized]</code>
| {{src|colo-imp-solarized.mkiv}} || 16 solarized colors
|}
 
= Defining New Colors =
{| class="wikitable"
! Name !! Sytanx Syntax (and Example) !! Explanation
|-
| style="width:20%;" | RGB color model| style="width:40%;" | <texcode>\definecolor[...][r=..., g=..., b=...]</texcode>
For example,
<texcode>\definecolor[lime][r=0.75, g=1, b=0]
This is \color[screen]{a new color}
that we defined</texcode>
| The value for <code>s</code> is a floating point number between <code>0</code> and <code>1</code>, representing the grayness value(1 represents white, 0 represents black).
|}
For example
{|
! width="45%"| ! width="10%"| ! width="45%"||<texcode>\usecolors[xwi]
\definecolor[highlight][yellow]
\defineframed
[important]
[location=low, frame=off, background=color, backgroundcolor=highlight]
This is a \important{important}word.
This is a \important{important}word.
</texcode>
| width="10%"|| width="45%"|<context mode=mkiv>\usecolors[xwi]
\definecolor[highlight][yellow]
\defineframed[important][location=low, frame=off, background=color, backgroundcolor=highlight]
This is a \important{important}word.

Navigation menu