From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91595 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Force to display page number on the `makeup' page Date: Sun, 24 May 2015 21:34:57 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/mixed; boundary="===============0155689265==" X-Trace: ger.gmane.org 1432496594 18856 80.91.229.3 (24 May 2015 19:43:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 24 May 2015 19:43:14 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun May 24 21:43:01 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YwbnX-0004zr-KQ for gctc-ntg-context-518@m.gmane.org; Sun, 24 May 2015 21:42:59 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E2F1E10206 for ; Sun, 24 May 2015 21:42:58 +0200 (CEST) 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 6ncMqomuwSTQ for ; Sun, 24 May 2015 21:42:57 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 99AA91023A for ; Sun, 24 May 2015 21:42:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 426C010200 for ; Sun, 24 May 2015 21:42:06 +0200 (CEST) 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 QdIhBv4aFpZX for ; Sun, 24 May 2015 21:42:04 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 982B9101FA for ; Sun, 24 May 2015 21:35:04 +0200 (CEST) Original-Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t4OJZ37E027048 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 24 May 2015 21:35:03 +0200 Original-Received: by wizk4 with SMTP id k4so31008179wiz.1 for ; Sun, 24 May 2015 12:35:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=vOG1WH+qZXUt59wu01cKAD4y6XY01dUkPw1gMe69158=; b=QVeI8WREZOBvlPsiy8ufI5L0w0j0mdzMjOd9/8Jl7Wqvb6SQmpMd15bvZarA8nqz9R iCxn3cwxJf3rZvn3cv1Sd9X5apXmyC79LKp/3WuEx9w0YBSIu8CV3cRMPLFq+UzewXUQ CX2Qt6NstBQJN316mXp+7Um+IwCkVlexAaK3t9WJe1OUynAbviViTyYhRGgB3OwXMgDi 8TK/TJ8B+rWzo2XVjwD/I5u3fYAap+QhjI9wvhIVUEno/C6F1dMLAhKA8xgj2Ji4WLOt e0j72g3dUJ2HIf0HZRMcGKaq32hwOxP+OJWllGqNA4neDHd/1CTp7L38udYhVGrL1hT0 iikQ== X-Received: by 10.194.185.107 with SMTP id fb11mr33974036wjc.9.1432496103365; Sun, 24 May 2015 12:35:03 -0700 (PDT) Original-Received: from keima.localdomain (x2f331a2.dyn.telefonica.de. [2.243.49.162]) by mx.google.com with ESMTPSA id fm8sm8419497wib.9.2015.05.24.12.35.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 24 May 2015 12:35:02 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.2098) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::233; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03OvTz3A9 - d50ca2a2bf2a - 20150524 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::233 as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2a00:1450:400c:c05::233; envelope-from=; helo=mail-wi0-x233.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:91595 Archived-At: --===============0155689265== Content-Type: multipart/alternative; boundary="Apple-Mail=_F1C6D1F4-7B42-46EE-9E6F-85F5ED42BC65" --Apple-Mail=_F1C6D1F4-7B42-46EE-9E6F-85F5ED42BC65 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 24.05.2015 um 21:20 schrieb Alexander Shukaev : >=20 > Thanks, Wolfgang, that indeed does the trick. >=20 > A related question. I've noticed that global `whitespace' setup is = not recognized by `makeup' environment, i.e. >=20 > \setupwhitespace[line] >=20 > \definemakeup > [abstractpage] >=20 > \startabstractpagemakeup >=20 > % `whitespace' is definitely not `line'. >=20 > \stopabstractpagemakeup >=20 > The trivial and ugly solution is to >=20 > \definemakeup > [abstractpage] >=20 > \startabstractpagemakeup >=20 > \setupwhitespace[line] >=20 > % `whitespace' is definitely `line'. >=20 > \stopabstractpagemakeup >=20 > However, I would prefer >=20 > \setupmakeup[ > commands=3D{% > \setupwhitespace[line]% > }, > ] >=20 > but it has no effect too. I would like to know why and if there is a = alternative? >=20 > By the way, the similar setting >=20 > \setupmakeup[ > commands=3D{% > \setupinterlinespace[line=3D{4.2ex}]% > }, > ] >=20 > does have an effect. Once again, why? What's the difference in this = case? The makeup environment resets the global indentation and whitespace = settings. To apply your own setups for the makeup environment you can put them in = a setups environment and enable them. The commands key can=E2=80=99t be used for = this because its content is flushed before context resets the value and your = whitespace setting is never used. \definemakeup[abstractpage] \startsetups[makeup:abstractpage] \setupwhitespace[line] \stopsetups \setupmakeup[abstractpage][setups=3Dmakeup:abstractpage] \setupwhitespace[line] \starttext \input knuth \startmakeup[abstractpage] \input knuth \stopmakeup \stoptext Wolfgang --Apple-Mail=_F1C6D1F4-7B42-46EE-9E6F-85F5ED42BC65 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Am 24.05.2015 um 21:20 schrieb Alexander Shukaev <haroogan@gmail.com>:

Thanks, Wolfgang, that indeed does the = trick.

A related = question.  I've noticed that global `whitespace' setup is not = recognized by `makeup' environment, i.e.

\setupwhitespace[line]

\definemakeup
[abstractpage]

\startabstractpagemakeup

% `whitespace' is definitely = not `line'.

\stopabstractpagemakeup

The trivial and ugly solution is = to

\definemakeup
[abstractpage]

\startabstractpagemakeup

\setupwhitespace[line]

% = `whitespace' is definitely `line'.

\stopabstractpagemakeup

However, I would = prefer

\setupmakeup[
  = commands=3D{%
    = \setupwhitespace[line]%
  },
]

but it has no effect too.  I would like to know why and = if there is a alternative?

By the way, the similar setting

\setupmakeup[
  commands=3D{%
    = \setupinterlinespace[line=3D{4.2ex}]%
  = },
]

does have an effect.  Once again, = why?  What's the difference in this = case?

The makeup environment resets the global = indentation and whitespace settings.

To apply your own setups for the makeup = environment you can put them in a setups
environment and = enable them. The commands key can=E2=80=99t be used for this = because
its content is flushed before context resets the value = and your whitespace setting
is never used.

\definemakeup[abstractpage]

\startsetups[makeup:abstractpage]
  = \setupwhitespace[line]
\stopsetups

\setupmakeup[abstractpage][setups=3Dmakeup:abstractp= age]

\setupwhitespace[line]

\starttext

\input knuth

\startmakeup[abstractpage]
\input = knuth
\stopmakeup

\stoptext

Wolfgang

= --Apple-Mail=_F1C6D1F4-7B42-46EE-9E6F-85F5ED42BC65-- --===============0155689265== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0155689265==--