ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mari Voipio <mari.voipio@iki.fi>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Layers + simplefonts: Using different font in layers?
Date: Fri, 9 Dec 2011 10:24:20 +0200	[thread overview]
Message-ID: <CAGbDsP1jHvS=TtJ0t8EH=YQTP6E3K2z-y4TtqJZamUdkD42LFA@mail.gmail.com> (raw)

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
<http://wiki.contextgarden.net/Imposition#Getting_to_the_Back_Cover_of_a_Booklet>,
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
___________________________________________________________________________________


             reply	other threads:[~2011-12-09  8:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-09  8:24 Mari Voipio [this message]
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
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='CAGbDsP1jHvS=TtJ0t8EH=YQTP6E3K2z-y4TtqJZamUdkD42LFA@mail.gmail.com' \
    --to=mari.voipio@iki.fi \
    --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).