From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/77619 Path: news.gmane.org!not-for-mail From: Reviczky Adam Newsgroups: gmane.comp.tex.context Subject: fit text to page Date: Fri, 27 Jul 2012 19:01:31 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1343455668 18208 80.91.229.3 (28 Jul 2012 06:07:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Jul 2012 06:07:48 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 28 08:07:48 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sv0Bo-0005xC-2L for gctc-ntg-context-518@m.gmane.org; Sat, 28 Jul 2012 08:07:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 78311101E7; Sat, 28 Jul 2012 08:07:46 +0200 (CEST) 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 5rlrYqr+UM5b; Sat, 28 Jul 2012 08:07:44 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4A086101DF; Sat, 28 Jul 2012 08:07:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id BBA13101DF for ; Fri, 27 Jul 2012 19:06:59 +0200 (CEST) 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 OX3Yix6NMlSh for ; Fri, 27 Jul 2012 19:06:58 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 6C391101DD for ; Fri, 27 Jul 2012 19:06:58 +0200 (CEST) Original-Received: from mail-vc0-f195.google.com (mail-vc0-f195.google.com [209.85.220.195]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q6RH6vQq024323 for ; Fri, 27 Jul 2012 19:06:57 +0200 Original-Received: by vcqp1 with SMTP id p1so631458vcq.2 for ; Fri, 27 Jul 2012 10:06:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=Er1dMiGB8MzOO01OR5l/ov0AsjT0PBkKdlWHMf9GRiY=; b=QEeiOly+OWSwbbWjwDvKKnPHUsDEqr8B9dP10mRsWVMrlwVhN72jJHlQrOhr4W4nCf pzVcZefCuQsigkISX+w1KxBFmxA5P28U1oDJK9rpVFBdN43j8gV69EzTDw0D3okrHYS3 SJuwVucGFoyaaVBAIdwLa8JnU/vPHe+ZrSl2gyoJI8hIKvNLpPRiwplK2pXbpFsqddyA LytNk8kt/6M3Yqyt5eYtDJ+9RBmi3T1zYDrxDiy1fIjTNJTA2xKrsR9De8bWAD+r2pQN IJwFZXaINcw5UPTOuU1PA9KP1dAmwo82XkxhO2QaYDV4ZFdlbW1qsCnZrVCsf+7bPV+j EyoQ== Original-Received: by 10.220.8.17 with SMTP id f17mr3164777vcf.20.1343408512080; Fri, 27 Jul 2012 10:01:52 -0700 (PDT) Original-Received: by 10.220.216.13 with HTTP; Fri, 27 Jul 2012 10:01:31 -0700 (PDT) X-Bayes-Prob: 0.0097 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.220.195; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0THDt6VdO - 563556230095 - 20120727 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-Mailman-Approved-At: Sat, 28 Jul 2012 08:07:43 +0200 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:77619 Archived-At: Hi list, I'm trying to scale a text to the textwidth and textheight by keeping the aspect ratio, using different papersizes. When the dimensions get too big I get an "Arithmetic overflow". (I'm trying to do something similar to resizebox in LaTeX: http://tex.stackexchange.com/questions/55394/perfectly-scale-line-paragraph-image-anything-up-to-textwidth) Minimal example: \setuppapersize[A4][A4] %% [A1][A1] \showframe \starttext \scale[factor=max,width=\textwidth,height=\textheight]{\framed[frame=on]{!}} \stoptext Error message: ! Arithmetic overflow. \c_grph_scale_used_y_scale \grph_scale_convert_large_scale ...scratchdimen #3 \relax \fi \scratchdimen -... \grph_scale_calculations_yes ...grph_scale_temp_y \xdef \finalscaleboxwidth ... \grph_scale_calculate ...h_scale_calculations_yes \fi \fi \fi \syst_boxes_with_next_box ...grph_scale_calculate \ifconditional \c_grph_sca... l.6 ...h,height=\textheight]{\framed[frame=on]{!}} Adam ___________________________________________________________________________________ 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 ___________________________________________________________________________________