From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47811 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \LaTeX Date: Thu, 26 Feb 2009 01:04:33 +0100 Message-ID: <49A5DC91.6000603@wxs.nl> References: <115224fb0902250549o46fccf3aqf144d7ad8752ee6@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1235608118 28875 80.91.229.12 (26 Feb 2009 00:28:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Feb 2009 00:28:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 26 01:29:53 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LcU7z-0003l1-LY for gctc-ntg-context-518@m.gmane.org; Thu, 26 Feb 2009 01:29:27 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 497831FB38; Thu, 26 Feb 2009 01:15:55 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22579-01; Thu, 26 Feb 2009 01:12:03 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C49EC1FB14; Thu, 26 Feb 2009 01:11:22 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 090231FA2B for ; Thu, 26 Feb 2009 01:10:02 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 22578-01 for ; Thu, 26 Feb 2009 01:09:03 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by ronja.ntg.nl (Postfix) with ESMTP id 8EDF91FB38 for ; Thu, 26 Feb 2009 01:06:46 +0100 (CET) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by filter1-ams.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1Q04Ydo021820 for ; Thu, 26 Feb 2009 01:06:20 +0100 Original-Received: from [10.100.8.10] (unverified [10.100.8.10]) by controller-1 (SurgeMail 3.9e) with ESMTP id 14562-1840426 for ; Thu, 26 Feb 2009 01:04:33 +0100 User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <115224fb0902250549o46fccf3aqf144d7ad8752ee6@mail.gmail.com> X-Originating-IP: 10.100.8.10 X-Authenticated-User: hagen@controller-1 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.247.100.17; country=NL; region=16; city=Dronten; latitude=52.5333; longitude=5.7167; http://maps.google.com/maps?q=52.5333,5.7167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 185297430 - c8f3b88c052a X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:47811 Archived-At: Wolfgang Schuster wrote: > Hi, > > I need the LaTeX logo in a document set with 8.5pt but with the last beta > the following message. > > ! LuaTeX error (arithmetic): divided by zero. > \actualshipout ... \box \postponedcontent \box 0}} > \else \message {[\ifarrang... > \myshipout ... \fi {\thisisrealpage \realfolio #1} > \gotonextrealpage \aftersh... > \dofinaloutput ...agebody #1#2\setpagecounters }}} > \fi \the \everyaftershipou... > \finaloutput ...EAEAEA \dofinaloutput \fi \fi #1#2 > \resetselectiepagina \incr... > \sidefloatoutput ...e \else \finalsidefloatoutput > \global \sidefloatvsize \n... > ...\fi \else \the \defaultstreamoutput > \fi > .... > l.5 \stoptext > > The example file is: unrelated to the logo ... any \txx does it patch font-ini.mkiv .. (i have no time now to se why the other code fails) \def\dododefinebodyfontenvironment[#1][#2][#3]% size class settings {\@@beginfontdef % \s!text goes wrong in testing because the 12pt alternative will called when typesetting the test (or so) \ifcsname\??ft#2#1\c!em\endcsname % we test for em as we assume it to be set \else \def\docommand##1% % fails: \def\checkbodyfontenvironment[#1]{! #1 ! \definebodyfontenvironment[\fontclass][#1][]} \setupbodyfont[8.5pt] % {\normalizebodyfontsize\csname\??ft\s!default##1\endcsname\dimexpr#1\relax\to\tempbodyfontsize % \letvalue{\??ft#2#1##1}\tempbodyfontsize}% {\scratchdimen\csname\??ft\s!default##1\endcsname\dimexpr#1\relax \normalizebodyfontsize\scratchdimen\to\tempbodyfontsize \letvalue{\??ft#2#1##1}\tempbodyfontsize}% \processcommacommand[\fontsizelist]\docommand \copyparameters [\??ft#2#1][\??ft\s!default] [\c!interlinespace,\c!em]% \fi \getparameters[\??ft#2#1][#3]% \@@endfontdef % new code, see remark \ifloadingfonts % only runtime \else\ifcsname\@size@#1\endcsname % only once \else % prevent loop (hence \empty) \letvalue{\@size@#1}\empty \defineunknownfont{#1}% \fi\fi % so far \setvalue{\@size@#1}{\docompletefontswitch[#1]}} ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________