From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 0NtYI1RWWWSMFAAASxT56A (envelope-from ) for ; Mon, 08 May 2023 22:06:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id GHdSI1RWWWS6LwEA9RJhRA (envelope-from ) for ; Mon, 08 May 2023 22:06:44 +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 5797F26397 for ; Mon, 8 May 2023 22:06:44 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pw75p-0006JT-4y; Mon, 08 May 2023 16:04:21 -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 1pw75l-0006Hh-EQ for emacs-orgmode@gnu.org; Mon, 08 May 2023 16:04:17 -0400 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pw75i-0007Rh-TB for emacs-orgmode@gnu.org; Mon, 08 May 2023 16:04:16 -0400 Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-52cbd7e73d2so2596066a12.3 for ; Mon, 08 May 2023 13:04:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683576252; x=1686168252; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=UAkYIBZG2ySIYV1/39QFESdSyCbPcRluYipR9fxhuS8=; b=VHIpAQ0JErwWtOWz/oI3Sh2WYSwEyJKzo8Atlt1/CUymaX0D4YsuEdS4AG6zjg/t3e 14eVa2Ls/CK/6+7SsP0eLBZraDdfWb/QowYP0pq4joERBcFEzKw889kb3l0/Ssvc2DNs 1Wis4uj8At7U3nonxrPCk2j01bvw6t29CA2OIYBHz6VsfFDKDAPT+tpjEsoD2YgT7hK+ hSfZ4O6ZQDyl2MRmN6IUt9U5Evi2leq50w+GJVCbLJ9JdDZwKqSo7qRQVEubkhwW/pAe S+l3suOarYkxqFn+c0d5ecnNYURcS9tBSxmFcKpB9Jc7DlgllcSfZcM9e3NcR2C95Ovi vA/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683576252; x=1686168252; 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=UAkYIBZG2ySIYV1/39QFESdSyCbPcRluYipR9fxhuS8=; b=EvG/yJQ45fqOf2N3hEXugFMqoxc4idVGHm3VNnTY8SxbXJnuqGQTGg896s13Y7SAeg WbOQJcUn5WaUmziilO44sXkc+IH4PquBS0dDkZvise4Yz5YEzUBCObDMRPWATEIxcsI1 TR5i/QnLtsrn5yvsOzMQMooXzr6iOuPP67wmNQZ34YRApzfA7q1aGB61QM8iht+Q4+7Y qa/m8A0bvHWXWrgekFmCozmBsJoasoLxVPc8vS7Fr2PKOneuyzsqC+Ve+7E420YjACTB q08GxLSdqq+1epYdA2/lbIOaNykcgzzaWjej1jBdHsXHBrcd9Ca/TV44NzccSZSl/IBy PxTg== X-Gm-Message-State: AC+VfDxE0jYhzXnQNqTxoaDQFN+Vmb36yJ4YJP7JZX8qXfvvUScGmcz2 7M4yeq83eLGqWtjTPNAbrO2LPaLNbHdb9w== X-Google-Smtp-Source: ACHHUZ4fqOv02GeDZcsm29On/EX1I5JHyPg4WliY9q4Z5cKXA4It9boeu6EXLWL5x7ZtULx+C1aWUg== X-Received: by 2002:a17:90a:fd8e:b0:250:2922:1f3c with SMTP id cx14-20020a17090afd8e00b0025029221f3cmr12132321pjb.33.1683576252183; Mon, 08 May 2023 13:04:12 -0700 (PDT) Received: from localhost ([169.231.41.224]) by smtp.gmail.com with ESMTPSA id c24-20020a170902d91800b001ab0083c6c9sm7616057plz.261.2023.05.08.13.04.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 13:04:11 -0700 (PDT) From: Karthik Chikmagalur To: Konstantinos Chousos Cc: Timothy , emacs-orgmode@gnu.org Subject: Re: [Pre-PATCH] Overhaul of the LaTeX preview system In-Reply-To: <87zg6hom0p.fsf@di.uoa.gr> 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> <87zg6hom0p.fsf@di.uoa.gr> Date: Mon, 08 May 2023 13:04:10 -0700 Message-ID: <87pm7ah9ol.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::534; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pg1-x534.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=1683576404; a=rsa-sha256; cv=none; b=ZSN90NU6kMRlsdCleVGNzCn+GoeGoR0GKUMQM0nQpsw2w2IZ0bcYrnwWCPIJ8jpOkXw96G c/tx2BS1FhGSIjae02AniiiM1SXcIwB69glpHf5CQhGQqIYcfHuSDNby/dcufXyecpn0PA QFXxUPSCod3s4aVeYb4Nf31PQ8VX55Y8YvlS5hy74TYTPzx33SNNHDL5cpId5Jcm8P4bW7 hTwV+ycV1T16h9TjolgJegaBV4+xmDLM5qLxLsYRiQmhQTPXMfMBojfAeIGzFMBQpBNq1x WOwmcrWhR4Gp5UbiC/sYD7WhLUlNlIuA+O/GHglXXZDmG0TIML2LaiQ7MViscA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=VHIpAQ0J; 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=1683576404; 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=UAkYIBZG2ySIYV1/39QFESdSyCbPcRluYipR9fxhuS8=; b=KwrXWH+n9NIyHmL0rDPU7xk7qqI/QmwMNRp/2ppRyUwRPDMmbSMJtlkraSp+aWXZ793TJe we3bm+UTpu1A27R7qDm4z6INHNxHbN20J10AktexHVid9iSGakN8oPZcNBbIvqLQ6xP9d/ 8w4Bzw78iWOGef1RUGU5vXPhfthQgarKudpKwSZ/IuBv5fhSBJfRdLea3PA8v9My5FJAjv w2XDPnbrVN0bxU7p7lkxXdw+XeCdfeZ1QRowlCZ/5yuZLINGfx+CscNoKMsGGceATH8AMK RmowqF7fTpXaZGzdIsWWT3F3DK86I1DGlNyO02noSHAjyDomecHjFA2JPXlacg== X-Migadu-Spam-Score: -10.68 X-Spam-Score: -10.68 X-Migadu-Queue-Id: 5797F26397 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=VHIpAQ0J; 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: 8YfJ1ikD1nSl > 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? This checks out. I tested previews with lualatex for a bit, and it's about 8-10x slower than pdflatex. One big chunk of this gap is the absence of precompilation, the rest appears to be inherent to lualatex. I'm not familiar with lualatex, so if someone knows how it can be sped up I'd be glad to be educated. For now I'd recommend using pdflatex for LaTeX previews. As a result of this issue (plus other issues with xelatex), I'm considering adding an option to specify different LaTeX compilers for previews and exports, with the default option continuing to be the value of `org-latex-compiler'. > 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. I've had trouble getting LaTeX environments to show via eldoc in the echo-area, whereas eldoc-box has worked fine. I'm making a note to investigate this later. > 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. Is this in the context of previews or HTML exports? -Karthik