From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id MDGUBcAbVmTaQQEASxT56A (envelope-from ) for ; Sat, 06 May 2023 11:20:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 4L8yBcAbVmTJjwAAauVa8A (envelope-from ) for ; Sat, 06 May 2023 11:20:00 +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 B97CB3B550 for ; Sat, 6 May 2023 11:19:59 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pvE4M-00051Z-4H; Sat, 06 May 2023 05: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 1pvE4J-00051Q-Px for emacs-orgmode@gnu.org; Sat, 06 May 2023 05:19:07 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450: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 1pvE4I-0002ol-24 for emacs-orgmode@gnu.org; Sat, 06 May 2023 05:19:07 -0400 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-306dbad5182so1727009f8f.1 for ; Sat, 06 May 2023 02:19:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683364744; x=1685956744; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=ThJtbjevtnWZmTmE1Hnkt9Ii+xPHjNK+a2pAZVy93Pw=; b=g/OQ4Jo3PZAWFQbQmK8VsaUVEhSRLrbOcifRK7jL8bsxKoVjnwSTpgFxdEfBEeChjZ Xbk2B4Xnujae31rbgu9Coo2KSyYi+R6t6M/39pyubO9MKeGjb5BWUc5yhwV6/NdCujVy gNOEBYzORMtCMhG0vtmBGqKndII/u2AlPUnIvFCSzEHE1ujGDVWu2zE2YhcRIyZjsBxl Kj8TPHafnZpNTwnyx5LHou1v1vwvvPVrWXz7OYW/s+WYVQE3RVFzQ76EutHmlLJglgDG tm9mjx0V+T4xTbGYyhOAtBYCiI+18LhfuhA7AOjoimBBOkRc7Y8u70QAhS0ccI3HdMF9 pgEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683364744; x=1685956744; 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=ThJtbjevtnWZmTmE1Hnkt9Ii+xPHjNK+a2pAZVy93Pw=; b=VS5PPD3Q8Y41GAObqk5uxwxgMdZdbMs3+ZZ2mZPw6+g2MzsqOpAUS0iGyS4hsPQ0ks VxX7uaMixuS6kJziZs+PSjaCtFffH8YxculUGtIzaEnwZn1r1bqrMjHfrRf779lAIUOx 6UXXZKW3fu1qh7/cbnvVCPQX+jKXdwVHQU9iwuoQQaJnNY7Rl6rbSHoncNKGG+NzMfc3 WdWEpMH8gGkJLBviTWVKTpTQDcYx4r9Zefw9qMT0YUN+BA9VRd3YDrD6voHNeXzg2d5J roeHGujIKPD9QtSsvKu8k16uooSN3euK4wXggoHUNuUMTIqitO3lAnJIIwN3ycNbpixq 28Kg== X-Gm-Message-State: AC+VfDxFzJRKj8ABUbwuoRJFJrg6j6ty4t/Sq60RpQdZm0s9IS9X8fzo v+XfZ1F73Zy1EF4GG/+pIJZ1EfjyyjmvAHXH X-Google-Smtp-Source: ACHHUZ7P4i2q/zdAJdevxlAWG1OUDTRBgoNaSfSDrqSnMfHglXMtIxiIlMhMYb6hyI5OZIoFUE8O1g== X-Received: by 2002:adf:f985:0:b0:307:8555:35e1 with SMTP id f5-20020adff985000000b00307855535e1mr1851375wrr.19.1683364744193; Sat, 06 May 2023 02:19:04 -0700 (PDT) Received: from localhost ([2a02:587:461e:3253:4ded:7616:f0c2:ac66]) by smtp.gmail.com with ESMTPSA id x9-20020adfec09000000b002faaa9a1721sm4790685wrn.58.2023.05.06.02.19.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 May 2023 02:19:03 -0700 (PDT) From: Konstantinos Chousos To: Karthik Chikmagalur Cc: Timothy , emacs-orgmode@gnu.org Subject: Re: [Pre-PATCH] Overhaul of the LaTeX preview system In-Reply-To: <871qjuv101.fsf@gmail.com> References: <87lek2up0w.fsf@tec.tecosaur.net> <87a5yiveyw.fsf@gmail.com> <875y96y5he.fsf@di.uoa.gr> <875y96v90t.fsf@gmail.com> <87v8h6zdw3.fsf@di.uoa.gr> <871qjuv101.fsf@gmail.com> Date: Sat, 06 May 2023 12:19:02 +0300 Message-ID: <87zg6hom0p.fsf@di.uoa.gr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::433; envelope-from=kon.chousos@gmail.com; helo=mail-wr1-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, 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=1683364799; a=rsa-sha256; cv=none; b=gEpTKqaj7nOnAA82v38n+9g1ayIultMXZ6Hu/Gm7cRbG8jf1woNO5RpZOh8qpYEhcAl5pD W1G7ddYhFQt9pcXc7sFSWgHKeg1PcMatbb/PrtYTMMGdpGiE7qZBssllb1B80x8rw7Cdxq BoopdHrUaIBSxhhbKAvSwWI74k5CD9lZQHsVst2YIW6IYyDGBesLtnOJH3BfHKacRiA4Ma 3/0BnDQyX53UISJ3NmNnMC/k1FZwFepjQnudZJV7B9J/VO2UdWQkZYBH5UMz3qsm7UU45Z tjbSUhwK45bYo3CcjGYJMo6RVW2OzLnbBVm7iV8l+GiqXsJluJJZ3qLdSPD5ow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="g/OQ4Jo3"; 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=1683364799; 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=ThJtbjevtnWZmTmE1Hnkt9Ii+xPHjNK+a2pAZVy93Pw=; b=TbW6krgnfpQwa6s/fQmLux5i1CCu5VryOHspD0YBdbkSFNIjRl+f6m5a5xPEiSx1h5sh0y L1rNxLuJWjY7DDujNr19qqmfTP4GnomHXUgtpdCbrpcyZUtHuCB5jL5mz2DX4Pcjb+2V6+ UImafm4oGswdrmyTkPon2EY8i5B3/oQKjdJ6tucxenUOQeP3o8+1C2RFyxKK86e11Dmw6/ PPekH7PYkDIMnQ58VMcdtRC4l40R7EVumCRPXCjR4P36sKMfil7AMlt4iMzc6M3dFAjwP2 HaxzVLWVqc2xzhKg/pIe151Uz7vUb8DbekiuUdeIcahMOOTzPL0cTAoVvggUnQ== X-Migadu-Spam-Score: -7.31 X-Spam-Score: -7.31 X-Migadu-Queue-Id: B97CB3B550 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b="g/OQ4Jo3"; 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: opWDRR/Yf8tL --=-=-= Content-Type: text/plain Content-Disposition: inline > 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'. Yeah, it kinda works ok now. It is kinda slow, but it probably takes the same time as the normal previews. May the fact that I use `lualatex' be the culprit? > The video you linked to was a proof of concept. Here is a demo of the > current design: > > 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 Both `buffer' and `eldoc' work as expected. Although, when I use `eldoc' and use the `eldoc-box' package, nothing is shown. But, this probably isn't in the scope of this conversation and it's really secondary. > 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'. Oops, you're right. `dvisvgm' works. Since this was what was wrong, I tried setting `org-latex-preview-default-process' to `dvipng' and found that previews as well appear blank. Don't know what might be the problem. > It shouldn't be happening every time -- only when certain conditions are > met. Deleting fragments might be one of these conditions. Today it works better, I don't know what I did differently. But as you said, it certainly bugs out when you delete the fragment. Now that I've tried it a bit, it seems smoother than at first glance. I'll probably keep using it and report any problems that might arise. -Konstantinos --=-=-=--