Tagged Questions
5
votes
2answers
164 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}
.
.
.
\[
...
5
votes
1answer
90 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
134 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
323 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 ...
8
votes
1answer
722 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
199 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
1k 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
82 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 ...
9
votes
3answers
758 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.
6
votes
4answers
309 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 ...
4
votes
2answers
612 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 ...
6
votes
2answers
522 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
497 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
318 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(
...
7
votes
2answers
898 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
157 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 ...
7
votes
2answers
723 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
...
4
votes
3answers
3k 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 & ...
18
votes
4answers
2k 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}
\\
...
3
votes
2answers
567 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}
...
14
votes
5answers
6k 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 ...