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.

I have main.tex file with:

\documentclass[]{report}
\begin{document}
\input{filename.tex}
\end{document}

Let say filename.tex have the following content:

\begin{abstract}
text    
\end{abstract}

Everything works, by TeXstudio IDE don't recognize any commands in filename.tex, because it doesn't have declaration of the document class. And so, it becomes inconvenient to work with this file.

Is there any better way to include files one into another?

share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

In texstudio, there's an menu Options->Define Current Document as Master Document. It makes life much easier for multiple file projects.

share|improve this answer
    
Brilliant! Many, many thanks! –  Edward Ruchevits Nov 27 '12 at 5:01
    
Here, thanks are in the form of upvotes and (if correct), accepting the answer. :) –  recluze Nov 27 '12 at 5:09
add comment

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.