On 10/10/2021 6:11 PM, Cezary Drożak via ntg-context wrote:
Hello,
I have been trying to get SyncTeX to work with ConTeXt and Zathura, but nothing
seems to work.

I created a simple `hello.mklx` file and ran `context --synctex=-1 hello.mklx`. Then I launched Zathura with `zathura -x "nvr -cc \"call vimtex#view#reverse_goto(%{line}, '%{input}')\" --nostart" hello.pdf`.
When I clicked "Hello, world!" while holding a control key it printed the
following error to console:

```
(org.pwmt.zathura:80241): GLib-CRITICAL **: 15:49:12.359: g_variant_new_string: assertion 'string != NULL' failed
warning: Failed to obtain data via SyncTeX or data is incomplete.
```

I am attaching the `hello.mklx`, `hello.pdf` files and the generated `hello.synctex` file. I am getting the same result with `--synctex=1`.
you can play with

mtxrun --script synctex

and the synctex file to see if it makes sense

one problem with synctex is that the editors depend on a library and there has been changes

texshop now uses the more independent method for context i.e. just calling "mtxrun --script synctex ..." which not only removes the dependency of a library (the dependency on mtxrun is ok as one has context anyway) but also permits room for improvement (apart from not being tricked by latex specific heuristics in the library)

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