On 2021-05-16, Hans Hagen <j.ha...@xs4all.nl> wrote:
> On 5/16/2021 2:52 PM, Otared Kavian wrote:
>> Hi Hans,
>>
>> I have been noticing for some time that \setupsynctex does not work
>> properly, at least in TeXShop on MacOS. A « filename.synctex » file
>> is created but on most occasions it does not contain many lines, and
>> one cannot go from the PDF file to the right location in the source
>> file. Has something changed in the way synctex used to work ?
>>
>> Below I am sending you a test file with its PDF and .synctex files,
>> for you to see for yourself. Sorry for the disturbance…
> irr texshoip has soem setting for it (you need to check with Dick)
> which relates to a change in synctex

It works just fine. Add this line at the top of your document:

 % !TEX useOldSyncParser

I also have:

\setupsynctex[state=start,method=min]

I am not sure whether method=min is necessary.

Anyway, search for useOldSyncParser in Help > Changes for the details.

> now, in my opinion, the biggest drawback of synctex is that one needs to
> compile it into the editor/viewer. Far better would have been to let the
> viewer call out to an external program (configurable) that reports back
> the file and line ... more flexible, better upward compatibility, no
> need to have the synctex code on board, hardly any code and no fuzzy
> heuristics to fight

+1. I use TeXShop only as a previewer (I edit documents in Vim), but,
unfortunately, syncing with an external editor works only for LaTeX.

> but I gave up communicating that because i cannot reason with the guy
> (different wavelengths .. years ago already)

Richard Koch, however, has been incredible, IMO, in supporting the macOS
community (already before Mac OS X 10.0!) with TeXShop. In particular,
he went to great lengths to make syncing work in TeXShop for both
ConTeXt and LaTeX. The current problem is only with external editors,
and it is because the directive above is not read by TeXShop when using
an external editor.

Anyway, I am positive that he is willing to support ConTeXt in the best
possible way...

> see? the info is just there, so you can try to convince the texshop
> creator to support this:
>
>    -- call an external program with these arrguments (the texhop editor
> knows the positions as it has the viewer built in)
>    -- go to reported file and line

...which could be as well this.

Nicola

___________________________________________________________________________________
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