From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Temporary landscape
Date: Wed, 13 Oct 2010 10:03:33 -0400 (EDT) [thread overview]
Message-ID: <alpine.LNX.2.01.1010131001590.6337@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <4CB5B91C.6000409@wxs.nl>
[-- Attachment #1: Type: TEXT/PLAIN, Size: 2535 bytes --]
On Wed, 13 Oct 2010, Hans Hagen wrote:
> On 13-10-2010 3:22, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
>> Hello,
>>
>> I need to typeset contents of a wide file. This works:
>>
>> ---
>> \starttext
>>
>> \setuppapersize[A4,landscape][A4,landscape]
>> \typefile[Dim]{Cha-MMax-iDL.txt}
>>
>> \page
>>
>> % RESTORE ORIGINAL PAGE SETTINGS
>>
>> AAA
>>
>> \stoptext
>
> You can wikify this:
>
> \setuplayout
> [location=middle]
>
> \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 my 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
paper, you can combine \type{\adaptpapersize} with \CONTEXT's postponing
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
page. When the new page starts, \type{\adaptpapersize} changes to
landscape mode. The \type{\page} is the end is to make sure even if some
place is remaining on the page, we do not get any text there.
To get more than one page in landscape, you can reuse
\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
[-- Attachment #2: Type: text/plain, Size: 486 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-10-13 14:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-13 13:22 Procházka Lukáš Ing. - Pontex s. r. o.
2010-10-13 13:50 ` Hans Hagen
2010-10-13 14:03 ` Aditya Mahajan [this message]
2010-10-13 15:12 ` Procházka Lukáš Ing. - Pontex s. r. o.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.01.1010131001590.6337@ybpnyubfg.ybpnyqbznva \
--to=adityam@umich.edu \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).