LaTeX forum ⇒ GeneralMultiple tex files in parent document

LaTeX specific issues not fitting into one of the other forums of this category.
magical marshmallow
Posts: 30
Joined: Mon Jan 21, 2013 11:37 am

Multiple tex files in parent document

Postby magical marshmallow » Mon Jan 21, 2013 12:08 pm

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:
>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

  1. ! I can't write on file `../Chapter.aux'.
  2. \@include ...\immediate \openout \@partaux #1.aux
  3. \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 21, 2013 1:57 pm, edited 1 time in total.
Reason: added code markup

Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Postby josephwright » Thu Jan 24, 2013 10:24 pm

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
  1. thesis.tex
  2. chapter1/chapter1.tex
  3. ...

and use \include{chapter1/chapter1} and so on.
Joseph Wright

Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests