[NTG-context] SyncTeX and mkiv

Otared Kavian otared at gmail.com
Wed Apr 8 10:43:41 CEST 2015

Hi Thomas, Mojca and Andreas,

After playing with several options as either of you suggested, I ended up with the following setups which solve partially the misbehaviour of SyncTeX in mkiv. The solution works for with TeXShop on Mac OS X 10.10.2 and the latest standalone beta of ConTeXt. 

1) I have in a file named mkiv.engine (which sits in the folder ) the following lines:


	export PATH=/Volumes/OK/context-minimal/tex/texmf-osx-64/bin:$PATH
	context --autogenerate "$1" —purgeall

2) As one may see I do not use the option —synctex in the above context call, since it doesn’t work correctly (beware the — shown is actually two hyphens {-}{-}…).

3) In the TeXShop Preferences, in the Typesetting pane, I have checked the radio button next to SyncTex (Tex ≥ 2010) as one may see on the attached screen capture.
For now the syncing seems to work essentially fine (although it is not as precise as when using Plain TeX, or LaTeX, but probably this might be expected beacuse mkiv is more complex).

Thanks to all of you!
Best regards: OK

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pref-texshop.pdf
Type: application/pdf
Size: 57280 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150408/1a53c965/attachment-0001.pdf>
-------------- next part --------------

> On 07 Apr 2015, at 16:33, Thomas Floeren <thfl at mac.com> wrote:
> On 7 Apr 2015, at 10:32, Mojca Miklavec wrote:
>> Hi,
>> SyncTeX usually works for me, but I need to use
>> context --synctex ...
>> (I don't know if --synctex=1 is supposed to work in ConTeX. I believe
>> that Hans changed the syntax.)
>> Enabling it inside the document doesn't work for me for some reason.
>> Hans suggested to put the command inside the first line (modeline or
>> however that one is called).
>> But "context --synctex filename.tex" generally works.
> Yes, this is strange. `\enabledirectives [system.synctex]` works for me *if* it’s in the product file (no `--synctex` switch needed). It even works if it is not in the first line, for example:
> Product file:
> \startproduct pd-test
> \enabledirectives [system.synctex]
> \component 01-intro
> \stopproduct
> Component:
> \startcomponent 01-intro
> Hi there, can you show me this sentence in the source file?
> \stopcomponent
> But, indeed, it doesn’t work with single-file documents.
> -- 
> Thomas
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> maillist : ntg-context at ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

More information about the ntg-context mailing list