I'm writing my thesis, and there's a overall file overall.tex
together with several section files, which are \input
ed in the overall.tex
.
Could I write something in the section files to prevent them from being compiled, which will certainly fail, producing some unneeded aux files. In an other word, to prevent compiling the section file by mistake.
I'm using XeLaTeX and AuCTeX.
\input
, there are two ways to avoid the processing of the section files: (1) comment out the reading in, i.e.%\input{...}
; (2) at the beginning of the "unwanted" section file, insert\endinput
as the first line. commenting out in theoverall
file may be easier to remember when you're under pressure, as it's more obvious.\section{...}
. it failed at once with the error! Undefined control sequence.
after killing it withx
, i checked what files were present. no.aux
file was created. so i think we need a clarification from the OP.%!TEX root =
in the\include/\input
files? It is useful and many TeX editors supports it.