From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sI9HCgsvtGHjpgAAgWs5BA (envelope-from ) for ; Sat, 11 Dec 2021 05:54:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 53wHBgsvtGEyCwAAB5/wlQ (envelope-from ) for ; Sat, 11 Dec 2021 04:54:35 +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 1AD228B06 for ; Sat, 11 Dec 2021 05:54:34 +0100 (CET) Received: from localhost ([::1]:56062 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvuP1-00036H-Om for larch@yhetil.org; Fri, 10 Dec 2021 23:54:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvuOA-000369-OV for emacs-orgmode@gnu.org; Fri, 10 Dec 2021 23:53:38 -0500 Received: from [2607:f8b0:4864:20::52d] (port=40719 helo=mail-pg1-x52d.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mvuO4-0002jC-Rj for emacs-orgmode@gnu.org; Fri, 10 Dec 2021 23:53:34 -0500 Received: by mail-pg1-x52d.google.com with SMTP id m24so9719693pgn.7 for ; Fri, 10 Dec 2021 20:53:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=TrLqf/YO5jUQrX5ZP1v540QUelR7ArmTuYFlE9CikNM=; b=LEKIx4nxu3Vle/TDDh4HM0czhYD2tmzdF2hVb3sQj8faK9LImNhAI1P94bjTNHg4LW XCQ1DDJ9cgeEQgk/a9Z28M2yCFv45+b3rjb9JBScz4oAlY5UOSWBGV8B7vVrjLYtgUEK 79uy3JHKsnrgHfalWamOwQfT0NzvRNBKb8ZRzCTYe0ks4YR4jZqlA8sCh8YKDgDQuN4F RLkM5n+rfWCoKJHUhts6t9VdLEbRLvV2grFp8Tqgx/f7za1lkuYZBQyGfPuMAwQtzFno l4u25xYBrl1Kcjeb7dYQ0FomIF+9FCKnFuNCONU3qkKVUEPBA07BxcfD6vrMmeD59tac bo7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:cc:subject:in-reply-to:references :date:message-id:mime-version:content-transfer-encoding; bh=TrLqf/YO5jUQrX5ZP1v540QUelR7ArmTuYFlE9CikNM=; b=oQ/RFb1ARFPSa6ujUX03ZHKibkuRdPQTHNyPOj4yuWbNRKXJybSn4w1JIaxC5YdEnd z+CkefOQe0ZRGEi0/meoxPknytUQcEbA+FH6k/ASjBGZQ7aHPA9tJ86NjRJ1TfQDCKGX MBJSgUNhQDczxp4mKgUauds+Oj9vYBviqnTkj15o6/SbcfDIR28o3hW29W15bNAXDqBv pyDucByOXmWkcBWEM28OEycF71zi/TzACWypi+V+QFom0hfnHajtgddpEJ7qjAx6PmVu 1nSM/ls+XV3tJ/ZLc+uTGeaKKoT8PakD4MFFmTwLV5SIhijpZJ0pUgGUf5/DuAic6+v7 FlbA== X-Gm-Message-State: AOAM533iPoyw4fJhCWcqnlIH3AOzK1EQC7HG3TCdOMqnkTYkcWOhEWF2 yVTaaKmlDwyR1GZdKzV3lNUeYNAa9lY= X-Google-Smtp-Source: ABdhPJxiJApmw9zLma53PnuNAYnzuD1rFTePREKI6TDYkuELAc/2jD2Z2axJ9rLDKQlbX2aApIQiYg== X-Received: by 2002:a05:6a00:2ab:b0:49f:997e:23e2 with SMTP id q11-20020a056a0002ab00b0049f997e23e2mr22125218pfs.22.1639198410679; Fri, 10 Dec 2021 20:53:30 -0800 (PST) Received: from ryzen3950 (c-208-82-98-189.rev.sailinternet.net. [208.82.98.189]) by smtp.gmail.com with ESMTPSA id d185sm4000846pgc.58.2021.12.10.20.53.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 20:53:30 -0800 (PST) From: Matt Huszagh To: sebastien.miquel@posteo.eu Subject: Re: [Patch] Align baseline of latex fragments and surrounding text In-Reply-To: References: <874k9oxy48.fsf@gmail.com> <871r4sxxuv.fsf@gmail.com> <87v906bepp.fsf@gmail.com> <87ilvxmngf.fsf@gmail.com> Date: Fri, 10 Dec 2021 20:53:29 -0800 Message-ID: <87fsqzn3na.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::52d (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=huszaghmatt@gmail.com; helo=mail-pg1-x52d.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , 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=1639198474; 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: 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=TrLqf/YO5jUQrX5ZP1v540QUelR7ArmTuYFlE9CikNM=; b=TuSopDYJ1gm6qcRwAKttC3D2NLpFglTBDHybCWxyvylxxXyP8qQ6m3aEhmsyHOtlWckCoZ LLbEZWE+XR32mnfpFY8afNDrEY9FgzpK38cu7+Twj9q6lUonSULn6zGlI6ibb0eXUSUMpG rvFtqQQSHP1/4YeLnLRLy3csaJtxPo+KgVrx/m+e3pynNjsuGx5S1WSRq4IQEkWltcgm8A mwDwUA609sDUOyzLzqNRzXBlPYSEUvPRU/rYkqyhBMuOJB6H9bN/iH3Byz448pIufA6R0b ymGil+vXONOPsLgkv136hrsnPPUfd8p6sl95wCgEH0FC//sZS4Sgr2cYxg70hw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639198474; a=rsa-sha256; cv=none; b=Mrh2Pf+OagLNNdNuBrqCQUNOtkr7/IV6ME6HgnJBvakMc36eAk7VFsOlrclhh7RxwLvv8z GQjaRtl/eE2QjVAIJBVnu7u0tUnIudLnm6Mcma/8XwQV171kBYKVKhoa9QKU5jSOVLNvlD pJF38dXaucYcFSYrlPwG2NjXb2KbytocDJ704GsA93ncO8xt+JXkMdYRBunM/EL8TbuFoX ALVtBfrVukEFhXya2+336qFgnffEqvh5Sb+JQxWYktbTjltMXxO2nCIrzKjjGEklJ+QTxS 27bMij2Nvh0ffhyeTiFuJuTHbp/aFMz7ywMSRbhLtY7md4A0csOaHaixRceemg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=LEKIx4nx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" X-Migadu-Spam-Score: -1.86 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=LEKIx4nx; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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" X-Migadu-Queue-Id: 1AD228B06 X-Spam-Score: -1.86 X-Migadu-Scanner: scn1.migadu.com X-TUID: gkuVFrslDJ7b S=C3=A9bastien Miquel writes: > My mistake. For some reason, I had thought that > =3D\documentclass[preview]{standalone}=3D was used by default for LaTeX > previews. Setting it as described in your patch, it now works > properly, even with the default value of =3Ddvisvgm=3D. No worries; glad you got it working. > To make this behavior easier to toggle, you could > =C2=A01. Change the default value of =3Dorg-format-latex-header=3D. The > =C2=A0=C2=A0=C2=A0 =3Dstandalone=3D class makes sense, but I don't know = if that might > =C2=A0=C2=A0=C2=A0 break things. > =C2=A02. Specify the =3D:latex-header=3D of the default =3Ddvisvgm=3D op= tion. Same > =C2=A0=C2=A0=C2=A0 caveat applies. > =C2=A03. Add a =3Ddvisvgm-with-ascent=3D option to the default value of > =C2=A0=C2=A0=C2=A0 =3Dorg-preview-latex-process-alist=3D. > > Instead of the new variable =3Dorg-latex-fragment-overlay-ascent=3D, > perhaps the function used to compute the ascent could be provided as > another property, such as =3D:ascent=3D, added to the relevant options in > =3Dorg-preview-latex-process-alist=3D. It seems to make more sense since > it only applies to svg output, and it makes it easier to have this > behavior as default. It would require =3Dorg--make-preview-overlay=3D to > take the ascent as an additional argument. These are nice ideas, and ones I hadn't considered. Thanks for the suggestions! I'll think about it a bit and may modify the patch accordingly. > Please note that I am not a maintainer, these are just a few thoughts. > I do hope your work can be applied and that LaTeX fragments can be > properly aligned by default. > > You should add [PATCH] to the subject of your mail, so that it gets > listed at https://updates.orgmode.org/ and not forgotten. A maintainer > will reply eventually, but it might take up to a few months. Also a good suggestion. Fortunately, "Patch" seems to have been caught by that tool. But [PATCH] seems more typical and I've updated the subject for that. Matt