针对特定目的调整环境的替代方案

针对特定目的调整环境的替代方案

考虑下面的代码。

\begin{document}
\begin{center}
\large
\textsf{CHEM 2410 $-$ Physical Chemistry II} \\
\textsf{Final Exam Review Notes} \\
\linethickness{1mm}
\textcolor{Zaffre}{\line(1,0){470}}
\end{center}
\large
\section*{Chapter 6}
    \begin{tcolorbox}[colback=Ivory,colframe=Zaffre!75!black, sharp corners]
    \textbf{Extent of Reaction} \hfill $d\xi=\displaystyle\frac{dn_A}{v_A}$
    \end{tcolorbox}
    \begin{tcolorbox}[colback=Ivory,colframe=Zaffre!75!black, sharp corners]
    \textbf{Gibbs Reaction Energy} \hspace*{\fill}
        \begin{align*}
            \Delta_r G &= \left(\displaystyle\frac{\partial G}{\partial \xi} \right)_{p,T}\\
   \Delta_r G &= \mu_A - \mu_B\\
   \Delta_r G &= \Delta_r G^{\theta} + RT \ln Q
        \end{align*}
    \end{tcolorbox}
\begin{itemize}
    \item $\Delta_r G < 0 \iff$ \textbf{exergonic} $\iff$ \textbf{forward spontaneous}
    \item $\Delta_r G > 0 \iff$ \textbf{endergonic} $\iff$ \textbf{reverse spontaneous}
    \item $\Delta_r G = 0 \iff$ \textbf{equilibrium}
\end{itemize}
\end{document}

我想让吉布斯反应方程框看起来像反应程度方程框。对齐环境会增加垂直空间并使方程居中,但这并不是我想要的。但是,我确实希望 = 符号对齐,但在右侧。有什么简单的解决方案吗?

答案1

你可能正在寻找$\begin{aligned} ... \end{aligned}$

在此处输入图片描述

\documentclass{article}

\usepackage{amsmath,tcolorbox}

\colorlet{Ivory}{white!50!orange}% ...or whatever
\colorlet{Zaffre}{blue!75!white}% ...or whatever

\begin{document}

\begin{center}
  \large\sffamily
  CHEM 2410 $-$ Physical Chemistry II \\
  Final Exam Review Notes \\
  \linethickness{1mm}%
  \textcolor{Zaffre}{\line(1,0){470}}
\end{center}

\section*{Chapter 6}

\begin{tcolorbox}[colback=Ivory,colframe=Zaffre!75!black, sharp corners]
  \textbf{Extent of Reaction} \hfill $d\xi = \dfrac{dn_A}{v_A}$
\end{tcolorbox}

\begin{tcolorbox}[colback=Ivory,colframe=Zaffre!75!black, sharp corners]
  \textbf{Gibbs Reaction Energy} \hfill
    $\begin{aligned}
      \Delta_r G &= \biggl( \dfrac{\partial G}{\partial \xi} \biggr)_{p,T}\\
      \Delta_r G &= \mu_A - \mu_B\\
      \Delta_r G &= \Delta_r G^{\theta} + RT \ln Q
    \end{aligned}$
  \end{tcolorbox}
\begin{itemize}
  \item $\Delta_r G < 0 \iff \textbf{exergonic} \iff \textbf{forward spontaneous}$
  \item $\Delta_r G > 0 \iff \textbf{endergonic} \iff \textbf{reverse spontaneous}$
  \item $\Delta_r G = 0 \iff \textbf{equilibrium}$
\end{itemize}

\end{document}

相关内容