From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from cgl.ntg.nl (Cgl.ntg.nl [5.39.185.202]) by inbox.vuxu.org (Postfix) with ESMTP id D269120233 for ; Sat, 11 Jan 2025 00:32:44 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 908774856F7 for ; Sat, 11 Jan 2025 00:32:34 +0100 (CET) Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=pass (1024-bit key) reason="pass (just generated, assumed good)" header.d=ntg.nl DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntg.nl; h= content-transfer-encoding:content-type:content-type:from:from :list-unsubscribe:list-subscribe:list-post:list-owner:list-help :list-archive:archived-at:list-id:subject:subject:reply-to :precedence:in-reply-to:references:content-language:mime-version :date:date:message-id:received:received:received:received :received:received:received; s=cgl; t=1736551953; x=1739143954; bh=V8v0zbJLw7TygTZAzVIyEy4j+22cHVsQlVYvMMa4AEM=; b=ubhgR+2hoxuM VPgw+z4wXg+iKkf/tErA3LacmmgNvn66joC2Vb50aZSxqAFskoFfXNUOtdvwKjhu ZqkDY/yN3q4Rdq3ZiV6qqfYxAdL5Y5ZMZ9pQMm+Z6gKv9U7rW9ShrmV6v1qUSfPx CsWUmGPnzt/Jfigzj914cbgxfQGi4A8= X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Authentication-Results: cgl.ntg.nl (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=freedom.nl header.b="MzvarDs4"; dkim=fail (2048-bit key) reason="fail (message has been altered)" header.d=freedom.nl header.b="WRyNGalF" 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 1AgrS1dmfXyf for ; Sat, 11 Jan 2025 00:32:33 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 9038148553F for ; Sat, 11 Jan 2025 00:32:09 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 0758F4853AD for ; Sat, 11 Jan 2025 00:31:52 +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 xSceNiCcF2qw for ; Sat, 11 Jan 2025 00:31:50 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=185.233.34.18; helo=outbound.soverin.net; envelope-from=j.hagen@freedom.nl; receiver= Received: from outbound.soverin.net (outbound.soverin.net [185.233.34.18]) (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 ACFDF485386 for ; Sat, 11 Jan 2025 00:31:50 +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 4YVHx221z9z22 for ; Fri, 10 Jan 2025 23:31:50 +0000 (UTC) Received: from smtp.freedom.nl (smtp.freedom.nl [10.10.4.107]) by freedom.nl (Postfix) with ESMTPSA id 4YVHx10MwWz7x for ; Fri, 10 Jan 2025 23:31:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freedom.nl; s=default; t=1736551910; bh=1rtt66X1FYOVkrTQ2cImN/KZ4WTUT9lhMiA0sQFrg7I=; h=Date:Subject:To:References:From:In-Reply-To:From; b=MzvarDs4EIIz+Ps/ZHql1YAQhyp21IJuljjQcv6IZ0xv0/cHFv3GbT5Gc4facOVdA 8LtDK1fGjDRSpLVaNKdAutlhDa9UBdT8wQofDGq6dFYYZilwkyTUrIsdB2nxL5GoJW KQmeVB65DHSIvUuDVq5+GTAA+a7pIogWyIeJeG+g= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=soverin1; t=1736551909; h=from:from: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=vOwLQNgBZ2vWUrQgMMD3r2W2ntyQCBkLR5zP8snSWz8=; b=WRyNGalF7CatU29oHNBRFAQOlBDIlEIrShQwvF0obdveQiut677HAs1DdtFtaAavCLqq6V 9j3MgB5brQIWd4OTITS7nxF8AfYITB7wTuq7cxz9jpBtz0lYr0093mFTvWaBwJuNBwTW1P HHJwlKbQzr3JQUsDQHMim11NWTp9uYhJgMmVEzusxcEhEfCeM2xam3vQ/G9XIMunn8qW6X 68H0RrhBy8L4nfj502XZPsWfFpl63XatUc8hXpyxH8uJ5q8sS8qCMnNycOnZJ0ExJbp68M 8k1YWZX2505nEi9a9QhKXyUBKsnqxiTuqDVghbQmq1iTCyKjq6rzzGeShsRfsg== X-CMAE-Score: 0 X-CM-Analysis: v=2.4 cv=WMmFXmsR c=1 sm=1 tr=0 ts=6781ade5 a=yaeGIPywLLJyAsH1IMTGEA==:117 a=yaeGIPywLLJyAsH1IMTGEA==:17 a=IkcTkHD0fZMA:10 a=MiNTnEJAAAAA:8 a=YEMqx4UAAAAA:8 a=ACQCx6kCAAAA:8 a=NEAV23lmAAAA:8 a=a3nu-2BBAAAA:8 a=Uows8UApAAAA:8 a=G15AZHNvsfOyZ6adh4UA:9 a=QEXdDO2ut3YA:10 a=LmrbSfiT3hecnSZifb5M:22 a=V0662LiR8DSfwiDagK97:22 a=Sab0UneHBzlWrQDlOuxD:22 a=ekCXXmE-vB8RPiJ3MEZb:22 a=oX0v64vK4IwbpfTCMRm2:22 X-CM-Envelope: MS4xfPMGkQdVD/Gp+zq/2Nx1Q7aXtabdvn/nV4aV/tHCIdtr7ZJrfVR0OOIpNVLWn2Z0ReK6CkSvxhDB8m2tiyDUoJfWS2h6WJNAbyIZcGRd6bRX5aKrEyyx i0Kxf6W5t8lHrRgdMdvdhE4mXr2A11p361mPrLTIweRsxAul5lvQV8d2tJYbTEApIXc1FS3LrIRJmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freedom.nl; s=default; t=1736551909; 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=vOwLQNgBZ2vWUrQgMMD3r2W2ntyQCBkLR5zP8snSWz8=; b=hmOA5JzuWFriySJy1MuRoWS66BIWByd+/WtD4TfMNvxBgZmdxcEXOgYJvM6l3vpB+GH2cG HtiBEpUZPqrfgBohVEjokiclkDu8ilwQMqzvb7g+JwgYQitEa8voBWeGvysPSmWZFpePPo wb06WthCFKYnP7lpq+6HOcDyWsMqIKI= ARC-Authentication-Results: i=1; smtp.freedom.nl; auth=pass smtp.mailfrom=j.hagen@freedom.nl ARC-Seal: i=1; s=default; d=freedom.nl; t=1736551909; a=rsa-sha256; cv=none; b=o2rIRYeUELTIHw7ZkhNXeIrBOUzFItLhyVMspWFuvskERsbFOcZENPIGvIJdtZKU9F8nrx /LEXbXt3RRDwxyjTPAF9eIBBBlzKpk2IKoU1iW18ZHx9FYePRRTQWTz+yB6hdn8TJhK3vz AqgaSKo37SUf/jZ/sNrYCbYY8q2Sub4= Message-ID: <90801d08-7889-4e11-8394-d9ca13c6e141@freedom.nl> Date: Sat, 11 Jan 2025 00:31:47 +0100 MIME-Version: 1.0 Content-Language: nl To: ntg-context@ntg.nl References: <189853117.47920.1736497737079@189mail-nwebmail-180524-dep-b7456985-9sk6p> In-Reply-To: <189853117.47920.1736497737079@189mail-nwebmail-180524-dep-b7456985-9sk6p> X-Spampanel-Class: ham Message-ID-Hash: OULMBBS7AAFXZESWDAIP77P7XUZRG36R X-Message-ID-Hash: OULMBBS7AAFXZESWDAIP77P7XUZRG36R 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.9 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: about : setuplayout[width=fit or height=fit] 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 1/10/2025 9:28 AM, wangzhongtian wrote: > hi,hans , > > Maybe I find some bug in file page-lay.mkxl, in > \def\page_layouts_synchronize. > > 1. Here is the source code snippet from the above code file. I think it > is reasonable if change the last line of code to: > > \global\advanceby\makeupheight\dimexpr-\topdistance-\topheight- > \scratchdimen\relax > > \orelse\ifx\p_page_layouts_height\v!fit > \ifzeropt\bottomspace > \global\bottomspace\topspace > \fi > \global\makeupheight\dimexpr\paperheight-\bottomspace\relax > \scratchdimen\dimexpr\topspace-\topheight-\topdistance\relax > \ifdim\scratchdimen<\zeropoint > \scratchdimen\zeropoint > \fi > \global\advanceby\makeupheight\dimexpr-\bottomdistance-\bottomheight- > \scratchdimen\relax you mean \global\advanceby\makeupheight \dimexpr-\bottomdistance-\bottomheight-\scratchdimen\relax becomes \global\advanceby\makeupheight \dimexpr-\topdistance-\topheight-\scratchdimen\relax but the top values are actually in scratchdimen so \global\advanceby\makeupheight \dimexpr-\topdistance-\topheight-\topspace-\topheight-\topdistance\relax or \global\advanceby\makeupheight \dimexpr-2\topdistance-2\topheight-\topspace\relax which is wrong, so the question is: what is the issue you try to fix > 2. Here is the source code snippet from above code file. I think it is > reasonable if change the last line of code to: > > \global\advanceby\makeupwidth\dimexpr > -\leftmargindistance-\leftmarginwidth > -\leftedgedistance -\leftedgewidth > -\scratchdimen\relax > > \orelse\ifx\p_page_layouts_width\v!fit > \ifzeropt\cutspace > \global\cutspace\backspace > \fi > \global\makeupwidth\dimexpr\paperwidth-\cutspace\relax > \scratchdimen\dimexpr\backspace > -\leftedgewidth-\leftedgedistance > -\leftmarginwidth-\leftmargindistance\relax > \ifdim\scratchdimen<\zeropoint > \scratchdimen\zeropoint > \fi > > \global\advanceby\makeupwidth\dimexpr > > -\rightmargindistance-\rightmarginwidth > > -\rightedgedistance-\rightedgewidth > -\scratchdimen\relax > > > ---------------------------- > > zhongtian wang > > Shijiazhuang YouWen Information Technology Co.,Ltd,China > > 13311202589 wangzht@189.cn > > > > > > > > > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ -- ----------------------------------------------------------------- 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 ___________________________________________________________________________________