我正在尝试使三种不同方案的箭头对齐,但希望在它们之间有文本,如下所示。
尽管搜索了几个小时,我还是没有找到解决方案。
\documentclass[a4paper,pdftex,ngerman,12pt]{article}
\usepackage{chemfig}
\setatomsep{1.5em}
\setcrambond{1.5ex}{1pt}{2pt}
\begin{document}
\noindent \textbf{Cracken von Seitenketten in Aromaten:}
\schemestart
\chemfig{**6([:-150]-----(-C_4H_9)-)}
\arrow
\chemfig{**6([:-150]-----(-C_2H_5)-)} \arrow{0}[,0]\+ \chemfig{H_2C=CH_2}
\schemestop
\newline\newline
\noindent \textbf{Dealkylierung:}
\schemestart
\chemfig{**6([:-150]-----(-C_2H_5)-)}
\arrow
\chemfig{**6([:-150]------)}\arrow{0}[,0] \+ \chemfig{H_2C=CH_2}
\schemestop
\newline\newline
\noindent \textbf{Cracken von Olefinen:}
\newline
\schemestart
\chemfig{CH_3-[:150]-[:-150]-[:150]-[:-150]=[:150]-[:-150]H_3C}
\arrow
\chemfig{CH_3-[:-150]=[:150]-[:-150]H_3C} \arrow{0}[,0]\+ \chemfig{CH_3-[:150]=[:-150]H_3C}
\schemestop
\end{document}
答案1
我确信有更优雅的方法,但粗略的方法是计算每个较小的左侧化合物(前两个)与最大的化合物(最后一个)之间的宽度差异,并在\hspace
较小的反应开始之前将其添加。显示每个步骤:
\documentclass[a4paper,pdftex,ngerman,12pt]{article}
\usepackage{chemfig}
\setatomsep{1.5em}
\setcrambond{1.5ex}{1pt}{2pt}
\begin{document}
%Width of first
\newlength\lenfirst
\settowidth\lenfirst{\chemfig{**6([:-150]-----(-C_4H_9)-)}}
%Width of second
\newlength\lensecond
\settowidth\lensecond{\chemfig{**6([:-150]-----(-C_2H_5)-)}}
%Width of third
\newlength\lenthird
\settowidth\lenthird{\chemfig{CH_3-[:150]-[:-150]-[:150]-[:-150]=[:150]-[:-150]H_3C}}
%Difference for first
\newlength\lendelfirst
\setlength\lendelfirst{\lenthird}
\addtolength\lendelfirst{-\lenfirst}
%Difference for the second
\newlength\lendelsecond
\setlength\lendelsecond{\lenthird}
\addtolength\lendelsecond{-\lensecond}
\noindent \textbf{Cracken von Seitenketten in Aromaten:}
\hspace{\lendelfirst}\schemestart
\chemfig{**6([:-150]-----(-C_4H_9)-)}
\arrow
\chemfig{**6([:-150]-----(-C_2H_5)-)} \arrow{0}[,0]\+ \chemfig{H_2C=CH_2}
\schemestop
\newline\newline
\noindent \textbf{Dealkylierung:}
\hspace{\lendelsecond}\schemestart
\chemfig{**6([:-150]-----(-C_2H_5)-)}
\arrow
\chemfig{**6([:-150]------)}\arrow{0}[,0] \+ \chemfig{H_2C=CH_2}
\schemestop
\newline\newline
\noindent \textbf{Cracken von Olefinen:}
\newline
\hspace{0pt}\schemestart
\chemfig{CH_3-[:150]-[:-150]-[:150]-[:-150]=[:150]-[:-150]H_3C}
\arrow
\chemfig{CH_3-[:-150]=[:150]-[:-150]H_3C} \arrow{0}[,0]\+ \chemfig{CH_3-[:150]=[:-150]H_3C}
\schemestop
\end{document}