From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 EKmnJtqT42TLWQEASxT56A (envelope-from ) for ; Mon, 21 Aug 2023 18:42:02 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id UAB1JtqT42TkRQAAauVa8A (envelope-from ) for ; Mon, 21 Aug 2023 18:42:02 +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 5DB1C4A1E7 for ; Mon, 21 Aug 2023 18:41:57 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=EpLmkJMh; 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=1692636117; a=rsa-sha256; cv=none; b=a1MWKVzwcF8unau9Jw2heFWlrVIz27Bz3S386fVkmH8jDfZdgvpmKR5UdaudwJmFdC54vF AItqca/nKgQyemXXo2s7/zL4Tp2DCUuV6giGUcWTP0Ayw6+dExvIt9giX9d6w5wla3ePkc wpSu/vQmCTrhDxYnt6MgylwIOfbpsG13VyGW4zOFbdebK9qKA4N2ZF6rvUuexeBF4xI8I5 R4lU4VnfUB4/FaE2VwAhD6f63wwe6b92CyPY5661KaVdireI3nVVyj88ZX6qJHM+9VXuu1 qH2oHODijoMSU2j2khybyopY3upNoGZp/9AGPZKRlYINlYOrGrlC4n7iOY/04g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=EpLmkJMh; 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=1692636117; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=IST/1LVDuLsKI3tOc8E5Qz7LVlcQT23wGVFJnPXRM9o=; b=PikhQEfY6ZfB4GQ/nmLqQDxABA2+FsN6S2oojeJ2TnkYSs8dA1hLT7WGSiJLfhD/zLtmyn K1EeIS96vZO4ob0Gcni0LZVMvP9+uKVMXiZXWtZ8jv0PK3gxexj6c/KGA90OlDu0tz3qpT yiD+DDG6d7M5Mhn3gN22pG+VQosYTZFqIq29MlYi7Tb9yEv8ZNSOmel7lVFbcMe3501vvp ccsP6yWPVgIy1F05kNa4tbX3DIVynSP2gNwIsT3ObRQzPmvfLmQFxsooByCT1oj2Jp1WBY eBWfeBOswyLnzPJYRGbOK8MZPGFbabnVmU7IBvXqNXSVj4NQKMImHMVhDdabLw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qY7xd-00014f-Bo; Mon, 21 Aug 2023 12:41:01 -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 1qY7xW-00012b-9Y for emacs-orgmode@gnu.org; Mon, 21 Aug 2023 12:40:54 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qY7xT-0001SX-9Z for emacs-orgmode@gnu.org; Mon, 21 Aug 2023 12:40:53 -0400 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1bbc87ded50so21570045ad.1 for ; Mon, 21 Aug 2023 09:40:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692636049; x=1693240849; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=IST/1LVDuLsKI3tOc8E5Qz7LVlcQT23wGVFJnPXRM9o=; b=EpLmkJMhXgnpWBGfv9z3djiUBQ4K1ew0QLUxDIk+ygNkXKKWpDkFQkSrgqOcAvQAe6 SB2oQKOf+GuqOEnU+Fy61sHh/7OKSoBBrMs2Px2asEwza6QvAmcInVBFUOcAJTOgbSYa kOmyZmpRB+GwLv/y2QrLkptqlF+XVgRWHd2hE2Z+az9XMuQ5vCLu+2z88IUd8a2hWoF5 zK0YD54FemryGikFUNNYFwzSjrYBCdFU1dbGgNlZHqYDHl7BO8guY6o6Td7gdbbn05C3 stMD1J5/t4F/A+vMcxyMSBJJxxSY+zvIlYcRN1Xo+4f/YUy2Cr0q4Ju8d1ag1oJ/AYtq cbSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692636049; x=1693240849; h=mime-version: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=IST/1LVDuLsKI3tOc8E5Qz7LVlcQT23wGVFJnPXRM9o=; b=HCFLtRuMCoB3tXDMRIJbxNMHGoy0SgbrEVhdq8LeN0BxRQyZzav91f1A3hVyFY/owZ apJgHFFb/Kk9IT95YYmy8W1M1EdUFyPyqQzswmkgxjN9FDEvAzzAfbBodpBrR/wLtMf/ oFvU77rxXazOG1DXJVrBIxDB6cU22DEhpYPDSX77nruXjWIiyswpKKGTIOxGNZfYIEIA WN849Wxf9J6UsioJXOz118I8MKTlbJhhfQkZ76PpS4eSA6BzpzdKWMsBfm16W68hkQWU 3zPSqJIeMrXDsVQRd0sFcFlNmd8mJUxZalSVFGFW2s+PqT3Ee660jRqLy5sJVK727wYQ SHRg== X-Gm-Message-State: AOJu0Yzz/ZSYzYmBaWz6FkmWr4AHBJEMmZCMwQ/2WBeyHxMfuadAlb/o HwKWkKQhmk1SqwTeYlhl04ZYj2XjPPg= X-Google-Smtp-Source: AGHT+IEcQLAgTXShgPXUTZaHZREjDXszjAAKliEtEycKXueIvT0p9IOQFCTd3Qp543lWo4Nv4Gnz6w== X-Received: by 2002:a17:902:d486:b0:1bf:25d7:6fc1 with SMTP id c6-20020a170902d48600b001bf25d76fc1mr6121230plg.35.1692636049364; Mon, 21 Aug 2023 09:40:49 -0700 (PDT) Received: from localhost (ip184-189-240-75.sb.sd.cox.net. [184.189.240.75]) by smtp.gmail.com with ESMTPSA id e3-20020a170902744300b001b8c689060dsm7224568plt.28.2023.08.21.09.40.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Aug 2023 09:40:48 -0700 (PDT) From: Karthik Chikmagalur To: Visuwesh , Timothy Cc: emacs-orgmode@gnu.org Subject: Re: [Pre-PATCH] Overhaul of the LaTeX preview system In-Reply-To: <87msykwz2s.fsf@gmail.com> References: <87lek2up0w.fsf@tec.tecosaur.net> <87msykwz2s.fsf@gmail.com> Date: Mon, 21 Aug 2023 09:40:47 -0700 Message-ID: <87a5ukcprk.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::632; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pl1-x632.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-Scanner: mx0.migadu.com X-Spam-Score: -8.84 X-Migadu-Queue-Id: 5DB1C4A1E7 X-Migadu-Spam-Score: -8.84 X-TUID: WnRaM9eZk7fP > 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? 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. > 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. >> 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). Karthik