答案1
答案2
它不喜歡 \textbf 命令中包含上標這一事實。
\documentclass[10pt]{article}
\begin{document}
\begin{equation}
Q=\left[
\begin{array}{c c c c}
\textbf{nI}& \vline & \textbf{J}\\
\hline
\textbf{J}^\textbf{T} &\vline &\textbf{K}
\end{array}
\right]
\end{equation}
\end{document}
答案3
我的建議包含兩個例子。顯然,您可以使用增加或減少文字字母大小的常用命令來更改矩陣內字元的大小。
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\renewcommand\arraystretch{1.5}
\left[\begin{array}{@{}c|c@{}}
\mbox{\Large A} & \mbox{\Large B} \\
\hline
\mbox{\Large C} & \mbox{\Large D}
\end{array}\right], \quad \left[\begin{array}{@{}c|c@{}}
\mbox{\Large $A$} & \mbox{\Large $B$} \\
\hline
\mbox{\Large $C$} & \mbox{\Large $D$}
\end{array}\right]
\]
\end{document}