### Who is online

In total there are 25 users online :: 1 registered, 0 hidden and 24 guests (based on users active over the past 5 minutes)
Most users ever online was 424 on Sat May 04, 2013 4:33 pm

Users browsing this forum: Bing [Bot] and 24 guests

## Multiple tex files in parent document

includeinputAdd tags LaTeX specific issues not fitting into one of the other forums of this category.

### Multiple tex files in parent document

Hi There,

I am a complete newbie to Latex, so go easy on me here please!! A friend recommended Texmaker as my editor, so I am using this on a Windows platform

I am writing my PhD thesis and essentially what I want is a parent tex file Thesis.tex and then several seperate chapter tex files which are then included.

The folder structure I would like is to have a folder say:
Thesis
>Thesis
>Chapter 1
>Chapter 2
etc etc.

Now my problem, when I use this and the `\include` command [`\include{../Chapter 3 - Experimental Method/Experimental Method}`], I am getting a compile error

Code: Select all  •  Open in writeLaTeX
`! I can't write on file `../Chapter.aux'.\@include ...\immediate \openout \@partaux #1.aux\immediate \write \@partau...`

Is this to do with the folder structure I am using or what is going on? if anyone could help I'd be very grateful
Last edited by cgnieder on Mon Jan 21st, 2013, edited 1 time in total.
magical marshmallow

Posts: 9
Joined: Mon Jan 21st, 2013

### Re: Multiple tex files in parent document

Security considerations mean that writing anything in a directoty 'above' the one containing the main `.tex` file is disabled as standard. You can enable it, but better would be to have a structure
Code: Select all  •  Open in writeLaTeX
`thesis.texchapter1/chapter1.tex...`

and use `\include{chapter1/chapter1}` and so on.
Joseph Wright
josephwright
Site Moderator

Posts: 788
Joined: Tue Jul 1st, 2008

includeinput