# Synctex bug

So, I just spent the last hour trying to figure out why I couldn’t get Synctex to work. Synctex is the part of LaTeX that allows one to do inverse search, among other things. In other words, it lets me click on text in the output pdf file and jump immediately to the corresponding LaTeX code. I had two LaTeX files for which synctex wasn’t working. When I compiled other files using the same settings, it worked fine. Finally, I figured out the problem — if the file name contains more than one word separated by spaces, synctex doesn’t work (at least in TexStudio). Well, at least I figured it out. But I wish I could have been spending that time working on my research statement instead.

This is part of why I didn’t major in computer science. I feel like I would have spent half my time searching for bugs like this. Then again, sometimes I wonder whether the problem is worse in math. Math proofs likely contain just as many bugs as computer programs, but since they are checked by fallible humans, some of these bugs are never discovered. But I take comfort in thinking that most such bugs are not major mathematical errors, but rather easily correctable oversights.

## 2 thoughts on “Synctex bug”

1. I’m sorry to hear about your syntex troubles. Meanwhile, I can attest that syntex works great with WinEdt and Sumatra, even on files with spaces in their names.

2. Ah, well, I feel TeXStudio has other advantages over WinEdt though, which I’ll be writing about in an upcoming post.