ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* synctex problem
@ 2022-10-15 18:00 Alan Bowen via ntg-context
  2022-10-15 19:14 ` Gavin via ntg-context
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Bowen via ntg-context @ 2022-10-15 18:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Alan Bowen


[-- Attachment #1.1: Type: text/plain, Size: 1241 bytes --]

At the top of a single source file, I have the lines:
% !TEX root = prd_Aestimatio-0301.tex  % the root file
% !TEX TS-program = ConTeXt2021
% !TEX useAlternatePath
% !TEX useConTeXtSyncParser
   \setupsynctex[state=start, method=max]

Syncing works well enough—though I can see no difference between method
=min and method=max, both highlight only a few words and not the entire
text to be synced, but perhaps my expectations are out of line.

When I have these lines at the top of a component file and typeset the
product file, I get a rootfile.synctex file, but syncing itself goes awry.
Nothing happens when I sync from the PDf file to the component file, and
when I sync from the component file to the product PDF, I get the correct
page but no highlighting.

I am using TeXShop ver. 5.03—
sync method: Both Pdf Sync and Search
Alternative
Path: /Users/bowen1/Applications/LuaMetaTeX/tex/texmf-osx-arm64/bin

and  also the latest ConteXt (ver.  2022.10.15 10:37 LMTX)  under macOS
12.6 (Apple M1 Pro chip)

Note: the product file has only one  component file for now.

I suspect that I am missing something but am not sure where to look or what
to do now. Any guidance will be much appreciated.

Alan

[-- Attachment #1.2: Type: text/html, Size: 3286 bytes --]

[-- Attachment #2: Type: text/plain, Size: 496 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: synctex problem
  2022-10-15 18:00 synctex problem Alan Bowen via ntg-context
@ 2022-10-15 19:14 ` Gavin via ntg-context
  0 siblings, 0 replies; 5+ messages in thread
From: Gavin via ntg-context @ 2022-10-15 19:14 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Gavin

Hi Alan,

I have an almost identical set-up (M1, MacOS12.6, TexShop, useAlternatePath, useConTeXtSyncParser). One important difference, I use

sync method: SyncTeX (TeX ≥ 2010)

I’d recommend trying that. There are some other differences in my setup that probably are not important. At the beginning of my files (products and components)I only use the two lines

% !TEX useAlternatePath
% !TEX useConTeXtSyncParser

not the root and TS-program lines, but I don’t think that matters for your SynchTeX issue. Here is the engine I use for LMTX, just in case it has something helpful for you.

#!/bin/zsh
#
# This engine uses TeXShop's "Alternate Path", which is the variable "$3" below.
# Set the TeXShop's alternate path to your ConTeXt installation in
#  TeXShop's Preferences -> Engine -> Alternate Path
# Start ConTeXt source files with the lines:
#  % !TEX useAlternatePath
#  % !TEX useConTeXtSyncParser

export OSFONTDIR=/Library/Fonts/:/System/Library/Fonts:$HOME/Library/Fonts
export PATH="$3":$PATH
mtxrun --autogenerate --script context --synctex "$1”

I put that long comment in the engine because I share it with collaborators.

Hope that helps!

Gavin



> On Oct 15, 2022, at 12:00 PM, Alan Bowen via ntg-context <ntg-context@ntg.nl> wrote:
> 
> At the top of a single source file, I have the lines:
> % !TEX root = prd_Aestimatio-0301.tex 	% the root file
> 	% !TEX TS-program = ConTeXt2021
> 	% !TEX useAlternatePath
> 	% !TEX useConTeXtSyncParser
>    \setupsynctex[state=start, method=max]
> 
> Syncing works well enough—though I can see no difference between method =min and method=max, both highlight only a few words and not the entire text to be synced, but perhaps my expectations are out of line.
> 
> When I have these lines at the top of a component file and typeset the product file, I get a rootfile.synctex file, but syncing itself goes awry. Nothing happens when I sync from the PDf file to the component file, and when I sync from the component file to the product PDF, I get the correct page but no highlighting.
> 
> I am using TeXShop ver. 5.03— 
> 	sync method: Both Pdf Sync and Search
> 	Alternative Path: /Users/bowen1/Applications/LuaMetaTeX/tex/texmf-osx-arm64/bin
> 
> and  also the latest ConteXt (ver.  2022.10.15 10:37 LMTX)  under macOS 12.6 (Apple M1 Pro chip)
> 
> Note: the product file has only one  component file for now.
> 
> I suspect that I am missing something but am not sure where to look or what to do now. Any guidance will be much appreciated.
> 
> Alan
> 
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : https://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: synctex problem
  2013-03-20 22:08 ` Hans Hagen
@ 2013-03-23 12:28   ` Ulrike Fischer
  0 siblings, 0 replies; 5+ messages in thread
From: Ulrike Fischer @ 2013-03-23 12:28 UTC (permalink / raw)
  To: ntg-context

Am Wed, 20 Mar 2013 23:08:24 +0100 schrieb Hans Hagen:


>> Is it possible to tell context to create a .synctex file instead of
>> a .synctex.gz?
 
> I've added --synctex=unzipped (or zipped or 1 or -1 or anything 
> boolean). No upload yet.

Thanks!

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: synctex problem
  2013-03-20 17:24 Ulrike Fischer
@ 2013-03-20 22:08 ` Hans Hagen
  2013-03-23 12:28   ` Ulrike Fischer
  0 siblings, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2013-03-20 22:08 UTC (permalink / raw)
  To: news3, mailing list for ConTeXt users

On 3/20/2013 6:24 PM, Ulrike Fischer wrote:
> Is it possible to tell context to create a .synctex file instead of
> a .synctex.gz?

I've added --synctex=unzipped (or zipped or 1 or -1 or anything 
boolean). No upload yet.

> (Or alternativly does someone know how to get sumatra (on windows)
> to handle a synctex.gz?)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* synctex problem
@ 2013-03-20 17:24 Ulrike Fischer
  2013-03-20 22:08 ` Hans Hagen
  0 siblings, 1 reply; 5+ messages in thread
From: Ulrike Fischer @ 2013-03-20 17:24 UTC (permalink / raw)
  To: ntg-context

Is it possible to tell context to create a .synctex file instead of
a .synctex.gz? 

(Or alternativly does someone know how to get sumatra (on windows)
to handle a synctex.gz?)

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-15 19:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-15 18:00 synctex problem Alan Bowen via ntg-context
2022-10-15 19:14 ` Gavin via ntg-context
  -- strict thread matches above, loose matches on Subject: below --
2013-03-20 17:24 Ulrike Fischer
2013-03-20 22:08 ` Hans Hagen
2013-03-23 12:28   ` Ulrike Fischer

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