From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65766 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: beta/problem with layers Date: Wed, 2 Feb 2011 11:24:08 +0100 Message-ID: <3B21D67B-85FF-4429-A093-629E95134B79@gmail.com> References: <02031FE2-9F36-4EB5-94D7-69CC5A33907B@uni-koblenz.de> <81D3AF1B-699C-46B5-A618-714AF2D7B90E@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1296642287 21660 80.91.229.12 (2 Feb 2011 10:24:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Feb 2011 10:24:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Feb 02 11:24:43 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PkZtA-0005gY-F6 for gctc-ntg-context-518@m.gmane.org; Wed, 02 Feb 2011 11:24:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B0E64CAA6F; Wed, 2 Feb 2011 11:24:39 +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 jtLLbb7vK8Py; Wed, 2 Feb 2011 11:24:36 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 46901CAA62; Wed, 2 Feb 2011 11:24:36 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 25837CAA62 for ; Wed, 2 Feb 2011 11:24:35 +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 3dn5jksb-8Kk for ; Wed, 2 Feb 2011 11:24:33 +0100 (CET) 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 15CBBCAA5D for ; Wed, 2 Feb 2011 11:24:33 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p12AOWci024339 for ; Wed, 2 Feb 2011 11:24:32 +0100 Original-Received: by fxm12 with SMTP id 12so9056154fxm.14 for ; Wed, 02 Feb 2011 02:24:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id:references:to :x-mailer; bh=OcXyc3r2W9IT72DutwgdtXaBOGzripN1AUahTTo+Y3k=; b=XphaHeyBxA9wNRMKSEG9EAIuSpnwHoaxASjgY915d+BNb5hYh+UIpygjRdOmuKY9N6 k3vrWk2vBC5dvqz6L3l4vbjEJgmCYpHYrgRz4GIgpp4kJHGgi1MLpzNxvR/5Cu2B1nGT pUklo71jRgOYnuN+Ne7wrLp8sF/4GNw9P6oZo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=cmpE9P3uIntOyF/Q+jPa7V+w3bztIIEi+e/xIWowY5FoL2gM+rtITyhrcFXY+fgCxY sAowtnWa9fBzTJhwU2dxbteTdFu/wGcbkWyRHvCLZRePDhDVD4J8s8sbR9M/Gib/sZvW ny8P7VUJxj0EA/4yvb+7KFm6HMROTzDmDldH0= Original-Received: by 10.223.103.5 with SMTP id i5mr8684161fao.38.1296642272037; Wed, 02 Feb 2011 02:24:32 -0800 (PST) Original-Received: from [192.168.2.23] (p5B294711.dip.t-dialin.net [91.41.71.17]) by mx.google.com with ESMTPS id f24sm8254399fak.24.2011.02.02.02.24.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 02 Feb 2011 02:24:30 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03E2WowV5 - 637cd0ad1d10 - 20110202 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:65766 Archived-At: Am 01.02.2011 um 13:33 schrieb Andreas Harder: > Am 01.02.2011 um 12:11 schrieb Wolfgang Schuster: > = >> Am 01.02.2011 um 11:43 schrieb Andreas Harder: >> = >>> Hi, >>> = >>> it seems there go something wrong with layers. >> = >> With the last beta context postpones font loading till \starttext. >> = >> As there is no font loaded the layer content is not visible, >> move \starttext at the begin of the file and you can see the >> layer text. > = > Thanks Wolfgang, I forgot about that. Even though it=92s not so obvious because other commands like \setupheadert= exts don=92t have this problem, for all the curious people here is a small examp= le where you can see the problem in another context. \starttext \tt\setbox0=3D\hbox{boxed text}\ss unboxed text \box0 \stoptext You would now expect both texts are printed sans serif but the first was saved in a box and use not the font which was active when you stored it in the box, the same happens with \setlayer because the commands stores the content too in a \hbox and since there was no font available when you put it in the box nothing is shown. Besides moving \setlayer after \starttext you can just load a font before the \setlayer settings, e.g. \setupbodyfont[modern] \definelayer[=85] \setlayer[=85]{=85} \starttext =85 \stoptext or you use \startproduct which is normally always written as first line and acts \starttext which preloads then the Latin Modern fonts, e.g. \startproduct \definelayer[=85] \setlayer[=85]{=85} \startbodymatter =85 \stopbodymatter \stopproduct The bodymatter enviroment isn=92t necessary here because it=92s always enab= led when you other sectionblockenvironment is used but it=92s useful to have something which separates the preamble from the text. Wolfgang ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________