From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73027 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: Layers + simplefonts: Using different font in layers? Date: Fri, 9 Dec 2011 10:10:50 +0100 Message-ID: <1F0D4D53-C9C2-4315-8AD9-A962721E155C@boede.nl> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/mixed; boundary=Apple-Mail-1--630216249 X-Trace: dough.gmane.org 1323421864 9835 80.91.229.12 (9 Dec 2011 09:11:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Dec 2011 09:11:04 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 09 10:11:00 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 1RYwTs-0007hb-B7 for gctc-ntg-context-518@m.gmane.org; Fri, 09 Dec 2011 10:11:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 966DACB151; Fri, 9 Dec 2011 10:10:59 +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 0Z6BvryJ7J-9; Fri, 9 Dec 2011 10:10:56 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B9B39CB149; Fri, 9 Dec 2011 10:10:56 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0026DCB149 for ; Fri, 9 Dec 2011 10:10:56 +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 Ofi-pSLXuVnP for ; Fri, 9 Dec 2011 10:10:53 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 654AACB120 for ; Fri, 9 Dec 2011 10:10:53 +0100 (CET) Original-Received: from mars.digitpaint.nl (mars.digitpaint.nl [83.98.197.63]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pB99ApGB021838 for ; Fri, 9 Dec 2011 10:10:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mars.digitpaint.nl (Postfix) with ESMTP id 17AB71A9656 for ; Fri, 9 Dec 2011 10:10:51 +0100 (CET) Original-Received: from mars.digitpaint.nl ([127.0.0.1]) by localhost (mail.digitpaint.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id wlqZmROc1WxU for ; Fri, 9 Dec 2011 10:10:51 +0100 (CET) Original-Received: from willis-computer.fritz.box (a83-161-249-79.adsl.xs4all.nl [83.161.249.79]) by mars.digitpaint.nl (Postfix) with ESMTPA id C91271A888C for ; Fri, 9 Dec 2011 10:10:50 +0100 (CET) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.98.197.63; country=NL; latitude=52.5000; longitude=5.7500; http://maps.google.com/maps?q=52.5000,5.7500&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05G6VaPVS - 40becb7c329a - 20111209 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:73027 Archived-At: --Apple-Mail-1--630216249 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Mari, hm, although the master has given his answer already ... Here is what I interpreted from your mail. May be it answers the first = question. Using setups does normally help in these cases. Making the number of pages divisible by four. quadruple works with = arranging. So probably you must insert the number of pages needed = manually? I hope this helps you going! Willi --Apple-Mail-1--630216249 Content-Disposition: attachment; filename=test-simplefonts.tex Content-Type: application/octet-stream; x-unix-mode=0644; name="test-simplefonts.tex" Content-Transfer-Encoding: 7bit % Context file % Filename: test-simplefonts.tex % % 09-12-2011 % Copyright (c) 2011 BOEDE. All rights reserved. % % \nopdfcompression % \enabletrackers[context.trace] % \enabletrackers[system.jobfiles] \usemodule[simplefonts] \setmainfont[arial] \setuplayout [topspace=2.5cm, backspace=1.5cm, header=0pt, footer=1.5\bodyfontsize, height=middle, width=middle] \mainlanguage[nl] \setuppagenumbering[location={footer,right},alternative=doublesided] \definelayer[Cover][width=\paperwidth,height=\paperheight] \startsetups Cover:setups \setmainfont[arial] \stopsetups \startsetups[Main] \setmainfont[palatino] \stopsetups %\showframe \starttext \setlayerframed [Cover] [x=-\marginwidth,y=-\topspace] [setups=Cover:setups,width=\paperwidth,height=\paperheight,frame=off] {\godown[.3\textheight] This is the Front Cover\vfill} \startstandardmakeup[page=yes,doublesided=yes] \placelayer[Cover] \stopstandardmakeup \page[right] \setups[Main] \dorecurse{3} {\input tufte \page} % \page[left] % \page[empty] \setups[Cover] \setlayerframed [Cover] [x=-\marginwidth,y=-\topspace] [setups=Cover:setups,width=\paperwidth,height=\paperheight,frame=off] {\godown[.3\textheight] This is the Back Cover\vfill} \startstandardmakeup[page=no,doublesided=no] \placelayer[Cover] \stopstandardmakeup \stoptext --Apple-Mail-1--630216249 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 9 Dec 2011, at 09:24, Mari Voipio wrote: > Hi! >=20 > 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... >=20 > I'm using Windows 7 and SciTe and I just updated my ConTeXt to newest > beta (and it works). >=20 >=20 > 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 >=20 >=20 > \usemodule[simplefonts] > \setmainfont[arial] >=20 > \usemodule[simplefonts] > \setmainfont[candara] >=20 >=20 > 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). >=20 >=20 > 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? >=20 >=20 >=20 > 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. >=20 >=20 > So, how do I get my back cover to pop up on the last page of my = booklet? >=20 >=20 > (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.) >=20 >=20 >=20 > Thankful for any help, >=20 > Mari > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail-1--630216249 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --Apple-Mail-1--630216249--