From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/62584 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Temporary landscape Date: Wed, 13 Oct 2010 10:03:33 -0400 (EDT) Message-ID: References: <4CB5B91C.6000409@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-989833506-1286978616=:6337" X-Trace: dough.gmane.org 1286978250 25562 80.91.229.12 (13 Oct 2010 13:57:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Oct 2010 13:57:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 13 15:57:25 2010 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 1P61pd-0001IR-Nn for gctc-ntg-context-518@m.gmane.org; Wed, 13 Oct 2010 15:57:25 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F2040CA714; Wed, 13 Oct 2010 15:57:24 +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 pyQyROHzaG3J; Wed, 13 Oct 2010 15:57:18 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C4567CA6DF; Wed, 13 Oct 2010 15:57:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9806FCA6DF for ; Wed, 13 Oct 2010 15:57:17 +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 ljW52Gznd5dS for ; Wed, 13 Oct 2010 15:57:14 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id DC764CA620 for ; Wed, 13 Oct 2010 15:57:14 +0200 (CEST) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o9DDvDgs004580 for ; Wed, 13 Oct 2010 15:57:14 +0200 Original-Received: FROM adi-netbook (bas3-montreal02-1096681052.dsl.bell.ca [65.94.6.92]) By hackers.mr.itd.umich.edu ID 4CB5BAB7.B9B41.28759 ; Authuser adityam; 13 Oct 2010 09:57:11 EDT In-Reply-To: <4CB5B91C.6000409@wxs.nl> User-Agent: Alpine 2.01 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; 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: 06DidVdLN - 1876495cb09b - 20101013 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:62584 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-989833506-1286978616=:6337 Content-Type: TEXT/PLAIN; charset=iso-8859-2; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 13 Oct 2010, Hans Hagen wrote: > On 13-10-2010 3:22, Proch=E1zka Luk=E1=B9 Ing. - Pontex s. r. o. wrote: >> Hello, >>=20 >> I need to typeset contents of a wide file. This works: >>=20 >> --- >> \starttext >>=20 >> \setuppapersize[A4,landscape][A4,landscape] >> \typefile[Dim]{Cha-MMax-iDL.txt} >>=20 >> \page >>=20 >> % RESTORE ORIGINAL PAGE SETTINGS >>=20 >> AAA >>=20 >> \stoptext > > You can wikify this: > > \setuplayout > [location=3Dmiddle] > > \showframe > > \def\PushPaperSize > {\edef\PopPaperSize{\setuppapersize[\papersize][\printpapersize]}} > > \starttext > \setuppapersize[A4][A3] > test \page > \PushPaperSize > \setuppapersize[A4,landscape][A3,landscape] > test \page > \PopPaperSize > test \page > \stoptext From=20my to be completed TUGboat article: \section {Changing paper size within a document} To get one page (containing a table or a figure) in landscape mode, you can use \type{\adaptpapersize}. For example, \starttyping \definepapersize[main] [A4] [A4] \definepapersize[extra][A4,landscape] [A4,landscape] \setuppapersize[main] \starttext Page 1. Potrait \page Page 2. Potrait \page \adaptpapersize[extra] Page 3. Landscape \page Page 4. Potrait \page \stoptext \stoptyping If you have a full page figure that you want to include in a landscape=20 paper, you can combine \type{\adaptpapersize} with \CONTEXT's postponing=20 mechanism. \starttyping \startpostponing \adaptpapersize[extra] \placefigure [here] [fig:reference] {The caption of the figure} {\extrenalgraphics[full-page-figure]} \page \stoppostponing \stoptyping The \type{postponing} environment postpones the figure until the next=20 page. When the new page starts, \type{\adaptpapersize} changes to=20 landscape mode. The \type{\page} is the end is to make sure even if some=20 place is remaining on the page, we do not get any text there. To get more than one page in landscape, you can reuse=20 \type{\setuppapersize}. For example, \starttyping \definepapersize[main] [A4] [A4] \definepapersize[extra][A4,landscape] [A4,landscape] \setuppapersize[main] \starttext Page 1. Potrait \page Page 2. Potrait \page \setuppapersize[extra] Page 3. Landscape \page Page 4. Landscape \page \setuppapersize[main] Page 5. Potrait \page Page 6. Potrait \page \stoptext \stoptyping Aditya --8323328-989833506-1286978616=:6337 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --8323328-989833506-1286978616=:6337--