GeneralHow to add files to the project???

General information and discussion about TeXnicCenter
Post Reply
bleriot13
Posts: 3
Joined: Wed Apr 15, 2009 2:45 pm

How to add files to the project???

Post by bleriot13 »

Hi,

I have just installed Texniccenter 1.0 and after a few hours of trying, googling and so on, I've given up.

I have created a project with a main file. This one uses (inputs) other secondary files. The thing I've been trying to do is to add these secondary files to the navigator, with no success at all.

I tried to save the project when the secondary files were open in TXC / wait for the autosave to run, closing then TXC and reopening it again... to no avail. The secondary files are never shown in the navigator.

Any ideas?

Thank you very much.

Bleriot.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

MartinC
Posts: 153
Joined: Wed Jan 17, 2007 10:09 pm

Re: How to add files to the project???

Post by MartinC »

This is strange, the files should appear in the navigator window automatically (although with a delay, after compiling the project or saving all files).
bleriot13
Posts: 3
Joined: Wed Apr 15, 2009 2:45 pm

Re: How to add files to the project???

Post by bleriot13 »

Martin,

So you confirm that nothing should be done to make the files appear in the navigator? I mean, no "manual" actions on my side are required to make them show up?

By the way... there is something I didn't mention before because I didn't think it was important. I guess that this could be the reason why TXC is not including the filenames in the navigator...

I do not use \input{} directly to include the secondary files, but other macros that a colleague of mine created some time ago. These are \inputtext{filename} and \inputslide{filename}. We use these to add some specific pre-formatting to the files we load (the first one for "regular" text, the second one to provide with some slide-like aspect to the text).

Could it be possible that TXC fails to parse these macros and therefore didn't realize that I'm including secondary files? Or the file-to-navigation-box process is independent of such parsing? I mean, I guess there are two possible ways to let TXC find out which files belong to a project: (a) parsing the main file for \input{} macros or (b) just looking at the set of files open. If the second mechanism is the one TXC uses, then the use of \inputtext and \inputslide should be no problem at all for TXC. However, if the parsing method is the one used, this would mean that my files will never be shown in the navigation box...

I will try to set up a project using only \input just to see if TXC is able to include secondary files that are loaded using the basic \input macro... This will be tomorrow, now I have to go.

I'll let you know what happens...

Thanks a lot.
MartinC
Posts: 153
Joined: Wed Jan 17, 2007 10:09 pm

Re: How to add files to the project???

Post by MartinC »

Ok, that's the reason. TxC only looks for "include" and "input".
bleriot13
Posts: 3
Joined: Wed Apr 15, 2009 2:45 pm

Re: How to add files to the project???

Post by bleriot13 »

Martin,

I confirm this from the "practical" standpoint. My test using \input(ed) secondary files worked as charm.

Thanks once more.
Post Reply