# Can't find tikz subfiles

I've the following project structure:

./main.tex
./ch1/ch1.tex
./ch1/tikz1/tikz1.tex

The main.tex looks like:

\documentclass{book}
\begin{document}
\subfile{./ch1/ch1.tex}
\end{document}

The ch1.tex looks like:

\documentclass[../main.tex]{subfiles}
\begin{document}
\begin{figure}[H]
\centering
\subfile{./tikz1/tikz1.tex}
\end{figure}
\end{document}

When I run the ch1.tex everything is ok, it finds the tikz1.tex, but when I run the main.tex it can't find the tikz1.tex.

-
Why don't you use standalone package/class? –  kiss my armpit Mar 16 '13 at 1:23
DO you need the special tikz?.tex files? Why do you not include them in the chapter file? –  Kurt Mar 16 '13 at 1:50
I need them because the tikz code is very big and I don't want to confuse it with ch1.tex code. –  Andyk Mar 16 '13 at 1:53
I tried standalone but I got the same problem. Could you please show how to do it correctly? –  Andyk Mar 16 '13 at 1:53
Welcome to TeX.sx!. Please include @Andyk like this so as to ping the other commenter –  texenthusiast Mar 16 '13 at 2:02