Hello, it seems that bar (even with option 'continue=yes') is not rendered in place of '~' within math. See the sample:
---- \definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes] \starttext 1 + 2 = \startbar[MyBar]3~kN\stopbar % OK $1 + 2 = \startbar[MyBar]3~\text{kN}\stopbar$ % No background behind space $1 + 2 = \inframed[frame=off,background=color,backgroundcolor=green,offset=0pt,]{3~\text{kN}}$ % OK! \stoptext ---- In the sample 'kN' is a unit, which should be separated by space from the result (here: 3); I am used to put the unit into the math environment and enclose it into \text{...}. Is there a way to make the bar be rendered in places of blanks within math, too (like if it was inside $ ... $ - as the first line of the sample)? - Note that I can use \inframed to get background filled fully, but anyway - how about usage of "bar" for this? Best regards, Lukas
\definebar[MyBar][color=green,rulethickness=2.8,order=background,offset=1.5,continue=yes] \starttext 1 + 2 = \startbar[MyBar]3~kN\stopbar $1 + 2 = \startbar[MyBar]3~\text{kN}\stopbar$ $1 + 2 = \inframed[frame=off,background=color,backgroundcolor=green,offset=0pt,]{3~\text{kN}}$ \stoptext
Bar.pdf
Description: Adobe PDF document
___________________________________________________________________________________ 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 ___________________________________________________________________________________