Changes

Jump to navigation Jump to search
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>setupmarginblocks</syntax>
== [[Help:Reference|Syntax]] ==
== Example ==
<!-- Please fill in an example if you can -->
 
By default, the marginblocks are flushed to the top. In case you want to flush all marginblocks to the bottom, you can do this:
 
<texcode>
\setuplayout[
backspace=4cm,
leftmarginwidth=2cm,
width=fit,
]
 
\setupmarginblocks[
location=left,
width=\leftmarginwidth,
top=\vfilll,
bottom=,
]
 
\definemarginblock[demoblock][state=start]
 
\definefloat
[marginfigure]
[figure]
[default=margin]
 
\starttext
 
\dorecurse{10}{
\startplacemarginfigure[reference=#1]
\framed[width=\leftmarginwidth,height=3cm,background=color,backgroundcolor=darkyellow]{#1}
\stopplacemarginfigure
See \in[#1]. \samplefile{tufte}
}
 
\dorecurse{10}{
\startmarginblock[demoblock]
\framed[width=\leftmarginwidth,height=5cm,background=color,backgroundcolor=darkred]{#1}
\stopmarginblock
See \in[#1]. \samplefile{tufte}
}
 
% One left, flush.
\flushallmarginblocks[1]
\stoptext
</texcode>
 
The result looks like this:
 
[[File:Marginfigures.png]]
== See also ==
<!-- something like [[{{cmd:goto|\goto]] }} -->
== Help from ConTeXt-Mailinglist/Forum ==
{{Forum|{{SUBPAGENAME}}}}
[[Category:Command/Command/Margins|setupmarginblocks]]
23

edits

Navigation menu