From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83586 Path: news.gmane.org!not-for-mail From: Michael Murphy Newsgroups: gmane.comp.tex.context Subject: Re: Math accents set too close to capital Date: Wed, 31 Jul 2013 11:26:25 +0100 Message-ID: <3AE7601483CC417482A8D1B315C39D13@gmail.com> References: <4BE8266A-DC19-4603-B639-DB1932B6AE14@gmail.com> <51F8C13D.8010308@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1090187160==" X-Trace: ger.gmane.org 1375266419 14188 80.91.229.3 (31 Jul 2013 10:26:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 31 Jul 2013 10:26:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 31 12:27:02 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V4TcT-0002wh-Tq for gctc-ntg-context-518@m.gmane.org; Wed, 31 Jul 2013 12:27:01 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 724F8101E8; Wed, 31 Jul 2013 12:26:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id P9XUGT9cR7fM; Wed, 31 Jul 2013 12:26:20 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 005EE101E5; Wed, 31 Jul 2013 12:26:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id ED653101E5 for ; Wed, 31 Jul 2013 12:26:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id cSmRdna4Xf52 for ; Wed, 31 Jul 2013 12:25:58 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id D308C101E4 for ; Wed, 31 Jul 2013 12:25:58 +0200 (CEST) Original-Received: from mail-wi0-x234.google.com (mail-wi0-x234.google.com [IPv6:2a00:1450:400c:c05::234]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r6VAQRIq022312 for ; Wed, 31 Jul 2013 12:26:27 +0200 Original-Received: by mail-wi0-f180.google.com with SMTP id f14so461879wiw.7 for ; Wed, 31 Jul 2013 03:26:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type; bh=ZyILVHQshGUF8AmgF1hRqZSx0+AHtTl6OjExqP8XMig=; b=IwOLrcE0htjvdyJ+gxyD6kab0lWaVC1XJOeUGMRHAqdQzAmlaO5iUprPeWv1E6JeeL eQQN9Bhar1oEADboGm5PURfdtoBoE7rYHsVSclLmRrEk5ZPoXu+PP1QH7gxdeG0ciEuf afztuiqIs5pXR37Pzcn/+dkc1sXEPjQXVBzvhv0fE9wZV2DOJ7cijJwkdmA61FqS03fH 8/OVaq81XtAzT5UEmoHVukWRmNIfFUDXq9LAcAVMrBmHFERG/8xRGnYQPkNlxepJf1by eU31jidJk7R+XtLaLSb/YtP4SvhsFM7wXZqoIqq2YvviSp91/IGAava/kQi9DB1iKhiE dk4Q== X-Received: by 10.194.176.74 with SMTP id cg10mr477161wjc.75.1375266387519; Wed, 31 Jul 2013 03:26:27 -0700 (PDT) Original-Received: from [10.5.0.52] (mail01.innoviatech.com. [212.44.26.228]) by mx.google.com with ESMTPSA id hb2sm34246346wib.0.2013.07.31.03.26.26 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 31 Jul 2013 03:26:27 -0700 (PDT) In-Reply-To: <51F8C13D.8010308@wxs.nl> X-Mailer: sparrow 1.6.4 (build 1178) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::234; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01K6Wqr8M - ba4bff356b1a - 20130731 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83586 Archived-At: --===============1090187160== Content-Type: multipart/alternative; boundary="51f8e651_66334873_abef" --51f8e651_66334873_abef Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Hans, Thanks for the response. This is sort of what I wanted, except the \widehat is, well, quite wide. So I hacked it around a bit to put the \widehat from a capital 'I' on top of a capital 'H'. In case it happens to be helpful, the final macro was \def\hhat{H\kern-0.61em\widehat{\phantom{I}}\kern0.178em} If I really cared, I wouldn't hard-code those numbers, but since they are in em I'm not really too worried. -- Michael Murphy murphy.md@gmail.com 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, but > > the result is rather ugly when not using latin-modern. I've tried to > > redefine the \hat macro to move the accent up a bit using \topaccent: is > > this 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 I > > try 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 ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com (http://www.pragma-ade.com) > | www.pragma-pod.nl (http://www.pragma-pod.nl) > ----------------------------------------------------------------- > ___________________________________________________________________________________ > 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://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___________________________________________________________________________________ > > --51f8e651_66334873_abef Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi Hans,

Thanks for the response. This is sort of = what I wanted, except the =5Cwidehat is, well, quite wide. So I hacked it= around a bit to put the =5Cwidehat from a capital 'I' on top of a capita= l 'H'. In case it happens to be helpful, the final macro was
=5Cdef=5Chhat=7BH=5Ckern-0.61em=5Cwidehat=7B=5Cphantom=7BI=7D= =7D=5Ckern0.178em=7D

If I really cared, I wouldn= 't hard-code those numbers, but since they are in em I'm not really too w= orried.

-- 
Michael Murph= y
murphy.md=40gmail.com

=20

On Wednesday, 31 July = 2013 at 08:48, Hans Hagen wrote:

On 7/31/2013 12:04 AM, Michael M= urphy wrote:
Hello all,

I'm trying to typeset 'H' with a circumflex (or hat)= in math mode, but
the result is rather ugly when not using lat= in-modern. I've tried to
redefine the =5Chat macro to move the = accent up a bit using =5Ctopaccent: is
this the best approach=3F= Having to nest '=24' does not seem right at all.
(Also, for so= me reason although I find =5Cmathhat in enco-ini.mkiv, when I
t= ry to use it I get undefined control sequence.)

= Thanks,
Michael

=5Cstarttypescript =5B= mathfont=5D
=5Cdefinetypeface =5Bmathfont=5D =5Bmm=5D =5Bmat= h=5D =5Bpalatino=5D =5Bdefault=5D
=5Brscale=3D1.0=5D
=5Cstoptypescript
=5Cusetypescript=5Bmathfont=5D
=5C= setupbodyfont=5Bmathfont=5D

=5Cstarttext

=24=5Chat=7BH=7D=24

=5Cdef=5Ch= at=231=7B=5Ctopaccent=7B3pt=7D=7B0=7D=7B90=7D=7B=5Ctextcircumflex=7D=7B=24= =231=24=7D=7D

=24=5Chat=7BH=7D=24

=
=5Cstoptext

=24=5C= widehat=7BH=7D=24

------------------------------= -----------------------------------
= Hans Hagen =7C PRAGMA ADE
Ridder= straat 27 =7C 8061 GH Hasselt =7C The Netherlands
tel: 038= 477 53 69 =7C voip: 087 875 68 74 =7C www.pragma-ade.com
-------------------------------------------------------= ----------
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
If your question = is of interest to others as well, please add an entry to the Wiki=21

maillist : ntg-context=40ntg.nl / http://www.ntg.nl/mailman/li= stinfo/ntg-context
=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=
=20 =20 =20 =20 =20

--51f8e651_66334873_abef-- --===============1090187160== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1090187160==--