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

learn more… | top users | synonyms

6
votes
2answers
91 views

Is the blkarray package compatible with Xetex and amsmath?

Running xelatex on the file \documentclass{article} \usepackage{amsmath} \usepackage{blkarray} \begin{document} \begin{blockarray}{c} 1 \end{blockarray} \end{document} gives the error ...
2
votes
2answers
41 views

Alignment in function definitions

I have the following code for the definition of a function \begin{align*} \varphi_{\sigma}\colon &E \longrightarrow E \\ &(x_{1},x_{2},...,x_{n}) \longmapsto ...
2
votes
1answer
41 views

A specific problem with alignment of arrays with brackets

In the example below I would like to have the "on" exactely below each other, i.e. to put it in one table - that is of course without any problem, BUT the bracket and the numbering! How to get it in ...
0
votes
1answer
55 views

How to draw adjacency array with TikZ?

I will draw a graph representation as adjacency array, also something like that: How to make it? I didn't found any examples like the picture above.
4
votes
2answers
72 views

newcommand: passing coordinates as a single argument

Is it possible to pass an array argument to newcommand and then access those individual array elements? For example, if I wanted to multiply the third element of the array (first argument) by the ...
1
vote
0answers
47 views

Extra space before the first row of an array

Why is there so much space before my array's first row? How can I fix it (as I don't believe that this is its default behaviour)? \documentclass[12pt]{article} \usepackage{parskip} ...
4
votes
1answer
60 views

Why is the spacing different after a multiline array environment?

My goal is to get equal line spacing between text and array environments. This mostly works without any modification, except for one case: If the array environment consists of more than one line, the ...
3
votes
1answer
78 views

Long division display

\documentclass[12pt]{article} \pagestyle{empty} \begin{document} $$ \begin{array}{cccccccc} & & & 1 & 0 & 9 & 8 & 9 \\ 13 & ) & 1 & 4 & 2 & 8 & 5 ...
4
votes
1answer
44 views

array and command in column' s definition of table

to develop a specific class, I would like to define columns in a table by a macro definition. Like in this MWE \def\titi{c|c|c} \begin{tabular}{\titi} a& b&c\\ a& b&c\\ a& ...
1
vote
1answer
74 views

Stating linear program

i want to formulate a linear program. But all i found is not what i am looking for. It should look similar to this picture: The main difference is that i want on right sight automatic numbering ...
3
votes
1answer
44 views

How to use booktab or type this Table in REVTex4 / REVTex4-1

I wish to type this table in REVTex, however, the code below does not work for \documentclass{revtex4} but only for \documentclass{article}: \documentclass{revtex4} ...
2
votes
2answers
63 views

How can I format this in lyx?

I'm trying to format a confusion matrix in lyx. I want the data to look like this. a b c d e f g <-- classified as 1 5 10 8 4 2 0 | a = 3 3 ...
4
votes
1answer
68 views

Is there anything like “displaystyle” for “arrays”? [duplicate]

I have this equation and I would like to "get more space" into it, how to do it? \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} ...
1
vote
1answer
35 views

Extending a line in the Table

I wish to have a Table setting like the following graph with an extra line inserted between a and b. Namely, I wish to extend the line separating 1, 4 and 2, 5 to the line separating a and b. The ...
4
votes
1answer
45 views

LaTeX elsarticle \cline for array mode

I am making a matrix like this one: \documentclass[preprint,11pt,3p]{elsarticle} \usepackage{amsmath,epsfig,amsfonts,amssymb,subfig} \usepackage{amsfonts,mathdots} \usepackage[ngerman]{babel} ...
0
votes
1answer
49 views

I want to make an equation, but I can't get what I want on the correct lines

$$\frac{\partial u}{\partial x}(x,y)=f(x,y,u(x,y))$$ $$\frac{\partial u}{\partial y}(x,y)=g(x,y,u(x,y))$$ $$u(x_0,y_0)=u_0$$ I want to write this but as an equation, I have tried \begin{equation} ...
5
votes
1answer
39 views

Package array error: Illegal pream-token (\ifthenelse)

This table environment mymulticolumn has three arguments, the first of which sets an optional \arraystretch, the second of which sets the "apparent" number of columns (either 2 or 3), and the last of ...
2
votes
1answer
35 views

Align an array horizontally to the center of the page

I am trying to make an array align to the center of the page. My search for the answer was fruitless as all of the questions (that I have find) refer to the alignment of the array elements and not ...
1
vote
1answer
32 views

Using array inside alignat to create equation legend

I want to describe the parameters in used in the equation in two columns below the equations. Something like this **** = ******* *** = ********** - - | A: ...
4
votes
3answers
202 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
39 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
50 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
58 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 ...
2
votes
1answer
49 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
31 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 \\ ...
2
votes
1answer
199 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
63 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
44 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
65 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
82 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
53 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} ...
19
votes
2answers
157 views

amsmath matrix vs loading the array package

Here is an interesting interaction. Consider the example below. Whenever the array package is loaded, extra space appears on the right in the output. Any ideas as to why? ...
2
votes
1answer
54 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
54 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
40 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
52 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
144 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
32 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
86 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
322 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
116 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
57 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
51 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
51 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
66 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
92 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
96 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
82 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
31 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\{ ...