From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85930 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Difficulties with \startformula Date: Tue, 14 Jan 2014 18:36:38 +0100 Message-ID: <52D575A6.5070004@wxs.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1389721005 15182 80.91.229.3 (14 Jan 2014 17:36:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jan 2014 17:36:45 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 14 18:36:54 2014 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 1W37uz-0006K4-OV for gctc-ntg-context-518@m.gmane.org; Tue, 14 Jan 2014 18:36:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DB0F8101DE; Tue, 14 Jan 2014 18:36:48 +0100 (CET) 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 0xH5qjrTUowu; Tue, 14 Jan 2014 18:36:47 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4B4D7101E2; Tue, 14 Jan 2014 18:36:47 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 54D21101E2 for ; Tue, 14 Jan 2014 18:36:45 +0100 (CET) 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 CQ2ggr02amyq for ; Tue, 14 Jan 2014 18:36:44 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 01ADE101DE for ; Tue, 14 Jan 2014 18:36:43 +0100 (CET) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s0EHahHM008685 for ; Tue, 14 Jan 2014 18:36:43 +0100 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.100.1.103; Original-Received: from [10.100.1.103] (unverified [10.100.1.103]) by pragma-net.nl (SurgeMail 6.3c2) with ESMTP id 5177-1713362 for ; Tue, 14 Jan 2014 18:36:42 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=15; city=Zwolle; latitude=52.5058; longitude=6.0858; http://maps.google.com/maps?q=52.5058,6.0858&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QLdRAHJU - 71ddd0df7464 - 20140114 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:85930 Archived-At: On 1/14/2014 12:13 AM, Elspeth McGullicuddy wrote: > Hi, > > 1- I put here a far too long example to show difficulties that I have > with formulas in conjunction with framed: > I haven't find a way to insert a formula (displaystyle, vertical > mode), at the beginning of a \framed. Here is a small example: \nopdfcompression \startTEXpage[offset=3cm] \hbox{$ x+y $} \stopTEXpage If you look in the pdf file you will see the following: /FontBBox [-1042 -3060 4082 3560] /Ascent 3560 /CapHeight 683 /Descent -3060 /ItalicAngle 0 /StemV 93 /XHeight 431 The less clever viewer can use that information for the selection dimensions. Acrobat instead uses the glyph properties. If you run instead \starttext \hbox{$$ x+y $$} \stoptext you will not get math at all because the $$ == an empty inline math so there a text font is used: /FontBBox [-422 -280 1394 1127] /Ascent 1127 /CapHeight 683 /Descent -280 /ItalicAngle 0 /StemV 91 /XHeight 431 In context, \hbox{\startformula x+y \stopformula} boils down to \hbox{\par $$ x+y $$ \par} plus some more so i decided to turn this into \hbox{\par \Ustartdisplaymath x+y \Ustopdisplaymath \par} Now, believe it it not, when I tested that one luatex crashed as we never thought about the fact that $$ is catched in the main loop and \Ustartdisplaymath falls through and creates havoc. So, after some debugging Luigi and I figured out that this was too messy to catch. Math magician Taco will fix it in luatex's parser part. So, be warned, don't this this trickery now. In the meantime, i fixed context to deal with such matters. Of course that bug doesn't relate to your observations. Hans ----------------------------------------------------------------- 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 | 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 ___________________________________________________________________________________