From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YEuYNLyc42SUVAAASxT56A (envelope-from ) for ; Mon, 21 Aug 2023 19:19:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id INxRNLyc42TEqwAA9RJhRA (envelope-from ) for ; Mon, 21 Aug 2023 19:19:56 +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 5DA775921E for ; Mon, 21 Aug 2023 19:19:56 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=kqGFCw8Y; 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=1692638396; 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=4xpf92o4TQwKfiYxYZd630PblFrwsaittwU9Pc3FO/8=; b=hRpDsWN9a8ppEtEYb1HXeXMn0dXrJGRNeJseHB4GBSfQXxohFaIit0P0zaSgNRMSqZmGPs 6TLOGUHlATTo3cQVQGMGidkDaevQMWttEe8fyQZhFMkCShoxyd8im4LACccmxIfGqOAoB7 YJdbfrK/D8QUK7UJmBNUHQsY6embky2PnT6NIA4FrVz0QRFmj0nXDRCiDcEtHTyNN2vZTq VWlRMCzOtj7Evhoo8WVe2+BQqOVq8KNHs1S06prmAYx6p56/1pq0jOvERn6ulOycJ+Fld2 QQbrVvwd6xwOnEd7PPb5Hz5y+zLnyXqu04odZcKHj6cj0HpHDFJeH7EatO7RLg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692638396; a=rsa-sha256; cv=none; b=qOQpXNNtA7w8NripC7d3hWcCFkVJFSwJdN/8ZwzVrEwGpi8GkdMay0xGbzae9r3zE1uPv2 dEShq2a3RM0jux+z2OaGLf2u7wZfqPy4SbYO0u1EWC9FwcD9jYo+z2KFxlbOmOswEjjHGb 9C5augsSzsNcfc+iuu5LI+L2ywo8MNfL0WKqq7HPK5qQbyjqwKMShz2nT01DuP+BDZyBii l+Z9TTmzRoMtmTF2MDutRFv5AYn0m0/1H/LwEez3Ypt/7EN+0181LBv3bmdQ7qIknA7aM/ K2zPEP4MN3j5rvz9ExAX8jro6fbaTSwuZoXAN4NWVA+aabRlpkmEDFHUrIyBVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=kqGFCw8Y; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qY8YY-0001mt-AL; Mon, 21 Aug 2023 13:19:10 -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 1qY8YW-0001mg-5D for emacs-orgmode@gnu.org; Mon, 21 Aug 2023 13:19:08 -0400 Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qY8YT-0000in-LE for emacs-orgmode@gnu.org; Mon, 21 Aug 2023 13:19:07 -0400 Received: by mail-pl1-x641.google.com with SMTP id d9443c01a7336-1bc3d94d40fso27789945ad.3 for ; Mon, 21 Aug 2023 10:19:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692638344; x=1693243144; 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=4xpf92o4TQwKfiYxYZd630PblFrwsaittwU9Pc3FO/8=; b=kqGFCw8YntYAVOrky6sClBLv8P/sLqsJxDS4ouTgOdq9OPs0iojEU06He5Vl77HaDE 27twEg8QwyWOwX3gng3MNP9liW3iovE2SdPO5qFTPv3iSQgP85EfRg7J1x/9VV8JTBkk qCvz4XT2OOJ05exTYMRNYXOgqlS8uEeloAeUCoVa63FS1tpz5dERUYSQTQP6nXFaKuQU ahYT0Jb1snL/fDML4dm+9OVip7k3X7n+60tjJ9Y269NQaoTT6myVysbLW+yTvfremErZ qNSbc2bTWPZLqM4Kph2ia+3OzVA7pXrmzyYQ+GxqKIbqFS6uWmmV7pLTH5ujBLlM2BOH w4dg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692638344; x=1693243144; 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=4xpf92o4TQwKfiYxYZd630PblFrwsaittwU9Pc3FO/8=; b=k3ISKpg4T/zXOEYedhGKi/myeMrwLLQjXyeCqTOYb1vev+LFlUDZWRn4PJSeS97ZdQ DgKQhhfsV1ckgW6DFx9mtYgkNpqHrkKRWsZ3gsmv6YUkO6WcuU0H4IKDyXbdpXv3d8QH vVygKMVgGSxF9v81VyzzDmavGgUAyZ4kamHg1feFN8VJUG7/NpSz9umVimElIQ2ReL3C aYBsdDXmJij6Lzk0dJxBFaaZCiNbsH4Ciprf8ccBsiKEp3V5Udo9PKX1HMeqAh+GFhU6 K5je1abXZ6IsoZIhWuYhWD/n8f5/mrt7z9KiFA3R6Xr0W0E3BXw7JE2TMBM/j+V9mFMr YnRQ== X-Gm-Message-State: AOJu0YwVfUYMf9hn4oHvNqdoXYJpvSSR5cT/BZVXkLokHNZyTfX8RYB+ IGNo5Kc9awH1AH3hhgIX4ik= X-Google-Smtp-Source: AGHT+IGVme15Jv+V8H8H81iuCH/d6dsYDO6zI57+sCys2HCBbvQjlgIPfTZZAjHGRVmlHYKEhcA1fA== X-Received: by 2002:a17:902:7588:b0:1bd:e9de:ccd7 with SMTP id j8-20020a170902758800b001bde9deccd7mr5938585pll.24.1692638343681; Mon, 21 Aug 2023 10:19:03 -0700 (PDT) Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id 12-20020a170902c24c00b001b03cda6389sm7343580plg.10.2023.08.21.10.19.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Aug 2023 10:19:03 -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: <87a5ukcprk.fsf@gmail.com> (Karthik Chikmagalur's message of "Mon, 21 Aug 2023 09:40:47 -0700") References: <87lek2up0w.fsf@tec.tecosaur.net> <87msykwz2s.fsf@gmail.com> <87a5ukcprk.fsf@gmail.com> Date: Mon, 21 Aug 2023 22:49:00 +0530 Message-ID: <87fs4cwby3.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=2607:f8b0:4864:20::641; envelope-from=visuweshm@gmail.com; helo=mail-pl1-x641.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -7.03 X-Spam-Score: -7.03 X-Migadu-Queue-Id: 5DA775921E X-Migadu-Scanner: mx1.migadu.com X-TUID: 6kQBdd+6uTKn [=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: >> It worked well all around except for three things: >> >> 1. I had to set org-latex-preview-precompile to nil to produce the >> preview for ~2000 snippets. I got errors in process filters such >> as arg-out-of-range, and Emacs completely blocked itself. I can >> confirm that mylatexformat is installed > > 1. Are you using xelatex/lualatex?=20=20 I have lualatex installed as part of another texlive package but I am not sure if org uses it however. > 2. If yes, precompilation should have turned itself off with a warning. > 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. > > Previewing 2000 snippets is exactly where the new async/speedy system is > expected to shine compared to the old one. > >> 2. Apparently, org-latex-default-packages-alist no longer contain >> asmsymb and asmmath? This change pulled the rug under me since >> it took me quite a while to figure out why some of my formulas >> were coloured red... > > `org-latex-default-packages-alist' was modified to omit amsmath and > amssymb (among others) in preparation for a conditional export system > where required packages will be determined automatically from the buffer > text -- i.e. to avoid exactly the kind of headache you encountered. > Unfortunately this export system is not part of the patch set yet. Ah, OK. I will add them in my config and call it a day. ;-) >> 3. The image sizes of the same latex environment (e.g., \[ \]) is >> different for different formulas. I can send a screenshot of >> this if required. > > This is a recent regression. Could you generate png previews by: > > 1. (setq org-latex-preview-default-process 'dvipng) > 2. regenerating previews > > and checking if this still happens? If these look fine, this is a > dvisvgm issue and we will fix it soon. No, AFAICT I don't see the issue with png previews. However, all latex previews, \( \) and \[ \], seem to be of the same size now. >>> If you do come across any issues, please let me know either in a reply = here or >>> the org-mode matrix room. If you could also run >>> and= share the >>> diagnostic info, that would be quite helpful. >> >> If needed, I can do this after reproducing (1). >> >> BTW, would it possible to arrange other latex environments (\ch{} in my >> case) to be previewed as well? Currently, I do \(\ch{}\) but omitting >> \( \) would be nice. > > 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. (: > Karthik