将 \bmatrix 拆分为两行

将 \bmatrix 拆分为两行

代码

\documentclass[a4paper,twoside,12pt]{book}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}

$\bm{\mu^*}$ = 
\begin{bmatrix}
\begin{split}
17.0716 & 21.3746 & 31.2462 & 34.2847 & 37.0049 & 43.2856 & 50.8193 & 59.7093\\[0.3em]
\end{split}
\end{bmatrix}

输出

输出

问题

我怎样才能将水平向量分成两条线?

答案1

那么使用 怎么样smallmatrix

在此处输入图片描述

代码:

\documentclass[a4paper,twoside,12pt]{book}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,bm}
\begin{document}
\[
\bm{\mu^*} =
[\begin{smallmatrix}
 17.0716 & 21.3746 & 31.2462 & 34.2847 & 37.0049 & 43.2856 & 50.8193 & 59.7093
\end{smallmatrix}]
\]
\end{document} 

答案2

以下是三种可能性:

\documentclass[a4paper,twoside,12pt]{book}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,bm}


\begin{document}

%%%% reduce the intercolumn space
\noindent % to emulate a preceding text
the unrounded $\bm{\mu}^*$ vector is
\[\addtolength{\arraycolsep}{-2.5pt}
\bm{\mu}^* = 
\begin{bmatrix}
17.0716 & 21.3746 & 31.2462 & 34.2847 & 37.0049 & 43.2856 & 50.8193 & 59.7093
\end{bmatrix}
\]
obtained with $484$ experiments.

%%%% use split
\noindent % to emulate a preceding text
the unrounded $\bm{\mu}^*$ vector is
\[
\begin{split}
\bm{\mu}^* &= 
[\begin{matrix} 17.0716 & 21.3746 & 31.2462 & 34.2847 \end{matrix} \\
 &\qquad\qquad \begin{matrix} 37.0049 & 43.2856 & 50.8193 & 59.7093 \end{matrix}]
\end{split}
\]
obtained with $484$ experiments.

%%%% use multline
\noindent % to emulate a preceding text
the unrounded $\bm{\mu}^*$ vector is
\begin{multline*}
\bm{\mu}^* = 
[\begin{matrix} 17.0716 & 21.3746 & 31.2462 & 34.2847 \end{matrix} \\
 \begin{matrix} 37.0049 & 43.2856 & 50.8193 & 59.7093 \end{matrix}]
\end{multline*}
obtained with $484$ experiments.

\end{document}

在此处输入图片描述

答案3

除了正确转调和书写之外,我不会做任何其他事情。但如果你坚持的话……

\documentclass[]{article}
\usepackage{mathtools}
\begin{document}\noindent
The vector is given by

\begin{multline}
\mu^* = \left[ \begin{matrix}17.0716 & 21.3746 & 31.2462\end{matrix}\right. \\
        \left.\begin{matrix} 34.2847 & 37.0049 & 43.2856 & 50.8193 & 59.7093\end{matrix}
        \right]
\end{multline}
and we don't mind making the vector ugly. 
\end{document}

在此处输入图片描述

答案4

一种可能的方法:

\documentclass[a4paper,twoside,12pt]{book}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,bm}
\begin{document}
$\bm{\mu^*} =
\begin{array}{ccccc}
 \bigl[17.0716 & 21.3746 & 31.2462 & 34.2847  \\
 & 37.0049 & 43.2856 & 50.8193 & 59.7093 \bigr]
 \end{array}
$

\end{document}

在此处输入图片描述

如果需要,你可以使用\begin{array}[t]{ccccc} (注意[t])来获取

在此处输入图片描述

相关内容