Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Code

\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}

Output

Output

Question

How can i split the orizontal vector in two lines?

share|improve this question

5 Answers 5

up vote 3 down vote accepted

What about using a smallmatrix?

enter image description here

Code:

\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} 
share|improve this answer
    
Remove the \\[0.3em] that doesn't make sense. –  egreg Mar 18 at 9:10
    
@egreg forgot to delete it... –  karlkoeller Mar 18 at 9:12

Here are three possibilities:

\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}

enter image description here

share|improve this answer

I wouldn't do anything other than transposing and writing properly. But if you insist...

\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}

enter image description here

share|improve this answer
    
What do you mean with "writing properly"? –  gmeroni Mar 18 at 8:57
    
@gmeroni A vector in which entries are aligned at its decimal point and going top down instead of left/right –  percusse Mar 18 at 9:06
    
You are right but with 8row vector i need to take a lot of vertical space... –  gmeroni Mar 18 at 9:09

One possible way:

\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}

enter image description here

If you want, you can use \begin{array}[t]{ccccc} (note [t]) to get

enter image description here

share|improve this answer

try

... vector is:\\
$\bm{\mu^*} = 
\begin{bmatrix}
17.0716 & 21.3746 & 31.2462 & 34.2847 & 37.0049 & 43.2856 & 50.8193 & 59.7093
\end{bmatrix}$\\
obtained with ...

or better:

\documentclass{article}
\usepackage{amsmath}
\usepackage{bm}
\begin{document}

\noindent
\hrulefill ... vector is:
%
\[
\bm{\mu^*} = \arraycolsep=3pt
\begin{bmatrix}
17.0716 & 21.3746 & 31.2462 & 34.2847 & 37.0049 & 43.2856 & 50.8193 & 59.7093
\end{bmatrix}
\]
%
\noindent
obtained with ... \hrulefill

\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.