Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

Thanks.

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
2  

1 Answer 1

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

 
discard

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.