From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id iNb+LiwkC2Uc7QAA9RJhRA:P1 (envelope-from ) for ; Wed, 20 Sep 2023 18:56:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iNb+LiwkC2Uc7QAA9RJhRA (envelope-from ) for ; Wed, 20 Sep 2023 18:56:12 +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 6FE4830D40 for ; Wed, 20 Sep 2023 18:56:12 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=gaWYBxF5; 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=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1695228972; a=rsa-sha256; cv=none; b=D87bKx38iqsLR/aV0SWYkNvC2tOltnLG8uZIwCc2La+ykkbRAjY7nDS7runHQZo32ng2+s 09Ky/T3vR9jgXP1UbK0PhwWyfnziudoq2asrBbFGVLDOMKJhVdT/sKlEGFsXy80eaoxrBj Oy+PNicmEfn34GoJTdwW4VNEWrEof7ZcXOJEvtUfsOvHmoWBDW75K8GUyTsKV6IA8Z/k6Q tnQiNZi/WqtGoCZZ9tr5exSl9/cGxksNftSYw02qWx91umpPk2sZPJDOy6xaC1/D2S2gPk 91n45VxnACVhJAztBb5492hE5tl1DqorY7ztLcADA/UdsPRjxJVq618nRJrfWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1695228972; 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=xcCNLFZncSm1IMYZ62FRUhXNXb7IQmfLzFTsTa8+Its=; b=Xq/gZrj8Lgu+uf1afV6N4uhWebenZXbvxgkb7X9cX8gAppFWpMlsM3kiqYYOFXtdylZ4m9 CsLSaBDuxLOwZAZ0bFgc+7+WZ5Kk6YNkwIopHghgyY8J68wifNMMo7Tu1+SvdLuruHTO+B ah5JPRPeSciczBvtWM51M/lVyAIgAYrg25zVMFRBsilJteJ53m7RpvGR1L3FoknQ+Htr1q vmf1ticggzcYtTS8xN1qmyH4kgvpgxs8bB/kFtbXopxBMQx8d7fKXnnCUwS+arKp4okyIn Kr3vwy5eBii4/p2kc+50jiCp5mY8ynZILu0IC8eC8XJCcUqZTXZ8tOYMAqkK5w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=gaWYBxF5; 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=pass (policy=none) header.from=gmail.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qj0TZ-0004BS-OX; Wed, 20 Sep 2023 12:54:57 -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 1qj0TX-0004B5-EX for emacs-orgmode@gnu.org; Wed, 20 Sep 2023 12:54:55 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qj0TV-0002qw-M1 for emacs-orgmode@gnu.org; Wed, 20 Sep 2023 12:54:55 -0400 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-313e742a787so821181f8f.1 for ; Wed, 20 Sep 2023 09:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695228891; x=1695833691; darn=gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=xcCNLFZncSm1IMYZ62FRUhXNXb7IQmfLzFTsTa8+Its=; b=gaWYBxF5UtyfEv/iCv/xKd5PI+dH962Zd7Jmo1RNfAQBX+0EHa+CjZbCFXPqjgBdyK JcC2k/aRMqZlolKzei6pTxdB4lGYII1ZPXvYWPvjekCRKVI0Mzan4hVAwghBQv899hCV kIgQTkWUhK/CeSezPwtGncZJoGgG39J6PRGaPeZ5B9wLMrb3glfmi+6qfegvI/pTQFuR gyHm4SBEYZUFxpucorl+ypJ86Oex3Pi4OjEEn0YoRyqwK0ITqJzfmZX+2ZicK9jmvDq8 RT7PJDdOSmbwnEM5Z3rbZbFvDjtmL5aFNDH26FbB+7e1wfVkbE8DIUk6bBrGRNmdXejv 9UEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695228891; x=1695833691; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xcCNLFZncSm1IMYZ62FRUhXNXb7IQmfLzFTsTa8+Its=; b=f1bzbuBwyybE35chCpPVyT/BYe+outDAv0k7MLJSuIeuwlwJTY1nDwl5XIOa1Tv23S l2z8qC4LZhFitZAUfv7vNkaZqs8elIFvOmneQzjQ7kFHImvZ73T/BgGKn/MJr7BwYAoB 0wgmyuCcRvKGRaSyUvS3bSSmBqEgG40pLIX3yRNNB6oZvm+Y8Ys/DwKqg0K8KJ7LgIyv W07RJLMG8hekTAnKsaeoUpM8h7UIqSJL28cKJiSwt1XAFY3hecX+ee5MGwuMX+vyFAvN fYe1S9wX57nbU8zqcs28bkzaYXn0zOb1jCuK8wlOL3aokC2fJ38JfTxLadSI90uu9nWz zUfQ== X-Gm-Message-State: AOJu0YwmR9MJ63jkcsyWEppCZLgCoqNXvMp1Z88t266SRA+GJ6/fhgen ZXrPtqHzkc6ZgBI4lqTDSmvOkVZu18s= X-Google-Smtp-Source: AGHT+IGGowGSUu6swtghJU19L9udc7Q7wkLZ8UWCgAOm2ccyREbCMMnwxjNuvb4Y2XS/HqaRRedPkA== X-Received: by 2002:adf:e6d1:0:b0:315:a235:8aa8 with SMTP id y17-20020adfe6d1000000b00315a2358aa8mr4739893wrm.2.1695228891384; Wed, 20 Sep 2023 09:54:51 -0700 (PDT) Received: from nixos.localnet (aaubervilliers-654-1-6-60.w83-200.abo.wanadoo.fr. [83.200.23.60]) by smtp.gmail.com with ESMTPSA id v3-20020adff683000000b0031980294e9fsm6954557wrp.116.2023.09.20.09.54.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 09:54:50 -0700 (PDT) From: chris To: 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/)] Date: Wed, 20 Sep 2023 16:54:48 +0000 Message-ID: <4516752.LvFx2qVVIh@nixos> In-Reply-To: <875y46xyr8.fsf@localhost> References: <56760eda1abbd416ac7bbce2920770b8.squirrel@mx.sdf.org> <875y46xyr8.fsf@localhost> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=inkbottle007@gmail.com; helo=mail-wr1-x42e.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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: -8.09 X-Spam-Score: -8.09 X-Migadu-Queue-Id: 6FE4830D40 X-Migadu-Scanner: mx2.migadu.com X-TUID: l/UgwDA6izse On Tuesday, September 19, 2023 10:07:07 AM UTC Ihor Radchenko wrote: > Rudolf Adamkovi=C4=8D writes: > > tusharhero--- via "General discussions about Org-mode." > >=20 > > writes: > >> \begin{tikzpicture} > >> \draw (0,0) circle [radius=3D2cm]; > >> \end{tikzpicture} > >=20 > > ... 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! >=20 At some point in the past I've experimented with https://tikzjax.com/ So I changed something somewhere in the org-mode config and it just worked,= it=20 was quite straightforward to do. I however probably don't have notes on how= I=20 did it. I didn't insist in that direction because it wasn't working with TikZ libs,= =20 specifically tikzcd. But it was really nice. This however is implementing many TikZ libraries, I don't know if it's usab= le=20 with org-mode, but it looks totally great, it's from Obsidian but it's on=20 Github https://github.com/artisticat1/obsidian-tikzjax IMO this sort of solution is very nice. > Fist, for the record... > Confirmed. >=20 > I can also confirm that TEC's feature branch does not have this bug. What is TEC? >=20 > 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. >=20 > However, \begin{tikzpicture*} environment is not valid. Moreover, > \begin{tikzpicture} is not numbered either (just as many other > non-equation environments). >=20 > 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?