From: "Rudolf Adamkovič" <salutis@me.com>
To: 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/)]
Date: Tue, 19 Sep 2023 01:52:26 +0200 [thread overview]
Message-ID: <m2a5tjca4l.fsf@me.com> (raw)
In-Reply-To: <56760eda1abbd416ac7bbce2920770b8.squirrel@mx.sdf.org>
tusharhero--- via "General discussions about Org-mode."
<emacs-orgmode@gnu.org> writes:
> \begin{tikzpicture}
> \draw (0,0) circle [radius=2cm];
> \end{tikzpicture}
By default Org uses MathJax in HTML exports,
and MathJax does not implement TikZ. But!
Org can be told to instead use LaTeX to
generate SVG or PNG for HTML exports [1].
But, but! That does not work well without a
small pile of hacks. 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!
Rudy
[1] https://orgmode.org/manual/Math-formatting-in-HTML-export.html
[2] https://youtu.be/n-AfvuV-bYo?si=k-5QY9MdrJXazmPv
--
"Programming reliably -- must be an activity of an undeniably
mathematical nature […] You see, mathematics is about thinking, and
doing mathematics is always trying to think as well as possible."
-- Edsger W. Dijkstra, 1981
Rudolf Adamkovič <salutis@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia
next prev parent reply other threads:[~2023-09-18 23:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-18 15:37 [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/)] tusharhero--- via General discussions about Org-mode.
2023-09-18 23:52 ` Rudolf Adamkovič [this message]
2023-09-19 10:07 ` Ihor Radchenko
2023-09-20 16:54 ` chris
2023-09-21 8:39 ` Ihor Radchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2a5tjca4l.fsf@me.com \
--to=salutis@me.com \
--cc=emacs-orgmode@gnu.org \
--cc=tusharhero@sdf.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).