最近,我编写了一个关于立体化学的乳胶文档,但我需要大量的奇怪的纽曼投影,我发现了很多关于烯烃的问题。
首先,我必须绘制烯烃,然后我的问题是关于重叠配置和这些图像的可读性差。
chemmacros 的 newman 模块能帮助我吗?
答案1
答案是不行。我创建了一个命令来帮我做这件事:
\newcommand{\newmanalkene}[6][0]{
\def \alkeneangle {-#1}
\pgfmathsetmacro{\Cdist}{.3*cos(#1*3)^2} % rear atom position
\def \bondlengthfront {1.25} % front atom's bond length
\def \bondlengthback {.95} % back atom's bond length
\begin{tikzpicture}
\coordinate (C1) at (0,0);
\draw[draw=none] (C1) -- ++(0+\alkeneangle:\Cdist) coordinate (C2); % sposta l'atomo posteriore, vedi Cdist
%
\coordinate (C1-1) at (90:\bondlengthfront);
\coordinate (C1-2) at (210:\bondlengthfront);
\coordinate (C1-3) at (330:\bondlengthfront);
%
\draw[draw=none] (C2) -- ++(+90+\alkeneangle:\bondlengthback) coordinate (C2-1) ;
\draw[draw=none] (C2) -- ++(-90+\alkeneangle:\bondlengthback) coordinate (C2-2) ;
%
\draw (C2) -- (C2-1);
\draw[double, double distance=2pt] (C2) -- (C2-2);
\draw[fill=white] (C1) circle (.6);
%
\draw
(C1) -- (C1-1)
(C1) -- (C1-2)
(C1) -- (C1-3);
%
\node[inner sep=0,anchor=-90] at (C1-1) {#2} ;
\node[inner sep=0,anchor=30] at (C1-2) {#3} ;
\node[inner sep=0,anchor=150] at (C1-3) {#4} ;
\node[inner sep=0,anchor=-90+\alkeneangle] at (C2-1) {#5} ;
\node[inner sep=0,anchor=90+\alkeneangle] at (C2-2) {#6} ;
%
\draw
(C1) circle (.6);
\end{tikzpicture}
}
一些例子:
\newmanalkene[0]{a}{b}{c}{d}{e}
\newmanalkene[30]{a}{b}{c}{d}{e}
目前,我正在研究一个命令,解决烷烃纽曼投影上的重叠配置问题。