GeneralMultiple tex files in parent document

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

Multiple tex files in parent document

Post by magical marshmallow »

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

! 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 21, 2013 1:57 pm, edited 1 time in total.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

Multiple tex files in parent document

Post by josephwright »

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

thesis.tex
chapter1/chapter1.tex
...
and use \include{chapter1/chapter1} and so on.
Joseph Wright
Post Reply