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 8NqFNiqBcGR+ngAASxT56A (envelope-from ) for ; Fri, 26 May 2023 11:51:38 +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 mGsWNiqBcGQvIQEAauVa8A (envelope-from ) for ; Fri, 26 May 2023 11:51:38 +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 6F49D367EA for ; Fri, 26 May 2023 11:51:38 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2U5n-0004TA-38; Fri, 26 May 2023 05:50:39 -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 1q2U5l-0004Ob-Nv for emacs-orgmode@gnu.org; Fri, 26 May 2023 05:50:37 -0400 Received: from ci74p00im-qukt09081702.me.com ([17.57.156.7]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2U5Y-00010x-71 for emacs-orgmode@gnu.org; Fri, 26 May 2023 05:50:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1685094623; bh=8gyCpWp4zOFdyOwTSAiRmd6ExLFXtEe3B1HGVzJSM4Y=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=HpLQPHYLS4wjXPWrnZRI4BhFFgfIVKDtPmrZkyuICjFK+ehvLx8BqUAXG7sEssh8y icPZoW0zsCVI7qBrCMi0lhqqXA1Hj8tfYpdUKvtyxwVmhV9EOABY78pT87BuQA5PVv gCZXZtPPLXSJUxekA5Aqwm2B5eWXScNuyQGehVnS8gUN8wuRb0ED7vntx6tYA7m2bg yal6gD4OmkAQe1/BOilryydOmo6l1gbVUIHZcmP2ZpybXiUOl0lcnmf4NwQ+EAZAQl Yr/wBXL3ZUiLx0FXuZ9BTwqAWyuTZB6Lp4Tcd69ADpJDK1Kmi792uSlJx2KYQOQ5vh 2ZJU3ezoaE6rw== Received: from Rudolfs-MacBook-Air.local (ci77p00im-dlb-asmtp-mailmevip.me.com [17.57.156.26]) by ci74p00im-qukt09081702.me.com (Postfix) with ESMTPSA id C81E13BC039D; Fri, 26 May 2023 09:50:21 +0000 (UTC) From: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= To: Timothy , emacs-orgmode@gnu.org Subject: Re: [Pre-PATCH] Overhaul of the LaTeX preview system In-Reply-To: <87lek2up0w.fsf@tec.tecosaur.net> References: <87lek2up0w.fsf@tec.tecosaur.net> Date: Fri, 26 May 2023 11:50:18 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: NzS4kGHGGDbtiEbT_t1V3sDUk7lU5z_t X-Proofpoint-GUID: NzS4kGHGGDbtiEbT_t1V3sDUk7lU5z_t X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.138,18.0.572,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2020-02-14=5F11:2020-02-14=5F02,2020-02-14=5F11,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 spamscore=0 mlxlogscore=999 bulkscore=0 clxscore=1015 suspectscore=0 adultscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2305260084 Received-SPF: pass client-ip=17.57.156.7; envelope-from=salutis@me.com; helo=ci74p00im-qukt09081702.me.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, 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=1685094698; a=rsa-sha256; cv=none; b=G3/smRNXvUKRy7oJHgEaIBfqT4R5KkdGGtaJYaWflpZut+ldOJfCzdIDGol8eHDRvmktrG 2inPKSUBAzX1SD2aPw8SOji2Nz9C7Y9T0MaR7f3LpK+FBACNEfJL9/KI1UhWuqQ601U4j1 DkyscXDHWEaXQfMic2J1DkD5Q4CoT9DUQw31++2jLhHfPPTbTg/V/r8S6qZ82m1hj8vrkw 5Lznq0t5CeeTNs6ya5pDgh5oODq5G3oehm1rc5VUdvLMW8wFFHlYLQLJ7lk31vM6AAexBN t1sdQJhKPUeb2PSGjx7qytS1PTGAfbgQup96JWZfFFCN0o49FK062s3Za+c8Pg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=HpLQPHYL; dmarc=pass (policy=quarantine) header.from=me.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=1685094698; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=8gyCpWp4zOFdyOwTSAiRmd6ExLFXtEe3B1HGVzJSM4Y=; b=TZflt0Czr3WH/ozlRhKkSOA9tUVFvKn24xp166QB1G1ovKUrByzRN4tt2QqjOkuGWfEfmf 7vT37BIA8ynLKt1HeEJlvLEcjw9L/ZgeL7bM4aPYXklwMeDMyFghaRD1PPbQcx74GBZTFl DwnpCf7+iGY5A9VV7siHSc0XxxggH2VQ09K7dQ0kXIqe7sqcAUO5TDJ1LLxoCNcNsVb5GK Nw4f08/k8iLGXBMKXSfiqC62cE4MmMo9I5pcux/ot+hA5t7zOnOIV4HosmdaM0m+Ay/idD RtLO27da/zcC9AL65uC8PPnvLiu7WEJT1t7dH8u5pBpRfRUiL5+QapdSMkITYw== X-Migadu-Spam-Score: -7.95 X-Spam-Score: -7.95 X-Migadu-Queue-Id: 6F49D367EA X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=HpLQPHYL; dmarc=pass (policy=quarantine) header.from=me.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: Fc8RQVtjfOEY Timothy writes: > If you do come across any issues, please let me know either in a reply > here or the org-mode matrix room. First of all, thank you for working on this! Here are some issues, after using your patch-set for 1 day: ISSUE 1: CLIPPING On my HiDPI screen, the new previews are clipped slightly at the edges. I had this issue before and fixed it in [1][2]. Has the same bug crept back? [1] https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D52ebf= 6b45 [2] https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D5337a= 49f3 ISSUE 2: TIKZ I use LaTeX Babel blocks for TikZ, and these stopped working. From the *Messages* buffer: Executing Latex unknown at position 846... Processing LaTeX file /var/folders/ky/8r5j3qz55hb94lpg1jr9vl1c0000gn/T/babe= l-ntjCLq/latex-aGIYEN.tex... Compiling /var/folders/ky/8r5j3qz55hb94lpg1jr9vl1c0000gn/T/babel-ntjCLq/lat= ex-aGIYEN.tex... org-compile-file: File "/var/folders/ky/8r5j3qz55hb94lpg1jr9vl1c0000gn/T/ba= bel-ntjCLq/latex-aGIYEN.svg" wasn=E2=80=99t producedorg babel latex failed PDF file produced. The linked LaTeX file compiles without errors, and a PDF file with correct content sits next to it. Perhaps the preview system needs to wait longer? [Also notice the missing space in "producedorg".] It would be *FABULOUS* if this patch-set could also make 'ob-babel' use the same mechanism as the new previews, 'dvisvgm' (TeX to DVI to SVG) instead of Inkscape (TeX to PDF to SVG). It would fix, for example, scaling. On my system, LaTeX Babel outputs everything at half of the correct size, and I cannot convince Inkscape to scale up to save my life. The previews and 'dvisvgm' work as expected, conversely. It would be *SUPER-FABULOUS* if the new previews worked with TikZ out of the box, as per the Org manual saying "any LaTeX environment is handled" [1] when not using MathJax. Currently, PGF plots show as "blobs of letters" and the simplest TikZ pictures, such as \begin{tikzpicture} \filldraw (0, 0) circle[radius =3D 1cm]; \end{tikzpicture} make the preview system choke with error in process filter: org-latex-preview--svg-make-fg-currentColor: Wrong= type argument: stringp, nil error in process filter: Wrong type argument: stringp, nil [1] https://orgmode.org/manual/LaTeX-fragments.html Rudy --=20 "One can begin to reason only when a clear picture has been formed in the imagination." -- Walter Warwick Sawyer, Mathematician's Delight, 1943 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia