From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82258 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: Re: extra line after switchtobodyfont Date: Thu, 2 May 2013 12:09:47 +0000 Message-ID: <0275CB18-F5E4-47F7-85CF-B03DCFD4EF90@uva.nl> References: <6E8C04A1-A021-43C9-AF3C-708F3F46A378@uva.nl> <20130502104810.GE663@homerow> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1367496619 28528 80.91.229.3 (2 May 2013 12:10:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 2 May 2013 12:10:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 02 14:10:19 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UXsL0-0001Iw-0s for gctc-ntg-context-518@m.gmane.org; Thu, 02 May 2013 14:10:14 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D0C71101EB; Thu, 2 May 2013 14:10:10 +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 TGhnx-vi7YRq; Thu, 2 May 2013 14:10:05 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1573E101E5; Thu, 2 May 2013 14:10:05 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 11223101E5 for ; Thu, 2 May 2013 14:10:03 +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 B7oDL7dlX8Rc for ; Thu, 2 May 2013 14:09:57 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id CFE9E101E4 for ; Thu, 2 May 2013 14:09:47 +0200 (CEST) Original-Received: from HUB01.uva.nl (hub01.uva.nl [146.50.108.230]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r42C9ks1012378 for ; Thu, 2 May 2013 14:09:47 +0200 Original-Received: from MBX02.uva.nl ([169.254.2.121]) by HUB01.uva.nl ([2002:9232:6737::9232:6737]) with mapi id 14.02.0342.003; Thu, 2 May 2013 14:09:46 +0200 Thread-Topic: [NTG-context] extra line after switchtobodyfont Thread-Index: AQHORy3v4ongLincgEieeILJ5lfyRA== In-Reply-To: <20130502104810.GE663@homerow> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.95.102.36] Content-ID: <798ED4C0F856B142BEDF020A6072A617@uva.nl> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.230; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RJv09LTy - a952359147b9 - 20130502 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 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:82258 Archived-At: Indeed, adding \usetypescriptfile[euler]\usetypescript[euler] before \start= text makes the extra vertical spacing go away in a simple test file. But th= at doesn't solve my problem, because I am typesetting xml data wherein a fo= nt change can be dictated from the inside. See the example code (supporting= modules not included): \startbuffer[font] First line.
Font switch here.
Last line.
\stopbuffer \xmlprocessbuffer{root}{font}{} There is no way to have the typescript loaded before the \starttext, becaus= e it is not known what fonts will be called up by the xml. And loading it f= rom within the data processed is too late. I therefore conclude that this typescript problem should be fundamentally s= olved, instead of resorting to a subterfuge as loading things beforehand to= avoid - what seems to me - coding mistakes. Hans van der Meer On 2 May 2013, at 12:48 PM, Marco Patzer wrote: > On 2013=9605=9602 Meer, H. van der wrote: > = >> A call to \switchtobodyfont introduces extra vertical spacing as can be = seen in the example. >> Is this intentional or is it something like a % missing somewhere in a m= acro? > = > Loading the typescript in the setup area should get rid of the > space. > = > See http://www.ntg.nl/pipermail/ntg-context/2013/072892.html > = > Marco > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________