Changes

Jump to navigation Jump to search
110 bytes added ,  11:49, 18 January 2009
m
removed global from \setupexternalfigures
Collectors are an alternative to overlays that can be used to build-up composite objects.
[[Layers]] , on the other hand, are used to define whole pages.See the [http[manual://www.pragma-ade.com/general/manuals/details.pdf | details]] manual for further explanations.
==Example==
\definecollector[example]
\setcollector [example] { \externalfigure[cow][width=4cm,frame=on] }
\setcollector [example] [corner={right,bottom},location={left,top}]
{\framed{1}}
{\framed{4}}
\startTEXpage \composedcollector{example}\stopTEXpage
\stoptext
</td><td>
<context>
\setupexternalfigures[location={local,default}]
\definecollector[example]
\setcollector [example] { \externalfigure[cow][width=4cm,frame=on] }
\setcollector [example] [corner={right,bottom},location={left,top}]
{\framed{1}}
\definecollector[example2]
\setcollector [example2] { \externalfigure[cow][width=4cm,frame=on] }
\setcollector [example2] [corner={right,bottom},location={right,bottom}]
{\framed{1}}
{\framed{4}}
\startTEXpage \composedcollector{example2}\stopTEXpage
\stoptext
</td><td>
<context>
\setupexternalfigures[location={local,default}]
\definecollector[example2]
\setcollector [example2] { \externalfigure[cow][width=4cm,frame=on] }
\setcollector [example2] [corner={right,bottom},location={right,bottom}]
{\framed{1}}
Notice that the size of the collected object grows as text is added.
As a consequence, the positions of the corners get redefined as the bounding box grows.
 
{{todo|We need more documentation and examples for this complicated subject.}}
 
[[Category:Graphics]] [[Category:Layers]]
148

edits

Navigation menu