From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YEptFV+K7WTmiAAAauVa8A:P1 (envelope-from ) for ; Tue, 29 Aug 2023 08:04:15 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id YEptFV+K7WTmiAAAauVa8A (envelope-from ) for ; Tue, 29 Aug 2023 08:04:15 +0200 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 DE677502D7 for ; Tue, 29 Aug 2023 08:04:14 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Gu63R3IS; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1693289054; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=o3F22i3dduIIPjvUohQNMuisO+bWOBWf180NLnXiGKU=; b=E0OpjTMcfjOhNXS3JfFxt+LBnQvFoZGzBqgqbB1sHHwGRO8aM5VtUpNNzQCrtdF0JeAGVD 6mwRYrYheswhol0VhOXkq+grRE0WOKjfaHEi2qu7XPGEYwek9xaMOUTFnh7pZJY4K1uOwv R5j9P+F/vP686eSbENb6GDDAqGmNOz7N+CgVruS9D4X8qhj4NrX/uWDlwfV2HFZqGWI3SC 38p3M10c8x2rG/OdvHVy57bVTNxH+LvZ0aXiavMyvHeNuwYrVczuifSsG87/pEFyNRbAlC NhfDZRNahcNEIogs1QjqSaznNeJoqXsN7cLsG+2yzI55e/FB7VjPp72ebOIZ2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=Gu63R3IS; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1693289054; a=rsa-sha256; cv=none; b=Cm6S6tmLk+x/+q3ntTbv/m9iPAo1A5A1zdZ214zVRWIJvRpDTw5NZlveqK6bv5TQcJH4CB Dgj2NfZKlJmJM3H1pHnGW96GYyNbgQg0N3klCgT9oK5PgDGjWoQBVjiZ+KvcaOZw4IQQGV W93733fd5Wr7dv9+FHB6gnjjwKB9/mYKzSvyK/6VLNFs9JGlf53oVlOIo28H8irnhVRsMb kNWS5xOuBmkJ3X6Ls9lbttXHmCVFEim4hjbvSGQfLwF8T4Del+5CgHevtaFFaDoD4hvGUF Gn8YZwvBW259JcZT3vcsFXmhuXCENtw3WajaDm+fo7wbPVbi/vkAU23UM4NVOg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qaroq-0003gU-6P; Tue, 29 Aug 2023 02:03:16 -0400 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 1qarol-0003fp-9o for emacs-orgmode@gnu.org; Tue, 29 Aug 2023 02:03:12 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qaroh-0005gN-ES for emacs-orgmode@gnu.org; Tue, 29 Aug 2023 02:03:11 -0400 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-68c0d886ea0so2714968b3a.2 for ; Mon, 28 Aug 2023 23:03:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693288985; x=1693893785; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=o3F22i3dduIIPjvUohQNMuisO+bWOBWf180NLnXiGKU=; b=Gu63R3ISS7nuVu0FdU+N55djxYLdMKRwDmBgCrF6xdaw3SC4RWAVQDA+J6pYEyLUrM f7yxIa+H70JGAsHhRbl3a1bgenpfnPnnNEzpr+ZtDi+Q/hekG6/I7j7EtrlJjo0ZhPpp G/E6XJMvUtHEguBo4c1wf+rF/VMFCebn9wu/JmYd+sAl5tbRlTsQ0xL5vaQLGLdOSpWN +CDxrv0KLbGKzBFJAPbLR1zIfY5mFhuv7flGvp+crRquesha2pcfvI0sNAgBrc1whKDt rqn+EcZftun+sJ8BP33I4kw8r4nvyi2NnLy8bQYXzmPa4BLxlalbkvr9E/p+uhm2VuFi 35Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693288985; x=1693893785; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=o3F22i3dduIIPjvUohQNMuisO+bWOBWf180NLnXiGKU=; b=WIUuGP9eG4X0oZlj/7XA3ESwQp4x+JSyNMLL2iZIPDB3TuKW+mAlIjPreTCb9zCBYy kRb/awBxJ3eYTMgoLlMhF9GV+LHjNriZanQNZ3mqjTnwQmb/4s79+5Lzn4wtogvT7+Yg 3ZkpczSDRCjoOj8vWZ85XkTMb8NMzaGWo6gnteZI4ObvrSIQ0hup6sT5Lb/ZsWf3cupE wvCPrOhRDxhNWy/E0/mqIPn98wnyvM4x7bC6F0kFJ5eMijURitIawiYy6CeyOluo2qaD oMDMbKRYkNomdR+h/7uup9ZadtnqJk+GYqcbvvq0wrgy4I4yLwRdpciL6A9Y43EsrHc4 wbXg== X-Gm-Message-State: AOJu0Yyav+p8JuLGUaqDuyflShuYdZfDrc4JwdV4cTtXA24I0VTB/R7W 293XuVfow6wzdInEHPAyzghSsEW8slo= X-Google-Smtp-Source: AGHT+IECzqc+Vr7rJqvIage9dWHU6a15EjSgSAAgULhcKKqdXkqswzVgfVFV0yF19664IoopA/YpZA== X-Received: by 2002:a05:6a00:10c8:b0:68a:3e68:f896 with SMTP id d8-20020a056a0010c800b0068a3e68f896mr28372830pfu.12.1693288984845; Mon, 28 Aug 2023 23:03:04 -0700 (PDT) Received: from localhost (S01069050ca65e863.ed.shawcable.net. [174.3.244.184]) by smtp.gmail.com with ESMTPSA id d6-20020aa78686000000b00689f8dc26bdsm7613767pfo.109.2023.08.28.23.03.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Aug 2023 23:03:03 -0700 (PDT) From: Roshan Shariff To: emacs-orgmode@gnu.org Cc: Roshan Shariff Subject: Re: [Pre-PATCH] Overhaul of the LaTeX preview system Date: Tue, 29 Aug 2023 00:01:01 -0600 Message-ID: <20230829060145.45738-2-roshan.shariff@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <87lek2up0w.fsf@tec.tecosaur.net> References: <87lek2up0w.fsf@tec.tecosaur.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=roshan.shariff@gmail.com; helo=mail-pf1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx2.migadu.com X-Migadu-Spam-Score: -7.05 X-Spam-Score: -7.05 X-Migadu-Queue-Id: DE677502D7 X-TUID: oXlc1K1eLGtb Hi Timothy and Karthik, Thanks for your wonderful work on this feature! I've been using it for several weeks and it's been working extremely well in my experience. I noticed a small visual glitch when inline latex previews wrap to the next line, that is apparent when org-highlight-latex-and-related is set to '(native). The post-line-ending space on the previous line takes on the background color of the org-block face. I've described the reason for the problem and written a potential solution in a patch following this message. It appears to fix the problem completely, but I'm not sure if it's the best way to go about it. I'd appreciate if you could take a look, and thanks for your time! Regards, Roshan Roshan Shariff (1): Fix background color when line-wrapping latex previews lisp/org-latex-preview.el | 51 +++++++++++++++++++++++++++++++++------ lisp/org.el | 5 ++-- 2 files changed, 46 insertions(+), 10 deletions(-) -- 2.41.0