fhackenberger / ktikz

KtikZ provides a nice user interface for making pictures using TikZ.
Other
348 stars 34 forks source link

Qtikz on Windows 10: MikTeX pdflatex does not compile the temp tex file #46

Closed jhsh closed 4 years ago

jhsh commented 4 years ago

Since a month ago qtikz (using MikTeX pdflatex) has failed to compile the temporary tex file, producing the error message: [LaTeX] Error: run failed. [LaTeX] Warning: could not load LaTeX logfile.

My test file is very simple: \begin{tikzpicture} \node (a) {a}; \end{tikzpicture}

Three files appear in the system temp/qtikz directory: texput.log temptikzcodep21180.pgf temptikzcodep21180.tex

The pgf and tex files are correct (the tex file compiles correctly if run independently as a standalone file). No temporary pdf is produced.

Texput.log reads: This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.6) (preloaded format=pdflatex 2020.6.29) 30 JUN 2020 16:54 entering extended mode **C:/Users/JHSH~1.BIO/AppData/Local/Temp/qtikz/temptikzcodep21180.tex

???:0: Emergency stop.

\protect <*> C:/Users/JHSH~ 1.BIO/AppData/Local/Temp/qtikz/temptikzcodep21180.tex Here is how much of TeX's memory you used: 4 strings out of 480790 113 string characters out of 2891204 238890 words of memory out of 3000000 16119 multiletter control sequences out of 15000+200000 532338 words of font info for 24 fonts, out of 3000000 for 9000 1141 hyphenation exceptions out of 8191 3i,0n,0p,1b,6s stack positions out of 5000i,500n,10000p,200000b,50000s ???:0: ==> Fatal error occurred, no output PDF file produced! I have been watching whether someone else also has this problem (stack exchange, stack overflow, google) but nothing so far. Any idea what could cause this problem?
jhsh commented 4 years ago

I have finally solved this and it is not a QTikZ problem. The issue is that since MikTeX 2.9.7440 of 2020-05-17 Windows 8.3 file names (aka short file names) are not supported anymore. From the TeXput.log output it is clear that this was the problem

This is pdfTeX, Version 3.14159265-2.6-1.40.21 (MiKTeX 20.6) (preloaded format=pdflatex 2020.6.29) 30 JUN 2020 16:54 entering extended mode **C:/Users/JHSH~1.BIO/AppData/Local/Temp/qtikz/temptikzcodep21180.tex

Since re-installing Windows10 my users directory name has changed and the problem has vanished.