From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/107398 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: Re: \pagewidth undefined? Date: Wed, 20 May 2020 00:54:07 +0200 Message-ID: References: <81F96BC7-2DA2-4566-9544-D8E4BADD5A8D@rna.nl> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.14\)) Content-Type: multipart/mixed; boundary="===============3603742799962295509==" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="109032"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mailing list for ConTeXt users To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Wed May 20 00:54:33 2020 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jbB84-000SDk-Ls for gctc-ntg-context-518@m.gmane-mx.org; Wed, 20 May 2020 00:54:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 89E9B1842A2; Wed, 20 May 2020 00:54:11 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MU9feUGN_mOs; Wed, 20 May 2020 00:54:10 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 95AF71842BE; Wed, 20 May 2020 00:54:10 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 1F3571842BC for ; Wed, 20 May 2020 00:54:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id liYsGd98rNf7 for ; Wed, 20 May 2020 00:54:09 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=213.125.118.53; helo=mail.rna.nl; envelope-from=gerben.wierda@rna.nl; receiver= Original-Received: from mail.rna.nl (mail.rna.nl [213.125.118.53]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 2A47F1842A2 for ; Wed, 20 May 2020 00:54:09 +0200 (CEST) Original-Received: from hermione.rna.nl (hermione.rna.nl [192.168.2.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.rna.nl (Postfix) with ESMTPSA id C61183EC7D5C; Wed, 20 May 2020 00:54:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rna.nl; s=dkim_rsa2048; t=1589928847; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hLLq5+3ISIjfTOgcgoVPALnvbzBctOdRYDjkBPFb5wo=; b=IziFzca0Aj+betW3EP2VWSgB0iTcBkHj4GfPiRf79TeY6BBTbi2wHIXBD+c1uHIu/+eKxV g/nK4BpWQcFcy3m02rMrqLM+Xvfj2Nvc45M4Ykjw9KhxTHeL3Gxy5qN8nHc3JPQtL+mgJW YiwSRmlyabJ228IzV9yJ2uTs7VoNZeyS57kh8U9BhEFJb7YoJJkWXWl01ACEiKUHr0zXpJ 6MuMeD1AZgb/E7Rg2iVWl8HZe4lSbITp9I0JeyC6BlvMTQ6ig1zzbBaZjDDlh3zjUskeFC P1/jaOzhgQFyqOwEIejQp9saos4dunBSDoiGuRMMlAo35aP6KVhdIMYFn+zsfw== In-Reply-To: X-Mailer: Apple Mail (2.3445.104.14) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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.io gmane.comp.tex.context:107398 Archived-At: --===============3603742799962295509== Content-Type: multipart/alternative; boundary="Apple-Mail=_7FF110AE-5C7D-41C9-ACB7-2870F5898CF0" --Apple-Mail=_7FF110AE-5C7D-41C9-ACB7-2870F5898CF0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 19 May 2020, at 20:11, Hans Hagen wrote: >=20 > On 5/19/2020 5:37 PM, Wolfgang Schuster wrote: >> Gerben Wierda schrieb am 19.05.2020 um 13:42: >>> OK. I just noticed in lmtx documentation that \paperheight and = \paperwidth primitives have been removed, but there is no information = what rteplaces them. So, all the documentation that contains them has = been invalidated (e.g. examples in details.pdf) >> I can't find \pagewidth in the current versison of details.pdf. >> As Pablo wrote you can use \paperwidth (or \printpaperwidth) or one = of the following methods. >> %%%% begin example >> \setupexternalfigures[location=3Ddefault] >> \setuplayout[tight] >> \showframe >> \starttext >> \centerbox{\externalfigure[mill.png][width=3D\textwidth]} >> \page >> \centerbox{\externalfigure[mill.png][width=3D\paperwidth]} >> \page >> \centerbox{\externalfigure[mill.png][factor=3Dmax]} >> \page >> \centerbox{\externalfigure[mill.png][factor=3Dmin]} >> \stoptext >> %%%% end example >=20 > \pagewidth etc were low level engine primitives that were never meant = to be used directly (backend related, and even then very sensitive for = confusion); as Wolfgang indicated, these were never supposed to be used = directly Thanks all. I moved to this: \setuppapersize[A4] \setuplayout [page] [backspace=3D5mm, topspace=3D5mm] \setuplayout [page] and using \textwidth and \textheight. G >=20 > Hans >=20 > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl = | www.pragma-pod.nl = > ----------------------------------------------------------------- --Apple-Mail=_7FF110AE-5C7D-41C9-ACB7-2870F5898CF0 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
On = 19 May 2020, at 20:11, Hans Hagen <j.hagen@xs4all.nl> wrote:

On 5/19/2020 5:37 PM, Wolfgang = Schuster wrote:
Gerben Wierda schrieb am 19.05.2020 = um 13:42:
OK. I just = noticed in lmtx documentation that \paperheight and \paperwidth = primitives have been removed, but there is no information what rteplaces = them. So, all the documentation that contains them has been invalidated = (e.g. examples in details.pdf)
I can't find = \pagewidth in the current versison of details.pdf.
As = Pablo wrote you can use \paperwidth (or \printpaperwidth) or one of the = following methods.
%%%% begin example
\setupexternalfigures[location=3Ddefault]
\setuplayout[tight]
\showframe
\starttext
\centerbox{\externalfigure[mill.png][width=3D\textwidth]}
\page
\centerbox{\externalfigure[mill.png][width=3D\paperwidth]}
\page
\centerbox{\externalfigure[mill.png][factor=3Dmax]}
\page
\centerbox{\externalfigure[mill.png][factor=3Dmin]}
\stoptext
%%%% end example

\pagewidth etc were low level engine primitives that were = never meant to be used directly (backend related, and even then very = sensitive for confusion); as Wolfgang indicated, these were never = supposed to be used directly

Thanks all. I moved to this:

\setuppapersize[A4]
\setuplayout
  [page]
  [backspace=3D5mm,
  =  topspace=3D5mm]
\setuplayout [page]

and using \textwidth and = \textheight.

G


Hans

---------------------------------------------------------------= --
          &nb= sp;            = ;            &= nbsp;     Hans Hagen | PRAGMA ADE
          &nb= sp;  Ridderstraat 27 | 8061 GH Hasselt | The = Netherlands
      tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
---------------------------------------------------------------= --

= --Apple-Mail=_7FF110AE-5C7D-41C9-ACB7-2870F5898CF0-- --===============3603742799962295509== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============3603742799962295509==--