
我沒有嘗試用文字或 MWE 來描述,而是上傳了所需結果的圖片。我知道如何創建\frac{}{} \text{}, ^{}
該分數的所有組件(例如 ),除了每段文字超過兩行的方式。
有什麼建議麼?
答案1
透過環境的簡單方法tabular
:
\documentclass{article}
\begin{document}
\begin{displaymath}
\frac{
\left(
\begin{tabular}{@{}c@{}}
some text\\
here
\end{tabular}
\right)
\times
\left(
\begin{tabular}{@{}c@{}}
some more\\
here
\end{tabular}
\right)^a
}{
\left(
\begin{tabular}{@{}c@{}}
and even more\\
text down here
\end{tabular}
\right)^b
}
\end{displaymath}
\end{document}
pmatrix
包裝環境更優雅amsmath
:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{gather*}
\frac{
\begin{pmatrix}
\text{some text}\\
\text{here}
\end{pmatrix}
\times
\begin{pmatrix}
\text{some more}\\
\text{here}
\end{pmatrix}^a
}{
\begin{pmatrix}
\text{and even more}\\
\text{text down here}
\end{pmatrix}^b
}
\end{gather*}
\end{document}