I am working on a collaborative project and we use Dropbox to store our shared files. I would like to \input a table made in tex (called table.tex) to a tex document but table.tex has a different file path within Dropbox on different computers. For example, one person's might look like this
/Users/usernameA/Dropbox/folder1/tables/table.tex
and the other's might be
/Users/usernameB/Dropbox/folderx/folder1/tables/table.tex
This is what we've been doing:
\newcommand{\rootPath}{/Users/usernameA/Dropbox/folder1/tables
%\newcommand{\rootPath}{/Users/usernameB/Dropbox/folderX/folder1/tables
Whoever is recompiling the document comments out other people's paths and later in the document
\input{"\rootpath/table.tex"}
Is there a simpler way to access table.tex from different folders on different computers?
\input{table}and each user arrange that their Dropbox is in the tex input path. – David Carlisle Sep 02 '20 at 21:15