# Tag Info

## New answers tagged matrices

2

If you want the horizontal and vertical lines to intersect, you can't use the rule-drawing macros of the booktabs package. Here's a solution that uses just a basic array environment. This solution is similar to the one given by @Alenanno in the posting you provided a link to; the main difference is that the @{} directives have been replaced with @{\,}. ...

6

The following example redefines \vdots and \ddots to get a resizable version according to the current math style. The vertical space between the dots is taken from the horizontal dots. Also the dots in \ddots match the vertical spacing of \vdots and the horizontal spacing of the horizontal dots in \cdots. \cdots adds a thin space at the right side. For a ...

2


4

MWE: \documentclass[11pt]{article} \usepackage{amsmath} \begin{document} \begin{equation*} Q = \begin{pmatrix} -(\lambda_1 + \mu_1) & \lambda_1 & 0 & \ldots & 0 & 0 \\ 0 & -(\lambda_2 + \mu_2) & \lambda_2 & \ldots & 0 & 0 \\ \vdots & \vdots & \vdots & \ldots & 0 & 0 \\ 0 & 0 ...

2

Done here with stacks, in lieu of arrays. \documentclass{arlticle} \usepackage{amsmath,stackengine} \setstackEOL{\cr} \stackMath \def\Xrightarrow#1{\xrightarrow{\makebox[3ex]{$\scriptstyle#1$}}} \begin{document} \[ \overbrace{\Longstack{% P \Xrightarrow{0.1} P\cr T_1 \Xrightarrow{0} P\cr T_2 \Xrightarrow{0.2} P\cr C \Xrightarrow{0.4} P}}^P ...

0

You need a combination of \overbrace and \overset to get the desired output. \overset allows you to place something on top of something else (in your case the numbers on top of the arrow). The best way of formatting seems to me to put the array in the \overbrace command. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...

6


Top 50 recent answers are included