[Tex/LaTex] Texstudio and Texmaker forward and inverse search

forward-inverse-searchtexmakertexstudio

Do these programs support forward and inverse search (with built in PDF viewer or YAP) for files that have a root file which has many chapter files used with \include? I have tried this with no success. I have -synctex=--1 directive included and I have set the root file as the "Master Document". I am currently using Windows 7, with latest versions of TeXstudio and Texmaker. My TeX program is Miktex 2.9. The main attraction of these programs for me is that I can use them on Windows and Mac. My main tex editor on windows is Winedt and I am very happy with it.

Best Answer

If you are using file names with blanks, the problem is with TeXstudio and TeXmaker, whose command line is something like (supposing your file is C cè.tex)

pdflatex.exe -synctex=1 -interaction=nonstopmode C cè.tex

while the corresponding command line in WinEdt is

pdflatex.exe -synctex=-1 -interaction=errorstopmode "C cè.tex"

so you would have to change TeXstudio command line (in Options -> Configure -> commands) to

pdflatex.exe -synctex=1 -interaction=nonstopmode "%.tex"