Changes

Jump to navigation Jump to search
72 bytes added ,  22:08, 6 June 2020
m
no edit summary
< [[Layout]] | [[Columns]] | [[Overlays]] | [[Logos]] | [[Layers]] >
 
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 [[manual:details.pdf| details]] manual for further explanations.
\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]]

Navigation menu