[OS X TeX] producing a commentary in TeX of an existing PDF document (various particular items)

Maarten Sneep maarten.sneep at xs4all.nl
Sat Apr 29 00:12:02 CEST 2006


A second answer, should you choose to follow the original path (I'll  
still warn you about the pagenumbering issues, and pdfpages is better  
at including whole pages, but alas. Be sure to read the pdfpages  

On 28 Apr 2006, at 23:02, Jason Davies wrote:

> I asked a little while ago about this topic and was pointed towards  
> using the class memoir. However, it turns out that that will not  
> work in practice so I've decided instead to use the original  
> document in the following way:
> 1) create individual pdfs of each page of the original document

pdftk is your friend: http://www.pdfhacks.com/pdftk/ (works from the  
terminal, or a do shell script. PPC/Rosetta only). The examples on  
the homepage should get you started.

> 2) include them as graphics as the right hand page (ie alternating)

pdftk will work as well.

> 3) add my commentary on the left.
> This will involve setting the numbering for each page (because it  
> will count the pdf but in this case I want to make the page  
> numbering match - ie the document will have two page 1s, two page  
> 2s etc.

a custom command that issues a \addtocounter{page}{-1} and inserts  
the appropriate page should help here. You might even be able to use  
that to automagically select the right page.

Murphy's Law, supplemental: Celibacy is not hereditory.

------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/

More information about the macostex-archives mailing list