Hi Hans, On Fri, Dec 8, 2023 at 15:03 (+0100), Hans Hagen wrote:
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?
I did not. Yet. But on your suggestion, I will give it a try and get back to you. Jim