Hi, 

In the following code, the output of \starttextbackground and the output of 
\startframedtext are same.
Is there any differences between them?
Or
Are the purposes of two command different?

Thanks for reading.

Best regards,

Dalyoung

\startuseMPgraphic{mp:leftBar}
begingroup;
  path p ;
  for i = 1 upto nofmultipars :
    p := (ulcorner multipars[i]) -- (llcorner multipars[i]); 
    draw p withcolor boxfillcolor withpen pencircle scaled 2pt;
  endfor;
endgroup;
\stopuseMPgraphic

\definetextbackground
  [leftBarFrame]
  [ mp=mp:leftBar,
    location=paragraph,
    background=color,
    backgroundcolor=darkred,
    leftoffset=1ex
  ]
  \defineframedtext[LeftBar]
  [width=\textwidth,
  frame=off,
  leftframe=on,
  framecolor=darkred,
  rulethickness=2pt,
  offset=0pt,
  loffset=4pt,
  roffset=4pt,
  ]

\starttext

  \startleftBarFrame
  \input tufte
  \stopleftBarFrame

  \startLeftBar
  \input tufte
  \stopLeftBar

\stoptext

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

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to