两个多行公式的等号如何对齐?

发布于 2023-04-01 18:05:41

直接插入两个多行公式的时候他们的等号不会对齐,这样不太美观,有没有办法让两个各自只有一个编号的公式之间的等号对齐,且他们的公式编号居中。

查看更多

关注者
0
被浏览
907
1 个回答
Beatrice
Beatrice 2023-04-01
这家伙很懒,什么也没写!
\documentclass{book}
\usepackage[margin=1cm]{geometry}
\usepackage{showframe}
\usepackage{amsmath}
\counterwithin{equation}{section}
\usepackage{tabularray}
\UseTblrLibrary{counter}
\begin{document}
\chapter{title}
\section{title}
\begin{equation*}
\begin{tblr}
{
colspec    = {X[c,m]Q[r,m]Q[l,m]X[r,m]},
columns    = {colsep=0pt},
column{Z}  = {mode=text},
row{5}     = {abovesep+=\abovedisplayskip},
cell{1}{Z} = {r=4}{preto=(\stepcounter{equation}\theequation)},
cell{5}{Z} = {r=7}{preto=(\stepcounter{equation}\theequation)},
column{3}  = {preto=\mbox{}}
}
& a+a+a+a+a+a+a+a+a+a & =b+b+b       & \\
&                     & =c+c         & \\
&                     & =c+c         & \\
&                     & =c+c         & \\
& a+a+a               & =b+b+b+b+b+b & \\
&                     & =c+c         & \\
&                     & =c+c         & \\
&                     & =c+c         & \\
&                     & =c+c         & \\
&                     & =c+c         & \\
&                     & =c+c         & \\
\end{tblr}
\end{equation*}
\end{document}

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览