<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thanks, Richard. I will take the problem to the ConTeXt list to see what help there is there and report to you, if anything useful turns up.<div class=""><br class=""></div><div class="">All best, Alan<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Oct 15, 2022, at 12:42, Richard Koch <<a href="mailto:koch@uoregon.edu" class="">koch@uoregon.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">

<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Alan Bowen,
<div class=""><br class="">
</div>
<div class="">Synctex was written by Jerome Laurens. He provided two pieces of code:</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>a) he added code directly to the various TeX engines to output a ".synctex" file containing information to support sync</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>b) he provided a procedure written in C which opened the synctex file and interpreted its contents. Front end developers could add this source to their project to implement synctex.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">The ConTeXt people like to rewrite everything from scratch. They have a special version of LuaTeX for ConTeXt, etc., etc. So it is not surprising that they</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>a) wrote their own version of synctex for ConTeXt</div>
<div class=""><br class="">
</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>b) wrote their own C source to interprete the results</div>
<div class=""><br class="">
</div>
<div class="">I was contacted by someone in the ConTeXt community, Nicola Vitacolonna, who led me through the process of adding support for these things to TeXShop. See the TeXShop changes document for version 4.65. </div>
<div class=""><br class="">
</div>
<div class="">I don't use ConTeXt myself.  Therefore, the correct avenue to obtain help for your problem is to contact the ConTeXt community, explain your problem, ask if their version of synctex has support to fix the problem, and if so ask them to select
 someone to contact me and explain exactly what I must do to support it. </div>
<div class=""><br class="">
</div>
<div class="">I have many things on my plate, so I will not be able to learn ConTeXt myself, discover how their synctex works, etc. But I'm happy to provide support if someone explains exactly what needs to be done.</div>
<div class=""><br class="">
</div>
<div class="">Richard Koch</div>
<div class=""><br class="">
</div>
<div class=""> </div>
<div class=""><br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Oct 15, 2022, at 9:16 AM, Alan C. Bowen <<a href="mailto:bowen@ircps.org" class="">bowen@ircps.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Herb and Bruno—
<div class=""><br class="">
</div>
<div class="">Many thanks for your suggestions.</div>
<div class=""><br class="">
</div>
<div class="">Sadly, neither % !TEX root = rootfile.tex  or % !TEX root = /path/to/rootfile.tex at the top of each subfile (ie., component file to be included) makes no difference</div>
<div class=""><br class="">
</div>
<div class="">Adding <span style="font-family: Athelas-Regular;" class="">% !TEX projectfile = rootfile.tex at the top of the root (product) file also makes no difference.</span></div>
<div class=""><span style="font-family: Athelas-Regular;" class=""><br class="">
</span></div>
<div class=""><span style="font-family: Athelas-Regular;" class="">What I have now:</span></div>
<div class=""><font face="Athelas-Regular" class="">• nothing special in the root (product) file</font></div>
<div class=""><font face="Athelas-Regular" class="">• at the top of each subfile (component file),</font></div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>% !TEX root = rootfile.tex </div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>% !TEX TS-program = ConTeXt2021</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>% !TEX useAlternatePath</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>% !TEX useConTeXtSyncParser</div>
<div class="">   \setupsynctex[state=start, method=max]</div>
<div class=""><br class="">
</div>
<div class="">* in TeXShop— </div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>sync method: Both Pdf Sync and Search</div>
<div class=""><span class="Apple-tab-span" style="white-space:pre"></span>Alternative Path: /Users/bowen1/Applications/LuaMetaTeX/tex/texmf-osx-arm64/bin</div>
<div class=""><br class="">
</div>
<div class="">• I am also using the latest ConteXt (ver.  2022.10.15 10:37 LMTX) and TeXShop ver. 5.03</div>
<div class=""><br class="">
</div>
<div class="">So far</div>
<div class="">(a) the product file typesets as it should</div>
<div class="">(b) I do not get syncing from PDF to source (any component file)</div>
<div class="">(c) Syncing from source to PDf goes to the correct page of the PDF file but without any highlighting.</div>
<div class="">(d) there is a rootfile.synctex file (79 KB) generated</div>
<div class=""><br class="">
</div>
<div class="">I am surely missing something. But what?</div>
<div class=""><br class="">
</div>
<div class="">Alan</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On Oct 13, 2022, at 12:56, Alan C. Bowen <<a href="mailto:bowen@IRCPS.org" class="">bowen@IRCPS.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
<div dir="auto" style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
I have been trying to get Synctex to work with a ConText structure of product and component files using 
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class="">
<div class="">
<div class="">% !TEX useAlternatePath</div>
</div>
<div class="">
<div class="">% !TEX useConTeXtSyncParser</div>
</div>
<div class="">
<div class="">\setupsynctex[state=start, method=max]</div>
</div>
</blockquote>
<div class="">and the various preference settings for the Sync Method in the Typesetting menu. This works  when I typeset a single source file but, so far, I have had no luck no matter whether theses lines are in the product file or in the component source
 files. Is there a way to get syncing with source files structured in this way? I have checked the files that come with TeXShop itself and did not see an answer there.</div>
<div class=""><br class="">
</div>
<div class="">Alan Bowen</div>
<div class=""><br class="">
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>

</div></blockquote></div><br class=""></div></body></html>