The livepreview feature doesn't work as it reports (for any file): [LivePreview-PDFLaTeX] main.tex => main.pdf (pdflatex) [LivePreview-PDFLaTeX] finished with error code 1 Cannot open log file; did you run LaTeX? The "Output" tab shows this: ***** ***** LivePreview-PDFLaTeX output: ***** cd "C:/Users/Safa Alfulaij/Desktop/latex tests/project" ***** pdflatex -synctex=1 -interaction=nonstopmode -output-directory=C:/Users/Safa Alfulaij/AppData/Local/Temp/kile-livepreviewDSSn9G main.tex ***** This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/W32TeX) (preloaded format=pdflatex) restricted \write18 enabled. entering extended mode ! I can't find file `main.tex'. <*> main.tex (Press Enter to retry, or Control-Z to exit) Please type another input file name ! Emergency stop. <*> main.tex ! ==> Fatal error occurred, no output PDF file produced! Transcript written on "C:/Users/Safa Alfulaij/AppData/Local/Temp/kile-liveprevi ewDSSn9G/texput.log". This doesn't change if I ran Kile as admin user. Kile Version 2.9.92 KDE Frameworks 5.37.0 Qt 5.9.1 (built against 5.9.1) The windows windowing system
Can you attach a small test case that demonstrates the problem? Thanks.
Anything will trigger this error. example.tex \documentclass{article} \begin{document} Text \end{document}
Does it work if you compile documents in the traditional way (without using live preview)?
Yes it does. Sorry for not saying that previously! :(
Ok, no problem. Then we have to look further. It seems that you use a folder name that contains spaces "latex tests". Is that right? Can you try another name without spaces? Which LaTeX distribution are you using on Windows? TeX Live? So far I've only run tests with MiKTeX.
:) The problem was with spaces, right. And not only the "latex tests" folder, but my name as well "Safa AlFulaij". So just escape the path string for pdflatex and everything will be fine! :) Thanks!
Actually, Kile is escaping the strings correctly. The problem seems to lie within TeXlive on Windows... Running a similar command on the command line also fails.
Git commit 306a7322bbbf6413f59ccda3089164575907b6b8 by Michel Ludwig. Committed on 13/01/2018 at 06:05. Pushed by mludwig into branch 'master'. Use the correct path list separator on Windows Related: bug 388348 M +2 -2 src/dialogs/texdocumentationdialog.cpp M +4 -8 src/kileconstants.h M +5 -5 src/kileinfo.cpp M +7 -7 src/kilelauncher.cpp M +5 -5 src/livepreview.cpp M +2 -2 src/quickpreview.cpp https://commits.kde.org/kile/306a7322bbbf6413f59ccda3089164575907b6b8