From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: ntg-context@ntg.nl
Subject: Re: mirrored pages
Date: Thu, 19 Apr 2007 20:40:20 +0200 [thread overview]
Message-ID: <20070419204020.7cdd70b6.schuster.wolfgang@googlemail.com> (raw)
In-Reply-To: <BAY121-F32F5DE985A3BAE88F007BEB4570@phx.gbl>
On Thu, 19 Apr 2007 17:39:57 +0000
"Horacio Suarez" <horaciosuarez@hotmail.com> wrote:
> I´ve made a mistake and replyed to Mari Voipio. Sorry, Mari.
>
> I need to print in a laser printer mirrored. The page should as is viewed in
> a mirror. All the pages. Fliped horizontally.
>
> Thankyou very much.
>
Hi Horacio,
the following code should work.
\unprotect
\def\c!mirrored{mirrored}
\def\docopypages[#1][#2]%
{\bgroup
\getfiguredimensions[#1]%
\getparameters[\??ip]
[\c!n=\noffigurepages,
\c!marking=\v!off,
\c!scale=\!!thousand,
\c!offset=\!!zeropoint,
\c!mirrored=\v!no,
#2]%
\dorecurse\@@ipn
{\doif\@@ipmirrored\v!yes\domirrorbox
\vbox to \textheight
{\hsize\textwidth
\scratchdimen\@@ipoffset
\centeredbox
{\doifelse\@@ipmarking\v!on\cuthbox\hbox
{\ifdim\scratchdimen>\zeropoint\relax
\advance\vsize -2\scratchdimen
\advance\hsize -2\scratchdimen
\externalfigure[#1][\c!page=\recurselevel,#2,\c!scale=,
\c!factor=\v!max,\c!offset=\v!overlay]% \else
\externalfigure[#1][\c!page=\recurselevel,#2,\c!offset=
\v!overlay]% \fi}}}
\page}
\egroup}
\protect
\setuppapersize[A4][A4]
\setuplayout[page]
\starttext
\copypages[file.pdf][mirrored=yes]
\stoptext
Gruß
Wolfgang
next prev parent reply other threads:[~2007-04-19 18:40 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-12 5:37 Interesting interview Thomas A. Schmitz
2007-04-13 6:29 ` Maurice Diamantini
2007-04-13 7:20 ` Aditya Mahajan
2007-04-13 8:00 ` Jelle Huisman
2007-04-13 10:40 ` The ConTeXt Companion (was: Interesting interview) Ulf Martin
2007-04-14 8:58 ` The ConTeXt Companion Patrick Gundlach
2007-04-14 15:25 ` Ulf Martin
2007-04-14 15:40 ` Andrea Valle
2007-04-14 20:40 ` Hans Hagen
2007-04-18 20:41 ` mirrored pages Horacio Suarez
2007-04-19 8:11 ` Mari Voipio
2007-04-19 9:51 ` luigi scarso
2007-04-19 9:24 ` Hans Hagen
2007-04-19 17:39 ` Horacio Suarez
2007-04-19 18:40 ` Wolfgang Schuster [this message]
2007-04-19 19:28 ` Horacio Suarez
2007-04-19 20:27 ` Hans Hagen
2007-04-19 20:47 ` Horacio Suarez
2007-04-14 17:01 ` The ConTeXt Companion Idris Samawi Hamid
2007-04-14 20:36 ` Hans Hagen
2007-04-14 20:58 ` luigi scarso
2007-04-25 23:34 ` Martin Schröder
2007-04-26 10:40 ` Johannes Graumann
2007-04-13 8:16 ` Interesting interview luigi scarso
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=20070419204020.7cdd70b6.schuster.wolfgang@googlemail.com \
--to=schuster.wolfgang@googlemail.com \
--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).