[Tex/LaTex] Overleaf – Included sty and other input package files common across all the projects

overleaftexinputstexmf

When an ordinary user specifies TEXINPUTS in Overleaf [e.g., as illustrated here] is there a concept of a ".." directory above the current Project? The reason I would like to be able to do that is that I have image files, defs, and so on that I want to be able to draw on across all my Overleaf Projects, and I would prefer not to create separate copies of them to put in a ./includes//: inside whichever current Project I happen to be working.

To be clear, in my local texlive usage for those shared files I just use texmf/ in my login directory, but Overleaf of course doesn't have the notion of "my login directory". Or does it?

Best Answer

No – each Overleaf project is a separate Docker (mini) container, so they can't see each other. Having said that, you can use the "Add files > File from other project" in the Overleaf top bar to share files between projects.

These would become linked/aliased files, but updates are not propagated automatically. You'll have to click on the "Refresh" option for each linked child file, every time there's an "upstream" change, to retrieve and apply the changes.