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 8229 invoked from network); 8 Dec 2023 14:04:42 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 8 Dec 2023 14:04:42 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id EB08F483C23 for ; Fri, 8 Dec 2023 15:03:59 +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 oms-dJnVmf6k for ; Fri, 8 Dec 2023 15:03:59 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 3F19C483B6C for ; Fri, 8 Dec 2023 15:03:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 07FEC483AA0 for ; Fri, 8 Dec 2023 15:03:34 +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 uPM0Jc5gfGMD for ; Fri, 8 Dec 2023 15:03:33 +0100 (CET) Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.20]) (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 9B4BF483A9F for ; Fri, 8 Dec 2023 15:03:33 +0100 (CET) Received: from smtp.freedom.nl (c04cst-smtp-frd01.int.sover.in [10.10.4.107]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 4SmtCT392Fz6h; Fri, 8 Dec 2023 14:03:33 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.107]) by freedom.nl (Postfix) with ESMTPSA id 4SmtCS66v9z2j; Fri, 8 Dec 2023 14:03:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freedom.nl; s=default; t=1702044213; bh=Jl2Z6shDL+05L3sNIpOacFIBZiKROgF3F7w3eGr0M8w=; h=Date:Subject:To:References:From:In-Reply-To:From; b=WsBN+nMU3UlvAozevwyciUvlkE6zgvfXJEwOI84bLD1aa2JaToB/XCoV47AFYLecr ACxmns5PjkE22WDqElCEYnPxVvb7xRWHdv9ewUbwKkeJnMxQNkckr4jw0cwCa1Zx6r 6IMn18pl50aHea6qpC7IzsKtMXUxyTpdKagSe5/w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=default; t=1702044213; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=2Oma+/e0IgGWsRuaVXtZjB+xLsfcd7bI/BNtMnb0RmU=; b=plgM5AxJWD6QLHHePujqYBk65OaAdJtSAt5DZW5fBuNGOoRrSzIAngKw11Xof7lkYq0aLD cgjbm1KzRlCId9Lgd2FmmRNl8cubp4+1w4ebaHmXsQauWn1UERGv4Ktubpm7E4qaGjhbxa qC6y4Y+RNPfG+0ULe7JZmEXj4y+H1jA= ARC-Seal: i=1; s=default; d=freedom.nl; t=1702044213; a=rsa-sha256; cv=none; b=iM7Uhy6uikeLq+2S4T7wzklgIvZOrj2XlatplVb6qwarF9/MMQwa4d3UfHLIXplW3y1dwY a0dodR3ZFp61/5Mlz2pdgBcGvfm7w0koqekkfSpzbuPNvgzw6H8o+EsQbBfJSUFo3cA//M HoP5kbLVGQuNUL/R1gaqSbMYBie4thY= ARC-Authentication-Results: i=1; smtp.freedom.nl; auth=pass smtp.mailfrom=j.hagen@freedom.nl Message-ID: <913fa7c5-a9fc-4edf-909f-f7805e97aaa3@freedom.nl> Date: Fri, 8 Dec 2023 15:03:31 +0100 MIME-Version: 1.0 Content-Language: en-US To: Jim , mailing list for ConTeXt users References: X-Soverin-Authenticated: true In-Reply-To: Message-ID-Hash: AJWV2NJUQ2W54SPRCSNEP4PRL7EZA7AK X-Message-ID-Hash: AJWV2NJUQ2W54SPRCSNEP4PRL7EZA7AK X-MailFrom: j.hagen@freedom.nl 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 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: From: Hans Hagen via ntg-context Cc: Hans Hagen Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit 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 ___________________________________________________________________________________