Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a serie of publication papers that I would like to gather into one group of papers (or a collection). Is there some easy way for that without removing all headers such as \documentclass{article}...etc? I initially thought about just appending them as PDFs but it is a bit poor looking -- page numbers not getting fixed or anything like that.

  1. How would you merge such papers?
  2. Is it possible to autogenerate finding-aid for such documents? (It is extremely hard reading without some instructions about the papers.)
share|improve this question
4  
Have a look at the standalone package. –  Peter Grill Feb 23 '12 at 18:15
1  
I don't understand the second request. However, a solution to the first is probable available from: Make a .tex file that combines complete .tex documents in subdirectories. As such, I think this is a dupe (if we consider only single-question posts). –  Werner Feb 23 '12 at 18:15
    
...takes me some time to check the standalone...then I can comment more about dupenesss. –  hhh Feb 23 '12 at 18:19
1  
Try adding the class options crop=false,preview=false to standalone. If that does not work, please compose a complete MWE that illustrates the problem you are having. –  Peter Grill Feb 24 '12 at 3:51
2  
You could use the combine class: It is designed for merging different papers into one document and generating a commmon table of contents etc. An example on how to use it can be found in the question Generate consecutive page numbers + ToC from 28 .tex files? –  diabonas Feb 24 '12 at 14:37
show 2 more comments

1 Answer

  1. Create a new document as a frame. Just a class, pdfpages and maybe babel.
  2. For each paper add a section or a chapter, depending on the class of your frame.
  3. Add a \tableofcontents
  4. Include your papers by using the pdfpages package.
  5. But add them piece by piece and adapt the pagenumber in each of the papers. I can't tell you exactly how to do that, usually you should do something like \setcounter{\page}{newpagenumber}, let the paper compile and then compile the frame. Open the frame document and have a look at the last page. Take this number, add 1, open the next paper, adapt the pagenumber, compile it, include it into the frame, compile the frame and so on.

You will get your table of contents with a list of all papers and their respective page.

pdfpages allows to add a headline to each pdf.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.