From: Hans Hagen <pragma@wxs.nl>
Subject: Re: ConTeXt: Math: \mframed in display mode
Date: Sat, 27 Feb 1999 14:59:58 +0100 [thread overview]
Message-ID: <36D7FA5E.E531E681@wxs.nl> (raw)
In-Reply-To: <14039.51781.90000.463259@PC709>
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
-----------------------------------------------------------------
prev parent reply other threads:[~1999-02-27 13:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-24 13:38 Tobias Burnus
1999-02-27 10:34 ` Taco Hoekwater
1999-02-27 13:59 ` Hans Hagen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=36D7FA5E.E531E681@wxs.nl \
--to=pragma@wxs.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).