On 11/21/2017 1:18 PM, Ulrike Fischer wrote:
Am Fri, 17 Nov 2017 15:13:56 +0100 schrieb Hans Hagen:

it's not clear to me why a newer parser lib would fail on an older
synctex format (whatever the change is) .. sumatra pdf works (last
updates ayear ago) works ok

synctex fails with lualatex on windows too. And it fails with with
the luatex version 1.06 (which is now in miktex) but not with 1.04
(texlive).

I compared the synctex files of both and the problem is that the
link to the main tex file is missing at the start.

The synctex files refers to a lot positions in input 0 but the file
list starts with

Input:1:D:/MiKTeX2.9/tex/latex/base/article.cls


I added before this line

Input:0:G:/Z-Test/./test-utf8.tex

and then synchronization worked again. Imho this is a luatex bug.

(the texlive synctex starts with number 1 and not 0
  Input:1:G:/Z-Test/./test-utf8.tex)
i noticed this 0 /1 iusue too but it was ok in old viewers so mayeb that changed .. fwiw, nothing changed in luatex where we just take the syntex code as-is ... actually in sumatra starting at 1 is the only thing that works

what i did notice (quick test on linux) is that the error that pops up reports a missing source file and shows only the path part which looks like a biug in the parser to me

there is not much documentation about the synctex file; actually, if an editor would call out to an external program to resolve the location in the file that would be more robust and easier to maintain, given the one-call-per-document there is not that much gain in using a library in the viewer; it would be easier to update and keep in sync with tex too as now one depends on updating a viewer

Hans


-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to