This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Kile: "[Kile] Unknown tool LivePreviewPDFLaTeX"

Tags: None
(comma "," separated)
P3t3r
Registered Member
Posts
33
Karma
0
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.
  • Is there any known fix to make it work? Not sure if this is a real bug or just something that requires some extra config. It seems like a very handy feature but alas it doesn't work.
  • Is there any way to disable this all together, e.g. for when I'm working on battery? As I can image this feature is quite a resource hog.
User avatar
yurchor
Registered Member
Posts
64
Karma
1
OS
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).
User avatar
yurchor
Registered Member
Posts
64
Karma
1
OS
Almost forgot about disabling: Settings->Configure Kile...->Kile->Life Preview, uncheck "Enable Life Preview".
P3t3r
Registered Member
Posts
33
Karma
0
yurchor wrote: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.
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!

yurchor wrote:Another issue can be that pdflatex is not in $PATH (check this).
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).
User avatar
yurchor
Registered Member
Posts
64
Karma
1
OS
Can you try to open kilerc from config directory (cd %APPDATA%\.kde\share\config) and add the following part
Code: Select all
[Tool/LivePreview-PDFLaTeX/Default]
autoRun=yes
checkForRoot=no
class=LaTeXLivePreview
command=pdflatex
from=
jumpToFirstError=yes
options=-synctex=1 -interaction=nonstopmode -output-directory='%dir_target' '%source'
to=pdf
type=Process

[Tool/LivePreview-PDFLaTeX/PSTricks]
autoRun=yes
checkForRoot=no
class=LaTeXLivePreview
command=pdflatex
from=
jumpToFirstError=yes
options=-shell-escape -synctex=1 -interaction=nonstopmode -output-directory='%dir_target' '%source'
to=pdf
type=Process

[Tool/LivePreview-XeLaTeX/Default]
autoRun=yes
checkForRoot=no
class=LaTeXLivePreview
command=xelatex
from=
jumpToFirstError=yes
options=-synctex=1 -interaction=nonstopmode -output-directory='%dir_target' '%source'
to=pdf
type=Process


after [Tool/Lilypond/TeX] section?

//This can also be done using Tools manager wizard from configuration window.
P3t3r
Registered Member
Posts
33
Karma
0
yurchor wrote:open kilerc from config directory (cd %APPDATA%\.kde\share\config)

Oh there kilerc is! I had expected it to be in the Program Files/KDE folder.

yurchor wrote:and add the following part

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").

Code: Select all
[$Version]
update_info=kile.upd:Kile1.5v1,kile.upd:Kile1.6v1,kile.upd:Kile1.7v1,kile.upd:Kile1.9v1,kile.upd:Kile1.9v2,kile.upd:Kile2.0v1,kile.upd:Kile2.0v2,kile.upd:Kile2.0v3,kile.upd:Kile2.0v4,kile.upd:Kile2.0v5

