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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to