# Show a full outline with subfolders in TeXnicCenter?

I have a question regarding the structure of a project in TeXnicCenter. I am currently writing my thesis and created a project with a main document main.tex. Each chapter is a tex subfile that I link to the main document using the import package. However, the outline does not contain all the chapters and sections but only the ones in the main document. (In the following example, I would only have "Chapter 1"). I tried creating the chapter1.tex as a project and as a single file but I did not manage to change this. Do you have an idea on how to proceed to be able to see the full structure of the document? How can I link properly the subfiles to the main file?

Here are the two files for my example with a main file and a subfile.

main.tex:

\documentclass{book}
\usepackage{import}
\begin{document}
\chapter{Chapter 1}
\import{sections/}{chapter1.tex}
\end{document}


chapter1.tex

\section{section1}


I have the same problem. The way I found was to trick TeXnicCenter by giving input commands that are not executed but are read by TeXnicCenter to find files composing the project. In your example I would try:

\documentclass{book}
\usepackage{import}
\begin{document}
\chapter{Chapter 1}
\import{sections/}{chapter1.tex}
\iffalse
\input{sections/chapter1}
\fi
\end{document}


HTH