Featured Book

LaTeX Beginners Guide

Who is online

In total there are 15 users online :: 1 registered, 0 hidden and 14 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

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

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

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

Postby magical marshmallow on Mon Jan 21st, 2013

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.
Reason: added code markup
magical marshmallow
 
Posts: 30
Joined: Mon Jan 21st, 2013

Re: Multiple tex files in parent document

Postby josephwright on Thu Jan 24th, 2013

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.tex
chapter1/chapter1.tex
...

and use \include{chapter1/chapter1} and so on.
Joseph Wright
josephwright
Site Moderator
 
Posts: 802
Joined: Tue Jul 1st, 2008


Topic Tags

includeinput

Return to General

Who is online

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