On 12/7/2023 7:23 PM, Jim wrote:
Hi,

In mtx-synctex.lua, inside
         local function findlocation(filename,page,xpos,ypos,tolerance)
there is the following code:
                 for s=1,tolerance,max(tolerance//10,1) do
                     locate( s, 0) if fi ~= 0 then tl = s ; goto done end
                     locate(-s, 0) if fi ~= 0 then tl = s ; goto done end
                     locate( s, s) if fi ~= 0 then tl = s ; goto done end
                     locate( s,-s) if fi ~= 0 then tl = s ; goto done end
                     locate(-s, s) if fi ~= 0 then tl = s ; goto done end
                     locate(-s,-s) if fi ~= 0 then tl = s ; goto done end
                 end

Is the omission of the
         locate(0, s) ...
and
         locate(0, -s) ...
cases intentional, or is that an oversight?

If intentional, can someone explain the rationale to me?
it's too long ago to remember the reason ... did you test with and without?

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 / 
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
___________________________________________________________________________________

Reply via email to