答案1
您可以使用\parbox
。
\documentclass{article}
\usepackage{newtx}
\usepackage{amsmath}
\usepackage{xcolor}
\newcommand*{\bracketedtext}[2][21mm]{%
\mathord{%
\color{cyan}
\left[ \parbox{#1}{\color{black}\raggedright#2} \right]
\normalcolor
}%
}
\begin{document}
\[
\bracketedtext{the number of rabbit pairs alive at the end of month \(k\)}
=
\bracketedtext{the number of rabbit pairs alive at the end of month \(k-1\)}
+
\bracketedtext{the number of rabbit pairs born at the end of month \(k\)}
\]
\end{document}