From: Willi Egger <context@boede.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Layers + simplefonts: Using different font in layers?
Date: Fri, 9 Dec 2011 12:04:18 +0100 [thread overview]
Message-ID: <8867AC45-DBF8-4B29-BA36-DA1C1C234BD1@boede.nl> (raw)
In-Reply-To: <CAGbDsP1ACaM0NVruC77R4xritJLfZv6TptBBjashbfUZ+BAiXg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1241 bytes --]
Hi Mari,
On 9 Dec 2011, at 11:00, Mari Voipio wrote:
> On Fri, Dec 9, 2011 at 11:10, Willi Egger <context@boede.nl> wrote:
>> Here is what I interpreted from your mail. May be it answers the first question. Using setups does normally help in these cases.
>
> 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
>
> \placecontent
>
> \chapter{This is chapter 1}
>
> \dorecurse{3}
> {\input tufte \page}
>
> \chapter{This is chapter 2}
>
> \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.
>
>
> 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=left, doublesided=no] from which I would expect to give the desired result, but it does not. So I am stuck also.
[-- Attachment #2: test-simplefonts.tex --]
[-- Type: application/octet-stream, Size: 1534 bytes --]
% 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
[-- Attachment #3: Type: text/plain, Size: 561 bytes --]
Willi
>
>
> Thank you,
>
> 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
> ___________________________________________________________________________________
[-- Attachment #4: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-12-09 11:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-09 8:24 Mari Voipio
2011-12-09 9:01 ` Hans Hagen
2011-12-09 9:10 ` Willi Egger
2011-12-09 10:00 ` Mari Voipio
2011-12-09 11:04 ` Willi Egger [this message]
2011-12-09 13:54 ` Mari Voipio
2011-12-09 14:43 ` Willi Egger
2011-12-09 14:52 ` Wolfgang Schuster
2011-12-09 11:08 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8867AC45-DBF8-4B29-BA36-DA1C1C234BD1@boede.nl \
--to=context@boede.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).