From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73025 Path: news.gmane.org!not-for-mail From: Mari Voipio Newsgroups: gmane.comp.tex.context Subject: Layers + simplefonts: Using different font in layers? Date: Fri, 9 Dec 2011 10:24:20 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1323419082 24642 80.91.229.12 (9 Dec 2011 08:24:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Dec 2011 08:24:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 09 09:24:38 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 1RYvkz-0000k4-Ho for gctc-ntg-context-518@m.gmane.org; Fri, 09 Dec 2011 09:24:37 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CF7D7CB14D; Fri, 9 Dec 2011 09:24:36 +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 0Ei4w26fWeMl; Fri, 9 Dec 2011 09:24:34 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1E749CB148; Fri, 9 Dec 2011 09:24:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D1CCBCB148 for ; Fri, 9 Dec 2011 09:24:32 +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 nc8KhUjID1cu for ; Fri, 9 Dec 2011 09:24:21 +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 6CEC3CB120 for ; Fri, 9 Dec 2011 09:24:21 +0100 (CET) Original-Received: from mail-lpp01m010-f41.google.com (mail-lpp01m010-f41.google.com [209.85.215.41]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pB98OKds010486 for ; Fri, 9 Dec 2011 09:24:20 +0100 Original-Received: by lahi5 with SMTP id i5so1392205lah.14 for ; Fri, 09 Dec 2011 00:24:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=fXcKcjnE5slbQkDoNetZ32uaWv+Idk9Zku16GA4kjjs=; b=AAfYR3PwWW3ECe+0YGyfbVE64ILs2LSNVe21it40zWIyHITB2VEudo8mfLIK6uv3CC NJpit7LG53qybau97jSkgqg4E6w2GlKeOlkGP0qwEcMCVtOO64PC4npqakMVaZs0DUIm 7Xa1TdOG4h474v9vcKg21CMXyRJOROBXIsiKM= Original-Received: by 10.152.132.39 with SMTP id or7mr4099912lab.14.1323419060231; Fri, 09 Dec 2011 00:24:20 -0800 (PST) Original-Received: by 10.152.146.101 with HTTP; Fri, 9 Dec 2011 00:24:20 -0800 (PST) X-Google-Sender-Auth: wzlm4CB2MfSFjfsV8DaYtfziNXo X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.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: 03G6Uoki8 - ebcc2a709786 - 20111209 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:73025 Archived-At: Hi! After a wee bit of struggle I've managed to get as far as to (re)creating front and back covers of a booklet as layers. They worked fine in separate files, but now I have to incorporate the layers into my main file and that turned out to be too complicated for my little brain. Thus I'd appreciate a bit of help... I'm using Windows 7 and SciTe and I just updated my ConTeXt to newest beta (and it works). Problem one: The text on the covers needs to be in Arial, but the contents should be in Candara. I can get this done in totally separate files with \usemodule[simplefonts] \setmainfont[arial] \usemodule[simplefonts] \setmainfont[candara] However, when I put the front cover before the main contents, I don't seem to be able to reset the font. The same goes for \setupinterlinespace, it is 1.8em on the cover and default in the contents. I'm not very familiar with the layers nor the font switching and this together makes it very difficult for me to figure out in what order my commands should be (and what they should be; doing a search on the wiki pages on "setmainfont" gives *no* results). So, can somebody provide me with a minimal example of a file that has a layer with text in one font (preferably using simplefonts) and a few pages of text in another font and then another layer as backcover in cover font? Problem two: Whatever I do, I can't get the final number of pages to be divisible by for (and in a way that the back cover ends up on the last page). I used to use the hack given at , but it doesn't work any more (hangs on \fi} / line 18); I think it still worked in June 2011, but not any more in August. So, how do I get my back cover to pop up on the last page of my booklet? (Problem three: Having stuff under back matter causes a few extra empty pages that I don't seem to be able to suppress with any combination of \page commands (last one I tried seems to be \page[right,quadruple]). However, this problem may go away if 1 & 2 get solved.) Thankful for any help, Mari ___________________________________________________________________________________ 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 ___________________________________________________________________________________