From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98068 Path: news.gmane.org!.POSTED!not-for-mail From: cryo shock Newsgroups: gmane.comp.tex.context Subject: Re: \start pagefigure not working as expected Date: Thu, 25 May 2017 18:09:06 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6922157755971464517==" X-Trace: blaine.gmane.org 1495728581 22035 195.159.176.226 (25 May 2017 16:09:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 May 2017 16:09:41 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 25 18:09:31 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDvKM-0005Vi-Jm for gctc-ntg-context-518@m.gmane.org; Thu, 25 May 2017 18:09:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 45005EE120F; Thu, 25 May 2017 18:09:20 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nlK0DKADrUP9; Thu, 25 May 2017 18:09:19 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 7EFC8EE2784; Thu, 25 May 2017 18:09:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 15EABEE2784 for ; Thu, 25 May 2017 18:09:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9pQNViE5Wsv7 for ; Thu, 25 May 2017 18:09:18 +0200 (CEST) Original-Received: from mail-qt0-f180.google.com (mail-qt0-f180.google.com [209.85.216.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 1BEA0EE120F for ; Thu, 25 May 2017 18:09:08 +0200 (CEST) Original-Received: by mail-qt0-f180.google.com with SMTP id v27so183968618qtg.2 for ; Thu, 25 May 2017 09:09:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=YHSq2/Cj7TeJcVNGqD+GIL/a1EbVA70pW7lPCQ5EcDg=; b=OwRqIB0g4ERDCn7D+B+WdLXtDsyFMHzD6MugUHUmXlFIcH19Fd+9y2GzJ5rabGs6Yo Al9N7TAvI96ZtbbFx+WOoWG73YfAltKbwV+BfLB0PUTHA3dOb3ewjmAauVpisfmOGjPH Ndfj0z88cIehIzSpyqsnUVVPFs/jbvHyp3TIYplySPdQEG//J8ZoeJULzRmQ3KHC2dQt ESRN8e0vMbHqq1u2D/r05o7oCxZSBp7dYQ/xJ6OTjsyrKR2M0mfk06OglAuC5byB1A/y aqpGpBsZ3XR+Dv0BlxTcIG1zJCN3DZfmsNHcJoTiiRdsEzgOUY3AmxGoshlR+YDLp+r3 3Gwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=YHSq2/Cj7TeJcVNGqD+GIL/a1EbVA70pW7lPCQ5EcDg=; b=aLNIuHYlOG0aF8pGHTvcfrAdCAcHmSEWeaD+YbTRtIVxpOkflhdXXQ1hQJruz1E1eX hq0o51hSG3piilGWJmrm5/Zuu2jltgnEENK5iX67DV3htCsWpJD+qT9qbWFsxNNfdv2P tzbB4SKa6RGktWcLKtCRyEJUzIpmi92jg1T3c4TQ5iD6FfFRncY7ougKb51Mvl8GqpZm vQQVnEdjbl+rz3ugcRy//FvsUisfqHDoM2twDuMwqBXpTbKW46W8Uhk1U/dHXSHwVf+a 8MdEcfjOHSlkmkPvQTSv9i2KfqSYL3dngcfSGJJPUny6HQCHyN9a+Bdnw/KeD+bV7M4V kyiA== X-Gm-Message-State: AODbwcCXZeWAWAAR6ddg5npFltZvbYMCL47blZL/6t2gVEiI1wsnth8q TNQRrz1rBr93pNnUNFnxNlpvcY1f+w== X-Received: by 10.200.46.239 with SMTP id i44mr41665171qta.89.1495728546677; Thu, 25 May 2017 09:09:06 -0700 (PDT) Original-Received: by 10.12.133.229 with HTTP; Thu, 25 May 2017 09:09:06 -0700 (PDT) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:98068 Archived-At: --===============6922157755971464517== Content-Type: multipart/alternative; boundary="001a113781e8b4886105505b7039" --001a113781e8b4886105505b7039 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Your suggestion works fine for me. I tried \filterpages too, as it is mentioned on the wiki as well, but the pages then got scaled to the \setuplayout definitions. I didn't think about using it within the \startpagemakeup environment though. So thanks Pablo. P.S.: I'd still love to know why the simple \startpagefigure doesn't work as expected as I thought that's what it's there for. 2017-05-25 17:44 GMT+02:00 Pablo Rodriguez : > On 05/25/2017 05:22 PM, cryo shock wrote: > > Hi guys, > > > > I created a CTX document and now I am trying to merge it with two other > > pages from another (already compiled) pdf document. Usually I did this > > job with PDF Split And Merge software, but if CTX (mkiv, LuaTeX) is > > capable of doing the job, I'd be glad to use CTX instead. > > > > On the wiki I found a code snippet that sounds promising, as I don't > > want headers, page numbers etc. on the two merged pages: > > Hi Sebastian, > > how about the following code (I don=E2=80=99t remember when, how or where= I > found it)? > > \starttext > \startpagemakeup\filterpages[file.pdf][1]\stoppagemakeup > \startpagemakeup\filterpages[file.pdf][2]\stoppagemakeup > \startpagemakeup\filterpages[file.pdf][3]\stoppagemakeup > \stoptext > > > Like I mentioned: even although there is no 5th page in file.pdf, LuaTe= X > > pastes the first page three times... > > If you add a non-existing page, you will get a blank page (with the code > above). > > > Am I overlooking something or was there some undocumented change to the > > code? > > Sorry, but I don=E2=80=99t know. Probably I used pagefigure before discov= ering > pagemakeup. > > Just in case it might help, > > > Pablo > -- > http://www.ousia.tk > ____________________________________________________________ > _______________________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ____________________________________________________________ > _______________________ --001a113781e8b4886105505b7039 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Your suggestion works fine for me. I tried \filterpages too, as it is mentioned on the wik= i as well, but the pages then got scaled to the \setuplayout definitions. I didn't think about using it= within the \startpagemakeup env= ironment though.

