From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73029 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 12:04:18 +0100 Message-ID: <8867AC45-DBF8-4B29-BA36-DA1C1C234BD1@boede.nl> References: <1F0D4D53-C9C2-4315-8AD9-A962721E155C@boede.nl> 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-5--623408964 X-Trace: dough.gmane.org 1323428676 23009 80.91.229.12 (9 Dec 2011 11:04:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 9 Dec 2011 11:04:36 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 09 12:04:32 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 1RYyFj-0007Mn-5x for gctc-ntg-context-518@m.gmane.org; Fri, 09 Dec 2011 12:04:31 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 59689CB153; Fri, 9 Dec 2011 12:04:30 +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 tiefu2FuZQSr; Fri, 9 Dec 2011 12:04:24 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C7716CB14D; Fri, 9 Dec 2011 12:04:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DA2CBCB14D for ; Fri, 9 Dec 2011 12:04:22 +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 OZbe5DiRX5HM for ; Fri, 9 Dec 2011 12:04:19 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id E1ABFCB149 for ; Fri, 9 Dec 2011 12:04:19 +0100 (CET) Original-Received: from mars.digitpaint.nl (mars.digitpaint.nl [83.98.197.63]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pB9B4IK4025704 for ; Fri, 9 Dec 2011 12:04:19 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mars.digitpaint.nl (Postfix) with ESMTP id 231521A9D7B for ; Fri, 9 Dec 2011 12:04:18 +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 IYr0xgpQ6agR for ; Fri, 9 Dec 2011 12:04:18 +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 D7E511A9D41 for ; Fri, 9 Dec 2011 12:04:17 +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: 0xG6X4iFt - 2534b17c3cea - 20111209 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:73029 Archived-At: --Apple-Mail-5--623408964 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Mari, On 9 Dec 2011, at 11:00, Mari Voipio wrote: > On Fri, Dec 9, 2011 at 11:10, Willi Egger wrote: >> Here is what I interpreted from your mail. May be it answers the = first question. Using setups does normally help in these cases. >=20 > It does sort out the font problem - turns out I was almost there, > except that my TOC insisted on being in Arial (and *really* ugly as it > is set up for Candara). Your alternative sorts out that problem, I > tested with >=20 > \placecontent >=20 > \chapter{This is chapter 1} >=20 > \dorecurse{3} > {\input tufte \page} >=20 > \chapter{This is chapter 2} >=20 > \dorecurse{3} > {\input tufte \page} When i use the attached test-file, the TOC is in palatino. May be you = have to check, where the \setups is called. Before calling the setups = there must be a page break. >=20 >=20 > Even on yours the back cover ends up on the next-to-last page (the > last page being empty), so problem 2 persists. In a real pinch I can > probably fiddle with it in Acrobat (or pdfarrange or something). Yes it is. I tried to use \startstandardmakeup[page=3Dleft, = doublesided=3Dno] from which I would expect to give the desired result, = but it does not. So I am stuck also. --Apple-Mail-5--623408964 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] \startsubject[title=The content] \placecontent \stopsubject \page[right] \dorecurse{3} {\startsection[title=Section]\input tufte \stopsection\page} \startsection[title=Section]\input tufte \stopsection % \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=left,doublesided=no] \placelayer[Cover] \stopstandardmakeup \stoptext --Apple-Mail-5--623408964 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Willi >=20 >=20 > Thank you, >=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-5--623408964 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-5--623408964--