首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在文档中将长列方程分成2列

如何在文档中将长列方程分成2列
EN

Stack Overflow用户
提问于 2022-09-28 13:43:10
回答 1查看 71关注 0票数 0

日安。我在胶乳文件上有一列方程式。我打算把它分成两栏,以节省空间。下面是我使用的代码:

代码语言:javascript
复制
\begin{multicol}{2}
\textit{Chemical Initiation Reaction:}
\begin{equation*}
I\xrightarrow{K_{d}}2fR^{^{\bullet}}
\end{equation*}

\begin{equation*}
R^{^{\bullet}}+M\xrightarrow{K_{i}}R_{1}^{^{\bullet}}
\end{equation*}

\textit{Thermal Initiation Reaction:}

\begin{equation*}
3M\xrightarrow{K_{iterm}}M_{1}^{^{\bullet}}+M_{2}^{^{\bullet}}
\end{equation*}

\begin{equation*}
M_{1}^{^{\bullet}}+M\xrightarrow{4K_{P}}P_{2}^{^{\bullet}}
\end{equation*}

\begin{equation*}
M_{2}^{^{\bullet}}+M\xrightarrow{4K_{P}}P_{3}^{^{\bullet}}
\end{equation*}

\textit{Chain Propagation Reaction:}

\begin{equation*}
P_{n}^{^{\bullet}}+M\xrightarrow{K_{P}}P_{n+1}^{^{\bullet}}
\end{equation*}

\textit{Chain Transfer to Monomer Reaction:}

\begin{equation*}
P_{n}^{^{\bullet}}+M\xrightarrow{K_{trM}}P_{1}^{^{\bullet}}+ D_{n}
\end{equation*}

\textit{Chain Transfer to Solvent Reaction:}

\begin{equation*}
P_{n}^{^{\bullet}}+S\xrightarrow{K_{trS}}P_{1}^{^{\bullet}}+D_{n}
\end{equation*}

\textit{Chain Termination by Combination Reaction :}

\begin{equation*}
P_{n}^{^{\bullet}}+P_{m}^{^{\bullet}}\xrightarrow{K_{tc}}D_{n+m}
\end{equation*}

\textit{Chain Termination by Disproportionation Reaction :}

\begin{equation*}
P_{n}^{^{\bullet}}+P_{m}^{^{\bullet}}\xrightarrow{K_{td}}D_{n}+D_{m}
\end{equation*}
\end{multicol}

这就是我在使用\multicol命令之后希望在下面得到的内容。

EN

回答 1

Stack Overflow用户

发布于 2022-09-29 09:49:51

我不知道您的用例是什么,但是,在当前的情况下,等式加上注释太混乱了。

分裂方程会更好。然后将注释/注释移到底部,然后将等式排列成两组。对于注释,我将创建一个简单的重格式化列表,其中包含对等式的引用。

编辑(添加标题)

默认情况下,标准\caption{...}就足够了。但是,在这种情况下,您必须加载另一个包caption并使用它的\captionof{table}{...}。前者需要在table环境中,这里不是这样的。因此,在summy中,在代码中添加以下内容

代码语言:javascript
复制
# Somewhere after \documentclass...
\usepackage{caption}
\captionsetup[table]{position=top,skip=12pt}

然后就在\begin{tabular}...之前

代码语言:javascript
复制
# Before tabular
\captionof{table}{<Caption of your table>}

代码语言:javascript
复制
\documentclass{article}
\usepackage{mathtools}    % Adds improvements to amsmath
\usepackage{tabularx}     % Groups equations
\usepackage{enumitem}     % To add formatting to standard lists
\usepackage{caption}
\captionsetup[table]{position=top,skip=12pt}

\usepackage{kantlipsum}   % Only for dummy texts


\begin{document}
Start of dummy text. \kant[1][1]

\bigskip

\begingroup
\bgroup
\setlength{\abovedisplayskip}{0pt}
\setlength{\belowdisplayskip}{-\baselineskip}
\centering
\renewcommand*\tabularxcolumn[1]{>{\centering\arraybackslash}p{#1}}
\renewcommand*{\arraystretch}{1}
\captionof{table}{Caption of the table below}
\begin{tabularx}{0.85\linewidth}{@{}X|X}
  \textbf{Column 1} & \textbf{Column 2} \\
  \hline
  \begin{gather}
    \begin{gathered}
      I\xrightarrow{K_{d}}2fR^{^{\bullet}} \\
      R^{^{\bullet}}+M\xrightarrow{K_{i}}R_{1}^{^{\bullet}} \\
    \end{gathered} \label{eq:chem-init-react} \\[12pt]
    \begin{gathered}
      3M\xrightarrow{K_{iterm}}M_{1}^{^{\bullet}}+M_{2}^{^{\bullet}} \\
      M_{1}^{^{\bullet}}+M\xrightarrow{4K_{P}}P_{2}^{^{\bullet}} \\
      M_{2}^{^{\bullet}}+M\xrightarrow{4K_{P}}P_{3}^{^{\bullet}}
    \end{gathered} \label{eq:chain-transfer-react}
  \end{gather} &
                 \setlength\jot{6pt}
                 \begin{gather}
                   P_{n}^{^{\bullet}}+M\xrightarrow{K_{P}}P_{n+1}^{^{\bullet}} \label{eq:chain-combine-react} \\
                   P_{n}^{^{\bullet}}+M\xrightarrow{K_{trM}}P_{1}^{^{\bullet}}+ D_{n} \label{eq:thermal-init-react} \\
                   P_{n}^{^{\bullet}}+S\xrightarrow{K_{trS}}P_{1}^{^{\bullet}}+D_{n} \label{eq:chain-propag-react} \\
                   P_{n}^{^{\bullet}}+P_{m}^{^{\bullet}}\xrightarrow{K_{tc}}D_{n+m} \label{eq:chain-transfer-monomer-react} \\
                   P_{n}^{^{\bullet}}+P_{m}^{^{\bullet}}\xrightarrow{K_{td}}D_{n}+D_{m} \label{eq:chain-disprop-react}
                 \end{gather}
\end{tabularx}\par
\egroup
\bigskip

\noindent Annotations:
\begin{itemize}[nosep,before=\vspace{3pt}\itshape]
\item[\eqref{eq:chem-init-react}:] Chemical Initiation Reaction
\item[\eqref{eq:chain-transfer-react}:] Chain Transfer to Solvent Reaction
\item[\eqref{eq:chain-combine-react}:] Chain Termination by Combination Reaction
\item[\eqref{eq:thermal-init-react}:] Thermal Initiation Reaction
\item[\eqref{eq:chain-propag-react}:] Chain Propagation Reaction
\item[\eqref{eq:chain-transfer-monomer-react}:] Chain Transfer to Monomer Reaction
\item[\eqref{eq:chain-disprop-react}:] Chain Termination by Disproportionation Reaction.
\end{itemize}\par
\endgroup

\bigskip

End dummy text. \kant[1][2]
\end{document}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73882512

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档