TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This is probably online but I am not sure how to word the search. I have a long latex document, and it is getting messy editing it, is there a way to split the chapters into separate latex documents and insert like a reference to them in the main document such that when the main document is build they will show in the pdf.


share|improve this question

migrated from stackoverflow.com May 7 '12 at 11:35

This question came from our site for professional and enthusiast programmers.

@duffymo thanks \include was what I was looking for. – mihajlv May 6 '12 at 23:59
Your question was migrated here from another stackexchange site. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. – Martin Scharrer May 7 '12 at 13:02
up vote 2 down vote accepted

use \input{firstfile}

see http://web.science.mq.edu.au/~rdale/resources/writingnotes/latexstruct.html for more information.

share|improve this answer
Altin Thanks for the answer \include{firstfile} was what I was looking for. – mihajlv May 6 '12 at 23:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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