3
votes
3answers
127 views

Submatrix and element alignment within matrix

I'm having trouble aligning submatrices and elements within the same matrix. Essentially, what I want to do is this (excuse the terrible paint-job): Where the submatrix Q is located at the middle ...
1
vote
1answer
41 views

Draw array(data structure) with underbraces at subarray

I'm pretty new to latex and I'm having some difficult to draw this: It is very important that the dots do not be inside a column, but act like a separator (actually it indicates that there are an ...
2
votes
2answers
47 views

Adding vertical line and left brackate in array

I want to display my content like in image. I have considered array for this. Let me know if is there any better option for this. \textbf {accesslog : } \textcolor{red}{ Array } \begin{tabular}{ ...
5
votes
1answer
149 views

Block matrix equation with dimensioning

I need to write following matrix equation in LaTex. The dotted lines shown need to be present in the structure but need not have colors (could as well be black). I have used it here only to show the ...
2
votes
1answer
37 views

Aligning numbers in array

What am I doing wrong here?: \documentclass[11pt,a4paper]{article} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} \begin{align} ...
10
votes
3answers
567 views

How to create vertical and horizontal dotted lines in a matrix?

Similar to this question, I am trying to output a similar matrix with dotted line instead of dashed line. Is there anyway to do this? I also try to use these three packages: ...
2
votes
1answer
48 views

Overbraces hovering too far above matrix for some reason?

I have a matrix with two overbraces above it but they are not directly above it, there is a fair amount of space between the braces and the matrix and I can't see why it is happening. ...
2
votes
0answers
36 views

Need to split right bracket at side of matrix into three smaller brackets [duplicate]

To the right of this matrix I have a big right curly bracket with the text "2m terms" that spans the height of the matrix. I need to replace this right bracket with three smaller ones that together ...
4
votes
2answers
58 views

Array within Align*

LaTeX fresh beginner here. Using TexStudio. In the second row of an equation array (using align*), I am trying to multiply a row vector by a column vector, using the array command. Apparently the ...
6
votes
1answer
93 views

Combining rows and columns in array

I am trying to write some kind of blockmatrix \[A_n= \left( \begin{array}{cc|cc} && 0 & 0 \\ & A_{n-2}&n-2&0 \\ \hline\\ 0&-n+2&1&n-1 \\ ...
0
votes
0answers
50 views

Equivalent of Latable for matrix/vectors generation

Does anyone know an equivalent for Latable (which is used to generate latex code for tables) but to do the same thing with matrices and arrays ?
7
votes
1answer
183 views

Matrix derivation

I would like to display a matrix with a dot (derivative) on top of it. The entry of this matrix shall consist of arbitrary symbols. When I write \begin{align} \dot{\begin{pmatrix} x \\ y ...
9
votes
1answer
132 views

Matrix looks flat

I would like to typeset a partitioned matrix in LaTeX with dashed lines. After a quick search on TeX.SE, I found this post with a nice example of such matrices. I tried it on my computer and the ...
6
votes
2answers
184 views

Vertical lines in matrices should be aligned

I'm trying to write matrices one below the other but I want the vertical lines (compare example below) to be aligned. Eventually, there will be several matrices in one document - in the example below ...
4
votes
1answer
123 views

how to create columns of array

I use the following code to generate this: \begin{center} 2 Iteración\\ Fila $S_{1}$ \end{center} \small \[\begin{array}{crl} \kbordermatrix{\mbox{ }& & & & & & & \\ ...
3
votes
1answer
279 views

Array as subscript

While $\begin{matrix} 2 & 4 & 6 & 5 & 4 & 3 & 2 \\ && 3 \end{matrix}$ looks great for the highest root of $\mathsf E_8$, $s_{\begin{matrix} 2 & 4 & 6 & 5 ...
5
votes
2answers
1k views

Underbraces in Matrix Divided in Blocks

How to put underbraces, inside the parenthesis of a matrix, to name both sides of the blocks? \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{array} \begin{document} . . . \[ ...
6
votes
1answer
176 views

How to model {smallmatrix} with {array}?

It is pretty normal, I guess, to use \begin{array} ... \end{array} to model matrices, when more control is required than you get with pmatrix, bmatrix, etc., with the proper \left and \right, and the ...
8
votes
1answer
262 views

Replacing Leading Minus Signs in Environment

In this question concerning negative signs and the alignment of entries in matrix environments, Heiko Oberdiek gave a great answer in which he uses a user-defined command called \matminus instead of ...
4
votes
2answers
446 views

Block matrices, separator with space

I want to write block matrices like the one shown below I tried underlining, fraction, and using __ as an entry by making three rows but they did not look nice.I want the horizontal lines inside ...
10
votes
1answer
3k views

Negative Sign and Matrix Alignment

I am having trouble centering the elements of a matrix such that the negative sign is not taken into account during alignment. Additionally, I would also like the space between the left parenthesis ...
2
votes
1answer
280 views

How can I write a matrix using the whole page width in a two-colum document?

How can I write a big matrix (or array) in the width of the page while using two columns for all paper? I know that for figures (figure*) can be used, is there any way to do it for arrays?
5
votes
1answer
4k views

LaTeX doesn't recognize \end{array}

Following code ... \begin{align} \begin{array} 1 & 2 & 3\\ 1 & 2 & 3 \end{array} \end{align}... results in numerous errors: - Argument of \array has an extra } (line 0) - ...
1
vote
1answer
99 views

Compiling errors in a matrix that correctly show up?

I have a little problem with nested arrays. The following examples give the correct matrix after a Latex=>PDF run but generate LaTeX errors ! missing $ inserted. <inserted text>, that I would ...
10
votes
3answers
2k views

Border matrix with multiple indices on top and bottom

How can I write a matrix where there is an index at the top and also at the bottom? \bordermatrix doesn't seem to have an option for multiple indices.
7
votes
4answers
516 views

What is the best way to indicate repeated off diagonal elements in a matrix/array?

I'd like to typeset a matrix of the following kind: When the symbols involved are big, like, in place of $r$, suppose we had $\mu(k-1)$ and in place of $\lambda$, we had $\mu(k-2)$, the matrix B below ...
5
votes
2answers
1k views

breaking lines in a matrix/array environment

I have a matrix whose entries are quite long and must be broken up across multiple lines. The desired break-points are the + operators separating terms in each matrix element. The following code is ...
8
votes
2answers
730 views

Enforcing That \array Stays Square When Drawing Matrix

I'm trying to draw a block matrix in LaTeX, and this is what I have so far: \begin{array}{|c|c|} \hline I_{r \times r} & 0 \\ \hline 0 & 0 \\ \hline \end{array} Here's a ...
9
votes
4answers
2k views

Text above matrices

I am new to latex and I am trying to create So far I have been able to create the matrices, like so: \[ N\textrm{ spectra} \begin{bmatrix} a_{11} & a_{12} & \cdots & a_{1M} \\ ...
4
votes
2answers
579 views

How can I use monospaced font inside a matrix (or tabular etc)?

I would like to display a matrix with characters using monospaced font (as in \tt and \mathtt), but I haven't found an easy way to do it. Something like this: \begin{center}{\tt\left( ...
10
votes
2answers
2k views

Gaussian reduction of matrices

I have to show a Gaussian reduction in an assignment, and I was wondering what the more space-efficient and neatest way of expressing this is. I thought about using \begin{smallmatrix} (it's only a ...
1
vote
2answers
223 views

How to create newlines?

I am new to Latex and found out how to use it a bit. Newlines are created by \\ I get the following error: \\ can only appear in a matrix or array How do you create newlines between matrix or ...
12
votes
2answers
2k views

Array with labeling columns

Is there an intelligent way to label (or name) columns in a matrix? I would like to have something like \[M=\left[\begin{array}{c|cc} 1 & 2 & 3\\ 4 & 5 & 6 ...
5
votes
3answers
5k views

Typesetting on block matrix is ugly

I have a large n x n matrix I'm trying to typeset. My current code is as follows: $\left(\begin{array}{c|ccc} 1 & c_2 & \cdots & c_n \\ \hline 0 & ...
27
votes
4answers
4k views

Using display style fraction in a matrix environment

I'd like use the \dfrac command in a bmatrix environment as follows: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{bmatrix} \dfrac{\partial f}{\partial x} \\ ...
4
votes
2answers
728 views

Problem with \bordermatrix inside array

When a \bordermatrix is placed inside an array, the spacing between rows will be wrong (see the MWE below). What is causing this problem? Is there a solution? \documentclass{book} \begin{document} ...
16
votes
5answers
8k views

bordermatrix with blocks

I need to write a complicated matrix, that has a structure as in the attached picture.
4
votes
3answers
2k views

How to get TikZ nodes not to change alignment?

I'm still working on rendering a nice block matrix. I've been using BMAT but it is irrelevant for the question at hand. I want to connect various entries in an array/matrix/BMAT by lines, and I'm ...