From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/65049 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Feature request: setuppapersize Date: Sat, 8 Jan 2011 18:45:43 -0500 (EST) Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1294534579 21907 80.91.229.12 (9 Jan 2011 00:56:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 9 Jan 2011 00:56:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 09 01:56:15 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PbjZu-0003wQ-2E for gctc-ntg-context-518@m.gmane.org; Sun, 09 Jan 2011 01:56:14 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CB4FACA9B9; Sun, 9 Jan 2011 01:56:09 +0100 (CET) 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 8XY+oTZlDx12; Sun, 9 Jan 2011 01:56:07 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 94CA2CAA3F; Sun, 9 Jan 2011 01:56:06 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DA3C4CAA3F for ; Sun, 9 Jan 2011 01:56:04 +0100 (CET) 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 ivpPLxviXqXp for ; Sun, 9 Jan 2011 01:55:54 +0100 (CET) Original-Received: from filter7-ams.mf.surf.net (filter7-ams.mf.surf.net [192.87.102.75]) by balder.ntg.nl (Postfix) with ESMTP id D9055CA9B9 for ; Sun, 9 Jan 2011 01:55:53 +0100 (CET) Original-Received: from 28dayslater.mr.itd.umich.edu (28dayslater.mr.itd.umich.edu [141.211.12.118]) by filter7-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p090tkF4030226 for ; Sun, 9 Jan 2011 01:55:52 +0100 Original-Received: FROM tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) By 28dayslater.mr.itd.umich.edu ID 4D28F739.57556.18637 ; 8 Jan 2011 18:46:01 EST Original-Received: FROM adi-netbook (bas3-montreal02-1096683238.dsl.bell.ca [65.94.14.230]) By tombraider.mr.itd.umich.edu ID 4D28F728.612F5.18547 ; Authuser adityam; 8 Jan 2011 18:45:44 EST User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.5 (Score 0, tokens from: ) X-CanIt-Geo: ip=141.211.12.118; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0DDRcTP0B - 2524b24e3085 - 20110109 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.75 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:65049 Archived-At: Hans, Since we have some leverage with backward compatibility in MkIV, can we make \setuppapersize (slightly) more intuitive. Normally, one would expect \setuppapersize[A5] to be equivalent to \setuppapersize[A5][A5] but currently it is equivalent to \setuppapersize[A5][A4] This is a bit confusing, and means that we always have to specify the printpaper size; even if it is equal to paper size. Can we modify the definition of \dodefinepapersize to change this behavior? \def\dodefinepapersize[#1][#2][#3]% {\ifsecondargument \doifsomething{#1} % to be sure {\doifassignmentelse{#2} {\getparameters [\??pp#1] % geen \c!scale, scheelt hash ruimte [\c!width=\@@ppwidth,\c!height=\@@ppheight,\c!offset=\@@ppoffset,#2]% %AM: Added these two lines \setvalue{\??pp:1:#1}{#1}% \setvalue{\??pp:2:#1}{#1}}% {\setvalue{\??pp:1:#1}{#2}% \setvalue{\??pp:2:#1}{#3}}}% (*) see below \else \getparameters[\??pp][#1]% \setuppapersize % hm. this will freeze ! \fi} Perhaps, in line (*), we should also check if #3 is something, otherwise set ??p:2:#1 to #2: \doifsomethingelse{#3} {\setvalue\??pp:2:#1}{#3}} {\setvalue\??pp:2:#1}{#2}} What do you think? Aditya ___________________________________________________________________________________ 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/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________