Difference between revisions of "Overlays"
Jump to navigation
Jump to search
m (revert an additional Command/ in Category) |
(Better example, remove unneeded category) |
||
Line 1: | Line 1: | ||
< [[Graphics]] | < [[Graphics]] | ||
− | + | == What are Overlays? == | |
− | Overlays are predefined snippets that you can stack on each other. | + | Overlays are predefined snippets that you can stack on each other. In contrast to [[layers]], which regard whole pages, overlays mostly are only single pictures, words or the like. |
− | |||
− | + | == Defining == | |
<texcode> | <texcode> | ||
Line 14: | Line 13: | ||
Better put your commands in braces. | Better put your commands in braces. | ||
− | + | == Using == | |
You can use defined overlays everywhere, where there's a <tt>background</tt> option. | You can use defined overlays everywhere, where there's a <tt>background</tt> option. | ||
− | < | + | <context source=yes> |
+ | \setupcolors[state=start] | ||
+ | |||
\defineoverlay[tea][{\green\ss\bf GREEN TEA}] | \defineoverlay[tea][{\green\ss\bf GREEN TEA}] | ||
− | \framed[ | + | \framed[ |
− | + | background=tea, | |
− | </ | + | align={middle,hilo} |
+ | ]{ | ||
+ | \em today | ||
+ | \blank[2*big] | ||
+ | for sale | ||
+ | } | ||
+ | </context> | ||
− | + | You can use this also with pictures. See also [[logos]]. | |
− | |||
− | |||
− | + | Another use for overlays is for adding a graphic to every page to indicate chapters (sometimes known as a [[thumb index]]). | |
− | |||
− | |||
− | + | == See Also == | |
− | + | * [[:Category:Command/Overlays]] | |
[[Category:Graphics]] | [[Category:Graphics]] | ||
− |
Revision as of 12:51, 3 July 2012
< Graphics
Contents
What are Overlays?
Overlays are predefined snippets that you can stack on each other. In contrast to layers, which regard whole pages, overlays mostly are only single pictures, words or the like.
Defining
\defineoverlay[reference name][commands]
Better put your commands in braces.
Using
You can use defined overlays everywhere, where there's a background option.
\setupcolors[state=start] \defineoverlay[tea][{\green\ss\bf GREEN TEA}] \framed[ background=tea, align={middle,hilo} ]{ \em today \blank[2*big] for sale }
You can use this also with pictures. See also logos.
Another use for overlays is for adding a graphic to every page to indicate chapters (sometimes known as a thumb index).