From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83324 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context.devel,gmane.comp.tex.context Subject: Re: palatino at 10.5pt bold not found when using project structure w/ MkIV Date: Sat, 6 Jul 2013 08:11:52 +0200 Message-ID: <3E3C010F-F61D-4098-9F74-F486822BAB60@gmail.com> References: <8738rs8wi3.fsf@approx.mit.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1373091170 11147 80.91.229.3 (6 Jul 2013 06:12:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Jul 2013 06:12:50 +0000 (UTC) Cc: "dev-context@ntg.nl Context" , mailing list for ConTeXt users To: Sanjoy Mahajan Original-X-From: dev-context-bounces@ntg.nl Sat Jul 06 08:12:51 2013 Return-path: Envelope-to: gctcd-dev-context@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 1UvLjn-00079n-4c for gctcd-dev-context@m.gmane.org; Sat, 06 Jul 2013 08:12:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9DD1D101F6; Sat, 6 Jul 2013 08:12:50 +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 IEwHxr+e1Luy; Sat, 6 Jul 2013 08:12:49 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1DA31101E5; Sat, 6 Jul 2013 08:12:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2C4C5101E5 for ; Sat, 6 Jul 2013 08:12:47 +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 I90h2-yiLZHJ for ; Sat, 6 Jul 2013 08:12:46 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 4C3A2101E0 for ; Sat, 6 Jul 2013 08:12:46 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (localhost [127.0.0.1]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r666CjtN031591 for ; Sat, 6 Jul 2013 08:12:45 +0200 Original-Received: (from defang@localhost) by filter1-utr.mf.surf.net (CanIt-Domain-PRO/Streamed) id r666CBBO003853 for ; Sat, 6 Jul 2013 08:12:11 +0200 Original-Received: from mail-ea0-x22f.google.com (mail-ea0-x22f.google.com [2a00:1450:4013:c01::22f]) by filter1-utr-v6.mf.surf.net (envelope-sender ) (CanIt-Domain-PRO/Pre-stream) with ESMTP id r666C0S8031457; Sat, 6 Jul 2013 08:12:11 +0200 Original-Received: by mail-ea0-f175.google.com with SMTP id z7so1807225eaf.6 for ; Fri, 05 Jul 2013 23:12:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=NXtrH0Wb9IEIdhmcePTa4RySuSv2IhUvDoqgEFTsvRQ=; b=gz8Tj8B0NONgvuaBoMrdtUgq0QGuTDr/jj6fWo59b7DG1gY3+VYaam8Mrth5CRecxn fYDfM+b2c92sJNy/OXEg2JiomuLg3hz/gpowODHRs17YacpzirXWGIAch/24qmXsyQbz eX0d3ncTnHlCXWRS6qIwnW/PLpmd9Q1Bt5HGz4rHBJRBiyXdkuDgJzjgDz+wVe1fiEZb CI1HG0KTTPFPQ4+CfNLdamWNrgyMvsdeBY93MNBe7oHL0SqxgEqEY1YgSFFsVi/O52my seLA079U9q2UMqVZzHvm0YyU58fvwZDox8nZZp8iMGzru4zSHIF+j9ns1BKe1ibqIVeC 76Gw== X-Received: by 10.15.95.4 with SMTP id bc4mr15297593eeb.40.1373091120791; Fri, 05 Jul 2013 23:12:00 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbfb5a4.pool.mediaWays.net. [77.191.181.164]) by mx.google.com with ESMTPSA id n42sm20309747eeh.15.2013.07.05.23.11.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 05 Jul 2013 23:12:00 -0700 (PDT) In-Reply-To: <8738rs8wi3.fsf@approx.mit.edu> X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::22f; country=IE X-CanItPRO-Stream: uu:dev-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07JUScJtw - 0e7aa1f158a8 - 20130706 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-BeenThere: dev-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: "ConTeXt developers list. " List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-context-bounces@ntg.nl Original-Sender: dev-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context.devel:2247 gmane.comp.tex.context:83324 Archived-At: Am 06.07.2013 um 00:36 schrieb Sanjoy Mahajan : > From what I can tell, the bold font is not found if all of the following > are true: > > 1. using the Palatino typescript > 2. setting the body font to 10.5pt (but 11pt or 12pt works fine) > 3. using MkIV > 4. using components (project structure) > > Here's the minimal example (mytest.tex): > > ============================================================ > \startmode[ascomponent] > \startcomponent mytest > \stopmode > > \usetypescript[palatino][ec] > \setupbodyfont[palatino,10.5pt] > > \startmode[standalone] > \starttext > \stopmode > > {\bold hello} > > \startmode[standalone] > \stoptext > \stopmode > > \startmode[ascomponent] > \stopcomponent > \stopmode > ============================================================ > > Compile the two variants with: > > context --mode=ascomponent --result=mytest-ascomponent.pdf mytest.tex > context --mode=standalone --result=mytest-standalone.pdf mytest.tex > > mytest-standalone.pdf is fine (the "hello" is in bold), but > mytest-ascomponent.pdf has the "hello" in roman. > > The particular roman font in mytest-ascomponent.pdf is also funny: > > $ pdffonts mytest-ascomponent.pdf > name type emb sub uni object ID > ------------------------------------ ----------------- --- --- --- --------- > TZNKGE+TeXGyrePagellaMath-Regular CID Type 0C yes yes yes 18 0 > > Why is it the math font? > > (A slightly more complex example, using \project to include a project > file, which includes an environment file that asks for palatino, > produced the same problem. But the version above needs just one file, > mytest.tex, so for simplicity I am describing the problem using it.) > > What I think is happening is that, when running as a component, the > typescript loading happens too late (after the equivalent of > "\starttext"), and not everything gets set up properly. In support of > that idea, if I shift the two environment lines ("\usetypescript ...") > to just before the "{\bold hello}"---thus, after the "\starttext"---then > the standalone version gets the same problem ("hello" in roman). > > What puzzles me is that this problem shows up only with 10.5pt and using > palatino. If I just use 10.5pt (i.e. w/ modern), then there's no > problem. Or 11pt in Palatino is fine. There's also no problem using MkII. > > I tested with the context in vanilla TL2013 and in Norbert's latest > Debian packages--the problem happens in both. 1. Use the normal and not the developer list for such a question. 2. You can omit the \usetypescript line. 3. Move the \setupbodyfont setting *before* \startcomponent. 4. Add \definebodyfontenvironment[10.5pt] to your document. Wolfgang