From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: not able to change paper sizes
Date: Thu, 04 Feb 2016 19:54:14 +0100 [thread overview]
Message-ID: <56B39E56.2000805@gmail.com> (raw)
In-Reply-To: <56B39BCF.4030600@gmx.es>
[-- Attachment #1.1: Type: text/plain, Size: 796 bytes --]
> Pablo Rodriguez <mailto:oinos@gmx.es>
> 4. Februar 2016 um 19:43
>
> But I get two test2 on page 2:
>
> \definelayer[test1][x=.5\paperwidth, y=.5\paperheight, state=start]
> \setlayer[test1]{page1}
Set the layer content after \starttext or load a font before you set it,
otherwise context uses a monospace font as fallback.
> \definelayer[test2][x=.5\paperwidth, y=.5\paperheight, state=continue]
Remove "state=continue".
> \startsetups[testlayer]
> \setlayer[test2]{page2}
> \stopsetups
You have to include a check for the first page, possible are
\startsetups[testlayer]
\ifnum\rawcountervalue[userpage]=1\else
\setlayer[test2]{page2}
\fi
\stopsetups
or
\startsetups[testlayer]
\doifnot{\rawcountervalue[userpage]}{1}{\setlayer[test2]{page2}}
\stopsetups
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 2418 bytes --]
[-- Attachment #2: 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:[~2016-02-04 18:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-01 18:38 Pablo Rodriguez
2016-02-03 13:57 ` Hans Hagen
2016-02-04 16:19 ` Pablo Rodriguez
2016-02-04 16:39 ` Wolfgang Schuster
2016-02-04 17:08 ` Pablo Rodriguez
2016-02-04 18:03 ` Wolfgang Schuster
2016-02-04 18:43 ` Pablo Rodriguez
2016-02-04 18:54 ` Wolfgang Schuster [this message]
2016-02-04 19:10 ` Pablo Rodriguez
2016-02-04 19:36 ` Wolfgang Schuster
2016-02-04 20:31 ` Pablo Rodriguez
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=56B39E56.2000805@gmail.com \
--to=schuster.wolfgang@gmail.com \
--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).