emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] tikz latex figures don't render properly in the html output. [


From: chris
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

On Tuesday, September 19, 2023 10:07:07 AM UTC Ihor Radchenko wrote:
> Rudolf Adamkovič <salutis@me.com> writes:
> > tusharhero--- via "General discussions about Org-mode."
> > 
> > <emacs-orgmode@gnu.org> writes:
> >> \begin{tikzpicture}
> >> \draw (0,0) circle [radius=2cm];
> >> \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!
> 

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 
was quite straightforward to do. I however probably don't have notes on how I 
did it.
I didn't insist in that direction because it wasn't working with TikZ libs, 
specifically tikzcd.
But it was really nice.
This however is implementing many TikZ libraries, I don't know if it's usable 
with org-mode, but it looks totally great, it's from Obsidian but it's on 
Github
https://github.com/artisticat1/obsidian-tikzjax
IMO this sort of solution is very nice.

> Fist, for the record...
> Confirmed.
> 
> I can also confirm that TEC's feature branch does not have this bug.

What is TEC?

> 
> 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?







reply via email to

[Prev in Thread] Current Thread [Next in Thread]