Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have encountered a strange SyncTeX problem for which I'm unable to provide an MWE.

In a 40+ page document with a table of contents (after which a \clearpage, SyncTeX stops working in one subsection only under the following conditions:

  • No sections are omitted from the document (that's why no MWE is possible -- if I start removing sections and their contents, the problem vanishes)
  • tocdepth is set to 2 (it works with 0, 1 and 3(!!))
  • The section is not too short and not too long, so that it spans exactly two pages and the following section starts on the second page of this section

"Stops working" here means that neither forward nor inverse search are possible for the section in question only -- in the other sections, SyncTeX just works fine.

Has anyone experienced similar problems? Is there a workaround?

The problem appears in TeXStudio with most recent SyncTeX (1.17). I'm on Ubuntu 12.10 with TeXlive 2012 from the Ubuntu repositories.

share|improve this question
To my experience, SyncTeX parser does not work accurately(exact .tex line <-> .pdf line correspondence) on all times,it depends mostly. its rough approximation.if you unzip the synctex.gz you find the .tex coordinates corresponding to the pdf. Also with special characters in file-names^&.tex Synctex does not work properly. May be TeXstudio issue tracker may throw somelight ? – texenthusiast Mar 4 at 9:55
Can you provide more details? What do you mean by a non-working synctex, inverse-search? Also what do you mean no sections are omitted? TeX doesn't know how many sections you have at the outset etc. It also depends how your editor wraps the lines and many other things. – percusse Mar 4 at 9:56
@percusse: Updated – krlmlr Mar 4 at 10:10
@texenthusiast: In my case, it just stops working completely. It doesn't matter how I name the file. – krlmlr Mar 4 at 10:11
@krlmlr are you using internal pdf viewer with -synctex=1 option and other arguments as mentioned in TeXstudio doc ? Try TeXmaker or TeXworks for a change to cross check it with all new files. Send the files in dropbox if its not confidential.Someone here can verify. – texenthusiast Mar 4 at 10:22

closed as too localized by lockstep, Thorsten, Kurt, cgnieder, mafp Apr 9 at 20:18

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.