![框和列组合的水平对齐问题](https://linux22.com/image/465831/%E6%A1%86%E5%92%8C%E5%88%97%E7%BB%84%E5%90%88%E7%9A%84%E6%B0%B4%E5%B9%B3%E5%AF%B9%E9%BD%90%E9%97%AE%E9%A2%98.png)
我正在用 LaTeX 为我教授的高中数学课制作讲义表,我在本科期间使用过 Overleaf,但一直无法很好地对齐。我创建了一个“可行的”解决方案,但对齐让我很烦恼,我觉得有更好的方法可以做到这一点。以下是原始 LaTeX:
\begin{exBox}{Example \#2}
Determine the common difference of each arithmetic sequence.
\begin{multicols}{3}
\begin{itemize}[label={}]
\item MUST KNOW
\item SHOULD KNOW
\item UNDERSTANDING
\end{itemize}
\end{multicols}
\begin{multicols}{3}
\begin{enumerate}[label=(\alph*)]
\item $7,9,11,13,...$
\item $113,106,99,92,...$
\item $5, 6\frac{2}{3},8\frac{1}{3},10,...$
\end{enumerate}
\end{multicols}
\tcbsubtitle{\centering Solutions}
\begin{tcbitemize}[raster columns=3,raster equal height, coltitle=black,
colframe=blue!10!white, colback=blue!10!white, fonttitle=\bfseries, frame hidden]
\tcbitem[title={(a)}]
\vspace{3.5cm}
\tcbitem[squeezed title={(b)}]
\vspace{3.5cm}
\tcbitem[squeezed title={(c)}]
\vspace{3.5cm}
\end{tcbitemize}
\end{exBox}
以下是创建的 exBox 模板:
\newtcolorbox{exBox}[1]{%
enhanced,
title=\centering #1,
colframe=blue!50!black,
colback=blue!10!white,
colbacktitle=blue!5!yellow!10!white,
fonttitle=\bfseries,
coltitle=black,
attach boxed title to top center={yshift=-0.25mm-\tcboxedtitleheight/2,yshifttext=2mm-\tcboxedtitleheight/2},
boxed title style={boxrule=0.5mm,
frame code={ \path[tcb fill frame] ([xshift=-4mm]frame.west)
-- (frame.north west) -- (frame.north east) -- ([xshift=4mm]frame.east)
-- (frame.south east) -- (frame.south west) -- cycle; },
interior code={ \path[tcb fill interior] ([xshift=-2mm]interior.west)
-- (interior.north west) -- (interior.north east)
-- ([xshift=2mm]interior.east) -- (interior.south east) -- (interior.south west)
-- cycle;} }
}
这是输出的图片。这里的目标是让必须知道的第一列 (a)、第二列 (a) 都在同一位置左对齐,中间列和右列也一样。我意识到这可能远非最佳,所以我想看看其他人对此有什么了解。