I have two files: paper.tex with text, title, and full preamble with authors and so on. It compiles successfully.

The second file (B) has also a full preamble with title, authors, little text. It compiles also successfully. File B is in other language than English.

I need to have the content of file B in paper.tex output WITH TITLE, AUTHORS, etc.

In other words, I need a document with TWO title pages - 1'st titlepage should be in English and come from paper.tex and should appear as normal. Second title page should appear with ALL formatting in last page and should be in another language with different babel and so on.

\include{B} in this situation does not work. How can I achieve this? Thank all for any kind of help.

  • 1
    Can you stitch the PDFs together with e.g. pdftk? That might be the best solution. – Seamus Mar 15 '13 at 9:54
  • Have a look at the standalone package. To quote the manual: "The package standalone can be used in the main document to skip all extra preambles in included files. The main file must load all packages and settings required by the sub-files. Several package options are provided to collect the preambles of the sub-files automatically and execute them from the main file." – bencarabelli Mar 15 '13 at 9:58
  • Ah, sorry, I think I didn't read your question properly. The issue with the two titlepages would not be so easily solved with standalone. My apologies. – bencarabelli Mar 15 '13 at 10:06
  • @benwlfut , thank for a answer and recommendations, but I've tested and a package standalone does not fit my requirements. – user27359 Mar 16 '13 at 15:47

As indicated in comments, this sounds like a case where you essentially want to combine the two resulting PDF files. That can be done using pdfLaTeX and the pdfpages pages, but probably is easiest to do using the pdftk utility.


I did this a somewhat different way.

Here is an example:


\input{./firstExample/preamble.tex} % preamble of 1st doc
\input{./secondExample/preamble.tex} % preamble of 2nd doc
\input{./preamble.tex} % preamble for both



      {\Huge \bfseries Example activity collection}\\[0.5cm]
      {\Large Author}\\[0.4cm]
      This document was typeset on \today.







Hope this helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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