[NTG-context] mframed and alignment width

2022-07-14 Thread Hans-Joerg Schurr via ntg-context
Hello everyone, I'm using \startaligned with pairs and a distance to represent inference steps, one per row. Now I would like to sometimes add a vertical bar to the left of the rows and one below the last row. I was able to achieve this using \mframed, but now the contented inside the frame

Re: [NTG-context] \mframed not aligned in mkiv

2013-10-22 Thread Aditya Mahajan
On Tue, 22 Oct 2013, Otared Kavian wrote: Hi Aditya, I wikified your remarks, http://wiki.contextgarden.net/Math/Display#Shaded_background_for_part_of_a_displayed_equation Rather than \def\graymath{\mframed[frame=off, background=color, backgroundcolor=gray

Re: [NTG-context] \mframed not aligned in mkiv

2013-10-22 Thread Otared Kavian
22:18, Aditya Mahajan wrote: > On Mon, 21 Oct 2013, Otared Kavian wrote: > >> Dear Hans, >> >> I noticed a difference between mkii and mkiv in the behavior of \mframed: it >> seems that in mkiv the frame is not vertically aligned with the the + sign >> in

Re: [NTG-context] \mframed not aligned in mkiv

2013-10-21 Thread Otared Kavian
Thanks Aditya! I overlooked this change in mkiv… Best regards: OK On 21 oct. 2013, at 22:18, Aditya Mahajan wrote: > On Mon, 21 Oct 2013, Otared Kavian wrote: > >> Dear Hans, >> >> I noticed a difference between mkii and mkiv in the behavior of \mframed: it >>

Re: [NTG-context] \mframed not aligned in mkiv

2013-10-21 Thread Aditya Mahajan
On Mon, 21 Oct 2013, Otared Kavian wrote: Dear Hans, I noticed a difference between mkii and mkiv in the behavior of \mframed: it seems that in mkiv the frame is not vertically aligned with the the + sign in the following example (or rather it is not vertically centered, please see the

[NTG-context] \mframed not aligned in mkiv

2013-10-21 Thread Otared Kavian
Dear Hans, I noticed a difference between mkii and mkiv in the behavior of \mframed: it seems that in mkiv the frame is not vertically aligned with the the + sign in the following example (or rather it is not vertically centered, please see the attached PDF produced with ConTeXt ver

[NTG-context] How to align \mframed correctly?

2011-08-02 Thread Marcin Borkowski
As the example below shows, \mframed part of the formula is placed too high. I found that \inmframed helps, but my question is: does \inmframed alter spacing? In other words: does $...whatever...$ look the same as $...\inmframed[frame=off]{whatever}...$? \starttext $E=\mframed{mc^2}$ % wrong $E

[NTG-context] Wrong location of mframed

2011-01-22 Thread Aditya Mahajan
Hi, In MkIV, \mframed does not place the result in the middle of the math axis. Consider, \starttext \startformula f(x) = \mframed{\frac{1}{2}}^{\mframed{\frac{1}{2}}} \stopformula \stoptext The MkII and MkIV results are attached. Aditya

Re: [NTG-context] mframed, setupinteractions

2009-05-11 Thread Hans Hagen
Aditya Mahajan wrote: On Mon, 11 May 2009, Hans Hagen wrote: Alan BRASLAU wrote: Thanks (\setupinteractions[option=max], \mframed[background=color])! Please note that the vertical spacing seems to be off (raised) for \mframed... minimal example: \starttext \startformula A = B + \mframed

Re: [NTG-context] mframed, setupinteractions

2009-05-11 Thread Aditya Mahajan
On Mon, 11 May 2009, Hans Hagen wrote: Alan BRASLAU wrote: Thanks (\setupinteractions[option=max], \mframed[background=color])! Please note that the vertical spacing seems to be off (raised) for \mframed... minimal example: \starttext \startformula A = B + \mframed[frame=off,background

Re: [NTG-context] mframed, setupinteractions

2009-05-11 Thread Alan BRASLAU
On Monday 11 May 2009 15:40:04 Hans Hagen wrote: > Alan BRASLAU wrote: > > Thanks (\setupinteractions[option=max], \mframed[background=color])! > > > > Please note that the vertical spacing seems to be off (raised) for > > \mframed... minimal example: > > > &

Re: [NTG-context] mframed, setupinteractions

2009-05-11 Thread Hans Hagen
Alan BRASLAU wrote: Thanks (\setupinteractions[option=max], \mframed[background=color])! Please note that the vertical spacing seems to be off (raised) for \mframed... minimal example: \starttext \startformula A = B + \mframed[frame=off,background=color,backgroundcolor=gray]{C} \stopformula

[NTG-context] mframed (mkiv) bug

2009-05-10 Thread Alan BRASLAU
\mframed misbehaves under mkiv (latest minimals) minimal example: \setupcolors[state=start] \starttext \mframed[frame=off,background=color,backgroundcolor=yellow]{k_2 \propto \langle N \rangle^{\alpha}} \stoptext -> framed text, white background (works correctly under mkii: no frame, yel

Re: [NTG-context] mframed setup

2006-01-12 Thread Taco Hoekwater
Aditya Mahajan wrote: What is the \setup... command that can be used to configure the frames typeset by \mframed? There is no such command, so just use the optional argument to \mframed, like: $$ \mframed[framecolor=red]{E=mc^2} $$ Cheers, Taco

[NTG-context] mframed setup

2006-01-12 Thread Aditya Mahajan
What is the \setup... command that can be used to configure the frames typeset by \mframed? Thanks, Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context

[NTG-context] Re: Some $\mframed{math}$ questions

2005-12-03 Thread Aditya Mahajan
<--- On Dec 2, Mojca Miklavec wrote ---> 1. What's the best way to frame a formula like here: \placeformula \startformula \mframed{x^2+y^2=z^2} \stopformula The problem is that: - formula number is shifted downwards in comparison to the formula without a number - I don't kn

Re: [NTG-context] Re: Some $\mframed{math}$ questions

2005-12-02 Thread Mojca Miklavec
Aditya Mahajan wrote: > Mojca Miklavec wrote: > > > 1. What's the best way to frame a formula like here: > > > > \placeformula > > \startformula > > \mframed{x^2+y^2=z^2} > > \stopformula > > > > The problem is that: > > -

[NTG-context] Re: Some $\mframed{math}$ questions

2005-12-02 Thread Aditya Mahajan
<--- On Dec 2, Mojca Miklavec wrote ---> 1. What's the best way to frame a formula like here: \placeformula \startformula \mframed{x^2+y^2=z^2} \stopformula The problem is that: - formula number is shifted downwards in comparison to the formula without a number - I don't kn

[NTG-context] Some $\mframed{math}$ questions

2005-12-02 Thread Mojca Miklavec
Hello, I would like to ask a couple of questions about frames and numbers in math formulas. 1. What's the best way to frame a formula like here: \placeformula \startformula \mframed{x^2+y^2=z^2} \stopformula The problem is that: - formula number is shifted downwards in comparison t