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.
2 Answers
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"
I´ve tried all solutions to this problem found in several forums and none worked. Finally I found out that the problem, in my case, was simply that my file had spaces in its name, which seems to be a problem for synctex
. Hope it helps in your case as well.
-
1
-
1
synctex
does not work withfile names
which contain spaces orfilénàmes
with accentuated characters. Best practices of Naming LaTeX files May 8, 2013 at 16:54 -
@texenthusiast
the problem withsynctex
and file names with blanks has been solved time ago May 8, 2013 at 17:50 -
@karlkoeller BTW when was it solved ? which release of TeXLive distro year onwards ? Any documentation on it or release notes/changelog ? Feb 21, 2014 at 4:01
-
@texenthusiast Unfortunately I can't remember when. And I've not been able to find anything in changelogs... Feb 21, 2014 at 5:12
-synctex=1
.-synctex=-1
would also work, I think.Options -> Masterdocument
. Specifically in TeXstudio, you can use Ctrl+LeftClick on the source code and in the internal PDF viewer for forwarwd/inverse search. Forward/inverse search also works for Texmaker, but I don't know the details there.-synctex=1
and-synctex=-1
is that the latter won't gzip the.synctex
file. But-synctex=--1
fails silently.