Changes

Jump to navigation Jump to search
|attributes=
}}
 
== [[Help:Reference|Syntax]] (autogenerated) ==
<syntax>setupmarginblocks</syntax>
== [[Help:Reference|Syntax]] ==
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:location|location]]</td> <td>[[Reference/enCommand/value:inmargin|inmargin]] [[Reference/enCommand/value:left|left]] [[Reference/enCommand/value:middle|middle]] [[Reference/enCommand/value:right|right]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:style|style]]</td> <td>[[Reference/enCommand/value:normal|normal]] [[Reference/enCommand/value:bold|bold]] [[Reference/enCommand/value:slanted|slanted]] [[Reference/enCommand/value:boldslanted|boldslanted]] [[Reference/enCommand/value:type|type]] [[Reference/enCommand/value:cap|cap]] [[Reference/enCommand/value:small...|small...]] [[Reference/enCommand/value:command|command]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:width|width]]</td> <td>[[Reference/enCommand/value:dimension|dimension]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:align|align]]</td> <td>[[Reference/enCommand/value:flushleft|flushleft]] [[Reference/enCommand/value:middle|middle]] [[Reference/enCommand/value:flushright|flushright]] [[Reference/enCommand/value:no|no]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:top|top]]</td> <td>[[Reference/enCommand/value:command|command]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:inbetween|inbetween]]</td> <td>[[Reference/enCommand/value:command|command]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:bottom|bottom]]</td> <td>[[Reference/enCommand/value:command|command]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:left|left]]</td> <td>[[Reference/enCommand/value:command|command]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:right|right]]</td> <td>[[Reference/enCommand/value:command|command]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:before|before]]</td> <td>[[Reference/enCommand/value:command|command]] </td>
</tr>
<tr valign="top" class="first">
<td class="cmd">[[Reference/enCommand/keyword:after|after]]</td> <td>[[Reference/enCommand/value:command|command]] </td>
</tr>
</table>
== 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 ==All issues with:{{Forum|{{SUBPAGENAME}}}}
[[Category:ReferenceCommand/enMargins|setupmarginblocks]]
23

edits

Navigation menu