ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \start pagefigure not working as expected
@ 2017-05-25 15:22 cryo shock
  2017-05-25 15:44 ` Pablo Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: cryo shock @ 2017-05-25 15:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1140 bytes --]

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:

\startpagefigure[file.pdf][page=1]\stoppagefigure

So I added another line with page=2 as content, yet the output generates a
PDF with the *first page twice* only. In fact, my precompiled doc has 3
pages, of which I want the first two only in my new PDF, even when I use
the following code, LuaTeX generates the first page of the precompiled
PDF *three
times*:

\startpagefigure[file.pdf][page=3]\stoppagefigure
\startpagefigure[file.pdf][page=1]\stoppagefigure
\startpagefigure[file.pdf][page=5]\stoppagefigure

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

Am I overlooking something or was there some undocumented change to the
code?


Thanks in advance, Sebastian

[-- Attachment #1.2: Type: text/html, Size: 2025 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \start pagefigure not working as expected
  2017-05-25 15:22 \start pagefigure not working as expected cryo shock
@ 2017-05-25 15:44 ` Pablo Rodriguez
  2017-05-25 16:09   ` cryo shock
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2017-05-25 15:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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’t 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, LuaTeX
> 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’t know. Probably I used pagefigure before discovering
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \start pagefigure not working as expected
  2017-05-25 15:44 ` Pablo Rodriguez
@ 2017-05-25 16:09   ` cryo shock
  0 siblings, 0 replies; 5+ messages in thread
From: cryo shock @ 2017-05-25 16:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2304 bytes --]

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 <oinos@gmx.es>:

> 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’t 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, LuaTeX
> > 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’t know. Probably I used pagefigure before discovering
> 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
> ____________________________________________________________
> _______________________

[-- Attachment #1.2: Type: text/html, Size: 3614 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \start pagefigure not working as expected
  2017-05-25 18:48 Andres Conrado
@ 2017-05-25 19:36 ` cryo shock
  0 siblings, 0 replies; 5+ messages in thread
From: cryo shock @ 2017-05-25 19:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1541 bytes --]

Hi Andrés,

The problem with \insertpages is that it inserts pages as layers, which
means that header, footer and page numbers will be printed on it as well.
That's what I don't want, and also your suggested link points to me to
\insertpage in my case:

"Please note that the inserted pages will be placed on your ConTeXt pages
like a new "layer", or floating object. This means that your existing
headers, footers, crop marks will still be printed on top of or behind the
inserted pages.
*If you want to insert pages as completely independent pages between your
existing ConTeXt pages, use\startpagefigure
<http://wiki.contextgarden.net/Command/startpagefigure>.*"

But the command \startpagefigure doesn't work as described on the wiki...

2017-05-25 20:48 GMT+02:00 Andres Conrado <elandi@chiquitico.org>:

>  I think you need to use \insertpages instead. Check this out:
> http://wiki.contextgarden.net/Command/insertpages
>
> Andrés Conrado Montoya
> http://chiquitico.org
>
> ____________________________________________________________
> _______________________
> 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
> ____________________________________________________________
> _______________________
>

[-- Attachment #1.2: Type: text/html, Size: 3771 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: \start pagefigure not working as expected
@ 2017-05-25 18:48 Andres Conrado
  2017-05-25 19:36 ` cryo shock
  0 siblings, 1 reply; 5+ messages in thread
From: Andres Conrado @ 2017-05-25 18:48 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 165 bytes --]

 I think you need to use \insertpages instead. Check this out:
http://wiki.contextgarden.net/Command/insertpages

Andrés Conrado Montoya
http://chiquitico.org

[-- Attachment #1.2: Type: text/html, Size: 593 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-05-25 19:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-25 15:22 \start pagefigure not working as expected cryo shock
2017-05-25 15:44 ` Pablo Rodriguez
2017-05-25 16:09   ` cryo shock
2017-05-25 18:48 Andres Conrado
2017-05-25 19:36 ` cryo shock

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).