I have recently re-installed Miktex and I cannot plot form a file anymore that compiled before re-installing it. The following code


\draw plot file{line.dat};

produces the error message "File ended while scanning use of \pgf@parsexyline.\par". The file line.dat contains 2 lines

0.5660 0.6968
1.0000 0.6968

and no invisible characters. I checked that the --enable-write18 is added to the pdflatex command in TeXmaker and that the installation path of GNUplot is added to the PATH variable. I am at a complete loss because this example is so minimal, yet it still doesn't work.

Thanks for your help!

  • show the log-file. – Ulrike Fischer Sep 9 '19 at 15:46
  • Link to the log file is here. – Benjamin Sep 9 '19 at 17:39
  • I can reproduce your error if I change the line ending to CR, but only in miktex, in texlive it is okay. – Ulrike Fischer Sep 9 '19 at 18:59
  • Hmm, I get the error both when the line.dat file contains CR and CRLF end-of-line characters. Any ideas what might be causing it? – Benjamin Sep 10 '19 at 1:09
  • There is clearly a bug in miktex and I opened an issue github.com/MiKTeX/miktex/issues/364. But it affects for me only files with CR-ending, so check carefully if you really changed the ending. – Ulrike Fischer Sep 10 '19 at 9:39

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.