{array} is an environment used in {math-mode}. It can be useful when aligning terms.

learn more… | top users | synonyms

3
votes
1answer
28 views

Enter 2 by n matrix (permutation notation) as inline math without taking up much space [duplicate]

I need to use something that looks like a 2 by n matrix as inline math. How can I achieve this without it pushing the lines apart? Example: \left(\begin{array}{cccc} 1 & 2 & \dots & N ...
2
votes
1answer
33 views

Adaptative column width

I am currently automating a report generation and I am now trying to obtain a consistent look on my arrays. I am currently working on a part where the pages need to be set in landscape mode, so I am ...
4
votes
3answers
107 views

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 ...
2
votes
1answer
23 views

array: incrementing in an array with a prescribed rule

From an earlier post, tabular environment: incrementing the headings, I learned some of the basics of incrementing a counter in an array. However, I don't know enough yet to set up a counter for the ...
5
votes
1answer
55 views

Vertically align two horizontally-parallel equations

I am attempting to vertically align two equations at multiple points and I have come up with the following: \begin{array}{rlclcl} \eta(n)&\equiv&\frac{\Lambda(n)}{\log ...
3
votes
2answers
149 views

Difference between tabular and array environment

What is the difference between a tabular and an array environment? When should be used the former and when the latter?
3
votes
2answers
85 views

nested array with alignment

I am trying to generate latex output as given below. However, the types is not coming properly aligned. It looks like it subscribes to the previous array environment. Could you please point out the ...
2
votes
2answers
41 views

How to set the equation width to be contained within one colum

I am using a two-column layout in my latex source file, and I have a series of (inequality) equations to show, which I wanted to keep them inside the left column. However, with \begin{align*} ...
3
votes
1answer
48 views

Adding additional content to an array

I have this array which is perfect, but i need to add some additional content to it, but i'm extremely uncertain about how to approach this addon. Here is my working code: \[ \begin{array}{c| ...
3
votes
2answers
46 views

Is it possible to use align inside a array environment?

I am preparing a class and I ran into this problem... Is it possible to use align inside a array environment? I was thinking of putting 4 equations as the elements of a matrix. But the first element ...
3
votes
1answer
28 views

Using \cref and custom labels for inference rule names

I have an array environment that is used to present inference rules (via a custom command). Now, these inference rules have names and i would like to refer to them using \label and \cref commands. I ...
6
votes
2answers
63 views

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} ...
3
votes
2answers
54 views

Numbering and aligning an equation with multiple columns

I search a way to align an equation with multiple columns where the following criteria should be met: The equation tag should be in the last line The equal signs should be centered and aligned ...
2
votes
3answers
74 views

How can I reproduce the figure with each picture labeled by a lowercase letter?

Here is the figure I am trying to reproduce. I was able to get the figure without the lowercase labels with the following code: \begin{figure} $$\begin{array}{cl} ...
1
vote
1answer
26 views

can array environment be applied in this case?

Consider the following document: Basically what I would like to have are two things: a curly bracket on the right side encompassing equations (5) and (6) below (in the flalign environment). From the ...
5
votes
1answer
32 views

Removing specific commas between array cells

Consider the following code: \documentclass{article} \usepackage{colortbl} \usepackage{cancel} \newcommand*\nonly[1]{\cancel{\textcolor{red}{#1}}} \begin{document} \begin{equation} \left\{ ...
7
votes
4answers
209 views

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 ...
5
votes
1answer
56 views

Dotted vertical line in math array + siunitx?

This works until I uncomment siunitx. I presume this is a bug? Should I file anywhere? \documentclass{article} \usepackage{amsmath} \usepackage{arydshln} \usepackage{mathtools} % Uncommenting this ...
2
votes
4answers
125 views

Vertical bar turning horizontal

Here is an MWE: \documentclass[a4paper]{report} \usepackage{graphicx,multirow,multicol} \makeatletter \newcommand{\blocks}[9][-10]{ ...
4
votes
2answers
175 views

\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, array} ...
4
votes
1answer
59 views

How to make equations the same size

When I write an equation using the simple \[ and \], it comes out to the correct size, with the fractions bulging above and below the lines and the parentheses surrounding them. But when I use the ...
0
votes
0answers
39 views

Can sgame work together with array?

When I insert a game environment provided by "sgame", all the other environments which are related to "array" will break. Here is a MWE: \documentclass{article} \usepackage{color,sgame} ...
3
votes
2answers
72 views

How to obtain a justyfied paragraph with correct word-spacing in tabular environment?

I'm trying to obtain a tabular with three columns of text vertically aligned on top (using array package and p{'width'}), but I can't figure how to obtain a regular spacing between words, like a ...
3
votes
3answers
299 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 ...
2
votes
1answer
53 views

Building evaluated arrays

I'm trying to build an array dynamically in latex then use it in tikz. I'm a little confused about how to create an array and add evaluated mathematical expressions to it (I'm trying arrayjob). ...
1
vote
1answer
61 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 ...
4
votes
2answers
69 views

Make a character thinner

With the following LaTeX code, the braces look too thick when the array is large. Is it possible to make the brace thinner? By the way, the | delimiters look always good. \[\left\{\begin{array}{l} ...
2
votes
1answer
102 views

Use array in loop in tikz

In general: I need to retrieve values from an array to submit those values as indices to a function. More specific: I want to create figures, which contain subfigures. These subfigures are loaded ...
4
votes
2answers
50 views

Aligning proofs from the proof package

I am trying to align several proofs produced with the infer command from the proof package. I want to be able to produce the following: But I cannot align is this way. Here is a minimal example: ...
7
votes
3answers
167 views

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 example: \documentclass{article} ...
2
votes
2answers
53 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}{ ...
3
votes
2answers
128 views

Move array in array down

I have the following code \begin{array}{rl} \textbf{fetcher} : \mathcal{T} &\to \mathcal{T} \\ (P_{\star}, w) &\mapsto \bigcup \limits_{p \in P_{\star}} \left( {\setstretch{1.25} ...
4
votes
4answers
375 views

underbrace matrix inside brackets

I would like to put an underbrace below the matrix like this: $$\left(\underbrace{ \left[\begin{array}{ccc} a&b&c\\ d&e&f\\ g&h&i \end{array}\right]}_{A} ...
0
votes
0answers
19 views

raggedright table paragraph with array package gives me error message, what am I doing wrong? [duplicate]

Consider the following: \documentclass{memoir} \usepackage{array} \begin{document} \begin{tabular}{l>{\raggedright}p{0.45\textwidth}} foo & bar \\ one & two \\ ...
0
votes
2answers
54 views

increase vertical space between lines

I want to increase the vertical space between each of the lines. I know you can use \arraystretch but i am struggling with the package. here is my source: \documentclass{article} ...
1
vote
3answers
68 views

Use hfill in array

I want to have two equations, in two lines, the first the most at left, the second, the most at right: equation 1 equation 2 So, the newbie in me try to do \documentclass{article} ...
3
votes
1answer
79 views

Nested matrices with aligned columns and rows

I'm trying to represent "matrices" with more than two dimensions, like the Riemann curvature tensor or Christoffel symbols, using nested matrices. I still don't know if this can help working with ...
0
votes
0answers
38 views

Pgfmath array problem

I have a problem with pgfmath array : it work if defined outside pgfkeys, doesn't work inside. What is the problem ? \documentclass[tikz]{standalone} \usetikzlibrary{calc} ...
3
votes
4answers
137 views

Making an array in the Table

So we have an Table and there is an array which we wish to have it in the Table: Here is the code \documentclass[onecolumn,amsmath,amssymb,nofootinbib,superscriptaddress,floatfix]{revtex4} ...
0
votes
1answer
50 views

Table using array

I'm creating Latex Tables using Array One of the sample table is mentioned below with merging multi-cell of rows. Can you please help me to understand, how can i merges rows in arrays Sample Latex ...
5
votes
1answer
424 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 ...
1
vote
0answers
32 views

\arraystretch both horizontally and vertically [duplicate]

I did an \arraystretch to get taller column vectors, but not the matrices are too small. How can I also stretch them horizontally so that the matrices become square-like again? Here's the code I ...
2
votes
1answer
47 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
819 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: ...
3
votes
2answers
59 views

Multiple lines in equation environment

I have to put an two equations inside one equation environment. I could do it with this piece o code: \begin{equation} \begin{array}{ccl} \nabla \cdot F & = & \left(\frac{\partial}{\partial ...
3
votes
5answers
272 views

An double arrows between two systems

I'm trying to have 2 equations systems separated by a double arrow, something like this : I'm actually using 3 minipage : the first and the third with and array and the arrow at the ...
2
votes
1answer
66 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 ...
3
votes
1answer
1k views

Package array Error: Illegal pream-token

I get the following error: Package array Error: Illegal pream-token (\renewcommand): `c' used \renewcommand When I run my minimum working example: \documentclass{article} \usepackage{hyperref} % ...
4
votes
2answers
168 views

Large curly braces for ONLY SOME rows of an array?

I'd like to use curly braces to demarcate parts of an equation. Right now I'm trying to do so using multirow. Is there a better way, ideally one that is compatible with automatic sizing? ...