Registered Member
|
It seems that the live preview feature in Kile in the latest KDE for Windows, is not working. Whenever I make any modification to the document, it throws an error [Kile] Unknown tool LivePreviewPDFLaTeX and it doesn't show a live preview. All default settings, MikTeX as backend.
So 2 questions.
|
Registered Member
|
Do not know if it helps for Windows, but try to find Kile rc file (kilerc) and edit section [LivePreviewPDFLaTeX] in it as appropriate for your system.
Another issue can be that pdflatex is not in $PATH (check this). |
Registered Member
|
Almost forgot about disabling: Settings->Configure Kile...->Kile->Life Preview, uncheck "Enable Life Preview".
|
Registered Member
|
Neither above file has anything about LivePreviewPDFLaTeX. No *.rc file has anything about LivePreviewPDFLaTeX at all. Even stronger: I looked the entire KDE folder for all files containing "LivePreviewPDFLaTeX" and kile.exe is the only file that contains this string! It is there. I can compile files from the windows command line and I can compile them with the compile button (although this often makes Kile crash afterwards, as I wrote in the other topic). |
Registered Member
|
Can you try to open kilerc from config directory (cd %APPDATA%\.kde\share\config) and add the following part
after [Tool/Lilypond/TeX] section? //This can also be done using Tools manager wizard from configuration window. |
Registered Member
|
Oh there kilerc is! I had expected it to be in the Program Files/KDE folder.
I did, but it didn't change anything, the same error is displayed. I also tried replacing "LivePreview-PDFLaTeX" by "LivePreviewPDFLaTeX" (as it litterally appears), but no change there either. I also tried replacing "class=LaTeXLivePreview" with "class=LaTeXpreview" (as appears in another related item), but no change there either. I'll paste the current file (vanilla win7 install with your additions) below for in case you'd want to look at it (only replacing my document links with "SNIP").
|
Registered Member
|
Ok. Today I have some time to experiment on Windows XP box (our Institute have no money to buy expensive Windows 7, sorry).
This is tailored down section for LivePreview:
Tested. Screenshot. |
Registered Member
|
Well done. Alas, still no change when I add this to kilerc in win7. The same error is given and the LivePreview doesn't work. If you want, I can give you access to a windows 7 box to experiment with (via TeamViewer). Or if you have any other ideas that I could try to make it work on Windows 7, I'd be happy to try them out. |
Registered Member
|
Try create LivePreviewPDFLaTeX tool using Settings->Configure Kile...->Tools->Build. Use appropriate values to fill the fields in wizard window. Close Kile and replace the tool block in kilerc with the proposed snippet. Restart Kile.
|
Registered Member
|
Aha! Ok, I got it working now, thanks! So what I had to do was first add the tool via the wizard (which already removed the error but didn't work, since there is no class=LaTeXLivePreview in the wizard) and then manually change the newly created section in kilerc to what you posted here.
I still don't quite get how this ever became a windows-only bug, but hey, it works now, that's the most important part. Thanks a bunch yurchor! |
Registered Member
|
I've got the same problem as the OP with just one major difference. I have no kilerc file, nowhere and I can't find a place where I could download it. It's the windows7 64bit version. I hope someone of you could provide me with the file or just tell me how to create it atleast.
|
Registered Member
|
Try
then
in Windows command window (Windows main menu (Start button) -> Run... -> cmd<Enter>) to identify this file location. |
Registered Member
|
Or simply type
|
Registered Member
|
oh wow, thanks, I was looking in the directory I installed it in and couldnt find it there. |
Registered Member
|
Hi thanks for the information and code.
It really works fine .. |
Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell