ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] mtx-synctex.lua question
@ 2023-12-07 18:23 Jim
  2023-12-08 14:03 ` [NTG-context] " Hans Hagen via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Jim @ 2023-12-07 18:23 UTC (permalink / raw)
  To: ntg-context

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?

Thanks.

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

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

end of thread, other threads:[~2023-12-08 21:38 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-07 18:23 [NTG-context] mtx-synctex.lua question Jim
2023-12-08 14:03 ` [NTG-context] " Hans Hagen via ntg-context
2023-12-08 15:38   ` Jim
2023-12-08 18:51     ` Jim
2023-12-08 20:18       ` Hans Hagen
2023-12-08 21:36         ` Jim

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