From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EI56D64n42QKUQAASxT56A (envelope-from ) for ; Mon, 21 Aug 2023 11:00:30 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EDZfD64n42TmkQAA9RJhRA (envelope-from ) for ; Mon, 21 Aug 2023 11:00:30 +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 D91EA60BEF for ; Mon, 21 Aug 2023 11:00:29 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=cXV3zq2y; 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=1692608429; a=rsa-sha256; cv=none; b=YHygonedrZDtBg4oTgLAdy0gN4dQeEuI5Wm4RbCmriNBqo9Alp+oYuoaW/MWYflTYGI5FU V3NorSJC//WqGVplUOUVUnXkb8kP5os480+KcS4mO6koP7mDAbB2Y/KVC4DaaBoujGnH5G CWihPUWaXN1Xmm8rPhQsRm28pmIwXonYeLC3057sQQLlC1Q2mag57XRRQ29vBjf61lluop SUle6veaM9ImZLgn19t3P6vIlRyFxsIe9GJSfAF2h+hsgvMu7HxcWYqzH8D5W2WK3omtFn WQ2DFzBRY3/bptyF/ZpaWjgKTerQbNWPh1H1g1a1UVPfMmAMaNtBLvVbS0051w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=cXV3zq2y; 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=1692608429; 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=SW7HutWT6zVV8AjveOMpHvtIyJyY50Uvtpk3PQOwQXA=; b=QmVNlIrTsIIeo0zJz+gRHhsxDb4wNs7TRLTk9J/kxiluvag/C7sw6zymUuSqWiIXsvt2Sw b1afechsW7jC3shxo9EEl8D4C0CZkaqtTsg1VE6VM2x/staiCSiutwptRMXAZDv+ZO6BuM c+I/BF+K487ZtbMau8du02+UM4grI/VxKAJyrMMxylOccOE5947qxIcEUwgdAysk+12WYu k96JRZ60woLzH/s6Ez6GYQSbGYrNCDpxmd4vtQOQeXLaAw3/nzbntph28ujEmXJdUFaUSN i+uDpX5k3P84o/iPokeOJyw+6A/lbWywM4Nd+JJVm5fhg7p1cBGjLjkKWxfiJw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qY0l5-0005M4-Cu; Mon, 21 Aug 2023 04:59:37 -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 1qY0l3-0005Lg-0X for emacs-orgmode@gnu.org; Mon, 21 Aug 2023 04:59:33 -0400 Received: from mail-pj1-x1041.google.com ([2607:f8b0:4864:20::1041]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qY0l0-0006rx-Gh for emacs-orgmode@gnu.org; Mon, 21 Aug 2023 04:59:32 -0400 Received: by mail-pj1-x1041.google.com with SMTP id 98e67ed59e1d1-26d63b608d4so789037a91.2 for ; Mon, 21 Aug 2023 01:59:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692608368; x=1693213168; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SW7HutWT6zVV8AjveOMpHvtIyJyY50Uvtpk3PQOwQXA=; b=cXV3zq2ygrqdL7pqHneMOXdt+Un+myNvjGkFREcn9SIDXQ12vTwC6ruxG4EHN4mFYb v+9+fk6ORO2mJ/dwZDCFfxe8CZzTBZL+z7GWMMrpO+jtxi/SotmWR3ylbAXfB/xqEEhT JGQZnNB1hmKl2Me/Lb1IqWTZbMMXdyNYaQeHumpJQzLEFznKUyI9VMa86dtWq5wndd2T KOsXHkJfxVOyFFSc8IsQNccvnnn3/6J9d3xo/mfx565Awvi+vKgvgEFbmexXZALXvdGY XSXgeVkDQ2cu9MZS/B4HQxb/aKewXcU8VW5uVC/TRV8xc0iUSg+ZsSYjxQ32Zoeacysx I/aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692608368; x=1693213168; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=SW7HutWT6zVV8AjveOMpHvtIyJyY50Uvtpk3PQOwQXA=; b=GM0GPdTAGwZ5XL4RVesJ30aiuF1XZuoZqmmkHPOEBhJucPZ9+dtXKSSBHkSFkwilTj UV9uTFP5tWv2wYOT0N6OJjFgwiWgEb5dlzFAuL+vfVrrYLsXTs3CHVVyEYtiM9ZZfCTX YLdb2zbmvH40Mf3+Vp15eUVcIj+VwmFh+ncSaPlKh0IgQWtp0bmHL4vBULI+DN27JNHR m5A08D2i3WTtisfqwX+nkOoR1Ae8QZNFtlw5n0LXtJsUK2OlCIlysNsGXnxopum+RJEE qbTfao9qous8qtuWu7Pv8CJjhQKv5Fzj/WomceX7mg4NpkLl7nH+4pkx0lQOm2R1ftt/ fDMA== X-Gm-Message-State: AOJu0Yz62LY72wGqs4W3vMf2rVZGHRwUc9VeLQ22MSc8UpoQ6ahki8Cb Opfy69wyj7zpQjKOuF13vMVLBebJKLZZcQ== X-Google-Smtp-Source: AGHT+IGj/bmhu/d0uKm5iqorE5pNN0hHN8CqBp1FQSjIPmVpjpqJZgTH3g2ABFRUbyea0mrgy8nSUQ== X-Received: by 2002:a17:90a:17af:b0:263:ebab:a152 with SMTP id q44-20020a17090a17af00b00263ebaba152mr3258821pja.19.1692608368527; Mon, 21 Aug 2023 01:59:28 -0700 (PDT) Received: from localhost ([118.185.152.162]) by smtp.gmail.com with ESMTPSA id z2-20020a17090a1fc200b00262ca945cecsm7979374pjz.54.2023.08.21.01.59.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Aug 2023 01:59:27 -0700 (PDT) From: Visuwesh To: Timothy Cc: emacs-orgmode@gnu.org Subject: Re: [Pre-PATCH] Overhaul of the LaTeX preview system In-Reply-To: <87lek2up0w.fsf@tec.tecosaur.net> (Timothy's message of "Sun, 12 Mar 2023 20:23:21 +0800") References: <87lek2up0w.fsf@tec.tecosaur.net> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Mon, 21 Aug 2023 14:29:23 +0530 Message-ID: <87msykwz2s.fsf@gmail.com> 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::1041; envelope-from=visuweshm@gmail.com; helo=mail-pj1-x1041.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_SBL_CSS=3.335, 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: , 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-Scanner: mx0.migadu.com X-Spam-Score: -9.38 X-Migadu-Queue-Id: D91EA60BEF X-Migadu-Spam-Score: -9.38 X-TUID: 4FopTxHEwxri [=E0=AE=9E=E0=AE=BE=E0=AE=AF=E0=AE=BF=E0=AE=B1=E0=AF=81 =E0=AE=AE=E0=AE=BE= =E0=AE=B0=E0=AF=8D=E0=AE=9A=E0=AF=8D 12, 2023] Timothy wrote: > Hi All, > > After months of work, Karthink and I have prepared a rather large patch-s= et > completely overhauling the LaTeX preview system. I hope to have a patch s= et > shortly, but in the mean time it would be good to get some more people te= sting > this. > > To test this feature, please check out the `dev' branch of > (it=E2=80=99s the default bra= nch). There are > also some other changes there currently, but I don=E2=80=99t think anythi= ng is broken. I tested commit '6eb77305361a1f6a3f67c3229f837f1c4e95f546' of the dev branch. 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 % dpkg-query -S mylatexformat texlive-latex-extra: /usr/share/texlive/texmf-dist/tex/latex/mylatex= format texlive-latex-extra: /usr/share/texlive/texmf-dist/tex/latex/mylatex= format/mylatexformat.ltx 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... 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. Except for these hiccups, it works without a hitch. Thank you very much for your work! > If you do come across any issues, please let me know either in a reply he= re or > the org-mode matrix room. If you could also run > and s= hare 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.