SyncTeX and Skim/TeXShop
Hi, is anyone using ConTeXt with Skim, or TeXShop, on macOS? SyncTeX used to work fine with ConTeXt in both apps. Now, it seems that ConTeXt has started to generate a .synctex file rather than a .synctex.gz, and the format seems to have changed (?). As I haven’t followed recent (or perhaps not so recent) developments in this area, do you have any suggestions to make SyncTeX work again? I am using Skim, but any PDF viewer would be fine if Skim cannot be used for the purpose any longer. Thanks in advance, Nicola
On 4/9/2019 7:23 PM, Nicola Vitacolonna wrote:
Hi, is anyone using ConTeXt with Skim, or TeXShop, on macOS?
SyncTeX used to work fine with ConTeXt in both apps. Now, it seems that ConTeXt has started to generate a .synctex file rather than a .synctex.gz, and the format seems to have changed (?). As I haven’t followed recent (or perhaps not so recent) developments in this area, do you have any suggestions to make SyncTeX work again?
- there is no benefit in a foo.synctex.gz file over a foo.synctex file; context generates relative efficient synctex files - context generates synctex code that is suits the way it works (for tex as well as xml input); in context lmtx i still need to add some lines to the context code (not done yet as i don't use synctex myself) - the synctex file format has changes recently so mayb that is your problem; unfortunately syntex support in viewers is via a library anod not via a "call to a command that returns file and position in file" which would have made that feature future proof (mtxrun --script synctex could provide that)
I am using Skim, but any PDF viewer would be fine if Skim cannot be used for the purpose any longer.
Thanks in advance, 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 ___________________________________________________________________________________
-- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
Hi Nicola, I do use ConTeXt with TeXShop on MacOS, and I use extensively synctex. Indeed there has been a big change in synctex a few years ago, since the « classic » synctex code by Jérôme Laurens was changed, and more or less at the same time Hans introduced independently a new synctex setup (and code) for ConTeXt. Richard Koch added a special syntex code in TeXShop in order to use the changes introduced by Hans. Richard added also a special menu item in the Macros menu of TeXShop which adds the line % !TEX useOldSyncParser in your source file. Now, that being said, in order to use synctex in TeXShop and ConTeXt, you have to add the following two lines at the top of your source file: % !TEX useOldSyncParser \setupsynctex[state=start,method=min] % or method=max Then you typeset your file and you can get the usual synctex behaviour (however, for some unknown reason it may happen that the first time you typeset your file with the above two lines, you don't get the synctex working: you have to quit TeXShop and open again your file and then synctex works fine…). Best regards: OK
On 9 Apr 2019, at 19:23, Nicola Vitacolonna
wrote: Hi, is anyone using ConTeXt with Skim, or TeXShop, on macOS?
SyncTeX used to work fine with ConTeXt in both apps. Now, it seems that ConTeXt has started to generate a .synctex file rather than a .synctex.gz, and the format seems to have changed (?). As I haven’t followed recent (or perhaps not so recent) developments in this area, do you have any suggestions to make SyncTeX work again?
I am using Skim, but any PDF viewer would be fine if Skim cannot be used for the purpose any longer.
Thanks in advance, 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 ___________________________________________________________________________________
participants (3)
-
Hans Hagen
-
Nicola Vitacolonna
-
Otared Kavian