From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26679 invoked from network); 8 Dec 2023 16:35:53 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 8 Dec 2023 16:35:53 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id E33B2483BDC for ; Fri, 8 Dec 2023 17:35:31 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MMrIBZXzUMcA for ; Fri, 8 Dec 2023 17:35:31 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 10B95483B4B for ; Fri, 8 Dec 2023 17:35:21 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id AC1CE483AD3 for ; Fri, 8 Dec 2023 17:35:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8fMgCB_yrZfl for ; Fri, 8 Dec 2023 17:35:07 +0100 (CET) Received: from seout11.web-dns1.com (seout11.web-dns1.com [68.168.119.165]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 2BD98483ACF for ; Fri, 8 Dec 2023 17:35:07 +0100 (CET) Received: from mailpro1.whc.ca ([51.79.16.13]) by se3.web-dns1.com with esmtps (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rBcwJ-00B51K-4V; Fri, 08 Dec 2023 10:38:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=jdvb.ca; s=default; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=CNuzjlGihwZPGbTHx1obLma29hdYUjg7WdHN8lpxXqI=; b=Q+aYuAeSReSaRqJ2QNWmXxdWRm 137u9BDicxJWJqOeaDOwJYizCANOWLf/535NpwS+JftXMCqLXZkMFupRTLGo5JTese/m37s3IDaP5 YmzLym+NMqVmhZi9QZEb0Ijv/9ePNFFcxRnPGBCE3sXjpH4DIXzrm1u3OfbU1Kr+gz+QkW+Z0d2xH /ZoK7tXvpKrCQQ84Pzabb5U7n2IfWFbFlyl1AoavGFZAdEfsqeyNyrZ+1KtN/+2OFyaiGSO6yNOSE Htm+Oedq5bMCWz/Ce8yVsTTyHGu1kXHggPUjDAkGp952sCbfvy4btNu8oLh4XIoCJfos1CfCs6de2 S+/7LRtQ==; Received: from [47.55.144.2] (port=38520 helo=x360) by mailpro1.whc.ca with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rBcw8-002HeC-0Q; Fri, 08 Dec 2023 10:38:54 -0500 Received: by x360 (Postfix, from userid 1000) id 94AF41E0AD3; Fri, 8 Dec 2023 11:38:43 -0400 (AST) Date: Fri, 8 Dec 2023 11:38:43 -0400 From: Jim To: Hans Hagen Message-ID: References: <913fa7c5-a9fc-4edf-909f-f7805e97aaa3@freedom.nl> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <913fa7c5-a9fc-4edf-909f-f7805e97aaa3@freedom.nl> X-Microslop: Just say no X-Originating-IP: 51.79.16.13 X-SpamExperts-Domain: out.mailpro1.whc.ca X-SpamExperts-Username: 51.79.16.13 Authentication-Results: web-dns1.com; auth=pass smtp.auth=51.79.16.13@out.mailpro1.whc.ca X-SpamExperts-Outgoing-Class: unsure X-SpamExperts-Outgoing-Evidence: Combined (0.46) X-Recommended-Action: accept X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT/XQnKbvJgbLYzEcrsXQ9OWPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5z3gEaB/JQYfKjMzozahqyU4ce7f6g2YMTdgxcKzV6/0h7z FWO5bvjJtfgbtmOHPiM+6ZTz1zw5rFxYuanvKekSM1j6dznIMLq9pR+ObU2lFtqwTTJhLChIm0ME lNcQXjgoDPIpDsKwoyTIui+AiRJLkkQ/7TAGGbWXGjUIL/DYyq+c576nKJPMMcZr9UY7ef9o+gn+ fqJOYwhCfHpdge/yyIDzeA/IX9UMWkk1u8XI141cDLqe6uojWeWAV3lR+/GqHhwNcegkFgEfkY5L FRhckL/+h1aL2OqtpSX2AHJEJcJImF9Hts8vBSVl5QbaUxXtlVxnbS8qIO7oudHyb2T1NxmiH5SJ 0KBuz4g44nagrNraa40nzOFPcGFIgEMvhcIvhAXLR4H+Kw/zd724csQF4dM8j+vMkhFuGi1fREQK LnkV5Dtz0JcC/fqC39H+JF/LoVzDKhCWYRTC7Li1ANPZi+FIlxudf8dCov9f2s0IkJzqIRIm8qbU 1XyCSv5a7xJxUNeKc5XK4ikhND3PczcMO0pX8YB/n1F031HQheBQa38QMwzYTkXtYLtrl/52pTLA p5NsM3gTpsFj7taBDn2wB5hQ6nsDvccjqgmDvD9Wh6jHuiC8tLR6KMMNuRyyFxTB0sYG5RsIyxL4 mcinV/6+0z6bhalFEM/pjPCQA+BAlh2A3Hjv9P98KUd27zGLLoK0Cs9OP+51Ghf3OtTCt/E0k7sx Ehd6Agx3AYNOlD1GgWshjNoYZBlRK4cUuOqHAIIPzHPqiyF0WR729F3DzhCa/qPW4QuESDrhqaJ9 tJuhhSCFRiwDn8j3yWGHtM7wdRor5XMiLVQtPWpecXlU8dK/VZcfQas4fE+Gyg5KynIL/vCv8fe0 twWDeMep3NY2wwRxtTsGx0szNIlDBi9UZDx50R/0CgiBSoGxFeGLiQrUn7jHOnxTI6m05T5FpIm0 V/4xL7hrJSk60SF3F6RYOYr2 X-Report-Abuse-To: spam@se1.web-dns1.com Message-ID-Hash: 4XR7HJDQ2B32V5GAFSUTFO57UVDCXMSU X-Message-ID-Hash: 4XR7HJDQ2B32V5GAFSUTFO57UVDCXMSU X-MailFrom: zlists+context@jdvb.ca X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: ntg-context@ntg.nl X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: mtx-synctex.lua question List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________