TeXworks ⇒ Root File Definition
-
- Posts: 2
- Joined: Tue Sep 20, 2011 3:54 pm
Root File Definition
I'm using TeXworks and TeX Live. The project files are stored in several folders, e.g. .../Tex/Introduction/intro.tex and the main.tex-file is stored in .../Tex/main.tex
I put the command % !TEX root = //homefolderOnServer/.../Tex/main.tex
at the beginning of the file intro.tex, but on compilation it tries to access the file path //homefolderOnServer.../Tex/Introduction///homefolderOnServer/.../Tex/main.tex and subsequently can't read the main.tex file.
Can anyone tell me why TeXworks joins the file paths of the intro and main file? And how do I prevent this?
Thanks!
Found the solution by myself.
It works if I use a relative path: /../main.tex
...so simple.
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
-
- Posts: 2
- Joined: Tue Sep 20, 2011 3:54 pm
Re: Root File Definition
It works if I use a relative path: /../main.tex
...so simple.