Fixes #3216 – TikZJax not working. 1. Changing SHA simply doesn't work, `window.tikzjax` is undefined and it doesn't render anything. 2. I switched to the JS distributed by [benrbray/tikzjax](https://github.com/benrbray/tikzjax/tree/develop), added under `assets.js` to prevent future issues. 3. Documents now require to start with `\begin{document}`, should be a simple fix. <img width="789" height="341" alt="Screenshot 2026-01-24 at 1 10 39 PM" src="https://github.com/user-attachments/assets/8272471d-df94-4118-a726-00ed09dcf1e8" /> <img width="780" height="380" alt="Screenshot 2026-01-24 at 1 06 13 PM" src="https://github.com/user-attachments/assets/11284661-de15-4d57-a1d9-4959f562f826" />
22 lines
663 B
Markdown
22 lines
663 B
Markdown
---
|
|
layout: post
|
|
title: a post with TikZJax
|
|
date: 2023-12-12 22:25:00
|
|
description: this is what included TikZ code could look like
|
|
tags: formatting diagrams
|
|
categories: sample-posts
|
|
tikzjax: true
|
|
---
|
|
|
|
This is an example post with TikZ code. TikZJax converts script tags (containing TikZ code) into SVGs.
|
|
|
|
<script type="text/tikz">
|
|
\begin{document}
|
|
\begin{tikzpicture}
|
|
\draw[red,fill=black!60!red] (0,0) circle [radius=1.5];
|
|
\draw[green,fill=black!60!green] (0,0) circle [x radius=1.5cm, y radius=10mm];
|
|
\draw[blue,fill=black!60!blue] (0,0) circle [x radius=1cm, y radius=5mm, rotate=30];
|
|
\end{tikzpicture}
|
|
\end{document}
|
|
</script>
|