artisticat1 / obsidian-tikzjax

Render LaTeX and TikZ diagrams in your notes
MIT License
357 stars 18 forks source link

\chemmove arrow misposition #9

Open mathoory opened 1 year ago

mathoory commented 1 year ago

Using this chemfig figure:

```tikz

\usepackage{chemfig}
\begin{document}

\chemfig{@{a1}C-[@{db}::30]C-[::-60]X}

\chemmove{\draw(db).. controls +(100:5mm) and +(145:5mm).. (a1);}

\end{document}


Results in:
https://i.imgur.com/C3VREVD.png

Instead of: (Generated in pdflatex)

https://i.imgur.com/AvUTMA0.png

I think it has something to do with how tikz handles references. compiling this with texify.exe requires multiple passes.
artisticat1 commented 1 year ago

Thanks for the report. Unfortunately this is probably related to the internals of TikZJax and I have neither the time nor the knowledge to solve it. No idea how I'd get it to run multiple passes.