So thanks Pablo.

P.S.: I'd still love to know why the simple \startpagefigure doesn&#= 39;t work as expected as I thought that's what it's there for.


2017-05= -25 17:44 GMT+02:00 Pablo Rodriguez <oinos@gmx.es>:
On 05/25/2017 05:22 PM, cryo shock wr= ote:
> Hi guys,
>
> I created a CTX document and now I am trying to merge it with two othe= r
> pages from another (already compiled) pdf document. Usually I did this=
> job with PDF Split And Merge software, but if CTX (mkiv, LuaTeX) is > capable of doing the job, I'd be glad to use CTX instead.
>
> On the wiki I found a code snippet that sounds promising, as I don'= ;t
> want headers, page numbers etc. on the two merged pages:

Hi Sebastian,

how about the following code (I don=E2=80=99t remember when, how or where I=
found it)?

=C2=A0 =C2=A0 \starttext
=C2=A0 =C2=A0 \startpagemakeup\filterpages[file.pdf][1]\stoppagemakeup=
=C2=A0 =C2=A0 \startpagemakeup\filterpages[file.pdf][2]\stoppagemakeup=
=C2=A0 =C2=A0 \startpagemakeup\filterpages[file.pdf][3]\stoppagemakeup=
=C2=A0 =C2=A0 \stoptext

> Like I mentioned: even although there is no 5th page in file.pdf, LuaT= eX
> pastes the first page three times...

If you add a non-existing page, you will get a blank page (with the = code
above).

> Am I overlooking something or was there some undocumented change to th= e
> code?

Sorry, but I don=E2=80=99t know. Probably I used pagefigure before d= iscovering
pagemakeup.

Just in case it might help,


Pablo
--
http:/= /www.ousia.tk
_________________________________________________________________= __________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context=
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

--001a113781e8b4886105505b7039-- --===============6922157755971464517== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============6922157755971464517==--