LyXestauto relative paths

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

estauto relative paths

Post by davidzentlermunro »

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):

Code: Select all

\estauto{C:/Dropbox/TopicX/paper/tables/Desc_Stat_2019new.tex}{15}{c}
When I use a relative path it doesn't find the file:

Code: Select all

\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:

Code: Select all

% *****************************************************************
% Estout related things
% *****************************************************************
\let\estinput=\input % define a new input command so that we can still flatten the document
 
\newcommand{\estwide}[4][1]{
  \small{
        \vspace{-1ex}{
            \textsymbols% Note the added command here
            \begin{tabularx}
            {#1\textwidth}{H*{#3}{#4}}
            \toprule
            \estinput{#2}
            \bottomrule
            \addlinespace[.75ex]
            \end{tabularx}
            }
        }   
  }
 
\newcommand{\estauto}[3]{
  \small{
        \vspace{-1ex}{
            \textsymbols% Note the added command here
            \begin{tabular}{l*{#2}{#3}}
            \toprule
            \estinput{#1}
            \bottomrule
            \addlinespace[.75ex]
            \end{tabular}
            }
        }
  }
 
% Allow line breaks with \\ in specialcells
\newcommand{\specialcell}[2][c]{%
    \begin{tabular}[#1]{@{}c@{}}#2\end{tabular}
}

Recommended reading 2024:

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

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

Post Reply