LaTeX forum ⇒ LyX ⇒ estauto relative paths

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
davidzentlermunro
Posts: 2
Joined: Wed Sep 09, 2020 11:00 am

estauto relative paths

New lyx user here. Generally love it but have an issue using estauto with relative paths. When I use a full path it works fine (the lyx doc is in the paper folder):

\estauto{C:/Dropbox/TopicX/paper/tables/Desc_Stat_2019new.tex}{15}{c}

When I use a relative path it doesn't find the file:

\estauto{/tables/Desc_Stat_2019new.tex}{15}{c}

I get the error: "! LaTeX Error: File /tables/Desc_Stat_2019new.tex' not found."

However, relative paths seem to work fine for coauthors (and also work fine for figures for me). Any help much appreciated. Here is the preamble section for estauto:


Ijon Tichy
Posts: 314
Joined: Mon Dec 24, 2018 10:12 am
If a path starts with a slash, it is always an absolute path from the root directory (of the current drive). So either use tables/Desc_Stat_2019new.tex (recommended) or dot syntax ./tables/Desc_Stat_2019new.tex`

Note: I'm never using LyX.

davidzentlermunro
Posts: 2
Joined: Wed Sep 09, 2020 11:00 am
Thanks, however neither of the suggested solutions worked: file still unrecognised (note my original code works for coauthors, just not me! this makes me think there's something I haven't yet installed that I should).