artisticat1 / obsidian-tikzjax

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

[Bug] Chemfig: Lewis lines are not rendered #69

Open thecodechemist99 opened 3 days ago

thecodechemist99 commented 3 days ago

When using chemfig in obsidian-tikzjax, the Lewis and lewis commands don’t render the electron pair lines and lacunas correctly, while single and double electrons show up as intended.

Screenshot:

tikzjax-obsidian_lewis-bug

Corresponding tikzjax-Code

\standaloneconfig{border=10pt}
\usepackage{chemfig}

\begin{document}

\chemfig{\chemabove[5pt]{H}{\scriptstyle\delta^+}<\chemabove[3pt]{\Lewis{0:2:6:,Cl}}{\scriptstyle\delta^-}}
\qquad
\chemfig{\chemabove[5pt]{H}{\scriptstyle\delta^+}<\chemabove[3pt]{\Lewis{026,Cl}}{\scriptstyle\delta^-}}
\qquad
\chemfig{\chemabove[5pt]{H}{\scriptstyle\delta^+}<\chemabove[3pt]{\Lewis{0.2.6.,Cl}}{\scriptstyle\delta^-}}
\qquad
\chemfig{\chemabove[5pt]{H}{\scriptstyle\delta^+}<\chemabove[3pt]{\Lewis{0|2|6|,Cl}}{\scriptstyle\delta^-}}

\end{document}