artisticat1 / obsidian-tikzjax

Render LaTeX and TikZ diagrams in your notes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stuck on loading animation

illuminator3 opened this issue · comments

commented

When trying to render the following diagram:

\usepackage{tikz-cd}
\begin{document}
% https://q.uiver.app/?q=WzAsOCxbMCwwLCJLIl0sWzAsMSwiXFxtYXRoYmIgUSJdLFsxLDEsIlxcbWF0aGJiIFoiXSxbMSwwLCJcXG1hdGhjYWwgT19LIl0sWzIsMCwiXFxtYXRoY2FsIE9fSy9cXG1hdGhmcmFrIHAiXSxbMiwxLCJcXG1hdGhiYiBaL1xcbWF0aGZyYWsgcCBcXGNhcCBcXG1hdGhiYiBaIl0sWzMsMCwiXFx0ZXh0e2Zpbml0ZSBleHRlbnNpb24gb2Z9flxcbWF0aGJiIEZfcCJdLFszLDEsIiBcXG1hdGhiYiBGX3AiXSxbMCwxLCIiLDAseyJzdHlsZSI6eyJoZWFkIjp7Im5hbWUiOiJub25lIn19fV0sWzIsMywiIiwwLHsic3R5bGUiOnsiaGVhZCI6eyJuYW1lIjoibm9uZSJ9fX1dLFswLDMsIlxcc3Vwc2V0ZXEiLDEseyJzdHlsZSI6eyJib2R5Ijp7Im5hbWUiOiJub25lIn0sImhlYWQiOnsibmFtZSI6Im5vbmUifX19XSxbMiwxLCJcXHN1cHNldGVxIiwxLHsic3R5bGUiOnsiYm9keSI6eyJuYW1lIjoibm9uZSJ9LCJoZWFkIjp7Im5hbWUiOiJub25lIn19fV0sWzMsNCwiIiwyLHsic3R5bGUiOnsiaGVhZCI6eyJuYW1lIjoiZXBpIn19fV0sWzIsNSwiIiwyLHsic3R5bGUiOnsiaGVhZCI6eyJuYW1lIjoiZXBpIn19fV0sWzUsNCwiIiwxLHsic3R5bGUiOnsidGFpbCI6eyJuYW1lIjoiaG9vayIsInNpZGUiOiJ0b3AifX19XSxbNCw2LCI9IiwxLHsic3R5bGUiOnsiYm9keSI6eyJuYW1lIjoibm9uZSJ9LCJoZWFkIjp7Im5hbWUiOiJub25lIn19fV0sWzUsNywiPSIsMSx7ImxhYmVsX3Bvc2l0aW9uIjoxMCwic3R5bGUiOnsiYm9keSI6eyJuYW1lIjoibm9uZSJ9LCJoZWFkIjp7Im5hbWUiOiJub25lIn19fV1d
\begin{tikzcd} K & {\mathcal O_K} & {\mathcal O_K/\mathfrak p} & {\text{finite extension of}~\mathbb F_p} \\ {\mathbb Q} & {\mathbb Z} & {\mathbb Z/\mathfrak p \cap \mathbb Z} & { \mathbb F_p} \arrow[no head, from=1-1, to=2-1] \arrow[no head, from=2-2, to=1-2] \arrow["\supseteq"{description}, draw=none, from=1-1, to=1-2] \arrow["\supseteq"{description}, draw=none, from=2-2, to=2-1] \arrow[two heads, from=1-2, to=1-3] \arrow[two heads, from=2-2, to=2-3] \arrow[hook, from=2-3, to=1-3] \arrow["{=}"{description}, draw=none, from=1-3, to=1-4] \arrow["{=}"{description, pos=0.1}, draw=none, from=2-3, to=2-4] \end{tikzcd}
\end{document}

it is stuck on the loading animation:
https://i.imgur.com/uQXU16B.png

\usepackage{tikz-cd}
\usepackage{amsmath}
\usepackage{amssymb}
\begin{document}
\begin{tikzcd} K & {\mathcal O_K} & {\mathcal O_K/\mathfrak p} & {\text{finite extension of}~\mathbb F_p} \\ {\mathbb Q} & {\mathbb Z} & {\mathbb Z/\mathfrak p \cap \mathbb Z} & { \mathbb F_p} \arrow[no head, from=1-1, to=2-1] \arrow[no head, from=2-2, to=1-2] \arrow["\supseteq"{description}, draw=none, from=1-1, to=1-2] \arrow["\supseteq"{description}, draw=none, from=2-2, to=2-1] \arrow[two heads, from=1-2, to=1-3] \arrow[two heads, from=2-2, to=2-3] \arrow[hook, from=2-3, to=1-3] \arrow["{=}"{description}, draw=none, from=1-3, to=1-4] \arrow["{=}"{description, pos=0.1}, draw=none, from=2-3, to=2-4] \end{tikzcd}
\end{document}

This nearly works, there appears to be some fill colours not being removed. You needed to load the amssymb and amsfont packages.

image

Would be good to rename this issue so its relevant to the fill colours being incorrect

This is actually a duplicate of #48. This issue should be closed.