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

learn more… | top users | synonyms

4
votes
3answers
55 views

How to typeset linguistic AVS

How can I typeset attribute value structures (AVS) and rules like the ones seen here?
2
votes
2answers
37 views

Text centers in the cells and leaning text

Please I would like to make a table as this one but I have some problem to make leaning a text and centered in the cells. \documentclass[11pt]{book} \usepackage{geometry} ...
0
votes
0answers
20 views

How can I use multicolumn or multirow in a tabular using the array package global formatting technique?

Awhile ago, @robintw asked a practical question: Make first row of table all bold It uses the array package to cleverly inject formatting code to the header row columns. Clever Table Row Formatting ...
3
votes
1answer
26 views

Can split and array work together?

I have the following problem. I need an equation which contains arrays and which should be on different lines because too long for one line. This is the code: \begin{equation} \begin{split} ...
2
votes
3answers
77 views

What's wrong with my table?

I am trying to write the following entries in a table \begin{table}[h] \centering $\begin{array} \toprule k & \lbrace c_{kj} : j=1, \cdots , 8 \rbrace \\[1ex] 1 & \lbrace 0 , 190 , 359 , ...
3
votes
1answer
35 views

Align-like environment in a column of array

I have an array in which one of the columns is a polynomial, and I would like to align the terms of the polynomial for each row of the array. My hack is to use \phantoms all over the place, but is ...
3
votes
1answer
71 views

How to put a box around just one equation inside eqnarray?

I would like to put a box around \dot{\mathcal{N}}_0+ik\mathcal{N}_1=-\dot{\Phi} inside the eqnarray below. I used \boxed{}, but did not work. \documentclass[a4paper,12pt]{article} ...
3
votes
1answer
27 views

Beamer : display the lines of an array pause by pause ( is there an alternative to \hline ?)

I would like to display the different lines of an array, using overlays. However I have trouble with the \hline command which seems to include an carriage return. Here is a minimal example, I guess ...
0
votes
0answers
18 views

different modes to typest systems of equations [duplicate]

Would it be bad style to use in displaymode an array with three colums that are right-center-left ("rcl") oriented instead of eqnarray, to typeset systems of differential of equations ? The spacing ...
2
votes
1answer
71 views

Decreasing size of confusion matrix

I used proposed code in How to construct a confusion matrix in LaTeX? to create a confusion matrix: \documentclass{article} \usepackage{array} \usepackage{graphicx} \usepackage{multirow} ...
5
votes
2answers
133 views

Matrix inside matrix

How I can make a matrix inside a matrix as shown in this picture? Indeed, I want to treat every block as a separate matrix. For example, I want to add braces over and under the second matrix by ...
2
votes
1answer
54 views

Strikethrough rows and columns in matrices

I've found this code from How to cross a row in matrix with a line? \documentclass{article} \usepackage{tikz} \newcommand{\pmark}[1]{\begin{tikzpicture}[overlay,remember picture]\node(#1)at ...
5
votes
1answer
54 views

Illustrating a matrix assembly within the array enviroment

I'm having trouble aligning the parentheses of a matrix assembly (parentheses within the same matrix). Essentially, what I want to do is this (excuse the terrible paint-job): Where the submatrix ...
7
votes
4answers
502 views

How would you reproduce the Leibniz binary table

I would like to reproduce the original Leibniz binary table (as seen here). The most precise the better...
2
votes
2answers
34 views

tabular array error in the width

I would like to create a matrix with index (left and top position) and a sum columns and rows (bottom and rigth position). I have tried that : \documentclass{article} \usepackage{amsmath} ...
5
votes
1answer
46 views

Arrays in the text

In my example below, I need to write it "nicely", i.e., to have the array with ones smaller, less space around,...Anyone knows how to do it? \documentclass[a4paper,12pt]{article} ...
0
votes
1answer
63 views

Blockarray errors

After inserting a second blockarray-environment in front of a first one I get a dozen error messages for lines where none appeared before. It seems to have to do with the inserted ...
1
vote
1answer
62 views

Numbering an array of equations

I want to do this thing in an equation array mode. Exactly same in the figure.
7
votes
2answers
126 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
52 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
54 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
89 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
90 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
57 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
63 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
96 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
49 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
80 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
74 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
68 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
70 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
42 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
68 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
54 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
80 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
41 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
44 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
211 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
43 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
68 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
61 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
54 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
34 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
400 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
71 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
56 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
74 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
85 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
58 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
178 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? ...