From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20532 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: dvi paper-size Date: Sat, 28 May 2005 11:37:22 +0200 Message-ID: <42983BD2.5080301@wxs.nl> References: <429777CA.5080708@physik.fu-berlin.de> <42982FAF.8080203@physik.fu-berlin.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1117272995 10485 80.91.229.2 (28 May 2005 09:36:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 May 2005 09:36:35 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat May 28 11:36:32 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dbxju-0001jD-FP for gctc-ntg-context-518@m.gmane.org; Sat, 28 May 2005 11:36:18 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2E43F127BB; Sat, 28 May 2005 11:38:35 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00885-06; Sat, 28 May 2005 11:38:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6E976127B2; Sat, 28 May 2005 11:36:50 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3C5BF127B2 for ; Sat, 28 May 2005 11:36:49 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00815-05 for ; Sat, 28 May 2005 11:36:48 +0200 (CEST) Original-Received: from mailrelay01.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 36A9B127A0 for ; Sat, 28 May 2005 11:36:48 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay01.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j4S9ajPY004095 for ; Sat, 28 May 2005 11:36:45 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id C15F11FB94; Sat, 28 May 2005 11:08:03 +0200 (CEST) Original-Received: from [10.100.1.53] (unknown [10.100.1.53]) by server-1.pragma-net.nl (Postfix) with ESMTP id 1C75618EDF for ; Sat, 28 May 2005 09:08:02 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <42982FAF.8080203@physik.fu-berlin.de> X-Virus-Scanned: ClamAV version 0.85.1, clamav-milter version 0.85 on mailrelay01 X-Virus-Status: Clean X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20532 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20532 Tobias Burnus wrote: > Hello, >=20 > Peter M=FCnster wrote: >=20 >> On Fri, 27 May 2005, Tobias Burnus wrote: >> =20 >> >>> Should be e.g. for "A4" \special{papersize=3D210mm,297mm} and for "A5= "=20 >>> \special{papersize=3D148mm,210mm}. >>> If I add this, it actually seems to work here. I failed to create=20 >>> something which obtains the papersize automatically. >>> =20 >=20 > Ok, the following works: > \special{papersize=3D\the\paperwidth,\the\paperheight} >=20 > It puts (for \setuppapersize[letter][letter]) the following into the DV= I=20 > file (dvips -d3 test2.dvi 2>&1 |grep special): > papersize=3D614.295pt,794.96999pt which gv shows as letter. > Having the right unit (as defined in page-lay.tex, i.e. 148mm=D7210mm f= or=20 > A5, 8.5in=D711in for letter etc.) would be probably better, but this wo= rks. >=20 >> Yes, that's the problem. I tried >> \special{papersize=3D\paperwidth,\paperheight} >> =20 >=20 > That expands to: > papersize=3D\paperwidth ,\paperheight > which dvips cannot digest. >=20 >> and >> \special{papersize=3D\PtToCm{\paperwidth},\PtToCm{\paperheight}} >> =20 >=20 > Whereas that expands to >=20 > papersize=3D\begingroup \scratchdimen \paperwidth \relax \scratchdimen=20 > 0.0351459804\scratchdimen 0.0cm\endgroup ,\begingroup \scratchdimen=20 > \paperheight \relax \scratchdimen 0.0351459804\scratchdimen 0.0cm\endgr= oup > [1Processing special: papersize=3D\begingroup \scratchdimen=20 > \paperwidth \relax \scratchdimen 0.0351459804\scratchdimen=20 > 0.0cm\endgroup ,\begingroup \scratchdimen \paperheight \relax=20 > \scratchdimen 0.0351459804\scratchdimen 0.0cm\endgroup >=20 > still something dvips cannot digest. >=20 > I have to admit, I actually fail to expand > \special{papersize=3D\PtToCm{\the\paperwidth},\PtToCm{\the\paperheigh= t}} > correctly. It always ends up as \begingroup ... in the DVI file (i.e. a= s=20 > above with \paperheight|weight replaced by its numerical value). how about adding something to spec-tr: \definespecial\dosetuppaper#1#2#3% {\special{papersize=3D#2,#3}} paper size is already supported in the other backends for ages -) is this special official? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------