Re: synctex issue
Jim <[email protected]>
| Newsgroups | gmane.comp.tex.context |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Apr 9, 2026 at 11:25 (-0400), Alan Bowen wrote:
> Hi—
> I now have synctex working successfully for :
> PDF output—> single source file
> single source file—> PDF output
> any one of many included source files—> PDF output.
> What I have yet to get is
> PDF output—> one of many component files.
> (This last promises to be very useful in editing my journal.)
> I have no idea how to troubleshoot this and so any advice or guidance will be gratefully received.
> I am running the latest ConTeXt ( ver: 2026.03.25) and the latest TeXShop (ver. 5.58 with the luametatex engine) on macOS 26.4
Hi Alan,
I use synctex a lot, and while I run into some issues which I'm currently
trying to resolve, here's an example that I just tested that works for me
to go to a component file
$ synctex edit -o 48:85:76:introCTX_eng.pdf
This is SyncTeX command line utility, version 1.5
SyncTeX result begin
Output:introCTX_eng.pdf
Input:01_BodyMatter/b03_Commands.tex
Line:40
Column:-1
Offset:0
Context:
SyncTeX result end
It got the file correct, but the line number is wrong.
I have never used TeXShop, so I don't know how it gets its synctex into
(i.e., internal library?
external synctex program?
mtxrun --script synctex ... ?
)
I would suggest testing a command-line synctex program to see if your
synctex file has the required info in it.
The syntax for the above "synctex edit" is
pdf-page:x-coord:y-coord:pdf-file.pdf
and that assumes the synctex file is in the same directory. If not there
is another option needed.
mtxrun call from the command line is like
mtxrun --script synctex --report --page=48 --x=850 --y=1020 --tolerance=9999 introCTX_eng.synctex
I can't promise to be a while lot of help going forward, but I'm interested
in knowing how well things work for you, so please report back to the list.
Jim
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________