Hello, I'm trying to working on compiling a project from various files that I have. Eventually, this will be used as a dissertation so it's basically trying to set up the document with multiple files, each file being a chapter of its own.
My problem is that when I started the new project, I don't know how to add files to it. I figured this would be something simple, but nothing shows up on the navigation->structure bar, nor the navigation->files bar.
I'm using the command \includedoc{file} to include my files and everything compiles nicely, but nothing shows up in the navigation bar. Also, I tried using \input and \include but if I use that, I have to build the complete project just to view a chapter and I don't really want to do that.
Can anyone help? thanks
Jon
General ⇒ Project Structure Not working with Multiple files
-
- Posts: 1
- Joined: Fri Jun 01, 2007 9:22 am
- pumpkinegan
- Posts: 91
- Joined: Thu May 03, 2007 10:29 pm
Project Structure Not working with Multiple files
I would recommend the \include command. You could have a main file which consisted of package declarations and a chapters and appendixes defined by \include commands.
To compile only selected chapters just comment out an \include with % command
As for adding files to a created project, I do not find TeXnicCenter too strong in that regard. WinEdt (requires a license or reinstall after 30 days) is better, because by clicking a button, the project tree is refreshed. I am not aware of a similar button in TeXnicCenter, other that closing the project and creating it again.
Patrick.
To compile only selected chapters just comment out an \include with % command
Code: Select all
\include{ch1/chapter1}
%\include{ch2/chapter2}
\include{ch3/chapter3}
Patrick.
Re: Project Structure Not working with Multiple files
I'm writing my thesis now, and I use the \input{} command liberally. I've got a separate file not only for each chapter, but also for the front matter (vitae, acknowledgments, abstract, etc.), one for my \usepackage{} declarations and another for all of my \newcommand{}s. As suggested above, I just comment out the chapters I'm not working on at the moment. Because of the way the thesis package I'm using is configured, I get the title page, the table of contents with only the items I've left uncommented, the list of tables and figures in that chapter, whatever I'm working on at the moment, and the bibliography subset. The title page is extraneous, but I've learned to live with it. All the rest is handy to double check that my \section{}, \subsection{}, and \caption{} commands are correctly defined.
To refresh the tree, you don't have to close the file and reload it, however. All you have to do is do a manual save of your main file (or better yet, save all, ctrl-shift-s). The autosave doesn't refresh, but on a manual save, all of the trees will refresh. If you want a button, use the one that looks like a stack of floppy disks.
Besides the fact that if you're writing your thesis, you should just train your fingers to hit ctrl-shift-s at the end of any paragraph on general principles.
To refresh the tree, you don't have to close the file and reload it, however. All you have to do is do a manual save of your main file (or better yet, save all, ctrl-shift-s). The autosave doesn't refresh, but on a manual save, all of the trees will refresh. If you want a button, use the one that looks like a stack of floppy disks.
Besides the fact that if you're writing your thesis, you should just train your fingers to hit ctrl-shift-s at the end of any paragraph on general principles.