ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: beta/problem with layers
Date: Wed, 2 Feb 2011 10:07:42 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.01.1102021004040.7551@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <3B21D67B-85FF-4429-A093-629E95134B79@gmail.com>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1040 bytes --]

On Wed, 2 Feb 2011, Wolfgang Schuster wrote:

> Besides moving \setlayer after \starttext you can just load a font
> before the \setlayer settings, e.g.
>
> \setupbodyfont[modern]
> \definelayer[…]
> \setlayer[…]{…}
> \starttext
> …
> \stoptext

Perhaps a redirection like \setlayer[...]{\setups{layersetup}} might also 
work (untested).

> or you use \startproduct which is normally always written as first line
> and acts \starttext which preloads then the Latin Modern fonts, e.g.

There is no point in not loading the fonts in the begining if one would 
then have to come up with clever ways to force loading of a font. I hope 
that there is a more robust solution so that

\setuplayer[...]{...}

\starttext
...
\stoptext

just works.

> The bodymatter enviroment isn’t necessary here because it’s always enabled
> when you other sectionblockenvironment is used but it’s useful to have
> something which separates the preamble from the text.

One could also use \starttext ... \stoptext here.

Aditya

[-- Attachment #2: Type: text/plain, Size: 486 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
___________________________________________________________________________________

  reply	other threads:[~2011-02-02 15:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-01 10:43 Andreas Harder
2011-02-01 11:11 ` Wolfgang Schuster
2011-02-01 12:33   ` Andreas Harder
2011-02-02 10:24     ` Wolfgang Schuster
2011-02-02 15:07       ` Aditya Mahajan [this message]
2011-02-02 15:20         ` Hans Hagen
2011-02-02 16:46           ` Aditya Mahajan
2011-02-02 17:02             ` Hans Hagen
2011-02-02 17:13             ` Hans Hagen
2011-02-02 21:19         ` Wolfgang Schuster

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=alpine.LNX.2.01.1102021004040.7551@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --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).