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 0I5QIxra42SB3AAASxT56A (envelope-from ) for ; Mon, 21 Aug 2023 23:41:46 +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 6AI9Ixra42S1/wAAauVa8A (envelope-from ) for ; Mon, 21 Aug 2023 23:41:46 +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 0A6C55F66F for ; Mon, 21 Aug 2023 23:41:46 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=MtaBcZpo; 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=1692654106; a=rsa-sha256; cv=none; b=CLLhkaO8LASH5N/GL2zOminNG337xcLnXX/Y+53b3sJHl8zRJYYe5RP1qcnnZ0A+8+NH6a vKdX2yivacqlsCSvfAr7yrnYLAoD/Qa5K0VAIkkyXBVLh/ljfMd7qlvlC6gO9ThzyhExmE LEXDM1fJNbMWT1DDJQmQ6nCXrSUqfSr1Y2aRuwuVzKyD8eOfZ3SDUjjnHmnF45OlBfQYbH 5PE5f31GrM+ZmC21ENKb3y0Vy1/LEr37PuD9eyYeA0/X7/z7XFJSXJ1hXN7BEKkWugsG+L vBCocxckcL0828lmb1Bs/Cjl5GLHMyncfVVql35ZYr8Ix4PJQRuJ0I/pW52AOw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=MtaBcZpo; 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=1692654106; 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=Okf+ank77jIYpjl+jpJtc9uq8YoEMZr4wlrCCU9+o5Q=; b=IpuWcvlxM/HI8GtiWx5Kr1L9vs5gRbL63JN/xNaQ0hNuTW4Pps9gihx+eQkFYMLO/ubRrX thbTNw6gosFKmTHlJ5wOlyrqlVbeDzFXsWuAW0mxjCBEQk6WekkSxKIkvLBqPpNt7Dbk8b b+ypzmpqc3XFl4A3fm6QDI4LFE+X3HmyBwTBiJ8jFNsQ6QtRkshZnZYETveUuUP03fowJ7 5o+4fXq58Yhdlc3BHMuOeytqq8I16CqAE527P4jUz9lh8YTS8ILtis3L3ps4Na8y4AFxj5 M25VrQmPbTnuIOn7j4savHlKGOrXssi9AyrMLbL3omo+qfyIs8N+41vPi/K4gQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYCdj-0008J6-CA; Mon, 21 Aug 2023 17:40:47 -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 1qYCdi-0008GW-BC for emacs-orgmode@gnu.org; Mon, 21 Aug 2023 17:40:46 -0400 Received: from mail-pf1-x433.google.com ([2607:f8b0:4864:20::433]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qYCdg-0006Sm-5p for emacs-orgmode@gnu.org; Mon, 21 Aug 2023 17:40:46 -0400 Received: by mail-pf1-x433.google.com with SMTP id d2e1a72fcca58-68a3236a414so1826169b3a.0 for ; Mon, 21 Aug 2023 14:40:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692654043; x=1693258843; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Okf+ank77jIYpjl+jpJtc9uq8YoEMZr4wlrCCU9+o5Q=; b=MtaBcZpoc9mHEY5KuohPur3EXUlT14cRy4GLTmSpuVdmN2wnL1pCk+/d05JZie3HSg 642hl5Q1pYwyU3lowwY28S8pqgN9LFubJJjwrl+i/SBbQvtepZRwFbkd0BTlkWj7MDrt A/z1pPHjzGPXpD1D4SWwjHFAASuYcrbkSIf4XrBeNViKsH5mUfH0tdOD44mIM+Xdhg1C YJf7CSYM+LXbLDNqQFBdMw8wLnjrg2JNuoqF4FWAHk0cGe003G44H8JQzK0/e5xZTUYV wO3jxGw+ZxYsESY3JZIdgAGhFCxVu/sdvPoLe8Fdiki1Rp+lfOKdW3NO7k6l+VOTLrIe eZBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692654043; x=1693258843; h=content-transfer-encoding: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=Okf+ank77jIYpjl+jpJtc9uq8YoEMZr4wlrCCU9+o5Q=; b=UYXGgmFup9psUm+r1/6IERoeo7MymfBJxIREYXbpX2tGBhzehvYs9+nM0pcGKwhFh5 KmQx+o3PTC9bgbXPF84qHYQ/xq5VijLOLQl4Y2aDcol6rEB7A4nH5rx6LU3rVupZpthI 4/lD6/WcXl61umBCBMhCXKNel1hnARFHpmoiknYnC38gIAdwixF7eL8B/JME5FIYgets ewDI8tfGW4vBiNmBPX4CZxQJlR0L3l5fsR49eB7Bm08xbx1YDFFso3B9jAxr0haCTmXB C9AkrbKW8D4OyyZzAhYyfHA2Uja3nopUkyrBuz587ciixGgBppPkylgmEK4LR1PNtpAe LDDA== X-Gm-Message-State: AOJu0Yw/eere5KvZ+l46yyWsupWvMXfIycHUiWdx0rk3i1cvDi3vTJv7 oe6TiKcOr3FgV5wzzJCXRI8= X-Google-Smtp-Source: AGHT+IEB9NVc2RXAyBpvpuZP8ldr1uF/9Wm1Esi6O+1soFrZ8SA2+4CxL1e2i07QHViVDNY3/tO7aQ== X-Received: by 2002:a05:6a20:3214:b0:126:a80d:4960 with SMTP id hl20-20020a056a20321400b00126a80d4960mr7673488pzc.30.1692654042654; Mon, 21 Aug 2023 14:40:42 -0700 (PDT) Received: from localhost (ip184-189-240-75.sb.sd.cox.net. [184.189.240.75]) by smtp.gmail.com with ESMTPSA id v14-20020a62a50e000000b0068702b66ab1sm6794864pfm.174.2023.08.21.14.40.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Aug 2023 14:40:42 -0700 (PDT) From: Karthik Chikmagalur To: Visuwesh Cc: Timothy , emacs-orgmode@gnu.org Subject: Re: [Pre-PATCH] Overhaul of the LaTeX preview system In-Reply-To: <87fs4cwby3.fsf@gmail.com> References: <87lek2up0w.fsf@tec.tecosaur.net> <87msykwz2s.fsf@gmail.com> <87a5ukcprk.fsf@gmail.com> <87fs4cwby3.fsf@gmail.com> Date: Mon, 21 Aug 2023 14:40:40 -0700 Message-ID: <877cpocbvr.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::433; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pf1-x433.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: -6.85 X-Migadu-Queue-Id: 0A6C55F66F X-Migadu-Spam-Score: -6.85 X-TUID: zzIjhUOXwkLA > 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. >> 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. > 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? >> 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. Karthik