From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/339 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: ConTeXt: Math: \mframed in display mode Date: Sat, 27 Feb 1999 14:59:58 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <36D7FA5E.E531E681@wxs.nl> References: <14039.51781.90000.463259@PC709> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1035391201 23295 80.91.224.250 (23 Oct 2002 16:40:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:40:01 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:339 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:339 Taco Hoekwater wrote: > For Hans: You need to remove the \restoremathstyle from \normalstrut > redef to get this to work OK. How about this patch (core-rul.tex): \def\domframed[#1][#2]#3% {\begingroup \ifmmode \ifinner \let\mframedstyle\restoremathstyle \else \let\mframedstyle\displaystyle \fi \else \let\mframedstyle\restoremathstyle \fi #1\ifdone \def\normalstrut{$\mframedstyle\vphantom($}% \framed [\c!kaderoffset=\@@oioffset,\c!offset=\v!overlay,#2] {$\mframedstyle#3$}% \else \inframed [#2] {$\mframedstyle#3$}% \fi \endgroup} The next ones go ok then. $\mframed{\frac{a}{b} = c}$ $$\mframed{\frac{a}{b} = c}$$ $$\mframed{\displaystyle \frac{a}{b} = c}$$ $$\frac{a}{b} = c$$ For those unaware of \mframed, I added this one for Tobias some time ago. It is present in the latest contexts. The complication in these macro(s) lays in trying to find out the right math modes/styles. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | mail: pragma@wxs.nl ConTeXt and PPCHTeX site: www.ntg.nl/context -----------------------------------------------------------------