From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/34369 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: mirrored pages Date: Thu, 19 Apr 2007 20:40:20 +0200 Message-ID: <20070419204020.7cdd70b6.schuster.wolfgang@googlemail.com> References: <46273553.4090800@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1177008058 12287 80.91.229.12 (19 Apr 2007 18:40:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2007 18:40:58 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 19 20:40:52 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1HebYg-0000hF-SP for gctc-ntg-context-518@m.gmane.org; Thu, 19 Apr 2007 20:40:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1F251201D3; Thu, 19 Apr 2007 20:40:42 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09339-06-4; Thu, 19 Apr 2007 20:40:35 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F130B200B8; Thu, 19 Apr 2007 20:40:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BA702200B8 for ; Thu, 19 Apr 2007 20:40:31 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09339-06-3 for ; Thu, 19 Apr 2007 20:40:28 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by ronja.ntg.nl (Postfix) with ESMTP id 76FAA20046 for ; Thu, 19 Apr 2007 20:40:28 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id m2so765158uge for ; Thu, 19 Apr 2007 11:40:28 -0700 (PDT) Original-Received: by 10.82.184.2 with SMTP id h2mr3258942buf.1177008028032; Thu, 19 Apr 2007 11:40:28 -0700 (PDT) Original-Received: from eve ( [194.94.240.124]) by mx.google.com with ESMTP id b30sm409750ika.2007.04.19.11.40.26; Thu, 19 Apr 2007 11:40:27 -0700 (PDT) In-Reply-To: X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.7; i686-pc-mingw32) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:34369 Archived-At: On Thu, 19 Apr 2007 17:39:57 +0000 "Horacio Suarez" wrote: > I=B4ve 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=3D\noffigurepages, \c!marking=3D\v!off, \c!scale=3D\!!thousand, \c!offset=3D\!!zeropoint, \c!mirrored=3D\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=3D\recurselevel,#2,\c!scale=3D, \c!factor=3D\v!max,\c!offset=3D\v!overlay]% \else \externalfigure[#1][\c!page=3D\recurselevel,#2,\c!offset= =3D \v!overlay]% \fi}}} \page} \egroup} \protect \setuppapersize[A4][A4] \setuplayout[page] \starttext \copypages[file.pdf][mirrored=3Dyes] \stoptext Gru=DF Wolfgang