# [OS X TeX] Per-folder project root

Mon Oct 12 20:03:07 EDT 2009

Chris Goedde wrote:
[]
> Yes, I understand all that. The problem with that model is (a) you have
> to set it in every file, and (b) if you change the name of the root file
> then you have to change it in every file. What I'm saying is that it
> would be nice if you could set this once for every file in a given folder.

Here is a possibility: In the preamble of your main Notes.tex file, write

\def\INPUT#1{%
\immediate\write18{printf \jobname.tex > #1.texshop}%
\input{#1}}