有人知道我怎样才能像图片中那样镜像分子的一部分吗?谢谢!罗兰
这是我的代码:
\documentclass{article}
\usepackage{subcaption,graphicx}
\usepackage{chemfig}
\usepackage{lipsum}
\newcommand{\decoRule}{\rule{\textwidth}{0.4pt}}
%\usepackage[showframe]{geometry}
\begin{document}
%\definesubmol{Abase}{\chembelow{N}{H}*5(-=N-*6(-(-NH_2)=N-=N-)=_-)}
%\chemfig{[:72]!{Abase}} %%%%adenine alone
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%in RNA
\definesubmol{CRbase}{*6(-N-(=O)-N=(-NH_2)-=)}
\definesubmol{aR}{-P(=[::90,0.75]O)(-[::-90,0.75]O)-}
\definesubmol{ARbase}{[:-54]*5((-[:90]-[:180]O([:180]!{aR}\charge{135:3pt=$\scriptstyle\ominus$}{O}))<(-HO)-[,,,,line width=4pt](-OH)>((-[:90]N*5(-=N-*6(-(-NH_2)=N-=N-)=-)))-O-)}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chemfig{!{ARbase}}
编辑:我正在寻找一个类似的命令\hflipnext
,但只影响分子的一部分。
\documentclass{article}
\usepackage{chemfig}
\begin{document}
\schemestart
\chemfig{*6((-OH)--=-(-OH)--)}
\arrow
\hflipnext
\chemfig{*6((-OH)--=-(-OH)--)}
\schemestop
\end{document}
答案1
这个怎么样?
\documentclass{article}
\usepackage{chemfig}
\newcommand{\decoRule}{\rule{\textwidth}{0.4pt}}
\begin{document}
\definesubmol{CRbase}{*6(-N-(=O)-N=(-NH_2)-=)}
\definesubmol{aR}{-P(=[::90,0.75]O)(-[::-90,0.75]O)-}
\definesubmol{ARbase}{
[:-54]*5(
(-[:90]-[:180]O([:180]!{aR}
\charge{135:3pt=$\scriptstyle\ominus$}{O}))<(-HO)-[,,,,line width=4pt](-OH)>
(
(-[:90]N
*5(-
*6(-N=-N=(-[,,,1]NH_2)-
)
=-N=
--
)
)
)-O-
)
}
\chemfig{!{ARbase}}
\end{document}