Changes

Jump to navigation Jump to search
120 bytes added ,  19:08, 18 August 2013
m
no edit summary
=== Overlays ===
ConTeXt has an overlay environment that can be used in the text to stack the arguments on the same spot. In the example below, each new element is placed on top of the previous element. Then, when you remove the \strut argument, notice that each argument is horizontally and vertically centered.
<context source=yes>
\stoptext
</context>
 
Without the \strut argument each argument is horizontally and vertically centered:
 
<context source=yes>
\setupbodyfont[40pt]
 
\starttext
 
\startoverlay
{\red m}
{\green a}
{\blue l}
\stopoverlay
 
\stoptext
</context>
 
 
Overlays are created with the \defineoverlay command, which takes an overlay name and content. The overlays are then applied to a \framed command or the background to the page the textblock, header, and so forth.
419

edits

Navigation menu