Changes

Jump to navigation Jump to search
197 bytes removed ,  16:47, 24 July 2012
m
Adapt code for “Vertical lines between columnsets” to current beta
==Vertical lines between columnsets (rules)==
Sometimes it is required to have a vertical line between the columns of your columnset. This code draws MetaPost lines in the right place (note that it uses textbackground):
<texcode>
\startuseMPgraphic{verticallineverticalrule} for i=1 upto NOfTextColumns-1 if CurrentColumn < NOfColumns : draw (rightboundary TextColumns[i]) OverlayBox shifted (2.5mm4mm,0) shifted -\MPxy\textanchor ; endfor ; setbounds currentpicture to OverlayBox enlarged 2.5mm; fi
\stopuseMPgraphic
\defineoverlay [verticallineverticalrule] [\useMPgraphic{verticallineverticalrule}]\setupbackgrounds[text][background=verticalline] \definecolumnset [example] [n=32,distance=5mm]\setupcolumnset[example][1,2][balance background=yesverticalrule]
\starttext
\chapter{Chapter One} \startcolumnset[example]\starttextbackground[text] \dorecurse {104}{\input knuth} \stoptextbackground \stopcolumnset
\stoptext
</texcode>
69

edits

Navigation menu