![括号与 chemmacros 重叠](https://linux22.com/image/447199/%E6%8B%AC%E5%8F%B7%E4%B8%8E%20chemmacros%20%E9%87%8D%E5%8F%A0.png)
我试图将支架定位成不重叠的位置,同时理想地对齐它们的垂直位置。解决方案这里似乎没什么帮助。还有没有办法将下标移近右括号?任何建议都非常感谢!
\documentclass[10pt]{article}
\usepackage{comment}
\usepackage{chemfig}
\usepackage{chemmacros}
\chemsetup{modules={polymers}}
\setchemfig{atom sep = 2em}
\begin{document}
\chemfig{=[:150]-[:90] %middle branch
(-[@{c}:30]-[:330]=[:00]-[:30]-[@{d}:330]OH) %right branch
-[:150] -[@{b}:210] -[:150] =[:210] -[:150] -[@{a}:210]HO} %left branch
\makepolymerdelims[subscript={$x$},delimiters={()}]{7.5pt}{a}{b}
\makepolymerdelims[subscript={$z$},delimiters={()}]{7.5pt}{c}{d}
\makepolymerdelims[subscript={$y$},delimiters={()}]{7.5pt}{b}{c}
\end{document}
答案1
添加了更多标签(“e”和“f”)并调整了双键的位置
\documentclass[margin=10pt,10pt]{standalone}
\usepackage{comment}
\usepackage{chemfig}
\usepackage{chemmacros}
\chemsetup{modules={polymers}}
\setchemfig{atom sep = 2em}
\begin{document}
\chemfig{=[:150]-[:90] %middle branch
(-[@{c}:30,.5]-[@{f}:30,.5]-[:330]=^[:00]-[:30]-[@{d}:330]OH) %right branch
-[:150] -[@{b}:210,.5]-[@{e}:210,.5] -[:150]=^[:210] -[:150] -[@{a}:210]HO} %left branch
\makepolymerdelims[subscript={$x$},delimiters={()}]{7.5pt}{a}{e}
\makepolymerdelims[subscript={$z$},delimiters={()}]{7.5pt}{f}{d}
\makepolymerdelims[subscript={$y$},delimiters={()}]{7.5pt}{b}{c}
\end{document}
答案2
作为对已接受答案的跟进,我使用建议将所有括号的中心与反式加成双键的中点(我标记为“g”)对齐这里,并将下标左移,如下所示:
\makepolymerdelims[subscript={\!\!$x$},delimiters={()}]{7.5pt}{a|-g}{e|-g}
\makepolymerdelims[subscript={\!\!$z$},delimiters={()}]{7.5pt}{f|-g}{d|-g}
\makepolymerdelims[subscript={\!\!$y$},delimiters={()}]{7.5pt}{b|-g}{c|-g}