From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8MxqLbVyCWVcmwAA9RJhRA:P1 (envelope-from ) for ; Tue, 19 Sep 2023 12:06:45 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8MxqLbVyCWVcmwAA9RJhRA (envelope-from ) for ; Tue, 19 Sep 2023 12:06: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 6FF396B33F for ; Tue, 19 Sep 2023 12:06:45 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fELR2x70; dmarc=pass (policy=none) header.from=posteo.net; 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=1695118005; 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: 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=aGoooQ9fhA5IIbCwJIA25vUQetdf3OMjZfRN9/pmAkg=; b=IC9jNgoLrfD3c4AN+dirobvkECL+ycYU2HhYygidsiWbdg3WkhrOfxtiKRr/BJo7h7s6Oh +8G1drU+0dLpZIxRzg8MIP2alU9dz4HfZJiHl//KSwAZ8m1zLGZRYwYFOGXQ0/HEDXBTdN 5VI/5f1/4fBKBqsBg9+ue4ivYadJbG5FpvdOD7IvxtSP5yz6awXbZANgbuY6/rwWCbME2j 9YxiglAiXO8XzUzgtAZcoIKrXGR5GgeeSThfNzf9mgGGw94fLyGj8AaKbTijkifFpVvNCe Mq8MIjmhmJWzdrUBMNsF75pJY4B6jDQBAbGKj91iejVSYopdM8qZinSU0K84PA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695118005; a=rsa-sha256; cv=none; b=m2sjR3Gmyhi+/wI/dBMo0BYWbvXdnY6iX+eXKUBs+w8IgDFTZ6zFX8g9PkQ0tKwqPSvJdi e8SdDHz3qxiLUh6dmZc16ino3L8ksY6LLibASyxoeGRkWUVTU3S4N+wbl89WAS8yXzmFXz 0hSyQLJMnZ0ub2/WvLDGsc19OGFj2NtSnWcN4ZBH+5Vz8O13UTXDLcywTGlrhWMIOjZq2T xRZ0YMunGCoP8iUBNzswyB629Qhyed8+MCR5hlOnjzCnKx86xQHU8YBTsDBenb1NmVblOI HfRzkQLQxYyTkl88y9cRAh4oqmOQCaqPH5C2M5DBbTVcCNsrQI2/V8ySEcZ+aw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=fELR2x70; dmarc=pass (policy=none) header.from=posteo.net; 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" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qiXcL-0000Ps-E4; Tue, 19 Sep 2023 06:06:05 -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 1qiXcJ-0000PW-JC for emacs-orgmode@gnu.org; Tue, 19 Sep 2023 06:06:03 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qiXcA-00043S-Sp for emacs-orgmode@gnu.org; Tue, 19 Sep 2023 06:05:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 5DE72240032 for ; Tue, 19 Sep 2023 12:05:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1695117952; bh=kof6bpacswezi8i51gRGPbzylXH86yHREw2FEXYRyBk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=fELR2x70PoYLbddDUQpWYv/NZZ/Pzm6vZKGnbrr4V9DJJOirVeHWMGQPwUT+nXLeA rMXUny/sEHiEBr+5UdaUAhdiQLEMnwOFQavN/c2VZSqPzzjQx1MPL0oaadcdQVG5Xf 01PRooLmD1/nkewJ+Z/z/zBJpSa4CmKZ+FS6/00k4AVVIaFMfUohO/7ToycdcN9fyT 9oth+XJLdyC9SVK+aBiU48U6aerXFnIAARa8mF1P5M2aCy2kidv7SVxYTy8zXxebPH eym9NhloQDmgESO3AAlsWIzgucmDWI1Bi4SAXrpBJcOW/K4oAoKlQ9swrRXnFzgjJi wUO3XxgW/kFnQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Rqck71kL1z9rxj; Tue, 19 Sep 2023 12:05:51 +0200 (CEST) From: Ihor Radchenko To: Rudolf =?utf-8?Q?Adamkovi=C4=8D?= Cc: tusharhero@sdf.org, emacs-orgmode@gnu.org Subject: Re: [BUG] tikz latex figures don't render properly in the html output. [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)] In-Reply-To: References: <56760eda1abbd416ac7bbce2920770b8.squirrel@mx.sdf.org> Date: Tue, 19 Sep 2023 10:07:07 +0000 Message-ID: <875y46xyr8.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.20 X-Spam-Score: -5.20 X-Migadu-Queue-Id: 6FF396B33F X-Migadu-Scanner: mx0.migadu.com X-TUID: 1pcEGRriWbLq Rudolf Adamkovi=C4=8D writes: > tusharhero--- via "General discussions about Org-mode." > writes: > >> \begin{tikzpicture} >> \draw (0,0) circle [radius=3D2cm]; >> \end{tikzpicture} > > ... But, but, but! There > is a new LaTeX preview system in works [2], > and it fixes a lot of problems out of the > box, including yours! Fist, for the record... Confirmed. I can also confirm that TEC's feature branch does not have this bug. On main, the bug is caused by horrible heuristics in `org-html--latex-environment-numbered-p' and `org-html--unlabel-latex-environment', which make a naive assumption that \begin{foo*} is always available and codifies unnumbered version of environment. However, \begin{tikzpicture*} environment is not valid. Moreover, \begin{tikzpicture} is not numbered either (just as many other non-equation environments). That said, I am not sure what is going on with numbering in TEC's branch - the above two functions are left in the code, __unused__. Which indicates that we might also have some feature regression on that branch. Timothy, any comments? --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at