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 gNBFKG4l5GTCUwAASxT56A (envelope-from ) for ; Tue, 22 Aug 2023 05:03:10 +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 cHQ5KG4l5GTi3wAAauVa8A (envelope-from ) for ; Tue, 22 Aug 2023 05:03:10 +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 46FC24F339 for ; Tue, 22 Aug 2023 05:03:10 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=kVhpNnHo; 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=1692673390; 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=vza6ZkvZfqpSXsC26tcA5c1mGyqcW1tWiBRsrUR+vcI=; b=A727bGMUh7KYm62uoU9z8RmheoLV6wDk3SJDTiSzKZkMWk6fJXCKcA7O9YgRVZpN8SExns 8vtVwDGpGfVWiirgWLdIQnU4TfVaIVOsBQLDVk7Dx8yA0MWYpLZFQMByhu/oTlvqtYvxDU lxCA6PpjgE93/vtEdOWfwhr99hYipxWeN5K+dH3Wyw1MKWujiIamjGTDmT/Zc+tf1Srier GdioZUhIoL+oQg0mHqVZBSsP76wwUrcRx37sLRTYpb5kxqVp5yxXJZlUFRLP6Kr6yXoJGS u9cMS2r36eM7mocdTjKWYnVYAFqNezGPDWIaolUMzdEO4Cot24L8YDlTKHh5WA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=kVhpNnHo; 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=1692673390; a=rsa-sha256; cv=none; b=ktWGjOwmDzmYwSFSV/yaU31Zyai8CZcNx+h1f9MCUH24HJAjUQjVo4j5UQKr+WPqJXnF2B Mo9ivtyDuSERn0CnDT+ykkH9bbaHVBUi2vMzYQ5ig3x+oVzTBm+a1Xm1rq10CMTWnnhCwO L1lcK7yaRS4poCcQdJYnCLM/Ip0sNS4ouf7tr9Z3qo1DokEPB4YiZSAlOxS/hqSvofWQ9U PZt4EPLnt4oXoASHl3vT29uUy2tasDWkcUXXq2NCFdrQJOZ/f2PcDWEugEEuxgOiEqXB3P GTZXiJcVHrNYGJ8w31BuUsITppirN3g2N+calrCsu76nbSgmCCK+pDiu7AZtXw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYHZv-0002C6-51; Mon, 21 Aug 2023 22:57:11 -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 1qYHZt-0002Bx-Pu for emacs-orgmode@gnu.org; Mon, 21 Aug 2023 22:57:09 -0400 Received: from mail-oa1-x42.google.com ([2001:4860:4864:20::42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYHZr-0005AM-Fk for emacs-orgmode@gnu.org; Mon, 21 Aug 2023 22:57:09 -0400 Received: by mail-oa1-x42.google.com with SMTP id 586e51a60fabf-1c11d53221cso2607452fac.2 for ; Mon, 21 Aug 2023 19:57:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692673026; x=1693277826; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=vza6ZkvZfqpSXsC26tcA5c1mGyqcW1tWiBRsrUR+vcI=; b=kVhpNnHov0HrOq6V4cFaE3JEh3sDBDgdnhyQa0rGCY9VwTRq7KQijg/BVgeSgkLIe4 4X1R7HLobMt+xG4ae9W6WITyq1Vs+dmO81KIvuxsteKXIV3Ff6jGKMYIyCkO6D5ZrdGv p9dA0Reupoux6yE1FK19bzNin+RNrJm6PM0jCYy5Ah4QrPxsFfpzbNRbG/453yJi6dpz UioE5jJJ2zkgL7zc15Ia5WJ56wKZHDMAh0WF7DtslMuMdhTeY0cDkqkJHOAcvI7SNrH5 rqcouMWY8+jNhjYF8XAVgQznDiBodtMgVyNYvibFf4SOKin6AiorAMBFU0uCuEjrIpS2 Sm7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692673026; x=1693277826; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=vza6ZkvZfqpSXsC26tcA5c1mGyqcW1tWiBRsrUR+vcI=; b=S4MBiYMHY+uGSvgMqhxfC7vSv8YY1hSaLQAgRh2dMis2hFo0Mc4VBrn6ErygSxfxY2 2C3lOYLla4jDU4q5HM+mcLNRqBcl1+Izp7hzqKFJtx/4OLnaGAp4FcuHveFWYOojPp6G 2znwGJ+lRsdb8LnHIxlx3/uUxyPHkbtySs9IQHiEhcjD/z6jPanjSfTmZ0W3141LdihM ThM+WREFDipeG89SI1K5tPO+lF4ufR8sei4LhYGZW9dtig4BqOV2088OmgCdy4Dw1LK0 5lF9reH7m504XN001/MjA8cktNhzXVvRzA5xPwCoo8LS+izkQkY0OARRvxSe7JoqSGAz /gIQ== X-Gm-Message-State: AOJu0YwP0aYmva8fpcCpKkOGzXspFWF46ST6KFYvGtQkyZ+JUiA+MWJw 0V4tU2lF0inYNwijppsDTHpkbWu1hGbmKw== X-Google-Smtp-Source: AGHT+IE960RyTeGVNWGjJ9ClfvQiIJmjJExS6aYgVSm6ITkVqLCnjIhy7Gj9qp1uosbvft9Xclp4oA== X-Received: by 2002:a05:6870:e2d1:b0:1b7:4655:2ac9 with SMTP id w17-20020a056870e2d100b001b746552ac9mr10767118oad.6.1692673026000; Mon, 21 Aug 2023 19:57:06 -0700 (PDT) Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id m17-20020a17090b069100b002636e5c224asm6653600pjz.56.2023.08.21.19.57.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Aug 2023 19:57:05 -0700 (PDT) From: Visuwesh To: Karthik Chikmagalur Cc: Timothy , emacs-orgmode@gnu.org Subject: Re: [Pre-PATCH] Overhaul of the LaTeX preview system In-Reply-To: <877cpocbvr.fsf@gmail.com> (Karthik Chikmagalur's message of "Mon, 21 Aug 2023 14:40:40 -0700") References: <87lek2up0w.fsf@tec.tecosaur.net> <87msykwz2s.fsf@gmail.com> <87a5ukcprk.fsf@gmail.com> <87fs4cwby3.fsf@gmail.com> <877cpocbvr.fsf@gmail.com> Date: Tue, 22 Aug 2023 08:27:03 +0530 Message-ID: <87bkezwzr4.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2001:4860:4864:20::42; envelope-from=visuweshm@gmail.com; helo=mail-oa1-x42.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: -9.13 X-Spam-Score: -9.13 X-Migadu-Queue-Id: 46FC24F339 X-TUID: 8vbBhz5hl3Ys [=E0=AE=A4=E0=AE=BF=E0=AE=99=E0=AF=8D=E0=AE=95=E0=AE=B3=E0=AF=8D =E0=AE=86= =E0=AE=95=E0=AE=B8=E0=AF=8D=E0=AE=9F=E0=AF=8D 21, 2023] Karthik Chikmagalur= wrote: >> I have lualatex installed as part of another texlive package but I am >> not sure if org uses it however. > > If you haven't changed `org-latex-compiler' (globally or in the Org > buffer using a keyword), it's using pdflatex. I am indeed using pdflatex. >>> 3. If no, do you mind sharing this file (or a stripped down version >>> you're okay sharing that still has these issues) along with the LaTeX >>> preamble? That would be `org-latex-preview-preamble' and >>> `org-latex-packages-alist'. I would like to reproduce this bug. > > Please let us know if you can reproduce the precompilation failure. > This shouldn't be happening. Hmm, I tried to reproduce it again but failed to do it. Perhaps, being a bit more patient is the key. Sorry for the false alarm. I will turn on precompilation and report if/when I can reproduce the failure. >> No, AFAICT I don't see the issue with png previews.=20=20 > > Sizing issues with pdflatex+svg previews should be fixed soon. > >> However, all latex previews, \( \) and \[ \], seem to be of the same >> size now. > > Should they not be the same size? After using the svg previews, I was under the impression that inline maths environments would be at the same size as the rest of the text whereas the other environments would be at a slightly higher size. >>> Previewing unadorned LaTeX macros is officially unsupported but >>> partially supported in practice. If you move the cursor over the \ch{} >>> and call `org-latex-preview' it should be previewed. From that point it >>> should behave like a regular LaTeX fragment. Editing it should cause >>> the preview to be auto-updated (If you are using >>> org-latex-preview-auto-mode). >> >> Is there no automagic way to do this? Like changing a regexp variable >> and hoping it would work till the end of time=E2=84=A2. (: > > You can change `org-latex-preview--tentative-math-re' to suit your > needs. This variable is used to identify LaTeX fragments when calling > `org-latex-preview'. All subsequent checks involve the org-element api, > but for reasons I can't recall at the moment the initial search is via a > regexp. Thanks, that seems to work! > Karthik