[NTG-context] Left frame on a block of text

Gilles Waeber lists at gilleswaeber.ch
Sat Apr 20 14:53:34 CEST 2019


Hi,
I'm trying to create a style with a left border in the margin.

I want the border to start and stop with the text. For the bottom I used
framedepth but the bar still goes too far on the top?

\showframe
\showboxes
\defineframedtext[leftbartext][
	width=broad,
	frame=off,
	leftframe=on,
	rulethickness=.5ex,
	offset=-\framedparameter{rulethickness},
	frameoffset=\dimexpr\leftmargindistance +
\framedparameter{rulethickness}\relax,
	framedepth=-\framedparameter{frameoffset},
]
\starttext
\startleftbartext
\input knuth
\stopleftbartext
\stoptext

Regards,
Gilles



More information about the ntg-context mailing list