I have made an scientific article using LuaTeX because I need to publish it on a journal. It's already completely written and laid out.
Now, I also need to write my thesis and include the former article as one of the appendices.

The problem is they use different styles (fonts, sizes, margins, line spacing, article vs twosided book...) and they have each their own structure (index, chapters, abstract...).

How can I embed one document into the other one keeping each own with its style and structure?

  • If I just use an include with the article source code, without its preamble, it will compile everything using my thesis options and loose the article original style.

  • If I try to include the article source code with all the preamble and options it will produce an error because its incompatible.

  • I can also try to include the already compiled article as a pdf.

  • Finally I can just create both pdf files separatelly and merge them with an external program, but it's going to be more difficult to number the pages.

What is the suggested way to do it?
I would like to get a single page numbering for everything.
And I'm hesitating about keeping also (simultaneously) the numbering of the article, otherwise I would need to change its index.

  • 2
    I have done this with the pdfpages package, which lets you include multi-page PDFs, but still provides some control over borders, headers, footers, and so on. – Daniel Apr 11 at 12:24
  • All of the \includegraphics options are supported by pdfpages, including trim and clip (see page 8). So you can remove the existing page numbers and headers instead of shrinking a whole page into the text area. – John Kormylo Apr 11 at 15:17
  • So you are suggesting to embed the already compiled pdf file instead of including the code? – skan Apr 11 at 15:26
  • It would be easier, especially if the page size is different.. Going over the pdfpages options, there doesn't seem to be one to use the existing text area. One can always use` \includegraphics[page=1,width=\textwidth,height=\textheight]{...}` for page=2, page=3 ... . – John Kormylo Apr 11 at 15:28
  • Will the result have editable text or ir will everything be embedded as an image? – skan Apr 11 at 15:35

Your Answer

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

Browse other questions tagged or ask your own question.