I have a project with lots of large files that is not working correctly. It is to large to bugfix here, but perhaps I would know were to look If I learn the cause of some odd behavior in a simpler piece of code.
I have two files, a.tex and b.tex
b.tex gets included in a.tex but the \clearpage is annoying and therefore 'relaxed'.
a.tex:
\documentclass{scrartcl}
\usepackage{import}
\begin{document}
\begingroup
\let\clearpage\relax
\tableofcontents
\include{b}
\endgroup
\end{document}
b.tex (the vspace is to replace the effect of a large amount of text)
\section{Scalarfields}
\subsection{Child 1}
Test
\subsection{Child 2}
Test
\vspace{900pt}
\subsubsection{Childchild}
Now for some reason the Childchild subsubsection is not showing op in my toc. Any of you have a clue as to why not? I am using MikTeX with all packages installed and updated (a few days ago).
Edit:
I heard a lot of comments saying the \include command needs the \clearpage, so relaxing it is a bad idea. If so I should indeed consider using \input. Is there is no way to have the separate aux files and something like the \includeonly for the input command? (didn't think so) Because that's the reason I am using \include …
It does something, when it is not there there is a \newpage 'effect' right after the toc (because the include command uses \clearpage) The 'problem' is gone when ge \let\clearpage\relax part is removed, so I think it is relevant.
– Fictional Jun 05 '13 at 20:45\let\clearpage\relax\tableofcontents\include{b}is a really bad idea.\clearpageis an essential part of the definition of\include. – David Carlisle Jun 05 '13 at 20:47\let\clearpage\relaxis simply wrong:\includeneeds it for its workings. Use\inputinstead of\include. – egreg Jun 05 '13 at 20:47\include– David Carlisle Jun 05 '13 at 20:48\clearpageproblem: http://tex.stackexchange.com/questions/108268/redefining-include – egreg Jun 05 '13 at 20:54b.auxfile? – egreg Jun 05 '13 at 20:56Well, I guess I do not need the .aux file itself, I just like the idea that the files are evaluated separately (because they are large)
– Fictional Jun 06 '13 at 11:06