* including pdf
@ 2011-01-31 14:37 Andrea Valle
2011-02-02 10:46 ` Andrea Valle
0 siblings, 1 reply; 9+ messages in thread
From: Andrea Valle @ 2011-01-31 14:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi list!
I have to create the proceedings of a conference.
I'm collecting A4 pdfs (from word/latex templates), and I have to stick them together, adding cover, toc etc
Now, I've used copypages.
The fact is that the included pdfs do not bleed over all the page, their inclusion seems to depend on
some dimension I'm not able to control via setuplayout.
So, I tested startpagefigure. Works fine but I can include (well, I'm able to) a single page.
More, it seems that numbers of page disappear (while I need them)
Any hints?
Thanks a lot
-a-
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: including pdf
2011-01-31 14:37 including pdf Andrea Valle
@ 2011-02-02 10:46 ` Andrea Valle
2011-02-02 11:03 ` Wolfgang Schuster
0 siblings, 1 reply; 9+ messages in thread
From: Andrea Valle @ 2011-02-02 10:46 UTC (permalink / raw)
To: mailing list for ConTeXt users
Sorry to chime in do anyone know if there's a solution?
Thanks a lot
Best
-a-
On Jan 31, 2011, at 3:37 PM, Andrea Valle wrote:
> Hi list!
>
> I have to create the proceedings of a conference.
> I'm collecting A4 pdfs (from word/latex templates), and I have to
> stick them together, adding cover, toc etc
>
> Now, I've used copypages.
> The fact is that the included pdfs do not bleed over all the page,
> their inclusion seems to depend on
> some dimension I'm not able to control via setuplayout.
> So, I tested startpagefigure. Works fine but I can include (well,
> I'm able to) a single page.
> More, it seems that numbers of page disappear (while I need them)
>
> Any hints?
>
> Thanks a lot
>
>
> -a-
>
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: including pdf
2011-02-02 10:46 ` Andrea Valle
@ 2011-02-02 11:03 ` Wolfgang Schuster
2011-02-02 11:23 ` Andrea Valle
0 siblings, 1 reply; 9+ messages in thread
From: Wolfgang Schuster @ 2011-02-02 11:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 02.02.2011 um 11:46 schrieb Andrea Valle:
> Sorry to chime in do anyone know if there's a solution?
Do you have a example!
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: including pdf
2011-02-02 11:03 ` Wolfgang Schuster
@ 2011-02-02 11:23 ` Andrea Valle
2011-02-02 16:37 ` Aditya Mahajan
0 siblings, 1 reply; 9+ messages in thread
From: Andrea Valle @ 2011-02-02 11:23 UTC (permalink / raw)
To: mailing list for ConTeXt users
Ok, let's reformulate partially
If I have:
\setuppapersize[A4]
\setuppagenumbering[location=left, state=start]
\starttext
\copypages[pdf/Test.pdf][scale=1000]
\stoptext
Looking at the resulting pdf, it seems that the original pdf is
mirrored (apart from half a line at the bottom of the paper, trunked).
Ok. But there are not page numbers (I guess they are coverd by the
imported pdf)
Now, so sum up my problem is:
- given a certain number of A4 pdf
- how to collect them in a unique pdf
- with successive page numbers
- and with refs, so that I can automagically create a TOC
Thanks, best
-a-
On Feb 2, 2011, at 12:03 PM, Wolfgang Schuster wrote:
>
> Am 02.02.2011 um 11:46 schrieb Andrea Valle:
>
>> Sorry to chime in do anyone know if there's a solution?
>
> Do you have a example!
>
> 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 : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: including pdf
2011-02-02 11:23 ` Andrea Valle
@ 2011-02-02 16:37 ` Aditya Mahajan
2011-02-21 10:47 ` Andrea Valle
2011-02-21 15:54 ` Andrea Valle
0 siblings, 2 replies; 9+ messages in thread
From: Aditya Mahajan @ 2011-02-02 16:37 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, 2 Feb 2011, Andrea Valle wrote:
> Ok, let's reformulate partially
>
> If I have:
>
> \setuppapersize[A4]
>
> \setuppagenumbering[location=left, state=start]
>
> \starttext
>
> \copypages[pdf/Test.pdf][scale=1000]
>
> \stoptext
>
> Looking at the resulting pdf, it seems that the original pdf is mirrored
> (apart from half a line at the bottom of the paper, trunked).
> Ok. But there are not page numbers (I guess they are coverd by the imported
> pdf)
You can add a layer on top and set page numbers in the layer.
> Now, so sum up my problem is:
> - given a certain number of A4 pdf
> - how to collect them in a unique pdf
> - with successive page numbers
> - and with refs, so that I can automagically create a TOC
For a quick solution, you can try the cut-n-paste module[1]. It does not
create a TOC, so you will have to do that by hand (or a helper macro).
\usemodule[cut-n-paste]
\newcount\colledpages
\definecutNpaste[collection][n=1,text={\setups[page]},location=(OverlayWidth/2,1cm)]
\startsetups[page]
\doglobal\increment{\collectedpages}%
\collectedpages
\stopsetups
\starttext
\processcollection[name=paper1.pdf]
\processcollection[name=paper2.pdf]
\processcollection[name=paper3.pdf]
\stoptext
The location of the text is controled by the location key. This can be any
valid metapost coordinate.
The module is actually meant for convert two column pdfs to one column
pdfs (for reading on an ebook device), so it an overkill for just merging
pages. You can however control how many pages to insert, (using start and
stop keys), and draw a grid on the page (grid=yes), and trim the page
(more complicated).
But, as I said earlier, the simplest way is to just insert the page number
in a layer.
Aditya
[1]:https://github.com/adityam/cut-n-paste
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: including pdf
2011-02-02 16:37 ` Aditya Mahajan
@ 2011-02-21 10:47 ` Andrea Valle
2011-02-21 21:20 ` Wolfgang Schuster
2011-02-21 15:54 ` Andrea Valle
1 sibling, 1 reply; 9+ messages in thread
From: Andrea Valle @ 2011-02-21 10:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3380 bytes --]
Hi Aditya,
thanks for your reply and sorry for my late reply, I've been kidnapped
by another work...
I'd go with the layer solution.
But I don't know to insert a layer for each pdf page.
Could you please provide some hints?
Thanks a lot
Best
-a-
On Feb 2, 2011, at 5:37 PM, Aditya Mahajan wrote:
> On Wed, 2 Feb 2011, Andrea Valle wrote:
>
>> Ok, let's reformulate partially
>>
>> If I have:
>>
>> \setuppapersize[A4]
>>
>> \setuppagenumbering[location=left, state=start]
>>
>> \starttext
>>
>> \copypages[pdf/Test.pdf][scale=1000]
>>
>> \stoptext
>>
>> Looking at the resulting pdf, it seems that the original pdf is
>> mirrored (apart from half a line at the bottom of the paper,
>> trunked).
>> Ok. But there are not page numbers (I guess they are coverd by the
>> imported pdf)
>
> You can add a layer on top and set page numbers in the layer.
>
>> Now, so sum up my problem is:
>> - given a certain number of A4 pdf
>> - how to collect them in a unique pdf
>> - with successive page numbers
>> - and with refs, so that I can automagically create a TOC
>
> For a quick solution, you can try the cut-n-paste module[1]. It does
> not create a TOC, so you will have to do that by hand (or a helper
> macro).
>
> \usemodule[cut-n-paste]
>
> \newcount\colledpages
>
> \definecutNpaste[collection]
> [n=1,text={\setups[page]},location=(OverlayWidth/2,1cm)]
>
> \startsetups[page]
> \doglobal\increment{\collectedpages}%
> \collectedpages
> \stopsetups
>
> \starttext
>
> \processcollection[name=paper1.pdf]
> \processcollection[name=paper2.pdf]
> \processcollection[name=paper3.pdf]
>
> \stoptext
>
> The location of the text is controled by the location key. This can
> be any valid metapost coordinate.
>
> The module is actually meant for convert two column pdfs to one
> column pdfs (for reading on an ebook device), so it an overkill for
> just merging pages. You can however control how many pages to
> insert, (using start and stop keys), and draw a grid on the page
> (grid=yes), and trim the page (more complicated).
>
> But, as I said earlier, the simplest way is to just insert the page
> number in a layer.
>
> Aditya
>
> [1]:https://github.com/adityam/cut-n-paste
>
> ___________________________________________________________________________________
> 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 : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.myspace.com/andreavalle
--> http://www.flickr.com/photos/vanderaalle/
--> http://www.youtube.com/user/vanderaalle
--> andrea.valle@unito.it
--------------------------------------------------
" This is a very complicated case, Maude. You know, a lotta ins, a
lotta outs, a lotta what-have-yous."
(Jeffrey 'The Dude' Lebowski)
[-- Attachment #1.2: Type: text/html, Size: 5974 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: including pdf
2011-02-02 16:37 ` Aditya Mahajan
2011-02-21 10:47 ` Andrea Valle
@ 2011-02-21 15:54 ` Andrea Valle
2011-02-23 14:29 ` Tom
1 sibling, 1 reply; 9+ messages in thread
From: Andrea Valle @ 2011-02-21 15:54 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 3239 bytes --]
BTW, I'm solving it by using copypages and a scale=900, so that page
numbers are visibile.
TOC by hand
Best
-a-
On Feb 2, 2011, at 5:37 PM, Aditya Mahajan wrote:
> On Wed, 2 Feb 2011, Andrea Valle wrote:
>
>> Ok, let's reformulate partially
>>
>> If I have:
>>
>> \setuppapersize[A4]
>>
>> \setuppagenumbering[location=left, state=start]
>>
>> \starttext
>>
>> \copypages[pdf/Test.pdf][scale=1000]
>>
>> \stoptext
>>
>> Looking at the resulting pdf, it seems that the original pdf is
>> mirrored (apart from half a line at the bottom of the paper,
>> trunked).
>> Ok. But there are not page numbers (I guess they are coverd by the
>> imported pdf)
>
> You can add a layer on top and set page numbers in the layer.
>
>> Now, so sum up my problem is:
>> - given a certain number of A4 pdf
>> - how to collect them in a unique pdf
>> - with successive page numbers
>> - and with refs, so that I can automagically create a TOC
>
> For a quick solution, you can try the cut-n-paste module[1]. It does
> not create a TOC, so you will have to do that by hand (or a helper
> macro).
>
> \usemodule[cut-n-paste]
>
> \newcount\colledpages
>
> \definecutNpaste[collection]
> [n=1,text={\setups[page]},location=(OverlayWidth/2,1cm)]
>
> \startsetups[page]
> \doglobal\increment{\collectedpages}%
> \collectedpages
> \stopsetups
>
> \starttext
>
> \processcollection[name=paper1.pdf]
> \processcollection[name=paper2.pdf]
> \processcollection[name=paper3.pdf]
>
> \stoptext
>
> The location of the text is controled by the location key. This can
> be any valid metapost coordinate.
>
> The module is actually meant for convert two column pdfs to one
> column pdfs (for reading on an ebook device), so it an overkill for
> just merging pages. You can however control how many pages to
> insert, (using start and stop keys), and draw a grid on the page
> (grid=yes), and trim the page (more complicated).
>
> But, as I said earlier, the simplest way is to just insert the page
> number in a layer.
>
> Aditya
>
> [1]:https://github.com/adityam/cut-n-paste
>
> ___________________________________________________________________________________
> 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 : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___________________________________________________________________________________
--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--> http://www.cirma.unito.it/andrea/
--> http://www.myspace.com/andreavalle
--> http://www.flickr.com/photos/vanderaalle/
--> http://www.youtube.com/user/vanderaalle
--> andrea.valle@unito.it
--------------------------------------------------
" This is a very complicated case, Maude. You know, a lotta ins, a
lotta outs, a lotta what-have-yous."
(Jeffrey 'The Dude' Lebowski)
[-- Attachment #1.2: Type: text/html, Size: 5833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: including pdf
2011-02-21 10:47 ` Andrea Valle
@ 2011-02-21 21:20 ` Wolfgang Schuster
0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Schuster @ 2011-02-21 21:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 21.02.2011 um 11:47 schrieb Andrea Valle:
> Hi Aditya,
>
> thanks for your reply and sorry for my late reply, I've been kidnapped by another work...
> I'd go with the layer solution.
> But I don't know to insert a layer for each pdf page.
> Could you please provide some hints?
\setuplayer[...][state=repeat]
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: including pdf
2011-02-21 15:54 ` Andrea Valle
@ 2011-02-23 14:29 ` Tom
0 siblings, 0 replies; 9+ messages in thread
From: Tom @ 2011-02-23 14:29 UTC (permalink / raw)
To: 'mailing list for ConTeXt users'
I have a somewhat related question in that I am creating a document that
will be used as an appendix to other documents. So, I can control the
various aspects of the PDF that is created and use \copypages. What I want
to do is number the pages A-1, etc. (or B-1, etc. depending on which
appendix it will be placed). That will avoid coordinating page numbers with
those in the documents to which it will be appended. What I can't figure out
how to do is to prefix the pagenumber with A- (or B-). It is probably a
simple matter but I can't figure out how to do it.
Tom Benjey
717-258-9733 voice
717-243-0074 fax
blog: www.TomBenjey.com
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2011-02-23 14:29 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-31 14:37 including pdf Andrea Valle
2011-02-02 10:46 ` Andrea Valle
2011-02-02 11:03 ` Wolfgang Schuster
2011-02-02 11:23 ` Andrea Valle
2011-02-02 16:37 ` Aditya Mahajan
2011-02-21 10:47 ` Andrea Valle
2011-02-21 21:20 ` Wolfgang Schuster
2011-02-21 15:54 ` Andrea Valle
2011-02-23 14:29 ` Tom
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).