Changes

Jump to navigation Jump to search
23 bytes removed ,  20:26, 5 June 2020
move "Testing if color is defined" in "Advanced Usage" section
For more further reading: [[Color in MetaPost]].
== Using colors in TikZ Testing if color is defined == To test if a color is defined, use * {{cmd|doifcolor}}* {{cmd|doifcolorelse}} Usage: <texcode>\doifcolor{color-name}{... if branch ... }\doifcolorelse{color-name}{... if branch ...}{... else branch ...}</texcode>  
= Viewing pre-defined color =
|}
= Testing if color is defined =
 
To test if a color is defined, use
 
* {{cmd|doifcolor}}
* {{cmd|doifcolorelse}}
 
Usage:
 
<texcode>
\doifcolor{color-name}{... if branch ... }
\doifcolorelse{color-name}{... if branch ...}{... else branch ...}
</texcode>
= Specialized topics =

Navigation menu