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.