From: h h extern <pragma@wxs.nl>
Subject: Re: help - spine centered figure
Date: Sun, 30 Jan 2005 22:35:14 +0100 [thread overview]
Message-ID: <41FD5312.7030305@wxs.nl> (raw)
In-Reply-To: <20050129170047.17336.qmail@web80401.mail.yahoo.com>
Ciro A. Soto wrote:
> I am hoping to get the version 1. The other version
> is like an exercise for me, to see how it would be
> done.
well, the machinery is there, and there are several solutions, of which i show
only one (watch further on how we enable clipping);
don't forget to submit this example to the wiki
\definelayer
[page]
[width=\paperwidth,
height=\paperheight,
offset=-\measure{page-bleed},
doublesided=yes]
\setupbackgrounds
[page]
[background=page]
\setuppagenumbering
[alternative=doublesided]
\definemeasure [page-bleed] [\dimexpr(10mm)]
\useexternalfigure
[page-graphic]
[cow]
[ width=\dimexpr(2\paperwidth +2\measure{page-bleed}),
height=\dimexpr( \paperheight+2\measure{page-bleed})]
\starttext
% cleaner here
\startstandardmakeup[doublesized=no,page={empty,left}]
\setlayer
[page] [preset=lefttop]
{\externalfigure[page-graphic]}
\stopstandardmakeup
\startstandardmakeup[doublesized=no,page=right]
\setlayer
[page] [preset=righttop]
{\externalfigure[page-graphic]}
\stopstandardmakeup
% less intuitive here
%
% \page[left]
%
% \setlayer
% [page] [left] [preset=lefttop]
% {\externalfigure[page-graphic]}
%
% \setlayer
% [page] [right] [preset=righttop]
% {\externalfigure[page-graphic]}
%
% \startstandardmakeup
% flush a page
% \stopstandardmakeup
% to show bleeding:
\setuppapersize
[A4][A3]
\setuplayout
[location=middle]
\setupbackgrounds
[page][frame=on]
% add this in order to clip
\setuplayout
[clipoffset=\measure{page-bleed}]
\startstandardmakeup[doublesized=no,page={empty,left}]
\setlayer
[page] [preset=lefttop]
{\externalfigure[page-graphic]}
\stopstandardmakeup
\startstandardmakeup[doublesized=no,page=right]
\setlayer
[page] [preset=righttop]
{\externalfigure[page-graphic]}
\stopstandardmakeup
\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
-----------------------------------------------------------------
next prev parent reply other threads:[~2005-01-30 21:35 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-22 19:41 Russia (cyrillic letters) Mikael Persson
2005-01-23 21:47 ` h h extern
2005-01-25 7:13 ` Mikael Persson
2005-01-25 15:10 ` h h extern
2005-01-25 18:20 ` Mikael Persson
2005-01-26 6:20 ` Ulrich Dirr
2005-01-26 9:24 ` Hans Hagen
2005-01-26 21:38 ` Mikael Persson
2005-01-26 22:40 ` Adam Lindsay
2005-01-27 7:48 ` Mikael Persson
2005-01-27 9:11 ` Hans Hagen
2005-01-27 9:25 ` Mikael Persson
2005-01-27 10:59 ` Mikael Persson
2005-01-27 11:32 ` Adam Lindsay
2005-01-27 12:01 ` Hans Hagen
2005-01-27 13:50 ` Mikael Persson
2005-01-27 14:46 ` Adam Lindsay
2005-01-27 22:04 ` Hans Hagen
2005-01-28 9:07 ` Hans Hagen
2005-01-29 12:31 ` Mikael Persson
2005-01-29 13:38 ` Hans Hagen
2005-01-29 14:09 ` Mikael Persson
2005-01-29 17:00 ` help - spine centered figure Ciro A. Soto
2005-01-29 17:05 ` Ciro A. Soto
2005-01-30 21:41 ` h h extern
2005-01-30 21:35 ` h h extern [this message]
2005-01-30 21:55 ` Russia (cyrillic letters) h h extern
2005-01-31 20:21 ` Mikael Persson
2005-01-27 12:04 ` Hans Hagen
2005-01-27 13:24 ` Rob Ermers
2005-01-27 13:58 ` Hans Hagen
2005-01-27 12:08 ` Hans Hagen
2005-01-27 9:23 ` Hans Hagen
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=41FD5312.7030305@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).