Chemfig:固定键长和垂直排列

Chemfig:固定键长和垂直排列

我有两个反应方案,其中一个是骨架表示。我希望所有键都具有一定长度,因此我设置了选项fixed length = trueatom sep=1.5em。这给了我上述具有相等键的公式,但它会破坏骨架分子。如果我设置fixed length = false键太短。我该如何解决这个问题?

此外,垂直对齐似乎关闭(见红线)。

在此处输入图片描述

梅威瑟:

\documentclass[11pt, a4paper]{scrbook}
\usepackage[left=27.5mm,right=16mm,top=30mm,bottom=30mm]{geometry}
\usepackage[english,main=ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{chemfig}
\setchemfig{fixed length=false, atom sep=1.5em, arrow offset=6pt, scheme debug=false}


\begin{document}

\small
\centering
\schemestart
\chemfig{\mathit{n}}
\chemname{\chemfig{NH_2-{(}CH_2{)}_{11}-COOH}}{$\omega$-Amino-Laurylsäure}
\arrow(.mid east--.mid west)
\chemname{\chemfig{\vphantom{N}-[@{li}]{NH}-{(}CH_2{)_{11}}-CO-[@{re}]}}{Polyamid 12}
\polymerdelim[delimiters={[]}]{li}{re}
\+
\chemfig{\mathit{n}}
\chemname{\chemfig{H_2O}}{Wasser}
\schemestop

\vspace{1cm}

\schemestart
\chemfig{\mathit{n}}
\chemname{\chemfig{-[:-58]-[:20]-[:-30]-[:30]-[:-30]-[:30]-[:90](=[:30]O)-[:150]N(-[:90]H)-[:210]-[:150]-[:210]-[:160]-[:238]}}{Laurinlactam}
\arrow
\chemname{\chemfig{-[@{li}:-30]NH-[:30]-[:-30]-[:30]-[:-30]-[:30]-[:-30]-[:30]-[:-30]-[:30]-[:-30]-[:30]-[:-30](=[6]O)-[@{re}:30]}}{Polyamid 12}
\polymerdelim[delimiters={[]},height=5pt,depth=30pt]{li}{re}
\schemestop

\end{document}

答案1

以下代码在我的电脑上运行良好

\documentclass[11pt, a4paper]{scrbook}
\usepackage[left=27.5mm,right=16mm,top=30mm,bottom=30mm]{geometry}
\usepackage[english,main=ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{chemfig}
\setchemfig{fixed length=true, atom sep=1.5em, arrow offset=6pt, scheme debug=false}


\begin{document}

\small
\centering
\schemestart
\chemfig{\mathit{n}}
\chemname{\chemfig{NH_2-{(}CH_2{)}_{11}-COOH}}{$\omega$-Amino-Laurylsäure}
\arrow(.mid east--.mid west)
\chemname{\chemfig{\vphantom{N}-[@{li}]{NH}-{(}CH_2{)_{11}}-CO-[@{re}]}}{Polyamid 12}
\polymerdelim[delimiters={[]}]{li}{re} 
  \+ 
\chemfig{\mathit{n}}
\chemname{\chemfig{H_2O}}{Wasser}
\schemestop

\vspace{1cm}

\schemestart
\chemfig{\mathit{n}}
\chemname{\chemfig[fixed length=false]{
        -[:-58]-[:20]-[:-30]-[:30]-[:-30]-[:30]-[:90](=[:30]O)-[:150]N(-[:90]H)-[:210]-[:150]-[:210]-[:160]-[:238]}}{Laurinlactam}
\arrow
\chemname{\chemfig{-[@{li}:-30]NH-[:30]-[:-30]-[:30]-[:-30]-[:30]-[:-30]-[:30]-[:-30]-[:30]-[:-30]-[:30]-[:-30](=[6]O)-[@{re}:30]}}{Polyamid 12}
\polymerdelim[delimiters={[]},height=5pt,depth=30pt]{li}{re}
\schemestop

\end{document}

在此处输入图片描述

相关内容