From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iNISEAtSrWVNEwAA62LTzQ:P1 (envelope-from ) for ; Sun, 21 Jan 2024 18:19:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id iNISEAtSrWVNEwAA62LTzQ (envelope-from ) for ; Sun, 21 Jan 2024 18:19:07 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tecosaur.net header.s=fm2 header.b=wcOVJmJ7; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=Bii4Kk21; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1705857547; a=rsa-sha256; cv=none; b=eSlA48Y22eyfTei80r01E3+YtR8LMs0h+STfWlhTsM+eUeqMDKHJLZ0m+sJOxcsrfdusyn BpUdEyO8HBNyD/HdBudEDNDSId2NLU+NueCp8dvCvuEu+bQd0hpJJR75UpxsOvMYaXBvr3 EUsrwF5SbgFRO9duVgWMlX+3FQDVK/cVf0R2wdgam6r/rrR4Rfjp4wabnRNXNu6yAX/zwW qJYa/nfKwg4YBC/+yI/mmxAp4yZtNf2RA+rhCgUefi6WFHmygEK4uF7w4fP5TZGBbZVLgo t5h8pdeVGuIu34gxwIHqyGz3EuT0zYjeWf1QNisx1hQXzpPHxQRHc0pY0hqXfQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=tecosaur.net header.s=fm2 header.b=wcOVJmJ7; dkim=pass header.d=messagingengine.com header.s=fm3 header.b=Bii4Kk21; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1705857547; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=MPcXx4v9BUlKCIFHfW9Y8O3rCi5qhTKWh94IbqAS6po=; b=a+7RtXgKK8FtxsBzRNuHTe8YkYdEeB61knnEfeBxryfkUKjgt2I5bEV4wTnKjIFo2i75U0 Xkav+LLkj1MPvw5+K3bYumsbxMF9MFyzDSshjsjdMMqyIH6O06Ts7kChN1b6KGfpsXCwfq LmtODfnm0XkVTtmNgN+68/Eq5kCO5lJiuGnzXh/huQZLORXAEDU3NixtR7A8+GIoCjZ5B+ /AAwWVrB4h7Nl4D+X6nDBdRAOv5YTF+lLsb+jeJHHlQCDiXrG+NpU+3RJzqYoWlm3dJ48b K0YnwFWoquMOrlpkVTD9iqTlBkJkLcTIqaGRh+zUzImSqVIQZBDbALbY5+XMnQ== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 569467EA46 for ; Sun, 21 Jan 2024 18:19:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rRbSS-0004Ao-An; Sun, 21 Jan 2024 12:18:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rRbSN-000499-EJ for emacs-orgmode@gnu.org; Sun, 21 Jan 2024 12:18:04 -0500 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rRbSK-00022F-Vz for emacs-orgmode@gnu.org; Sun, 21 Jan 2024 12:18:03 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 23B413200ACD; Sun, 21 Jan 2024 12:17:59 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 21 Jan 2024 12:17:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tecosaur.net; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1705857478; x=1705943878; bh=MPcXx4v9BU lKCIFHfW9Y8O3rCi5qhTKWh94IbqAS6po=; b=wcOVJmJ77Grp0TlNINBINSgkdh xmDeSy9p598C1G2n3XiBCE1NAnWIlRKpfyzKeTgzDAvs+oJqAE29VWUp3omQoHWq HpNhIhnTmSoU/R3gJXDOlGU2cQL1ybB8OxcuPYOQUCT0zZibIY6CjD4/+svBHcXQ vXAwA3fX3MSYJDbcPLSeJii+T1RcNJw4LTQ53okwK9Szxhvg4HdnabIUkbsA5DM6 PQWLI8cwooBd1GDNRK/eFOeV5uXbYxzF/OFqJ/7XBwlwZ4EgzwQkzQb3ljv6oEeX h+VEOMLzF0aFmrESReGnbmiSJqD2LviNOc6Awe1wP6K+0j/aO0C/D8hgEH8Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1705857478; x=1705943878; bh=MPcXx4v9BUlKCIFHfW9Y8O3rCi5q hTKWh94IbqAS6po=; b=Bii4Kk21qFzOnt3+KLFoS5QoJoa4EVjar4LWrfGggkNJ x/6giX3u/n7kqhkw9sO/Xf3mUDhKmzEe4Wj6eb9/cez5FjSYr4UMd1+nkx9UYYq9 Ui1BGrvYc5lBxe23lG8IWJPZH7fBVHsQHtXi6EfSSWKweX1q4t55NnTExDzEgFui uepueql6ozt6hdSUCm+L9AQXt+JMXWaNoCwCYBRY8ORUiGnd4BtY7iPW31YGmAqZ RmU45dnCOAf9RopQxu0bhFaD6Myi7fKpeJSODhnGsfNkKV3SWwcuXy8hr0asYAOZ tcdhBiU8Z0gqyudY8vzQPk1qjjg0o/Q3E56TOLHnZg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrvdekgedgleejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefuffhofhgfjgfkgggtsehmtderredtreejnecuhfhrohhmpefvihhm ohhthhihuceoohhrghhmohguvgesthgvtgdrthgvtghoshgruhhrrdhnvghtqeenucggtf frrghtthgvrhhnpeeugffhueeujeffteelgfettdfhieellefgkeffgfdvieeuvedvgfel hfdtjefgieenucffohhmrghinhepohhrghhmohguvgdrohhrghdplhhisggvrhgrphgrhi drtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhm pehorhhgmhhouggvsehtvggtrdhtvggtohhsrghurhdrnhgvth X-ME-Proxy: Feedback-ID: iecf94634:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 21 Jan 2024 12:17:57 -0500 (EST) From: Timothy To: Matt Huszagh Cc: emacs-orgmode@gnu.org Subject: Re: [Pre-PATCH] Overhaul of the LaTeX preview system Date: Mon, 22 Jan 2024 01:08:25 +0800 Organization: Linux Private Site References: <87lek2up0w.fsf@tec.tecosaur.net> <87cytwk0eo.fsf@gmail.com> <87plxwfpf4.fsf@gmail.com> User-agent: mu4e 1.10.8; emacs 29.1 In-reply-to: <87plxwfpf4.fsf@gmail.com> Message-ID: <871qaappvk.fsf@tec.tecosaur.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: none client-ip=64.147.123.19; envelope-from=orgmode@tec.tecosaur.net; helo=wout3-smtp.messagingengine.com X-Spam_score_int: -36 X-Spam_score: -3.7 X-Spam_bar: --- X-Spam_report: (-3.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx10.migadu.com X-Spam-Score: -8.76 X-Migadu-Queue-Id: 569467EA46 X-Migadu-Spam-Score: -8.76 X-TUID: 5xo+TWT/Wl8K --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Matt, Thanks for taking this branch for a spin and reporting back. I=E2=80=99m a bit mystified by the difference you see between `$$' and `\(\= )' delimiters (I can=E2=80=99t detect any difference my end). Regarding the specific comment= s in your last email though: Matt Huszagh writes: > When using \(\) delimiters, using a depth adjustment of 0 (instead of > 0.02) looks correct to me. I checked this by blowing up the fragment > with a very large scale factor (eg 10) and then baseline misalignments > become more obvious. This is how I ensured my baseline computation was > correct when I wrote that patch aligning the baseline several years > ago. I /think/ that=E2=80=99s a valid method, and I=E2=80=99ve been using= my code for > the last couple years and the baseline has always looked correct. > > Anyway, can you explain more why you came to the conclusion of that > slight depth adjustment? So, this minor correction factor came abound from blowing up the fontsize a= nd trying a number of combinations of fonts (as in the comment). The 0.02 correction isn=E2=80=99t a =E2=80=9Cbest with computer modern=E2=80=9D valu= e, but a compromise between the various values that seemed best for the common LaTeX maths fonts tested= . A value of 0.02 seemed to produce consistently good results across the range = of fonts. This testing was done several months ago, so I forget the particular detail= s, but that is the methodology used. It=E2=80=99s entirely possible this could= benefit from some tweaking, I=E2=80=99d just like to see some high-res screenshots with = a range of fonts to help convince me that a chance is beneficial. > Are you using $$ delimiters? That also appears> to produce other visual > imperfections. For $F=3Dma$, I see the bottom of the =E2=80=9Cm=E2=80=9D = and =E2=80=9Ca=E2=80=9D cut off > slightly. I wonder why different delimiters produce different results. I always use `\(\)' myself, but can=E2=80=99t see why that would affect the= preview. > I used> slightly different settings for dvisvgm in my implementation > (including =E2=80=93exact-bbox). I wonder if that has any relevance=E2=80= =A6 It does. `--exact-bbox' is known to produce slightly dodgy results with rec= ent dvisvgm versions (and seems to behave differently on MacOS for some reason)= . Is there a particular reason you changed the dvisvgm settings? > I also used a different document class - standalone in preview mode. Hmmm, I=E2=80=99m not sure if that could cause any issues. > Now that I think about it, IIRC that was to address another corner case I= ran > into, which is that for large images, article will crop it before it gets= to > dvisvgm. It=E2=80=99s been a while since I did this and my memory is hazy= , but I think > that=E2=80=99s why I used standalone. I wonder to what extend this can be resolved by just decreasing the margins/increasing the page size. > I can try to investigate that with a minimal issue. That would be good :) All the best, Timothy --=20 Timothy (=E2=80=98tecosaur=E2=80=99/=E2=80=98TEC=E2=80=99), Org mode contri= butor. Learn more about Org mode at . Support Org development at , or support my work at . --=-=-=--