逐步繪製路易斯圖 - 如何隱藏鍵?

逐步繪製路易斯圖 - 如何隱藏鍵?

對於化學作業,我需要製作一些劉易斯圖。使用線性分子非常簡單,我用 替換了鍵線\quad,但隨後我必須繪製一個 3D 分子,當我試圖通過將鍵的顏色設置為白色來隱藏鍵時,令我沮喪的是,它們通過電子點展開。

如何在沒有粘合線的情況下顯示路易斯圖中的第一步並保留點?

\documentclass{standalone}
\usepackage{chemfig}

\begin{document}

\setbondstyle{white}
\schemestart
\chemfig{O=[:30]\lewis{2:5:7:,S}(=[::60]O)=[::-60]O}
\schemestop

\end{document}

在此輸入影像描述

答案1

使用\setbondstyle{draw=none}而不是\setbondstyle{white}

在此輸入影像描述

完整程式碼:

\documentclass{standalone}
\usepackage{chemfig}

\begin{document}

\setbondstyle{draw=none}

\chemfig{O=[:45]\lewis{2:5:7:,S}(=[:90]O)=[:-45]O}

\end{document}

相關內容