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

learn more… | top users | synonyms

4
votes
3answers
190 views

How to align long array?

I use Mathematica and the command TeXForm to convert Equation. The array is too long. I try to find a way but I can't align this equation. How can I do? \documentclass[12pt,a4paper]{article} ...
3
votes
1answer
33 views

The word 'granulocytes' divides into three categories as 'neutrophils, eosinophils and basophils.' How may I include it in the following set-up?

The subdivision of granulocytes must be in the same figure; just as luekocytes were subdivided with curly brackets, `granulocytes' must be divided, but in the same figure. ...
2
votes
2answers
42 views

tikzpicture and array side by side in subfigure won't align

I am trying to align side by side a tikzpicture (an image of a network) and an array (a matrix) but no matter what I do they wont align properly. Two arrays side by side and two tikzpictures side by ...
5
votes
3answers
49 views

Array environment cell over two rows keeping alignment

I am trying to span braces over two rows while keeping the aligment in the following example correct alignment in this case the alignment is correct. I think I am nearly there, any help would be ...
1
vote
1answer
31 views

Reflect / flip / rotate a table or array without rotating the elements

I have been working on an array environment, but I have realized that it would take up less space if it was reflected across the diagonal (I suppose this is not quite the same as flipped or rotated, ...
3
votes
1answer
28 views

Can I nest an array in a table?

In my code I have this: \begin{equation*} \left. \begin{array}{rcl} 2x\lambda &=& 2 \\ 2y\lambda &=& 3 \\ 2z\lambda &=& 4 \\ x^2+y^2+z^2 &=& 1 \\ ...
1
vote
1answer
52 views

Use of \@array doesn't match its definition

I am doing something wrong here. I get a message saying Use of \@array doesn't match its definition. `\@ifnextchar ... \reserved@d =#1\def \reserved@a { #2}\def \reserved@b {#3}\f... l.108 ...
2
votes
1answer
56 views

How to add horizontal line for subtraction in array

I already have this: \documentclass{article} \usepackage{amsmath} \begin{document} $k:\left\{ \begin{array}{cccccc}x & = & -3+3\lambda & \Big| & 4 & \Big| \\ y & = & ...
2
votes
1answer
32 views

Horizontally align objects inside arrays of different equations

In this set of equations... ...is it possible, to horizontally align the columns with the xes? More precisely, I would like to shift the right hand side of the upper equation, such that the xes ...
6
votes
2answers
61 views

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

Break the line in array mode

I have used the array mode to write cases. But sometimes the lines are too closed to each others, I want to add a break line between them, sometimes it works, but sometimes no. Here is my MWE: ...
2
votes
1answer
44 views

Tweak and prettify a nested table

I am attempting to create a table in which cells of one of the columns contains a nested table as the cell value. So far I have got this: \documentclass{article} \usepackage{array,multirow} ...
16
votes
2answers
128 views

amsmath matrix vs loading the array package

Here is an interesting interaction. Consider the example below. When ever the array package is loaded, extra space appears on the right in the output. Any ideas as to why? ...
2
votes
1answer
42 views

Can't get two equations to align using eqnarray

I'm trying to align two equations using eqnarray. Sample: \documentclass{article} \begin{document} \subsubsection*{\begin{center}Variance equations\end{center}} \begin{eqnarray} \mu = ...
2
votes
1answer
46 views

missing $ inserted in arrays

this is my code: \documentclass{article} \usepackage{amsmath} \begin{document} \clearpage \begin{center} \begin{minipage}{.6\textwidth} \begin{equation*} a^2 + b^2 = c^2\newline \end{equation*} ...
3
votes
1answer
35 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
44 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
121 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
28 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
75 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
207 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
101 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
47 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
49 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
48 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
44 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
82 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
84 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
79 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
28 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
33 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
5answers
334 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
71 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
136 views

Vertical bar turning horizontal

Here is an MWE: \documentclass[a4paper]{report} \usepackage{graphicx,multirow,multicol} \makeatletter \newcommand{\blocks}[9][-10]{ ...
4
votes
2answers
416 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
71 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
45 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
94 views

How to obtain a justified 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
482 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
66 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
72 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
71 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
143 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
57 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
189 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
56 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
139 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
678 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
60 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} ...