For example
\documentclass[11pt]{book}
\usepackage{color}
\usepackage{multirow}
\begin{document}
\begin{center}
\begin{tabular}{c@{} c@{} c@{} c@{} c@{} c@{} c@{} c@{} c@{} c@{} c@{} c@{}}
%\multirow{2}{*}{$-$}&1&5&7&{\huge,}&5&&&5&{\color{white}1}&{\color{white}1}& {\color{white}1}\\
\multirow{2}{*}{$-$}&1&5&7&{\huge,}&5&&&\vline\,5&{\color{white}1}&{\color{white}1}& {\color{white}1}\\
\cline{9-12}
&1&5&&&&{\color{white}1}&{\color{white}1}&3&1&&\\
\cline{2-6}
\multirow{2}{*}{$-$}&&&7&&&&&&&&\\
&&&5&&&&&&&&\\
\cline{2-6}
&&&2&&&&&&&&\\
\end{tabular}
\end{center}
\end{document}
To address just the left-hand term of the equation: It is possible to employ a matrix
environment inside a \left( ... \middle\vert ... \right)
construct. To force the item \alpha_T
to be typeset flush left inside the (one-column) matrix instead of centered, just add \hfill
to its right. (This works because the matrix
environment builds on the array
environment; by default, the columns of a matrix
environment are centered, achieved by inserting \hfil
on each side of each cell. Because \hfill
is "more infinite" than \hfil
, the contents of that row get pushed to the far left.)
\documentclass{article}
\usepackage{amsmath} % for "matrix" environment
\begin{document}
\[
\left(
\begin{matrix}
\alpha_T \hfill \\ \alpha_{T-1}
\end{matrix}
\, \middle\vert \,
y_{1,T-1},\boldsymbol{\theta}
\right)
\sim N \dots
\]
\end{document}
Addendum, posted after the OP clarified the structure of the covariance matrix: Similarly, the mean vector and covariance matrix can be written with bmatrix
(short for "matrix with brackets", I suppose) environments, again employing the \hfill
device to set some of the items flush-left.
\dots
\sim N\left(
\begin{bmatrix}
d_{T-1}+T_{T-1}\alpha_{T-1\mid T-1}\\
\alpha_{T-1\mid T-1} \hfill
\end{bmatrix},
\begin{bmatrix}
T_{T-1}P_{T-1|T-1}T_{T-1}'+Q_{T-1} & T_{T-1}P_{T-1|T-1} \\
P_{T-1|T-1}T_{T-1}' \hfill & P_{T-1\mid T-1}\hfill
\end{bmatrix}
\right)
\]
Best Answer
No, you have to use
array
, because theamsmath
matrix environments don't provide for specifying rules.The trick for emulating
bmatrix
(orpmatrix
) is having@{}
at both ends.