ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Cezary Drożak via ntg-context" <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: "Cezary Drożak" <czarek@drozak.net>
Subject: SyncTeX does not work with Zathura
Date: Sun, 10 Oct 2021 18:11:53 +0200	[thread overview]
Message-ID: <6b4b4dba-486d-b76d-8571-70da07942856@drozak.net> (raw)
In-Reply-To: <546d4350-5561-57a3-c963-584fc65e1a9c@drozak.net>

[-- Attachment #1: Type: text/plain, Size: 772 bytes --]

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`.

Regards,
Cezary Drożak

[-- Attachment #2: hello.pdf --]
[-- Type: application/pdf, Size: 6064 bytes --]

[-- Attachment #3: hello.synctex --]
[-- Type: text/plain, Size: 194 bytes --]

SyncTeX Version:1
Output:pdf
Magnification:1000
Unit:1
X Offset:0
Y Offset:0
Content:
!86
{1
[0,0:0,0:0,0,0
v0,0:0,55380990:39158276,55380990,0
]
!60
}1
!7
Postamble:
Count:2
!22
Post scriptum:

[-- Attachment #4: hello.mklx --]
[-- Type: text/plain, Size: 35 bytes --]

\starttext
Hello, world!
\stoptext

[-- Attachment #5: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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	other threads:[~2021-10-10 16:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <546d4350-5561-57a3-c963-584fc65e1a9c@drozak.net>
2021-10-10 16:11 ` Cezary Drożak via ntg-context [this message]
2021-10-10 16:59   ` Hans Hagen via ntg-context
2021-10-10 17:20     ` Cezary Drożak via ntg-context
2021-10-10 20:54       ` Hans Hagen via ntg-context
2021-10-11 10:32         ` Cezary Drożak via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6b4b4dba-486d-b76d-8571-70da07942856@drozak.net \
    --to=ntg-context@ntg.nl \
    --cc=czarek@drozak.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).