From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SBvRJVlusmF7lQAAgWs5BA (envelope-from ) for ; Thu, 09 Dec 2021 22:00:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6EJoIVlusmFBAQAAbx9fmQ (envelope-from ) for ; Thu, 09 Dec 2021 21:00:09 +0000 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 21A4178B6 for ; Thu, 9 Dec 2021 22:00:09 +0100 (CET) Received: from localhost ([::1]:52500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvQWN-0004LJ-NO for larch@yhetil.org; Thu, 09 Dec 2021 16:00:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48164) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvQVv-0004L2-Om for emacs-orgmode@gnu.org; Thu, 09 Dec 2021 15:59:40 -0500 Received: from mout01.posteo.de ([185.67.36.65]:32771) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvQVt-0004Jt-8Y for emacs-orgmode@gnu.org; Thu, 09 Dec 2021 15:59:39 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 2A6B8240028 for ; Thu, 9 Dec 2021 21:59:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.eu; s=2017; t=1639083572; bh=PFbYouqjeDsxtrFy+ilHQAHa5cdOlzQugvZEWBioTUc=; h=Date:Subject:To:Cc:From:From; b=J9XV4vM4M8oe9NdrJHQGsoZOQ47K9ZNqZBHxorVeNYHnxMRaEEzNqhJamHyznH32n XL+3tYwTQY0VE7ECQ5UNCkTbWDRl/kN+9yZxidCVi3KQIDuj/kNxW+zgF2xOHqUN6B eOPrTtU1Stn9ZbVXSTG7xdiLchjEuNZ9dviauOq6sVqDBn1sZgtLKqJi7Zp1/bdz4o 7szy0hQ1to2g8zT7e4y0dvcBdLI6N+YatAa5jRqOk1XbOCZv9sYeVxcuUS75uApP5Z K2LY7IrW5UBHUU3+p5lVP+Wrmqq80W4OAYsNdw1fXpHgIEA/Jp/4ScRv9qP2Icfd5N bBw2s4V1JGFbw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4J95xv1RSQz9rxQ; Thu, 9 Dec 2021 21:59:31 +0100 (CET) Message-ID: Date: Thu, 9 Dec 2021 20:59:30 +0000 MIME-Version: 1.0 Subject: Re: Patch to align baseline of latex fragments and surrounding text Content-Language: fr To: Matt Huszagh References: <874k9oxy48.fsf@gmail.com> <871r4sxxuv.fsf@gmail.com> <87v906bepp.fsf@gmail.com> From: =?UTF-8?Q?S=c3=a9bastien_Miquel?= In-Reply-To: <87v906bepp.fsf@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.65; envelope-from=sebastien.miquel@posteo.eu; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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: , Reply-To: sebastien.miquel@posteo.eu Cc: "emacs-orgmode@gnu.org" Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639083609; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=XEF8XNXnmV6dIuGbIx3lpN/sftX0BObOwyGrFJAX7yA=; b=B5ONDJembPoZU+ZV00ppjQEbhqSXXEZrA7v7k+ZWMbWlrR8F4Ts0YNwtW2IE8R0OtQPUlT +n3KnL6M4Q1n1QZEqUQvPfGJ1SSo4ZnVIIkblB1MwJHONQHeOo3L7uqOczVOIrxPxrgItE iSf7Uj7hvHXwF6DwvBB0LmoP6T+mkraUrRayznCkzdr8RDQKmUU49IWjeZj0fxrDUd6owr s5r81lCaUtBbi2MuacGnKH8YLdkF43Lx8tTVLP2An+C2HytNEzilw/+9JdAPzaQUOCMumy oW2J2mBSQZGDLmbDBnBUZpYa9OPfAWtNzCuo/Alb8Ypdpf+MYd/FA3pIBTckhw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639083609; a=rsa-sha256; cv=none; b=kWj6dZhHtYC60Dq7kjcFXAbWHHoCY03poiqX2TWb1DLZKbyw7y6JzueEUAkyyIpzOLzBX7 Tg5TFnvLn+6M2ig43buLye6lX6SUaQsK5qIryFAxOuVMPcJYegsZNLcEVXHrlF87ldkgIG asXL+Rt4Rv0KtoyD+2mLSPufOX3ytG8S9wK0+QjS0WdNWOlMId2nILIAvf+XYLZsfJ1IHI 2fh3BqtyRtFtslhvZtnNWj3VBahpS1+TfRlrYSrMuGRWzf3Yb7NXNYHvfswKg0JCyWKAkG EiV+ryrypPn2fIS/QPWEoDOlNV1bxhBUhTbrLrDT9X0Zv2LnsBFDZ5Mbvehrig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=J9XV4vM4; dmarc=pass (policy=none) header.from=posteo.eu; 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" X-Migadu-Spam-Score: -4.36 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.eu header.s=2017 header.b=J9XV4vM4; dmarc=pass (policy=none) header.from=posteo.eu; 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" X-Migadu-Queue-Id: 21A4178B6 X-Spam-Score: -4.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: cFExlxr6vwXR Hi, Matt Huszagh writes: > I feel that maybe it would be useful to attach screenshots to show the > improvement from this patch? Anyway, I've attached two images: one with > the correct baseline alignment to surrounding text and the other with > the current, incorrect, baseline alignment. > > I think a lot of people would like this functionality. It looks much > better than the current behavior. This looks great indeed but I've failed to reproduce in my environment. I couldn't get ~org--match-text-baseline-ascent~ to compute the ascent : the ~xml-get-attribute~ call returns  : ("-16.945024" "12.153473" "16.148855" "8.064997") which gives an ascent < -100, and the code then defaults to 'center. The options described in your =my-dvisvgm= seem outdated, you can check the latest default value of =dvisvgm= : =use-xcolor= is deprecated and a =:image-size-adjust= property is provided for the images to be sized properly. Are the arguments =--no-fonts= and =--exact-bbox= necessary ? If there are no drawbacks, perhaps this behaviour should be the default. Otherwise, it should at least be easier to toggle. Can something similar be done with =dvipng= ? Regards, -- Sébastien Miquel