![用括号画出“椅子”](https://linux22.com/image/386394/%E7%94%A8%E6%8B%AC%E5%8F%B7%E7%94%BB%E5%87%BA%E2%80%9C%E6%A4%85%E5%AD%90%E2%80%9D.png)
\documentclass{article}
\usepackage{chemfig}
\begin{document}
\chemfig{
% 8
-O% 7
-% 1
-[:60]% 2
(
-[:120]% 18
(
=[:180]O% 20
)
-[:60,,,1]OH% 19
)
-O% 3
-[:300]% 4
(
-[:240]% 5
(
-[:300,,,1]OH% 21
)
-[:180]% 6
(
-[:240,,,2]HO% 27
)
-[:120]% -> 1
)
-O% 9
-% 10
-[:60]% 11
(
-[:120]% 22
(
=[:180]O% 24
)
-[:60,,,1]OH% 23
)
-% 12
-[:300]% 13
(
-O% 16
-% 17
)
-[:240]% 14
(
-[:300,,,1]OH% 26
)
-[:180]% 15
(
-[:120]% -> 10
)
-[:240,,,2]HO% 25
}
\end{document}
你好,我很难画出上面的图表。你能帮我吗?
答案1
可能的答案(另见这个答案作为参考),基于“椅子”表示的例子ChemFig 包装文档(目前在第 38 页):
\documentclass{standalone}
\usepackage{chemfig}
\newcommand{\makemypolymerdelims}[7][]{%
\chemmove{\path (#6) -- node[pos=#4] {$\left[\vrule height#2 depth#3 width0pt\hspace{#5}\right]_#1$} (#7);}%
}
\begin{document}
\setchemfig{cram width=2pt}
\chemfig{
% 8
-[@{a}:10,,,,,dashed]O % 7
-[:10] % 1
-[:-10] % 2
(
-[:270] % 18
(
=[:190]O % 20
)
-[:-10,,,1]ONa % 19
)
-[:10]O % 3
-[:-50] % 4
(
<[:-190] % 5
(
-[:90,,,1]OH % 21
)
-[:190,,,,line width=2pt,line cap=round] % 6
(
-[:-190]HO % 27
)
>[:130] % -> 1
)
-[@{b}:10]O % 9
-[:10] % 10
-[:-10] % 11
(
-[:90] % 22
(
=[:-190]O % 24
)
-[:10,,,1]ONa % 23
)
-[:10] % 12
-[:-50] % 13
(
-[@{c}:10]O % 17
-[:10,,,,,dashed] % 16
)
<[:-190] % 14
(
-[:90,,,1]OH % 26
)
-[:190,,,,line width=2pt,line cap=round] % 15
(
>[:130] % -> 10
)
-[:-190,,,2]HO % 25
}
\makemypolymerdelims[m]{10pt}{12pt}{.52}{125pt}{a}{b}
\makemypolymerdelims[n]{10pt}{12pt}{.55}{125pt}{b}{c}
\end{document}
产量: