ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Left frame on a block of text
@ 2019-04-20 12:53 Gilles Waeber
  2019-04-20 13:46 ` Aditya Mahajan
  0 siblings, 1 reply; 4+ messages in thread
From: Gilles Waeber @ 2019-04-20 12:53 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-04-21 10:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-20 12:53 Left frame on a block of text Gilles Waeber
2019-04-20 13:46 ` Aditya Mahajan
2019-04-20 18:53   ` Gilles Waeber
2019-04-21 10:13   ` Otared Kavian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).