From: Hans Hagen <pragma@wxs.nl>
Subject: Re: \setuppapersize[XY] not working properly with landscape orientation
Date: Thu, 14 Sep 2006 21:39:42 +0200 [thread overview]
Message-ID: <4509AFFE.6070701@wxs.nl> (raw)
In-Reply-To: <6faad9f00609130141k723c72abgf91343a35922f6e@mail.gmail.com>
Mojca Miklavec wrote:
> On 9/7/06, Mojca Miklavec wrote:
>
>> Hello,
>>
>> \setuppapersize[XY] is not working properly when paper orientation is
>> landscape. The following code results in pages of dimensions 29.5 x
>> 29.5 cm:
>>
>> \setuppapersize
>> [XY][A4,landscape]
>> \setuppaper
>> [nx=3,ny=1]
>> \setuparranging
>> [XY]
>>
>
> Are there any news about fixing page dimensions in XY papersizes?
>
>
hm, that sounds desperate ... watch the lunatic definition below:
\unprotect
\definepapersize
[XY]
[\c!height=\dimexpr\ifnum\printlandscape>\zerocount
\dimexpr\dimexpr\@@ppwidth
-\numexpr\@@ppnx-1\relax\dimexpr\@@ppdx\relax\relax/\@@ppnx\relax
\else
\dimexpr\dimexpr\@@ppheight-\numexpr\@@ppny-1\relax\dimexpr\@@ppdy\relax\relax/\@@ppny\relax
\fi\relax,
\c!width =\dimexpr\ifnum\printlandscape>\zerocount
\dimexpr\dimexpr\@@ppheight-\numexpr\@@ppny-1\relax\dimexpr\@@ppdy\relax\relax/\@@ppny\relax
\else
\dimexpr\dimexpr\@@ppwidth
-\numexpr\@@ppnx-1\relax\dimexpr\@@ppdx\relax\relax/\@@ppnx\relax
\fi\relax]
\setuppapersize
[XY][A4,landscape]
\setuppaper
[nx=6,ny=4]
\setuparranging
[XY]
\starttext
\dorecurse{10000}{\recurselevel\space}
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
prev parent reply other threads:[~2006-09-14 19:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-07 12:45 Mojca Miklavec
2006-09-07 13:26 ` Peter Rolf
2006-09-07 14:30 ` Mojca Miklavec
2006-09-07 15:37 ` Peter Rolf
2006-09-07 17:11 ` Mojca Miklavec
2006-09-07 19:22 ` Willi Egger
2006-09-13 8:41 ` Mojca Miklavec
2006-09-14 19:39 ` Hans Hagen [this message]
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=4509AFFE.6070701@wxs.nl \
--to=pragma@wxs.nl \
--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).