Difference between revisions of "Command/setuppalet"
< Command
Jump to navigation
Jump to search
m (Text replace - "== Help from ConTeXt-Forum ==" to "== Help from ConTeXt-Mailinglist/Forum ==") |
|||
(6 intermediate revisions by 4 users not shown) | |||
Line 4: | Line 4: | ||
}} | }} | ||
+ | == [[Help:Reference|Syntax]] (autogenerated) == | ||
+ | <syntax>setuppalet</syntax> | ||
== [[Help:Reference|Syntax]] == | == [[Help:Reference|Syntax]] == | ||
<table cellspacing="4" cellpadding="2" class="cmd"> | <table cellspacing="4" cellpadding="2" class="cmd"> | ||
Line 15: | Line 17: | ||
</table> | </table> | ||
+ | == Description == | ||
+ | Activate a palette previously defined with {{cmd|definepalet}}. | ||
− | == | + | == Example == |
+ | <context source=yes> | ||
+ | \definecolor[green1][r=0, g=1, b=0] | ||
+ | \definecolor[green2][r=0, g=0.5, b=0] | ||
+ | \definecolor[blue1] [r=0, g=0, b=1] | ||
+ | \definecolor[blue2] [r=0, g=0, b=0.5] | ||
+ | |||
+ | \definepalet[green] | ||
+ | [english=green1, | ||
+ | latin=green2] | ||
+ | |||
+ | \definepalet[blue] | ||
+ | [english=blue1, | ||
+ | latin=blue2] | ||
+ | |||
+ | \section{The Praying Mantis} | ||
+ | \setuppalet[green] | ||
+ | \color[english]{Praying Mantis} (\color[latin]{Mantis religiosa}) | ||
+ | |||
+ | There was never a greater mistake! Those pious airs are a fraud; | ||
+ | those arms raised in prayer are really the most horrible weapons, | ||
+ | which slay whatever passes within reach. The Mantis is fierce as | ||
+ | a tigress, cruel as an ogress. She feeds only on living creatures. | ||
+ | \section{Sacred beetles} | ||
+ | \setuppalet[blue] | ||
+ | \color[english]{Scarab Beetle} (\color[latin]{Scarabaeus sacer}). | ||
+ | The edge of his broad, flat head is notched with six teeth arranged | ||
+ | in a semicircle, like a sort of curved rake; and this he uses for | ||
+ | digging and cutting up, for throwing aside the stuff he does not | ||
+ | want, and scraping together the food he chooses. | ||
+ | \blank[line] | ||
+ | \rightaligned{---Jean-Henri Fabre, trans. Mrs. Rodolph Stawell} | ||
− | + | </context> | |
− | < | ||
== See also == | == See also == | ||
− | + | ||
+ | {{Color navbox}} | ||
== Help from ConTeXt-Mailinglist/Forum == | == Help from ConTeXt-Mailinglist/Forum == | ||
Line 30: | Line 65: | ||
{{Forum|{{SUBPAGENAME}}}} | {{Forum|{{SUBPAGENAME}}}} | ||
− | [[Category: | + | [[Category:Command/Colors|setuppalet]] |
Latest revision as of 13:35, 13 October 2019
\setuppalet
Syntax (autogenerated)
\setuppalet[...] | |
[...] | name |
Syntax
\setuppalet[...] | |
[...] | name |
Description
Activate a palette previously defined with \definepalet.
Example
\definecolor[green1][r=0, g=1, b=0] \definecolor[green2][r=0, g=0.5, b=0] \definecolor[blue1] [r=0, g=0, b=1] \definecolor[blue2] [r=0, g=0, b=0.5] \definepalet[green] [english=green1, latin=green2] \definepalet[blue] [english=blue1, latin=blue2] \section{The Praying Mantis} \setuppalet[green] \color[english]{Praying Mantis} (\color[latin]{Mantis religiosa}) There was never a greater mistake! Those pious airs are a fraud; those arms raised in prayer are really the most horrible weapons, which slay whatever passes within reach. The Mantis is fierce as a tigress, cruel as an ogress. She feeds only on living creatures. \section{Sacred beetles} \setuppalet[blue] \color[english]{Scarab Beetle} (\color[latin]{Scarabaeus sacer}). The edge of his broad, flat head is notched with six teeth arranged in a semicircle, like a sort of curved rake; and this he uses for digging and cutting up, for throwing aside the stuff he does not want, and scraping together the food he chooses. \blank[line] \rightaligned{---Jean-Henri Fabre, trans. Mrs. Rodolph Stawell}
See also
|
Help from ConTeXt-Mailinglist/Forum
All issues with: