GeneralCombination of several Source Files into one Document

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
zgjiangtoby
Posts: 3
Joined: Mon Oct 21, 2013 2:03 pm

Combination of several Source Files into one Document

Post by zgjiangtoby »

I have several .tex documents and my supervisor requires me to combine all my papers into a main .tex file. I am a noob in LaTeX, and I searched for many related topics but still don't know where going wrong. Could any one give me a simple example of combined code please (e.g. what package should I use)? Any commends would be appreciate.

Recommended reading 2024:

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

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

Bozack
Posts: 117
Joined: Wed Feb 06, 2008 4:21 pm

Combination of several Source Files into one Document

Post by Bozack »

I'm not sure if this answers your question, but here goes.

You can have one main document (the one you compile), and then input the code from the other documents with

Code: Select all

\input{anotherdocument.tex}
This is nice to keep order in your things, and behaves just like if all the LaTeX code was in one file :)
OS, LaTeX-system, editor: Arch Linux 64bit, TeXlive, Kile | Windows 10 Professional 64bit, MikTeX 4.9, TeXnicCenter 2.02 64bit
Post Reply