我有一个路易斯点结构图,如下图所示:
但是,我希望在外面加括号来表示正电荷,因为这应该代表 H3O 1+。任何建议都非常感谢。
这是我当前的代码:
% Preamble
{\color[rgb]{0.500000,0.500000,0.500000}\documentclass[10pt]{article}
\usepackage[usenames]{color} %used for font color
\usepackage{amssymb} %maths
\usepackage{amsmath} %maths
\usepackage[utf8]{inputenc} %useful to type directly diacritic characters
\usepackage{chemfig}
\newcommand{\pol}[1]{\rlap{${}^{^{\color{red} \delta #1}}$}}
\newcommand{\ind}[0]{\text{ }}}
% ========================= end preamble ============================
\chemfig{\lewis{,H}\pol{+}-\lewis{2:,O}\pol{-}(-[6]\lewis{,H}\pol{+})-\lewis{,H}\pol{+}}
答案1
我实际上是通过翻阅 83 页的chemfig 手册。下面是我修改后的代码,结果如下:
\chemleft[\chemfig{\lewis{,H}\pol{+}-\lewis{2:,O}\pol{-}(-[6]\lewis{,H}\pol{+})-\lewis{,H}\pol{+}}\ind\ind\chemright]^{+}
答案2
答案3
\lewis 宏不再存在。请参阅下面的代码:
\chemleft[\chemfig{
\charge{[overlay=true]35:3pt=\color{red}{$\scriptstyle\delta^+$}}{H}
-\charge{[overlay=true]35:3pt=\color{red}{$\scriptstyle\delta^-$},90=\:}{O}
(-[6]\charge{[overlay=true]35:3pt=\color{red}{$\scriptstyle\delta^+$}}{H})
-\charge{[overlay=true]35:3pt=\color{red}{$\scriptstyle\delta^+$}}{H}}
\quad\chemright]
\chemmove{\node[] at (0pt,10pt) {\footnotesize $+$};}