From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/47663 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Using texexec to prepare single-sided PDF for double-sided printing Date: Mon, 23 Feb 2009 18:51:09 +0100 Message-ID: References: <87zlge8qk5.fsf@cordelia.devereux.me.uk> <7596A83B-B6A0-446A-AE79-33E125FFC904@gmail.com> <87ocwt84q3.fsf@cordelia.devereux.me.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1235411614 15040 80.91.229.12 (23 Feb 2009 17:53:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Feb 2009 17:53:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Feb 23 18:54:48 2009 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 1Lbf0u-0002Ol-0A for gctc-ntg-context-518@m.gmane.org; Mon, 23 Feb 2009 18:54:44 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8FCDF1FBDB; Mon, 23 Feb 2009 18:53:21 +0100 (CET) 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 08053-02-5; Mon, 23 Feb 2009 18:52:30 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7B2281FCC6; Mon, 23 Feb 2009 18:52:30 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8FE461FCC6 for ; Mon, 23 Feb 2009 18:52:28 +0100 (CET) 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 07711-04-7 for ; Mon, 23 Feb 2009 18:51:51 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id 66C921FCBB for ; Mon, 23 Feb 2009 18:51:51 +0100 (CET) Original-Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n1NHpoOJ007000 for ; Mon, 23 Feb 2009 18:51:50 +0100 Original-Received: by fg-out-1718.google.com with SMTP id e21so2140889fga.8 for ; Mon, 23 Feb 2009 09:51:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=pFBF5yRRLKoIw9OxEWKsO/XX2wvYXrNXVS8f74RKuX8=; b=q91eW7MhH6A9KQ+kUOKJwT6OwZzpbApAWFFMSPnXuo6dELrhrT55SOOPxF1VXplOqB iQE335nSSw3TQmlbA8QFjzrzk8wPywz1oeU9nZFWOSe83XhIN6XF4xBQVJbETJ+oMqqG wQDabJLKEPWtjvmgm5wDBsAH7Ze63Td2Djdz8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=rwS6Dn+HM5xcM/SsFA6qorauquHMKOsnDRrgkae1u917ekfX/3QFdvxyT6pQzaeqql BpQkNkjdm+WfRUEgjmvSDfWFstHbiRqwuP01r5oAfZi3zJqa36twqzw2oLglBRUa55Qt Oe3wfnCOZF5FFXdBJpUwkAeJJyvb+TjPrYtvE= Original-Received: by 10.86.61.13 with SMTP id j13mr3046518fga.59.1235411510332; Mon, 23 Feb 2009 09:51:50 -0800 (PST) Original-Received: from ?10.70.170.125? (8.106.113.82.net.de.o2.com [82.113.106.8]) by mx.google.com with ESMTPS id 3sm461748fge.52.2009.02.23.09.51.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 23 Feb 2009 09:51:49 -0800 (PST) In-Reply-To: <87ocwt84q3.fsf@cordelia.devereux.me.uk> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=72.14.220.152; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 184083316 - 269efec0dfa8 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:47663 Archived-At: Am 23.02.2009 um 18:04 schrieb John Devereux: > Wolfgang Schuster writes: > >> Am 22.02.2009 um 16:00 schrieb John Devereux: >> >>> I would like to use texexec to post-process a large pdf file, so >>> as to >>> prepare it for double sided printing. The existing file has a large >>> left hand "margin" on each page, so as to allow binding. >>> >>> I would like to change this so that odd (right) pages have a large >>> left margin, and even (left) pages a large right margin. >> >> \setuppagenumbering[alternative=doublesided] >> \setuplayout[horoffset=1cm] >> \setuplayout[page] >> \starttext >> \copypages[document] >> \stoptext > > Thanks, that's great! > > Is there an easy way to compensate for the original offset? The > original pdf has a large left margin and a small right one. Replace 'page' with the name of your document. \setuplayout[page] \starttext \getfiguredimensions[pages] \dorecurse\noffigurepages {\hbox to \textwidth {\ifodd\recurselevel \hskip-2cm\externalfigure[pages][page=\recurselevel]\hss \else \hskip-1cm\externalfigure[pages][page=\recurselevel]\hss \fi}} \stoptext Wolfgang ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________