From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/73854 Path: news.gmane.org!not-for-mail From: Gerben Wierda Newsgroups: gmane.comp.tex.context Subject: Re: Page with minimum margins, maximum text width/textheight Date: Sat, 14 Jan 2012 01:31:44 +0100 Message-ID: <7F7C8663-59B7-4123-9C2B-4BFC12532A2A@rna.nl> References: <42B04673-810B-41C9-B513-BE3141B871D6@rna.nl> <20120114002033.GA32629@phlegethon> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1326501119 4537 80.91.229.12 (14 Jan 2012 00:31:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 14 Jan 2012 00:31:59 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jan 14 01:31:54 2012 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 1RlrXD-0000ko-RR for gctc-ntg-context-518@m.gmane.org; Sat, 14 Jan 2012 01:31:51 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 00DD9CB1D8; Sat, 14 Jan 2012 01:31:51 +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 yb9rTjnm8ODF; Sat, 14 Jan 2012 01:31:48 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5AA7BCB1B3; Sat, 14 Jan 2012 01:31:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CB8FCCB1B3 for ; Sat, 14 Jan 2012 01:31:46 +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 yXWVpYns5Yp7 for ; Sat, 14 Jan 2012 01:31:34 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id BA679CABBD for ; Sat, 14 Jan 2012 01:31:34 +0100 (CET) Original-Received: from smtpq3.tb.mail.iss.as9143.net (smtpq3.tb.mail.iss.as9143.net [212.54.42.166]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q0E0VXfk025395 for ; Sat, 14 Jan 2012 01:31:33 +0100 Original-Received: from [212.54.42.132] (helo=smtp1.tb.mail.iss.as9143.net) by smtpq3.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1RlrWv-0007c6-Kf for ntg-context@ntg.nl; Sat, 14 Jan 2012 01:31:33 +0100 Original-Received: from d57d7632.static.ziggozakelijk.nl ([213.125.118.50] helo=mail.rna.nl) by smtp1.tb.mail.iss.as9143.net with esmtp (Exim 4.71) (envelope-from ) id 1RlrWv-0004dQ-2v for ntg-context@ntg.nl; Sat, 14 Jan 2012 01:31:33 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by mail.rna.nl (Postfix) with ESMTP id A307A82EC64 for ; Sat, 14 Jan 2012 01:31:32 +0100 (CET) X-Virus-Scanned: amavisd-new at rna.nl Original-Received: from mail.rna.nl ([127.0.0.1]) by localhost (vanroodewierda.rna.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yjO0q8uTQWXJ for ; Sat, 14 Jan 2012 01:31:31 +0100 (CET) Original-Received: from hermione.rna.nl (hermione.rna.nl [192.168.2.86]) by mail.rna.nl (Postfix) with ESMTPSA id D295082EC56 for ; Sat, 14 Jan 2012 01:31:31 +0100 (CET) In-Reply-To: <20120114002033.GA32629@phlegethon> X-Mailer: Apple Mail (2.1251.1) X-Ziggo-spambar: / X-Ziggo-spamscore: -0.6 X-Ziggo-spamreport: ALL_TRUSTED=-1, BAYES_00=-1.9, CM_URI_NS_DYNAMIC=2.3, T_RP_MATCHES_RCVD=-0.01 X-Ziggo-Spam-Status: No X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.54.42.166; country=NL; region=05; city=Maastricht; latitude=50.8500; longitude=5.6833; http://maps.google.com/maps?q=50.8500,5.6833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0cGlcvxzV - 1c445fcb0555 - 20120114 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:73854 Archived-At: Thanks. My external figures are PDFs with all weird sizes, the smaller ones, I want= to print on portrait A4 (if they are more landscape than portrait, they wi= ll be rotated) and the larger ones on landscape A3 (again, rotated when the= y are more portrait than landscape). Distorting is not allowed. So far I am= doing stuff like \externalfigure[foo.pdf][factor=3Dmax] \page\setuppapersize[A4,portrait][A4,portrait] \setuplayout[backspace=3D10mm,topspace=3D10mm,width=3D277mm,height=3D190mm,= header=3D5mm,footer=3D1mm] \externalfigure[bar.pdf][orientation=3D90] \page\setuppapersize[A3,landscape][A3,landscape] \setuplayout[backspace=3D10mm,topspace=3D10mm,width=3D400mm,height=3D277mm,= header=3D5mm,footer=3D1mm] \externalfigure[foobar.pdf][factor=3Dmax] \externalfigure[foo2.pdf][orientation=3D90] \externalfigure[foo3.pdf][orientation=3D90] But thanks to your suggestion, I am now doing \rotate[rotation=3D90]{\externalfigure[foo.pdf][width=3D\vsize]} The 'orientation' stuff of external figure doesn't work at all. It messes u= p size to fit and it rotates around points such that images are rotated par= tly out of the page. Your method works. G On 14 Jan 2012, at 01:20, Philipp Gesang wrote: > Hi Gerben! > = > On 2012-01-14 00:43, Gerben Wierda wrote: >> but I forgot how to do something like width=3D\paperwidth-2cm (not >> like that obviously, but I have forgotten how to do simple >> addition and subtraction with dimensions in TeX) > = > See TeXbook p. 118f. > = >> So, how do I set a margin of 1cm all around the makeup area? > = > Does the following fit your needs? > = > =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7 > = > \newdimen\myborderoffset \myborderoffset=3D1cm > = > \definelayout[mypage][page] > \setuplayout [mypage][ > backspace=3D\myborderoffset, > topspace=3D\myborderoffset, > ] > = > \setuplayout[mypage] > = > \showframe > = > \def\docowpage{% > \rotate[rotation=3D90]{\externalfigure[cow][width=3D\vsize,height=3D\hsi= ze]}\page% > } > = > \starttext > = > \dorecurse{5}{\docowpage} > \stoptext > = > =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7 > = > Regards, Philipp > = >> = >> G >> = >> On 14 Jan 2012, at 00:06, Aditya Mahajan wrote: >> = >>> On Fri, 13 Jan 2012, Gerben Wierda wrote: >>> = >>>> How do I create a page with maximum text width, text height? I tried u= sing \setuplayout with stuff like [textwidth=3D\pagewidth-1cm], but nothing= happens. I need empty pages with minimum margins, just to be able to put o= ther PDF's in that space. >>> = >>> \setuplayout[page], or if you want to do this for only one page, \adapt= layout[page] >>> = >>> 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 >>> _______________________________________________________________________= ____________ >> = >> ________________________________________________________________________= ___________ >> If your question is of interest to others as well, please add an entry t= o the Wiki! >> = >> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-c= ontext >> webpage : http://www.pragma-ade.nl / http://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> wiki : http://contextgarden.net >> ________________________________________________________________________= ___________ > = > -- = > () ascii ribbon campaign - against html e-mail > /\ www.asciiribbon.org - against proprietary attachments > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________