From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yG70KWGKVWSk1gAASxT56A (envelope-from ) for ; Sat, 06 May 2023 00:59:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 0OgdKWGKVWR3uwAAG6o9tA (envelope-from ) for ; Sat, 06 May 2023 00:59:45 +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 4747A2B98D for ; Sat, 6 May 2023 00:59:45 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pv4OD-00031I-5T; Fri, 05 May 2023 18:59: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 1pv4OC-000319-KM for emacs-orgmode@gnu.org; Fri, 05 May 2023 18:59:00 -0400 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pv4O9-00061k-Rh for emacs-orgmode@gnu.org; Fri, 05 May 2023 18:59:00 -0400 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-64384c6797eso2037112b3a.2 for ; Fri, 05 May 2023 15:58:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683327536; x=1685919536; h=mime-version:message-id:date:references:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=9TiXWryOjAokwJYKin3FkylQ0BHtAHt12+t/M6MJpyM=; b=lpsu1kzKlWZE3adwhSdAUzGN5zPtpUsUrqCAuzB/JnOda4dpnMHllVVimnFMEVcWmc b6o3kIn/uiyO1kfMaQ3I06Kgjdoxe7IqygXyyu3cnWqHn9mEv2AXN1VIgoJbyjKsQ0b1 QI08sBWfhjBkq/vuJVGPov/PkkqOL5yxxDhawSAvQzan5vptGsoU2WQ0bTgSZnImgRR7 ATF5wu/eGucQZ0N8HqKok+VLc3FIwu/SAU1rHWq7RWmLszxk9/gu+JiF0tXkqaZM4T1K Z9NSnWmIU4CNqA04MpT6jjexkjWfJrOtRn3TiKQIyvp4klMQJLLRxTjghHnKFlSSoUWb Gtrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683327536; x=1685919536; h=mime-version:message-id:date:references:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9TiXWryOjAokwJYKin3FkylQ0BHtAHt12+t/M6MJpyM=; b=QIFaPhoqybCQ7St2QIYggKoYS5JvsnYQE1ReLjIqnHeCCJqbAyWF4kLevDCfkSI6Kf gmb8dFH3H3Pgfcoxyew+rx48Z1564vE0iHLxl5uglRuKXKeIi/sZGE3r76A0XYXasYwQ JkkbU2/90pjwwy3hHFQuuOenIJ1wpC5wvzyvzSUhYosC9j9CSmV4z2+UgcazlswMwapu CO/svEhkfMguuk5O2yAy+7vyLdLanNTPG6+21Tpky6q9VXlrI1l8fDx7aUecvQh6LEhk GNLSwYfro4EJjE2Gcy5eF9vIjVlj4TjiNs/lbn4JIxbEYl7JKVxY1kS0ddm2/aqDvirb aUxw== X-Gm-Message-State: AC+VfDzWTQ0T6rsSfLWA/eMKg9WJwAa2ZUlTMonjNpoyi+X4SVARupG7 yFdCbwoWe8ZjpsUWrDDTkK0= X-Google-Smtp-Source: ACHHUZ7KcqxvI3cbIMecFefxnReUKoXIRd9vXLXqFPSnE6V5QqmiS+WmH4ugCz905l3vr+LHfEoZcQ== X-Received: by 2002:a05:6a00:a8a:b0:63f:158a:6e7b with SMTP id b10-20020a056a000a8a00b0063f158a6e7bmr4829927pfl.6.1683327536313; Fri, 05 May 2023 15:58:56 -0700 (PDT) Received: from localhost ([2600:8802:5722:9400::3835]) by smtp.gmail.com with ESMTPSA id s85-20020a632c58000000b0050927cb606asm2116101pgs.13.2023.05.05.15.58.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 May 2023 15:58:55 -0700 (PDT) From: Karthik Chikmagalur To: Konstantinos Chousos Cc: Timothy , emacs-orgmode@gnu.org Subject: Re: [Pre-PATCH] Overhaul of the LaTeX preview system References: <87lek2up0w.fsf@tec.tecosaur.net> <87a5yiveyw.fsf@gmail.com> <875y96y5he.fsf@di.uoa.gr> <875y96v90t.fsf@gmail.com> <87v8h6zdw3.fsf@di.uoa.gr> Date: Fri, 05 May 2023 15:58:54 -0700 Message-ID: <871qjuv101.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pf1-x432.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, T_SCC_BODY_TEXT_LINE=-0.01 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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683327585; a=rsa-sha256; cv=none; b=Fybu6pADhwhGUDxW95Qyh7eSYNUk0g4DU480GQOVMwZwOh9yfvYGHl/Lw/FB3wcPo4aAKh 4sn/xIP2RkqheY0oiInWOZu6TlYIjTsTCjYjj2LXXbEGOn5vmyFQKLiZ1R8YSHPWykjTgf UUe8ysfaB+b835vDb1v61HtqPizaEIAQZM/vMe+/XhWPhuoqP+nq+4QGzCpMTv9BuNICc3 ToupskoGc/8aG3/3CCNoVfSnhY5xu51enbTuoq3RnP2yOMSet1TZZB+fvKywj6DsWF+uUA 277pAyLOTfbjEStNb2LPP9ggM9Cr0kPauxyymWvZVOmCGYJb84v3CuirsqXc2g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=lpsu1kzK; dmarc=pass (policy=none) header.from=gmail.com; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683327585; 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:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=9TiXWryOjAokwJYKin3FkylQ0BHtAHt12+t/M6MJpyM=; b=jv5WP0Dq3ltSKHRSW06jH5wr0+uNeNFiCqUpviCt2L8xx3t89lBKqdu6duOkid7PHudPUk IbdosJCER+Ze8LsSgzBzN0Vx695qO9g0w4p6FEuMyp6LBeA7J5v0auV2jTCngJ0ecy8SoE 62ItkBox73SMP3SJYE9MO8MD+KlwufoyuCBvGlJC10JNo2WfD+KLtSuv5BMpNjGz/vvRPG ku4GGaCBztWVxL8l8kcX6OLQEiNAr8LgEIPbM5W4cY1dne1Vo5x27jkK+ZjamLEP7is2iO dN1flhAcMNic11CdYhx4KWZMHc12mPBv2RLJbaT1KytMpMs0cLmWizfZuc4wfw== X-Migadu-Spam-Score: -8.31 X-Spam-Score: -8.31 X-Migadu-Queue-Id: 4747A2B98D X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=lpsu1kzK; dmarc=pass (policy=none) header.from=gmail.com; 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" X-TUID: xPI/HeBv3xK2 > The preview now works as stated, although I find it kinda slow to > regenerate, even if I set `org-latex-preview-throttle' to 0.2. They shouldn't be any slower than when you manually call `org-latex-preview' on a fragment. To be sure, you could try (setq org-latex-preview-debounce 0.3 org-latex-preview-throttle 0.3) and then turn on (or turn off + on) `org-latex-preview-auto-mode'. > Also for some reason my previews appear to the right of the cursor, > instead of under it like in the linked webm. The video you linked to was a proof of concept. Here is a demo of the current design: https://tinyurl.com/ms2ksthc If `org-latex-preview-live-display-type' is set to `eldoc': - show live previews using Eldoc. You may need to pop up the Eldoc doc buffer for larger previews to be visible (`M-x eldoc-mode', followed by `M-x eldoc-doc-buffer'). Else: - Inline fragments are live-previewed inline - LaTeX environments are previewed below the environment > My last problem is that exports are kinda borked. For example, these > days I started using `org-msg' and when my email exports to html and > latex is included, one of these happen: > > - The fragment appears as a blank image when the options `tex:dvipg' or > `tex:dvisvg' are used. > - The email doesn't even export to html with a message like > `org-html-latex-image: Expected LaTeX preview > "424ed928d1eaca9e3c4c588469a4a0b87a7f4329" to exist in the cache' > with the option `tex:imagemagick'. Tecosaur will have a better idea of what's happening here. Note that the export options for html are `tex:dvipng' or `tex:dvisvgm', not `dvipg' and `dvisvg'. >> If the live preview is not removed automatically after you move away >> from a LaTeX fragment, you might have to manually eval >> `(org-latex-preview-live--clearout)'. > > Yeah, it happens to me to. Even if I remove the fragment the preview > persists. It shouldn't be happening every time -- only when certain conditions are met. Deleting fragments might be one of these conditions. -Karthik