{array} is an environment used in {math-mode}. It can be useful when aligning terms.
Questions tagged [arrays]
1059 questions
23
votes
5 answers
Create an array of variables
I'm creating a package for my question papers. (I'm aware of the exam class but I don't want to use that.) I have everything ready but I want to create a grading table at the top of the first page. For that, I need to put the exam points in an…
recluze
- 4,201
22
votes
3 answers
Question about @{} used in array environment
I saw people use @{} in the array's environment at Align a linear program.
I can understand that l means flush the array cell to left, but cannot understand what the purpose of @{} or find it in google. :-(
Could anyone help provide a link or some…
Mike
- 403
14
votes
3 answers
Page with Symbols and Notation
I want to make a section for symbols and special notation, which should look like this:
What would you suggest in doing this? Should I just do like a table and create an array of 3 columns?
Chris
- 4,965
- 8
- 22
- 19
13
votes
3 answers
What all those @{} resp @{\quad} in preamble of this array mean?
as I was reading different question This one I've found code of array enviroment which preamble is quite unknown to be... I see what it does but I would like to understand it to be able use that technique for different situations... I understand…
Jozef Janočko
- 303
11
votes
5 answers
Draw a vertical line over the entries of a column in an array
I'd like to draw vertical/horizontal lines over the entries of a column/row in an array. I find the method to draw horizontal lines at Draw a horizonal line over the entries of a row in an array.
But when I used the same way to draw the vertical…
user3293338
- 237
10
votes
1 answer
Error with blkarray: Misplaced \noalign
I am trying to write a matrix with indices given to the rows and columns. I get the error "Misplaced \noalign." Does anybody understand why? The minimal example is…
Bruno
- 1,975
10
votes
4 answers
Vertical bar turning horizontal
Here is an MWE:
\documentclass[a4paper]{report}
\usepackage{graphicx,multirow,multicol}
\makeatletter
\newcommand{\blocks}[9][-10]{
…
MickG
- 5,426
9
votes
2 answers
Gaussian elimination
I want to demonstrate examples of Gaussian elimination/the Gauss-Jordan method as shown below. There are some things that I like about what I have right now.
Each column is the same width from array to array.
The notation for row operations is…
Stirling
- 1,419
8
votes
2 answers
Table with underscript
I am writing a table to show how an object fills some space directions. Here is my code
\begin{tabular}{lcccccccccc}
& 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\
\hline
D5 & x & x & x & & x & x & x & & &
\end{tabular}
and I get this
Now what I…
Oscar
- 531
- 3
- 13
7
votes
1 answer
\newcolumntype doesn't emit any warning for the redefinition of a primitive type of column
With the code
\documentclass{article}
\usepackage{array}
\begin{document}
\newcolumntype{c}{l}
$\begin{array}{cc}
a+b+c & a \\
d & e
\end{array}$
\end{document}
I expect a warning for the redefinition of the primitive type of column c.
Indeed, in…
F. Pantigny
- 40,250
7
votes
2 answers
Decipher a code for an array environment
I saw on this web site two codes to get vertical alignment at the equals signs in consecutive systems of equations. One of them uses the systeme package and the \mathrlap command for the quantity on the right side of each equals sign. Another uses…
Adelyn
- 3,373
7
votes
3 answers
Vertically Centering Math and Text in Array?
One problem I've always had is trying to make text and/or math text vertically centered in either the tabular or array environments.
Take this for…
Clarinetist
- 1,550
7
votes
2 answers
How to make frame in matrix?
I want to draw :
I have tried to make this by the following command :
\documentclass[11pt,twoside,openright]{book}
\usepackage{geometry,tikz,amsmath}
\begin{document}
$$J_5=\left(\begin{array}{ccc} \lambda & 1 & 0\\ 0 & \lambda & 0\\ 0 & 0 &…
Md Kutubuddin Sardar
- 1,676
6
votes
2 answers
How to split long expression inside left brace?
Please find below the equation I want to write on my Latex document but unfortunately i can't split the 2 expressions inside the left brace because they are too long
\begin{equation}
\begin{split}
&F\left(\lambda,\alpha,\beta,c\right) \triangleq…
fanascom
- 61
6
votes
2 answers
\centering\arraybackslash with an array environment?
The following code gives me an error:
\documentclass[12pt]{article}
\usepackage[margin=2cm]{geometry}
\usepackage [english]{babel}
\usepackage{amsmath, amssymb}
\usepackage{enumitem,…
Clarinetist
- 1,550