ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* SyncTeX and Skim/TeXShop
@ 2019-04-09 17:23 Nicola Vitacolonna
  2019-04-10  7:12 ` Hans Hagen
  2019-04-10  7:48 ` Otared Kavian
  0 siblings, 2 replies; 3+ messages in thread
From: Nicola Vitacolonna @ 2019-04-09 17:23 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SyncTeX and Skim/TeXShop
  2019-04-09 17:23 SyncTeX and Skim/TeXShop Nicola Vitacolonna
@ 2019-04-10  7:12 ` Hans Hagen
  2019-04-10  7:48 ` Otared Kavian
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2019-04-10  7:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Nicola Vitacolonna

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
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: SyncTeX and Skim/TeXShop
  2019-04-09 17:23 SyncTeX and Skim/TeXShop Nicola Vitacolonna
  2019-04-10  7:12 ` Hans Hagen
@ 2019-04-10  7:48 ` Otared Kavian
  1 sibling, 0 replies; 3+ messages in thread
From: Otared Kavian @ 2019-04-10  7:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <nvitacolonna@gmail.com> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-10  7:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-09 17:23 SyncTeX and Skim/TeXShop Nicola Vitacolonna
2019-04-10  7:12 ` Hans Hagen
2019-04-10  7:48 ` Otared Kavian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).