From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/96077 Path: news.gmane.org!.POSTED!not-for-mail From: Newsgroups: gmane.comp.tex.context Subject: Re: Size of the last shipped page by Lua? Date: Thu, 8 Sep 2016 21:47:16 +0200 Message-ID: <57d1c040.452ec20a.17fef.4ed4@mx.google.com> References: <57d06cfd.87941c0a.f7a78.f54e@mx.google.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4881333837135995578==" X-Trace: blaine.gmane.org 1473364065 16684 195.159.176.226 (8 Sep 2016 19:47:45 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 8 Sep 2016 19:47:45 +0000 (UTC) To: Hans Hagen , "ntg-context@ntg.nl" Original-X-From: ntg-context-bounces@ntg.nl Thu Sep 08 21:47:40 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bi5IO-0003Nf-PA for gctc-ntg-context-518@m.gmane.org; Thu, 08 Sep 2016 21:47:36 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2C30E178A3; Thu, 8 Sep 2016 21:47:28 +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 yaR3195Hgmtq; Thu, 8 Sep 2016 21:47:27 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 78B36178B2; Thu, 8 Sep 2016 21:47:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id EA78E1789B for ; Thu, 8 Sep 2016 21:47:25 +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 fbwRXLTkhqMo for ; Thu, 8 Sep 2016 21:47:24 +0200 (CEST) Original-Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 0547917898 for ; Thu, 8 Sep 2016 21:47:14 +0200 (CEST) Original-Received: by mail-wm0-f43.google.com with SMTP id w12so108322725wmf.0 for ; Thu, 08 Sep 2016 12:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:mime-version:to:from:subject:date:importance:in-reply-to :references; bh=jA3q3xZjMJgsQHT60CqLsoAJv0cYJoith52UFd4qkyg=; b=i6OqR8Camx2U/HOqKL9LfXNSLRgHOCF2jlenZqrBGoAFFBH3Sa+pc8inhZ+q7iXGg5 wx4WOpww3Cci2bGdrH+MuD7NDKy4rejAi7Z7iMN1NhKJAAmoY/uirH7isqgcV50rCVCC JOGFKZLcDCU+HM7e2v0uVXZO2DSG+IOhokyz7AfJgTjx+0cb603uzOkeoqqnWC3qSfKI gOD3oMbQYABW3xhUBph73gPHK024l6sNcnm1LX+/S5//yjS/BPnNwAUZvOlSHUmN25Zs xgsAeuRkTWsVkZstfYslzeTlA3GK09lptJUnJp57q3v0KusNYrrqklToO0FjuC5NmKM8 gDPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:mime-version:to:from:subject:date :importance:in-reply-to:references; bh=jA3q3xZjMJgsQHT60CqLsoAJv0cYJoith52UFd4qkyg=; b=WQ9TpWucTd2otdTcMBuxTvdIKqqngefKTfLTAjj/PsA1jIe64m5eQtnsjhu0wlrefT rrJvKicFMj311k9wbe2gaPNAUZ2tZCO8B6F9k8TD1fbhA2E4vqB8GHwVSKmppeA9Xmim Drz15bn94iKu3ZeNsX2q7MAjhTxcmRZAY+yHpxa40CurEMsM2Al9VczUyfH0aiYcfaJm 2w1OYQT+gStqA13bhVyoZdJlGNGv+yhc/Kv5EydWRiqcEQJCPm4mKpmoVzy75WHE/f1V dkCmu3llHzxfGszp0YCZPzcbpl4/wZQ1NWE25NaGlb288LMcyH9H0sl5MSg2y4p/fymh YURw== X-Gm-Message-State: AE9vXwP4Kl4l5Nl4AEhTorLV8Hz9d98habzA2ytpRJDkZsXPSuLpGFrIhC9ycAw+YfOILw== X-Received: by 10.194.161.197 with SMTP id xu5mr1396539wjb.88.1473364033655; Thu, 08 Sep 2016 12:47:13 -0700 (PDT) Original-Received: from ?IPv6:2a01:cb00:822:c400:d901:975f:aa7f:a243? (2a01cb000822c400d901975faa7fa243.ipv6.abo.wanadoo.fr. [2a01:cb00:822:c400:d901:975f:aa7f:a243]) by smtp.gmail.com with ESMTPSA id t5sm9371032wjm.12.2016.09.08.12.47.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Sep 2016 12:47:12 -0700 (PDT) Importance: normal X-Priority: 3 In-Reply-To: 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:96077 Archived-At: --===============4881333837135995578== Content-Type: multipart/alternative; boundary="_7FD74E9C-F2FF-4F78-BB79-49935E58D4C1_" --_7FD74E9C-F2FF-4F78-BB79-49935E58D4C1_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" If by messing it=E2=80=99s meant modifying their values, I agree that=E2=80= =99s a bad idea=C2=A0=F0=9F=98=8A, the requirement is likely to read the va= lue only (at least this is my usage of these in shipouts =C2=AB=C2=A0after= =C2=A0=C2=BB callback). If these are not reliable, what=E2=80=99s the reliable way to get the page = width and height=C2=A0? Thanks Regards Joseph=20 De=C2=A0: Hans Hagen= --_7FD74E9C-F2FF-4F78-BB79-49935E58D4C1_ Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

If by messing it=E2=80=99s meant modif= ying their values, I agree that=E2=80=99s a bad idea 😊, the requirement is= likely to read the value only (at least this is my usage of these in shipo= uts =C2=AB after =C2=BB callback).

If these are not reliable, what=E2=80=99s the reliable way to get the = page width and height ?

 =

Thanks

Re= gards

 

Joseph

 

De : Hans Hagen<= /a>
Envoy=C3=A9 le :jeudi 8 septembre 2016 00:22
=C3= =80 :
ntg-context@ntg.nl=
Objet :Re: [NTG-context] Size of the last shipped page by L= ua?

 

On 9/7/2016 9:39 PM, josephcanedo@gmail.com wrote:

 

> There are dimensions relat= ed to this :

> 

> local paper_width =3D tex.getdimen('paperwidth')

> 

> local paper= _height =3D tex.getdimen('paperheight')

>&n= bsp;

> There is also :

> 

> tex.pageheight

<= p class=3DMsoNormal>> tex.pagewidth

 <= /o:p>

don't mess with these and don't rely on them<= /p>

 

> Not = sure these are always same. Hope this helps,

&= nbsp;

Hans

 = ;

-------------------------------------------= ----------------------

=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= Hans Hagen | PRAGMA ADE

=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Ridderstraat 2= 7 | 8061 GH Hasselt | The Netherlands

=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 tel: 038 477 53 69 | www.pragma-ade.nl | www= .pragma-pod.nl

------------------------------------= -----------------------------

_____________________= ______________________________________________________________

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/list= info/ntg-context

webpage=C2=A0 : http://www.pragma-= ade.nl / http://tex.aanhet.net

archive=C2=A0 : http= ://foundry.supelec.fr/projects/contextrev/

wiki=C2= =A0=C2=A0=C2=A0=C2=A0 : http://contextgarden.net

__= ___________________________________________________________________________= ______

 

= --_7FD74E9C-F2FF-4F78-BB79-49935E58D4C1_-- --===============4881333837135995578== 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= --===============4881333837135995578==--