TeXworksRoot File Definition

Information and discussion about TeXworks, an integrated LaTeX environment for several platforms
Post Reply
denisyuk23
Posts: 2
Joined: Tue Sep 20, 2011 3:54 pm

Root File Definition

Post by denisyuk23 »

Hi,

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.
Last edited by denisyuk23 on Wed Sep 21, 2011 8:08 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

denisyuk23
Posts: 2
Joined: Tue Sep 20, 2011 3:54 pm

Re: Root File Definition

Post by denisyuk23 »

Found the solution by myself.
It works if I use a relative path: /../main.tex
...so simple.
Post Reply