[Document-Settings,URL=file:///C:/SNIP]
Bookmarks=
Encoding=windows-1252
FoldedColumns=
FoldedLines=
Highlighting=LaTeX
Indentation Mode=normal
Mode=LaTeX
ReadWrite=false

[Document-Settings,URL=file:///C:/SNIP]
Bookmarks=
Encoding=windows-1252
FoldedColumns=
FoldedLines=
Highlighting=LaTeX
Indentation Mode=normal
Mode=LaTeX
ReadWrite=true

[Document-Settings,URL=file:///C:/SNIP]
Bookmarks=
Encoding=windows-1252
FoldedColumns=
FoldedLines=
Highlighting=LaTeX
Indentation Mode=normal
Mode=LaTeX
ReadWrite=true

[Editor Ext]
envIndentNumSpaces=2

[FileBrowserWidget]
Decoration position=0
Previews=false
Show hidden files=false
Sort by=Name
Sort directories first=true
Sort reversed=false
View Style=Simple

[Files]
LastDocument[$e]=$HOME/SNIP
lastDir[$e]=$HOME/

[FilesOpenOnStart]
DocsOpenOnStart0[$e]=$HOME/SNIP
DocsOpenOnStart1[$e]=$HOME/SNIP
NoDOOS=2
NoPOOS=0

[Geometries]
MainwindowHeight=738
MainwindowWidth=1280
horizontalSplitterLeft=0
horizontalSplitterRight=721
verticalSplitterBottom=147
verticalSplitterTop=513

[Kate Document Defaults]
Allow End of Line Detection=true
Allow Simple Mode=true
Automatically Insert Closing Brackets=false
BOM=false
Backup Config Flags=1
Backup Prefix=
Backup Suffix=~
Encoding=System
End of Line=0
Indent On Backspace=false
Indent On Tab=true
Indent On Text Paste=false
Indentation Mode=normal
Indentation Width=2
Keep Extra Spaces=false
Line Length Limit=2048
No sync=false
On-The-Fly Spellcheck=false
Overwrite Mode=false
PageUp/PageDown Moves Cursor=false
Remove Spaces=false
RemoveTrailingDyn=false
ReplaceTabsDyn=false
Search Dir Config Depth=3
Show Spaces=false
Show Tabs=true
Smart Home=true
Tab Handling=2
Tab Width=8
Word Wrap=false
Word Wrap Column=80
Wrap Cursor=true

[Kate Part Defaults]
Encoding Prober Type=1
Fallback Encoding=ISO-8859-15

[Kate Renderer Defaults]
Schema=kile - Normal
Show Indentation Lines=false
Show Whole Bracket Expression=false
Word Wrap Marker=false

[Kate Vi Input Mode Settings]
Normal Mode Mapping Keys=
Normal Mode Mappings=

[Kate View Defaults]
Allow Mark Menu=true
Auto Center Lines=0
Auto Completion=true
Bookmark Menu Sorting=0
Default Mark Type=1
Dynamic Word Wrap=false
Dynamic Word Wrap Align Indent=80
Dynamic Word Wrap Indicators=1
Folding Bar=true
Icon Bar=false
Line Numbers=false
Maximum Search History Size=100
Persistent Selection=false
Replacement Text History=
Scroll Bar Marks=false
Scroll Past End=false
Search Pattern History=
Search/Replace Flags=140
Smart Copy Cut=false
Vi Input Mode=false
Vi Input Mode Hide Status Bar=false
Vi Input Mode Steal Keys=false
Word Completion=true
Word Completion Minimal Word Length=3

[KileConfigDialog]
Height 800=738
Width 1280=879

[KileMainWindow]
State=AAAA/wAAAAD9AAAAAAAABQAAAAKYAAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAUAAAAWAG0AYQBpAG4AVABvAG8AbABCAGEAcgEAAAAA/////wAAAAAAAAAAAAAAGAB0AG8AbwBsAHMAVABvAG8AbABCAGEAcgEAAADC/////wAAAAAAAAAAAAAAFgBlAGQAaQB0AFQAbwBvAGwAQgBhAHIAAAAAAP////8AAAAAAAAAAAAAABYAbQBhAHQAaABUAG8AbwBsAEIAYQByAAAAAAD/////AAAAAAAAAAAAAAAmAE8AawB1AGwAYQByAFYAaQBlAHcAZQByAFQAbwBvAGwAQgBhAHIBAAACU/////8AAAAAAAAAAA==
ToolBarsMovable=Disabled
geometry-1280-800=AdnQywABAAD////4////+AAABQcAAAL/AAAAAAAAAAD////+/////gAAAAACAA==

[LivePreview]
livePreviewEnabled=true
previewEnabledForFreshlyOpenedDocuments=true

[MainWindow]
State=AAAA/wAAAAD9AAAAAAAABJwAAAJ0AAAABAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAA=
ToolBarsMovable=Disabled
geometry-1280-800=AdnQywABAAAAAADgAAAAjAAABYsAAANtAAAA6AAAAKoAAAWDAAADZQAAAAAAAA==

[MostFrequentlyUsedSymbols]
counts=
paths=

[Notification Messages]
Backup Failed Warning=false
showNotALaTeXRootDocumentWarning=false

[QuickPreview]
convert=true
dvipng=true
previewTask=PDFLaTeX ---> PDF (Okular)

[Recent Files]
File1[$e]=$HOME/SNIP
File2[$e]=$HOME/SNIP
File3[$e]=$HOME/SNIP
File4[$e]=$HOME/SNIP
File5[$e]=$HOME/SNIP
File6[$e]=$HOME/SNIP
Name1[$e]=SNIP
Name2[$e]=SNIP
Name3[$e]=SNIP
Name4[$e]=SNIP
Name5[$e]=SNIP
Name6[$e]=SNIP

[Session Settings]
Documents=file:///C:/SNIP
Saved Documents=file:///C:/SNIP,file:///C:/SNIP,file:///C:/SNIP

[Show]
BottomBarSize=121
SideBarSize=0

[TipOfDay]
RunOnStart=false

[Tool/Archive/Tar]
class=Archive
command=tar
from=kilepr
options=cvf "%S.tar" %AFL
to=tar
type=Process

[Tool/Archive/Tar + bzip2]
class=Archive
command=tar
from=kilepr
options=jcvf "%S.tar.bz2" %AFL
to=tar.bz2
type=Process

[Tool/Archive/Tar + gzip]
class=Archive
command=tar
from=kilepr
options=zcvf "%S.tar.gz" %AFL
to=tar.gz
type=Process

[Tool/Archive/Zip]
class=Archive
command=zip
from=kilepr
options="%S.zip" %AFL
to=zip
type=Process

[Tool/Asymptote/Default]
class=Compile
command=asy
from=asy
options="%S"
to=
type=Process

[Tool/BibTeX/8bit Version]
class=Compile
command=bibtex8
from=aux
options="%S"
to=bbl
type=Process

[Tool/BibTeX/Default]
class=Compile
command=bibtex
from=aux
options="%S"
to=bbl
type=Process

[Tool/ConTeXt/DVI and PS]
class=Compile
command=texexec
from=
options=--dvi --nonstopmode "%source"
to=dvi
type=Process

[Tool/ConTeXt/DVI and PS Draft]
class=Compile
command=texexec
from=
options=--dvi --draft --nonstopmode "%source"
to=dvi
type=Process

[Tool/ConTeXt/PDF]
class=Compile
command=texexec
from=
options=--pdf --nonstopmode "%source"
to=pdf
type=Process

[Tool/ConTeXt/PDF Draft]
class=Compile
command=texexec
from=
options=--pdf --draft --nonstopmode "%source"
to=pdf
type=Process

[Tool/Convert/eps2png]
class=Convert
command=convert
from=eps
options=+adjoin -antialias -trim -transparent white -density %res "%S.eps" "%S.png"
to=png
type=Process

[Tool/Convert/pdf2png]
class=Convert
command=convert
from=pdf
options=+adjoin -antialias -trim -transparent white -density %res "%S.pdf" "%S.png"
to=png
type=Process

[Tool/DBLaTeX/Convert to DVI]
class=Compile
command=dblatex
from=xml
options=-tdvi "%S.xml"
to=dvi
type=Process

[Tool/DBLaTeX/Convert to LaTeX]
class=Compile
command=dblatex
from=xml
options=-ttex "%S.xml"
to=tex
type=Process

[Tool/DBLaTeX/Convert to PDF]
class=Compile
command=dblatex
from=xml
options=-tpdf "%S.xml"
to=pdf
type=Process

[Tool/DBLaTeX/Convert to Postscript]
class=Compile
command=dblatex
from=xml
options=-tps "%S.xml"
to=ps
type=Process

[Tool/DVItoPDF/Black and White]
class=Convert
command=dvipdfmx
from=dvi
options=-c "%S.dvi"
to=pdf
type=Process

[Tool/DVItoPDF/Default]
class=Convert
command=dvipdfmx
from=dvi
options="%S.dvi"
to=pdf
type=Process

[Tool/DVItoPDF/Landscape]
class=Convert
command=dvipdfmx
from=dvi
options=-l "%S.dvi"
to=pdf
type=Process

[Tool/DVItoPNG/Default]
class=Convert
command=dvipng
from=dvi
options=-T tight -D %res -o "%S.png" "%S.dvi"
to=png
type=Process

[Tool/DVItoPS/Default]
class=Convert
command=dvips
from=dvi
options=-o "%S.ps" "%S.dvi"
to=ps
type=Process

[Tool/DVItoPS/dvi2eps]
class=Convert
command=dvips
from=dvi
options=-o "%S.eps" "%S.dvi"
to=eps
type=Process

[Tool/ForwardDVI/Document Viewer]
class=ForwardDVI
className=Okular::Part
from=dvi
libName=okularpart
libOptions=dvi
state=Viewer
to=dvi
type=Part
useDocumentViewer=yes

[Tool/ForwardDVI/Embedded Viewer]
class=ForwardDVI
className=Okular::Part
from=dvi
libName=okularpart
libOptions=dvi
state=Viewer
to=dvi
type=Part

[Tool/ForwardDVI/Okular]
class=ForwardDVI
command=okular
from=dvi
options=--unique "%target"
to=dvi
type=Process

[Tool/ForwardPDF/Document Viewer]
class=ForwardDVI
className=Okular::Part
from=pdf
libName=okularpart
libOptions=
state=Viewer
to=pdf
type=Part
useDocumentViewer=yes

[Tool/ForwardPDF/Embedded Viewer]
class=ForwardDVI
className=Okular::Part
from=pdf
libName=okularpart
libOptions=
state=Viewer
to=pdf
type=Part

[Tool/ForwardPDF/Okular]
class=ForwardDVI
command=okular
from=pdf
options=--unique '%absolute_target'
to=pdf
type=Process

[Tool/LaTeX to Web/TeX4ht (LaTeX to HTML)]
class=Compile
command=mk4ht
from=tex
options=htlatex "%source"
to=html
type=Process

[Tool/LaTeX to Web/TeX4ht (LaTeX to MathML)]
class=Compile
command=mk4ht
from=tex
options=xhmlatex "%source"
to=xml
type=Process

[Tool/LaTeX to Web/TeX4ht (LaTeX to XML)]
class=Compile
command=mk4ht
from=tex
options=xhlatex "%source"
to=xml
type=Process

[Tool/LaTeX to Web/latex2html]
class=Compile
command=latex2html
from=tex
options="%source"
to=html
type=Process

[Tool/LaTeX/Default]
autoRun=yes
checkForRoot=yes
class=LaTeX
command=latex
from=
jumpToFirstError=yes
options=-interaction=nonstopmode "%source"
to=dvi
type=Process

[Tool/LaTeX/Draft]
autoRun=yes
checkForRoot=yes
class=LaTeX
command=latex
from=
jumpToFirstError=yes
options=-draftmode -interaction=nonstopmode "%source"
to=dvi
type=Process

[Tool/LaTeX/Modern]
autoRun=yes
checkForRoot=yes
class=LaTeX
command=latex
from=
jumpToFirstError=yes
options=-src-specials -interaction=nonstopmode "%source"
to=dvi
type=Process

[Tool/Lilypond/DVI]
class=Compile
command=lilypond
from=ly
options=--dvi "%source"
to=dvi
type=Process

[Tool/Lilypond/PDF]
class=Compile
command=lilypond
from=ly
options=--pdf "%source"
to=pdf
type=Process

[Tool/Lilypond/PNG]
class=Compile
command=lilypond
from=ly
options=--png "%source"
to=png
type=Process

[Tool/Lilypond/PS]
class=Compile
command=lilypond
from=ly
options=--ps "%source"
to=ps
type=Process

[Tool/Lilypond/TeX]
class=Compile
command=lilypond
from=ly
options=--tex "%source"
to=tex
type=Process

[Tool/LivePreview-PDFLaTeX/Default]
autoRun=yes
checkForRoot=no
class=LaTeXLivePreview
command=pdflatex
from=
jumpToFirstError=yes
options=-synctex=1 -interaction=nonstopmode -output-directory='%dir_target' '%source'
to=pdf
type=Process

[Tool/LivePreview-PDFLaTeX/PSTricks]
autoRun=yes
checkForRoot=no
class=LaTeXLivePreview
command=pdflatex
from=
jumpToFirstError=yes
options=-shell-escape -synctex=1 -interaction=nonstopmode -output-directory='%dir_target' '%source'
to=pdf
type=Process

[Tool/LivePreview-XeLaTeX/Default]
autoRun=yes
checkForRoot=no
class=LaTeXLivePreview
command=xelatex
from=
jumpToFirstError=yes
options=-synctex=1 -interaction=nonstopmode -output-directory='%dir_target' '%source'
to=pdf
type=Process

[Tool/MakeIndex/Default]
class=Compile
command=makeindex
from=idx
options="%S.idx"
to=idx
type=Process

[Tool/MakeIndex/xindy]
class=Compile
command=xindy
from=idx
options="%S.idx"
to=idx
type=Process

[Tool/MetaPost/Default]
class=Compile
command=mpost
from=
options=-tex=latex -interaction=nonstopmode "%source"
to=
type=Process

[Tool/PDFLaTeX/Default]
autoRun=no
checkForRoot=yes
class=LaTeX
command=pdflatex
from=
jumpToFirstError=yes
options=-interaction=nonstopmode "%source"
to=pdf
type=Process

[Tool/PDFLaTeX/Draft]
autoRun=yes
checkForRoot=yes
class=LaTeX
command=pdflatex
from=
jumpToFirstError=yes
options=-draftmode -interaction=nonstopmode "%source"
to=pdf
type=Process

[Tool/PDFLaTeX/Modern]
autoRun=yes
checkForRoot=yes
class=LaTeX
command=pdflatex
from=
jumpToFirstError=yes
options=-synctex=1 -interaction=nonstopmode "%source"
to=pdf
type=Process

[Tool/PDFTeX/Default]
class=Compile
command=pdftex
from=
options=-interaction=nonstopmode "%source"
to=pdf
type=Process

[Tool/PDFTeX/Draft]
class=Compile
command=pdftex
from=
options=-draftmode -interaction=nonstopmode "%source"
to=pdf
type=Process

[Tool/PDFTeX/Modern]
class=Compile
command=pdftex
from=
options=-synctex=1 -interaction=nonstopmode "%source"
to=pdf
type=Process

[Tool/PStoPDF/Default]
class=Convert
command=ps2pdf
from=ps
options="%S.ps" "%S.pdf"
to=pdf
type=Process

[Tool/PreviewLaTeX/Default]
autoRun=no
checkForRoot=no
class=LaTeXpreview
command=latex
from=
jumpToFirstError=yes
options=-interaction=nonstopmode "%source"
to=dvi
type=Process

[Tool/PreviewPDFLaTeX/Default]
autoRun=no
checkForRoot=no
class=LaTeXpreview
command=pdflatex
from=
jumpToFirstError=yes
options=-interaction=nonstopmode "%source"
to=pdf
type=Process

[Tool/PreviewXeLaTeX/Default]
autoRun=no
checkForRoot=no
class=LaTeXpreview
command=xelatex
from=
jumpToFirstError=yes
options=-interaction=nonstopmode "%source"
to=pdf
type=Process

[Tool/QuickBuild/LaTeX]
class=Sequence
sequence=LaTeX
type=Sequence

[Tool/QuickBuild/LaTeX+DVItoPDF+ViewPDF]
class=Sequence
sequence=LaTeX,DVItoPDF,ViewPDF
type=Sequence

[Tool/QuickBuild/LaTeX+DVItoPS+PStoPDF+ViewPDF]
class=Sequence
sequence=LaTeX,DVItoPS,PStoPDF,ViewPDF
type=Sequence

[Tool/QuickBuild/LaTeX+DVItoPS+ViewPS]
class=Sequence
sequence=LaTeX,DVItoPS,ViewPS
type=Sequence

[Tool/QuickBuild/LaTeX+ForwardDVI]
class=Sequence
sequence=LaTeX,ForwardDVI
type=Sequence

[Tool/QuickBuild/LaTeX+ViewDVI]
class=Sequence
sequence=LaTeX,ViewDVI
type=Sequence

[Tool/QuickBuild/PDFLaTeX+ForwardPDF]
class=Sequence
sequence=PDFLaTeX,ForwardPDF
type=Sequence

[Tool/QuickBuild/PDFLaTeX+ViewPDF]
class=Sequence
sequence=PDFLaTeX,ViewPDF
type=Sequence

[Tool/TeX/Default]
class=Compile
command=tex
from=
options=-interaction=nonstopmode "%source"
to=dvi
type=Process

[Tool/TeX/Modern]
class=Compile
command=tex
from=
options=-src-specials -interaction=nonstopmode "%source"
to=dvi
type=Process

[Tool/ViewBib/JabRef]
class=ViewBib
command=jabref
from=bib
options="%source"
to=bib
type=Process

[Tool/ViewBib/KBib]
class=ViewBib
command=kbib
from=bib
options="%source"
to=bib
type=Process

[Tool/ViewBib/KBibTex]
class=ViewBib
command=kbibtex
from=bib
options="%source"
to=bib
type=Process

[Tool/ViewBib/KBibTex (embedded)]
class=ViewBib
className=KBibTeXPart
from=bib
libName=kbibtexpart
liboptions="%source"
state=Viewer
to=bib
type=Part

[Tool/ViewBib/Pybliographer]
class=ViewBib
command=pybliographic
from=bib
options="%source"
to=bib
type=Process

[Tool/ViewBib/gbib]
class=ViewBib
command=gbib
from=bib
options="%source"
to=bib
type=Process

[Tool/ViewDVI/Document Viewer]
class=View
className=Okular::Part
from=dvi
libName=okularpart
state=Viewer
to=dvi
type=Part
useDocumentViewer=yes

[Tool/ViewDVI/Embedded Viewer]
class=View
className=Okular::Part
from=dvi
libName=okularpart
state=Viewer
to=dvi
type=Part

[Tool/ViewDVI/Okular]
class=View
command=okular
from=dvi
options="%target"
state=Viewer
to=dvi
type=Process

[Tool/ViewDVI/Okular Unique]
class=View
command=okular
from=dvi
options=--unique "%target"
state=Viewer
to=dvi
type=Process

[Tool/ViewDVI/SystemDefault]
class=View
command=cmd
from=dvi
options=/c start "View DVI" "%target"
state=Viewer
to=dvi
type=Process

[Tool/ViewHTML/Embedded Viewer]
class=ViewHTML
from=html
relDir=
state=HTMLpreview
target=
to=html
type=DocPart

[Tool/ViewHTML/Firefox]
class=ViewHTML
command=firefox
from=html
options="file:%dir_target/%target"
relDir=
state=Editor
target=
to=html
type=Process

[Tool/ViewHTML/Konqueror]
class=ViewHTML
command=konqueror
from=html
options="file:%dir_target/%target"
relDir=
state=Editor
target=
to=html
type=Process

[Tool/ViewHTML/Mozilla]
class=ViewHTML
command=mozilla
from=html
options="file:%dir_target/%target"
relDir=
state=Editor
target=
to=html
type=Process

[Tool/ViewHTML/Seamonkey]
class=ViewHTML
command=seamonkey
from=html
options="file:%dir_target/%target"
relDir=
state=Editor
target=
to=html
type=Process

[Tool/ViewPDF/Acroread]
class=View
command=acroread
from=pdf
options="%target"
state=Viewer
to=pdf
type=Process

[Tool/ViewPDF/Document Viewer]
class=View
className=Okular::Part
from=pdf
libName=okularpart
state=Viewer
to=pdf
type=Part
useDocumentViewer=yes

[Tool/ViewPDF/Embedded Viewer]
class=View
className=Okular::Part
from=pdf
libName=okularpart
state=Viewer
to=pdf
type=Part

[Tool/ViewPDF/Okular]
class=View
command=okular
from=pdf
options="%target"
state=Viewer
to=pdf
type=Process
useDocumentViewer=no

[Tool/ViewPDF/Okular Unique]
class=View
command=okular
from=pdf
options=--unique "%target"
state=Viewer
to=pdf
type=Process

[Tool/ViewPDF/SystemDefault]
class=View
command=cmd
from=pdf
options=/c start "View PDF" "%target"
state=Viewer
to=pdf
type=Process

[Tool/ViewPS/Document Viewer]
class=View
className=Okular::Part
from=ps
libName=okularpart
state=Viewer
to=ps
type=Part
useDocumentViewer=yes

[Tool/ViewPS/Embedded Viewer]
class=View
className=Okular::Part
from=ps
libName=okularpart
state=Viewer
to=ps
type=Part

[Tool/ViewPS/GV]
class=View
command=gv
from=ps
options="%target"
state=Viewer
to=ps
type=Process

[Tool/ViewPS/Okular]
class=View
command=okular
from=ps
options="%target"
state=Viewer
to=ps
type=Process

[Tool/ViewPS/Okular Unique]
class=View
command=okular
from=ps
options=--unique "%target"
state=Viewer
to=ps
type=Process

[Tool/ViewPS/SystemDefault]
class=View
command=cmd
from=ps
options=/c start "View PS" "%target"
state=Viewer
to=ps
type=Process

[Tool/XeLaTeX/PDF]
autoRun=yes
checkForRoot=yes
class=LaTeX
command=xelatex
from=
jumpToFirstError=yes
options=-interaction=nonstopmode "%source"
to=pdf
type=Process

[Tool/XeLaTeX/PDF Draft]
autoRun=yes
checkForRoot=yes
class=LaTeX
command=xelatex
from=
jumpToFirstError=yes
options=-draftmode -interaction=nonstopmode "%source"
to=pdf
type=Process

[Tool/XeLaTeX/PDF Modern]
autoRun=yes
checkForRoot=yes
class=LaTeX
command=xelatex
from=
jumpToFirstError=yes
options=-synctex=1 -interaction=nonstopmode "%source"
to=pdf
type=Process

[Tool/XeLaTeX/XDVI]
autoRun=yes
checkForRoot=yes
class=LaTeX
command=xelatex
from=
jumpToFirstError=yes
options=-no-pdf -interaction=nonstopmode "%source"
to=xdvi
type=Process

[Tool/XeLaTeX/XDVI Draft]
autoRun=yes
checkForRoot=yes
class=LaTeX
command=xelatex
from=
jumpToFirstError=yes
options=-no-pdf -draftmode -interaction=nonstopmode "%source"
to=xdvi
type=Process

[Tool/XeLaTeX/XDVI Modern]
autoRun=yes
checkForRoot=yes
class=LaTeX
command=xelatex
from=
jumpToFirstError=yes
options=-no-pdf -src-specials -interaction=nonstopmode "%source"
to=xdvi
type=Process

[ToolSelectAction]
Compile=9
Convert=0
Quick=0
View=5

[Tools]
Archive=Tar + gzip
Asymptote=Default
BibTeX=Default
ConTeXt=PDF
Convert=pdf2png
DBLaTeX=LaTeX
DVItoPDF=Default
DVItoPNG=Default
DVItoPS=Default
ForwardDVI=Document Viewer
ForwardPDF=Document Viewer
LaTeX=Default
LaTeX to Web=latex2html
Lilypond=PDF
MakeIndex=Default
MetaPost=Default
PDFLaTeX=Default
PDFTeX=Default
PStoPDF=Default
PreviewLaTeX=Default
PreviewPDFLaTeX=Default
PreviewXeLaTeX=Default
QuickBuild=PDFLaTeX+ViewPDF
TeX=Default
ViewBib=KBibTex
ViewDVI=Document Viewer
ViewHTML=Konqueror
ViewPDF=Okular
ViewPS=Document Viewer
XeLaTeX=PDF

[ToolsGUI]
Archive=Archive,archive-insert
Asymptote=Compile,application-x-executable
BibTeX=Compile,bibtex
ConTeXt=Compile,latex
Convert=Convert,convert
DBLaTeX=Compile,dblatex
DVItoPDF=Convert,dvipdf
DVItoPNG=Convert,dvipng
DVItoPS=Convert,dvips
ForwardDVI=View,dvisearch
ForwardPDF=View,dvisearch
LaTeX=Compile,latex
LaTeX to Web=Compile,l2h
Lilypond=Compile,lilypond
MakeIndex=Compile,makeidx
MetaPost=Compile,mpost
PDFLaTeX=Compile,pdflatex
PDFTeX=Compile,pdftex
PStoPDF=Convert,ps2pdf
PreviewLaTeX=none,application-x-executable
PreviewPDFLaTeX=none,application-x-executable
PreviewXeLaTeX=none,application-x-executable
QuickBuild=Quick,quick
TeX=Compile,texcompiler
ViewBib=View,viewbib
ViewDVI=View,viewdvi
ViewHTML=View,viewhtml
ViewPDF=View,viewpdf
ViewPS=View,viewps
XeLaTeX=Compile,latex

[User]
nUserTags=0

[VersionInfo]
RCVersion=7

[View-Settings,View=0,URL=file:///C:/SNIP]
CursorColumn=38
CursorLine=45
JumpList=
ViMarks=

[View-Settings,View=0,URL=file:///C:/SNIP]
CursorColumn=13
CursorLine=164
JumpList=
ViMarks=

[View-Settings,View=0,URL=file:///C:/SNIP]
CursorColumn=64
CursorLine=41
JumpList=
ViMarks=
User avatar
yurchor
Registered Member
Posts
64
Karma
1
OS
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:
Code: Select all
[Tool/LivePreviewPDFLaTeX/Default]
autoRun=no
checkForRoot=no
class=LaTeXLivePreview
close=
command=pdflatex
jumpToFirstError=yes
menu=Compile
options=-synctex=1 -interaction=nonstopmode -output-directory='%dir_target' '%source'
to=pdf
type=Process


Tested. Screenshot. ;)
P3t3r
Registered Member
Posts
33
Karma
0
yurchor wrote:Ok. Today I have some time to experiment on Windows XP box (our Institute have no money to buy expensive Windows 7, sorry).
[...]
Tested. Screenshot. ;)

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.
User avatar
yurchor
Registered Member
Posts
64
Karma
1
OS
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.
P3t3r
Registered Member
Posts
33
Karma
0
yurchor wrote: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.

Aha! Ok, I got it working now, thanks! ;D

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.

Code: Select all
[Tool/LivePreviewPDFLaTeX/Default]
autoRun=no
checkForRoot=no
class=LaTeXLivePreview
close=
command=pdflatex
jumpToFirstError=yes
menu=Compile
options=-synctex=1 -interaction=nonstopmode -output-directory='%dir_target' '%source'
to=pdf
type=Process


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!
berndl
Registered Member
Posts
2
Karma
0
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.
User avatar
yurchor
Registered Member
Posts
64
Karma
1
OS
berndl wrote: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.

Try
Code: Select all
cd %APPDATA%\.kde\share\config

then
Code: Select all
dir

in Windows command window (Windows main menu (Start button) -> Run... -> cmd<Enter>) to identify this file location.
User avatar
yurchor
Registered Member
Posts
64
Karma
1
OS
Or simply type
Code: Select all
%appdata%
in Explorer and hit <Enter>.
berndl
Registered Member
Posts
2
Karma
0
yurchor wrote:Or simply type
Code: Select all
%appdata%
in Explorer and hit <Enter>.

oh wow, thanks, I was looking in the directory I installed it in and couldnt find it there.
Mark48
Registered Member
Posts
1
Karma
0
Hi thanks for the information and code.
It really works fine ..
:) :) :)


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell