I am using subimport to include .tex chunks from different folders. Everything except my tikz figures seems to work fine. Here is a minimum working example:


> Folder1 > chapter1.tex
          > data > turn_0.3.csv

my main.tex file:

\pgfplotsset{plot coordinates/math parser=false}





    scale only axis,
    inner axis line style={->},
    xlabel={Time [s]},
    ylabel={Badnwidth Usage [B/s]},
    axis x line*=bottom,
axis y line*=left,
    no markers,
\addplot[solid] table [x index = 0, y index =1, col sep=semicolon, green] {data/turn_0_3.csv};
\addlegendentry{0.3 rad/s}
\caption{Network usage in bytes per second for a single robot performing a 360  [$^\circ$] in-place rotation.}

the .csv is a 3 column seperated by ';'.

I get the following error:

 Package pgfplots Error: Could not read table file 'data/turn_0_3.csv'. In case you intended to provide inline data: maybe TeX screwed up your end-of-lines? Try `row sep=crcr' and terminate your lines with `\\' (refer to the pgfplotstable manual for details).

I can fix this be adding


in the main.tex and appending \relativepath to the

\addplot[solid] table [x index = 0, y index =1, col sep=semicolon, green] {\relativepath data/turn_0_3.csv};

But I would like to have a solution that does not require modifying chapter1.tex file.

Thank you for your time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.