On Wednesday, 31 July 2013 at 08:48, Hans Hagen wrote:
On 7/31/2013 12:04 AM, Michael Murphy wrote:Hello all,I'm trying to typeset 'H' with a circumflex (or hat) in math mode, butthe result is rather ugly when not using latin-modern. I've tried toredefine the \hat macro to move the accent up a bit using \topaccent: isthis the best approach? Having to nest '$' does not seem right at all.(Also, for some reason although I find \mathhat in enco-ini.mkiv, when Itry to use it I get undefined control sequence.)Thanks,Michael\starttypescript [mathfont]\definetypeface [mathfont] [mm] [math] [palatino] [default][rscale=1.0]\stoptypescript\usetypescript[mathfont]\setupbodyfont[mathfont]\starttext$\hat{H}$\def\hat#1{\topaccent{3pt}{0}{90}{\textcircumflex}{$#1$}}$\hat{H}$\stoptext$\widehat{H}$-----------------------------------------------------------------Hans Hagen | PRAGMA ADERidderstraat 27 | 8061 GH Hasselt | The Netherlandstel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com-----------------------------------------------------------------___________________________________________________________________________________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-contextwebpage : http://www.pragma-ade.nl / http://tex.aanhet.netwiki : http://contextgarden.net___________________________________________________________________________________