From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 EFk/AlScEGSjAQEASxT56A (envelope-from ) for ; Tue, 14 Mar 2023 17:09:56 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OLg1AlScEGQkhgEA9RJhRA (envelope-from ) for ; Tue, 14 Mar 2023 17:09:56 +0100 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 71D5F3650D for ; Tue, 14 Mar 2023 17:09:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pc7Cx-0005Bl-V9; Tue, 14 Mar 2023 12:09:03 -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 1pc7Cw-0005BT-QY for emacs-orgmode@gnu.org; Tue, 14 Mar 2023 12:09:02 -0400 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pc7Cu-0004Eb-Ho for emacs-orgmode@gnu.org; Tue, 14 Mar 2023 12:09:02 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 087183200985; Tue, 14 Mar 2023 12:08:57 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 14 Mar 2023 12:08:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tecosaur.net; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1678810137; x=1678896537; bh=ik SpDIniSMlx/C+C2USiMXdFPlgBXvPRMQSUmawr/5I=; b=WXaaxA9+7EMJSkCJsV 7Na/0gP9VNlH3mj0FePoxPKapa5ctGH0/wOpHyC2Q8zWljabeGedv8KNz7fIVK6H qbUMolzWL4jMqzCKR1Ld8XP3pxOOw9Wc8bUSYAx5whyVqxxQF8LrYNeZMBBG9q9d Ep1hslBSbe8afq7MUqEp2tRZ/xG86oGwNAQWARwgKm4t1AesRHmmOr2M+4YAvL+V ObndSGbxu3+qQWKT/fBWgJj0ro2ZSKBl8PZ0uyaD8r8lrNOrTwSKVFDALxK80xxh AYX5pAqqgfWombju/7fzzctD9zDtkC8I7lbe3CtwXGD3USgefPB4+NrOO5huji5l VCzQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1678810137; x=1678896537; bh=ikSpDIniSMlx/ C+C2USiMXdFPlgBXvPRMQSUmawr/5I=; b=bmoBtqk3WNVBra82Fxhm1mV3+8b4W VH0bkdL6l5N7nE0xT9Xb6RYS1+bBqjpvkxK/17L7BFw0ziBwu4eYEJP6DI1BqZYB Qe0rGum7o60UTtYLc58B8P1BqEVuiugJjS7579NKsSE4GNdBq79Fk2q2AcTXlOxX ntcOd/C1n1v8+IMcsfIinwqwX5lEUUafUYX+0qlNYHNLqU3xEP/w9pqAjyTGcngH 4p23Hn/RY9GQTW64QyKlqRQzmZ3eyTGvFCXeJqu5GB4dTKuUEDQE+SrOcjLto7Mn 421+HQf32BZzYM5gb1GcmCueU29RZ6pLdRJAPtXVVzdpgH14DPDBd7x+g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddviedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevuffffhgfjgfkgggtsehmtd erredtreejnecuhfhrohhmpefvihhmohhthhihuceoohhrghhmohguvgesthgvtgdrthgv tghoshgruhhrrdhnvghtqeenucggtffrrghtthgvrhhnpeelgffhfeffvdevveevgfeije eiteejleehhfdvveegudelkeefffdvledvieegvdenucffohhmrghinhepohhrghdqlhgr thgvgidqphhrvghvihgvfidrohhrghdpnhhothgvshdrohhrghdpohhrghhmohguvgdroh hrghdplhhisggvrhgrphgrhidrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehorhhgmhhouggvsehtvggtrdhtvggtohhsrghurhdrnh gvth X-ME-Proxy: Feedback-ID: iecf94634:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 14 Mar 2023 12:08:56 -0400 (EDT) From: Timothy To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [Pre-PATCH] Overhaul of the LaTeX preview system Date: Wed, 15 Mar 2023 00:04:59 +0800 References: <87lek2up0w.fsf@tec.tecosaur.net> <87o7owrg5h.fsf@localhost> User-agent: mu4e 1.8.13; emacs 28.2.50 In-reply-to: <87o7owrg5h.fsf@localhost> Message-ID: <87cz5buxgr.fsf@tec.tecosaur.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: none client-ip=64.147.123.21; envelope-from=orgmode@tec.tecosaur.net; helo=wout5-smtp.messagingengine.com X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_NONE=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-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tecosaur.net header.s=fm1 header.b=WXaaxA9+; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=bmoBtqk3; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678810195; a=rsa-sha256; cv=none; b=qPiWMzp4z2KQ+IkkW34+MlAzwciDGUzGXPD3b+JH/daqF4ihSShQ3+UCJflUgk+/AmF4tU SWhh3hTzWIa6LyHpX7B/5a7R/z8DfOFoxw3Lc+GDTecKIVhkKx/UOZHtYF+oVDUWRNM4Ys TLh0Ny/icloj9+rCFooESxEYp2JvYQUwBKOLFkeYjxUyHWFTc/J0VfkIoGJO/8CyLn76b4 lBtoRjLYKAn2pgBwG4DzyB0+Z34g5nWi0HWdsbFzpUAs+FMFCM1G1BlTI/cbYOG+W50WGx rvCJknl7mjfYTIsGjasZfLoELD0sEgfMZrqaxGCscBb/u5hc9AKuRSEt8Wn5CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678810195; 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=ikSpDIniSMlx/C+C2USiMXdFPlgBXvPRMQSUmawr/5I=; b=IPVDa74eLG5fTacHNpiJd8mIAFMlcg/stk8t4Ak4XMeiJqdfI5VY9ur6JHnKx+xKWKZC3G 7xCewEWpvtJCLjJfhIWal61WiMD8UlOSMKjaiXCuR0f7IACi/6CJZvvvZ8jqrSDkYVY8xe wD2hamojdWN/s/ljv45UxAXY9o3BD5sFBU0Si2ONxcY8fL38c2YNRMvlzUvI6V2fCKTvox KnqS6dmqkA34s+0HwVaTqs0ORF+cOExw/vzKrOKm2R0XPitpDtGS0coqHVg5xrHjatgOJV Yrkgmp/iBchp6kRmB7WXV2hGjgvbstMhZzr+UXMCYjAMmHtr5eRx0y79RURKEA== X-Migadu-Spam-Score: -1.12 X-Spam-Score: -1.12 X-Migadu-Queue-Id: 71D5F3650D X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tecosaur.net header.s=fm1 header.b=WXaaxA9+; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=bmoBtqk3; 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=none X-TUID: E9w4qwXLDtmM --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Ihor, > 1. Plenty of valid warnings and one of third-party packages broken when > using the branch [*] Thanks for highlighting these, I=E2=80=99m gradually going through them. > 2. I had to (require =E2=80=99org-latex-preview). `org-latex-preview=E2= =80=99 is not > autoloaded for some reason. I haven=E2=80=99t had that issue, so I=E2=80=99m guessing it=E2=80=99s some= thing to do with how your autoloads were built. > 3. It took 20+ seconds (!!!) to generate previews in a single section in > my large notes.org. Profile attached - org-latex-preview parses the > whole 20Mb buffer to generate the preamble. Why? Because of the use of buffer info in generating the preamble, which calls `org-export--annotate-info'. I=E2=80=99m currently considering introducing = a variable to allow for the use of buffer-specific info to be toggled. > 4. Triangle symbols do not disappear if I C-g in the middle of > generating the preamble. Hmm, we haven=E2=80=99t really considered the preamble generation being int= errupted. > 5. Why triangles? Something resembling =E2=80=9Cwaiting=E2=80=9D would be= more > meaningful. It has to be a small icon, so that basically means simple geometric shapes = only. There=E2=80=99s also the =E2=80=9Cgrey text=E2=80=9D indicator, and =E2=80= =9Cno indicator=E2=80=9D option. > 6. What will happen if I add/remove #+LATEX_HEADER in the buffer? in > subtree properties? Are in-buffer latex settings supposed to affect > anything? I tried to add #+LATEX_HEADER on top of the file, but the > preview do not appear to be re-generated. Currently you need to set `org-latex-preview--preamble-content' to nil, whi= ch currently can be done by doing `C-c C-c' on the header / otherwise running `org-restart'. All the best, Timothy --=20 Timothy (=E2=80=98tecosaur=E2=80=99/=E2=80=98TEC=E2=80=99), Org mode contri= butor. Learn more about Org mode at . Support Org development at , or support my work at . --=-=-=--