I am compiling my dissertation which is composed with several separate papers (with independent LaTeX code).

I have a title for my dissertation and want to insert my individual papers with their own titles (different authors, etc., for each paper).

Someone suggested use


where paper1 has the codes as



But it doesn't solve my problem.

For each individual latex code for the individual paper, I have title code outside of the \begin{document}.

Any suggestion about how to insert the entire LaTeX code of a academic paper, A, into another academic paper, B, while remain everything not changed for A.


2 Answers 2


Try this!

\title{First Article}
\author{First Author}

Save as paper1.tex

Then, create a master file:

\chapter{A chapter}

Save as myDissertation.tex

  • Where have you been all my life. Thank you for this
    – bob
    Dec 6, 2021 at 11:09

There are broadly two ways to proceed here, and which is easier/'better' depends on your exact requirements.

The first is simply to typeset each sub-document separately and then create the main document using pdfpages. You can then use \includepdf to add each file, with the main title etc. in the main file

\documentclass{reprot} % or similar
\includepdf ....

You may want a table of contents, which is doable this way with a little effort. Page numbers can also be added to the included PDFs: you'll probably want to supress them in the sub-documents if you do this.

The second approach is to use for example the combine package to allow multiple documents to be typeset in one run. There are some restrictions on what will and won't work with combine, so that may depend on the document class(es) and packages in use in the sub-documents.

As I say, the exact detail here depends on your situation. I'd recommend focussing things a bit by thinking about the above and asking a new question once you've got a reasonable idea of what makes sense for you.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .