有机化学公式

有机化学公式

我尝试将此公式放入 LaTex 中: 在此处输入图片描述

但此代码不是解决此问题的最佳方法:

{\left[{(-CF_2-CF_2-)}_n-CF_2-CF-\right]}_x
\\\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\overset\vert{(O-}CF_2-CF)_m-O-CF_2CF_2-SO_3^-M^+
\\\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\overset\vert{CF_3}

我也尝试在这个网页上寻找解决方案https://www.overleaf.com/learn/latex/Chemistry_formulae 但我没有找到它((你能帮我吗

答案1

\documentclass{article}
\usepackage{chemfig}
\def\0{\vphantom{C}}
\begin{document}
    \chemfig[atom sep=2em, fixed length=true]{
        -[@{op2,-0.2},0.25,,,draw=none]\0-[@{op1,-0.2}]CF_2|\0-CF_2|\0-[@{cl1,1.2}]\hphantom{I}-CF_2|\0-CF(-[6]O-[@{op3,-0.8}]CF_2|\0-[@{cl3,2.2}]CF(-[6]CF_3)-[,0.5,,,draw=none]-O-CF_2CF_2|\0-SO_3^{-}M^+)-[@{cl2,1.2}]
    }
    \polymerdelim[height=2pt, depth = 4pt, indice=\!n]{op1}{cl1}
    \polymerdelim[delimiters ={[]}, height=3pt, depth=5pt, indice=\!x]{op2}{cl2}
    \polymerdelim[height=2pt, depth = 4pt, indice=\!m]{op3}{cl3}
\end{document}

在此处输入图片描述

编辑

\documentclass{article}
\usepackage{chemfig}
\def\0{\vphantom{C}}
\begin{document}
    \chemfig[atom sep=2em, fixed length=true]{
        \0-[@{op2,-0.2},]CF(-[6]O-[@{op3,-0.8}]CF_2|\0-[@{cl3,2.2}]CF(-[6]CF_3)-[,0.5,,,draw=none]-O-CF_2CF_2|\0-SO_3^{-}M^+)-CF_2|\0-\hphantom{I}-[@{op1,-0.2}]CF_2|\0-CF_2|\0-[@{cl1,1.2}]\hphantom{I}-[@{cl2,1.2},0.3,,,draw=none]
    }
    \polymerdelim[height=2pt, depth = 4pt, indice=\!n]{op1}{cl1}
    \polymerdelim[delimiters ={[]}, height=3pt, depth=5pt, indice=\!x]{op2}{cl2}
    \polymerdelim[height=2pt, depth = 4pt, indice=\!m]{op3}{cl3}
\end{document}

在此处输入图片描述

答案2

您可以使用该包化学无花果绘制任何类型的分子。

\documentclass{article}

\usepackage{chemfig}
\usepackage{amsmath}

\begin{document}

\chemfig{\phantom{CH_2}-[@{op1,.75}]-[@{op2,.75}]CF_2-CF_2-[@{cl2,0.25}]CF_2-CF(-[6]@{op3,.75}O-CF_2-CF(-[6]CF_3)-[@{cl3,0.25}]O-CF_2CF_2-SO_3^{-}M^{+})-[@{cl1,.25}]}
\polymerdelim[delimiters ={[]}, height = 6pt, indice = x, open xshift=-5pt, close xshift=-15pt]{op1}{cl1}
\polymerdelim[height = 4pt, indice = n]{op2}{cl2}
\polymerdelim[height = 4pt, indice = m, open xshift=-10pt]{op3}{cl3}

\end{document}

在此处输入图片描述

相关内容