GeneralPutting multiple latex documents together

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
ChristoFogelberg
Posts: 2
Joined: Sat Jun 07, 2008 5:00 pm

Putting multiple latex documents together

Post by ChristoFogelberg »

Hello everyone,

I'm working on my transfer report for my degree, and I want to include some tech reports and papers that I have written as appendices.

Rather than just modifying the files so that they are the same format as the transfer report itself what I want to do is insert them into the document directly. I want to do this because doing it either way seems like extra work to me (either I reformat them, or I figure out how to do it without reformatting them) and I think it'd look much nicer if they were each in their correct format, e.g. 2 column, appropriate headers, footers, with their titles and the full author attributions, etc.

So here's an example:

Code: Select all

The paper included below was accepted at blah de blah etc.
\newpage
%SOMEHOW I NOW WANT TO INCLUDE THE FULL TEXT OF THE ORIGINAL PAPER HERE
It seems to me that there are a three ways I could do this:
1) Manually hack it together from the command line with the postscripts of the external files, using psjoin and setting the page numbers in the appendices manually using \setcounter{page}.
2) Find a magic latex command \includeOtherLatexFile that would allow me to include the latex of the other documents but (perhaps with minor modification of the original included document) which wouldn't complain about multiple titles, different documentclass and would still lay out the papers according to the format specified in their files.
3) Some magic latex command \includeOtherPSFile that just lets me bring an entire postscript file of several pages in. There's plenty of stuff for figures but something like \includegraphics just seems to create a horrible mess with pages overlaid all over the top of each other.

(1) sounds doable, but it'd be nice to get the page numbering consistent across the whole of the document. If anyone has any suggestions they'd be very much appreciated!! Thanks,
Christo

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Putting multiple latex documents together

Post by Stefan Kottwitz »

Hi Christo,

with pdfLaTeX I prefer the pdfpages package as quick solution for that. It would work for you if you convert the ps files to pdf.

There are other ways, have a look at A 'report' from lots of 'article's in the UK TeX FAQ.

Stefan
LaTeX.org admin
ChristoFogelberg
Posts: 2
Joined: Sat Jun 07, 2008 5:00 pm

Re: Putting multiple latex documents together

Post by ChristoFogelberg »

Hi Stefan,

Thanks for getting back to me so quickly.

Unfortunately I can't use (don't believe I can use) pdflatex as I'm need to use psfrag to put some latex math mode stuff into some graphviz figures.

I've been looking into the combine package and it could be what's right for me, either that or just manually setting the page counter and using psjoin, although that'd get tedious fast...

Christo

EDIT: Hmmm, maybe VTeX and pdfpages? I don't know VTeX but am gonna go read about it now...
Post Reply