Changes

Jump to navigation Jump to search
21 bytes removed ,  14:27, 30 July 2023
simplify some examples, small additions
</texcode>
|
|<context mode=mkiv>\starttext
Three \color[red]{cool} cats
\stoptext
</context>
|}
</texcode>
|
|<context mode=mkiv>\starttext
Three \colored[r=0.1, g=0.8, b=0.8]{colorful} cats
\stoptext
</context>
|}
|-
|<texcode>\setupcolors[textcolor=blue]
\starttext\input samplefile{tufte \stoptext}
</texcode>
|
|<context mode=mkiv>
\setupcolors[textcolor=blue]
\startTEXpage
\input tufte
\stopTEXpage
</context>
|}
\starttext
\input samplefile{ward}
\stoptext
</context>
background=color, backgroundcolor=highlight]
This is a an \important{important}word.
\definecolor[highlight][lavenderblush]
background=color, backgroundcolor=highlight]
This is a an \important{important}word.
\definecolor[highlight][lavenderblush]
This is a an \important{important}word.
</context>
|}
RAL color system (Deutsches Institut für Gütesicherung und Kennzeichnung)
approximate RGB colors (inofficial translation from [http://www.ralcolor.com www.ralcolor.com]). These are defined in {{src|colo-imp-ral.mkiv}} and can be loaded using
<texcode>\usecolors[ral]</texcode>
== Solarized colors ==
Colors based on the [http://ethanschoonover.com/solarized Solarized] color schemeby Ethan Schoonover.
These are defined in {{src|colo-imp-solarized.mkiv}} and can be loaded using
== Using colors in MetaPost ==
A color defined in TeX is available in MetaPost using `\MPcolor{...}`or in LuaMetaFun simply the name in quotation marks. For example:
{|
|<context mode=mkiv>
\definecolor[highlight][r=0.8,g=0.8,b=0]
\starttext
\color[highlight]{Highlighted text in TeX}

Navigation menu