From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20530 Path: news.gmane.org!not-for-mail From: Tobias Burnus Newsgroups: gmane.comp.tex.context Subject: Re: dvi paper-size Date: Sat, 28 May 2005 10:45:35 +0200 Message-ID: <42982FAF.8080203@physik.fu-berlin.de> References: <429777CA.5080708@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 1117269845 4732 80.91.229.2 (28 May 2005 08:44:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 May 2005 08:44:05 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat May 28 10:44:03 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 1Dbwur-00077S-3a for gctc-ntg-context-518@m.gmane.org; Sat, 28 May 2005 10:43:33 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 17876127BB; Sat, 28 May 2005 10:45: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 00363-05-3; Sat, 28 May 2005 10:45:45 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 285241279E; Sat, 28 May 2005 10:45:45 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A6C871279E for ; Sat, 28 May 2005 10:45:43 +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 00363-05-2 for ; Sat, 28 May 2005 10:45:42 +0200 (CEST) Original-Received: from zs04.physik.fu-berlin.de (zs04.physik.fu-berlin.de [160.45.35.155]) by ronja.ntg.nl (Postfix) with ESMTP id C952B12772 for ; Sat, 28 May 2005 10:45:40 +0200 (CEST) Original-Received: from ith.physik.fu-berlin.de ([160.45.32.115] helo=[127.0.0.1]) by zs04.physik.fu-berlin.de with esmtp (Exim 4.51) id 1Dbwwq-0006XE-Cb; Sat, 28 May 2005 10:45:38 +0200 User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050322) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: X-Scanned: No viruses found. X-Scan-Signature: 4518400744975524955a13067ce02f3a 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:20530 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20530 Hello, Peter M=FCnster wrote: >On Fri, 27 May 2005, Tobias Burnus wrote: > =20 >>Should be e.g. for "A4" \special{papersize=3D210mm,297mm} and for "A5" = >>\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 Ok, the following works: \special{papersize=3D\the\paperwidth,\the\paperheight} It puts (for \setuppapersize[letter][letter]) the following into the DVI = 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 for= =20 A5, 8.5in=D711in for letter etc.) would be probably better, but this work= s. >Yes, that's the problem. I tried >\special{papersize=3D\paperwidth,\paperheight} > =20 That expands to: papersize=3D\paperwidth ,\paperheight which dvips cannot digest. >and >\special{papersize=3D\PtToCm{\paperwidth},\PtToCm{\paperheight}} > =20 Whereas that expands to 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\endgrou= p [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 still something dvips cannot digest. I have to admit, I actually fail to expand \special{papersize=3D\PtToCm{\the\paperwidth},\PtToCm{\the\paperheight= }} correctly. It always ends up as \begingroup ... in the DVI file (i.e. as = above with \paperheight|weight replaced by its numerical value). Tobias