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-
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-
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 ___________________________________________________________________________________
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
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)
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
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)
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
participants (4)
-
Aditya Mahajan
-
Andrea Valle
-
Tom
-
Wolfgang Schuster