Changes

Jump to navigation Jump to search
<texcode>
\setuplayout[
backspace=4cm,
leftmarginwidth=2cm,
width=fit,
]
 
\setupmarginblocks[
location=left, width=\leftmarginwidth, top={\vfill}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>
23

edits

Navigation menu