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

learn more… | top users | synonyms

0
votes
0answers
16 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
65 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
1answer
25 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
74 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
32 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
65 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
26 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
61 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} ...
9
votes
5answers
504 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
2answers
130 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
50 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 ...
10
votes
3answers
3k views

Border matrix with multiple indices on top and bottom

How can I write a matrix where there is an index at the top and also at the bottom? \bordermatrix doesn't seem to have an option for multiple indices.
5
votes
1answer
52 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
493 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
61 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
123 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
50 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
85 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
89 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 ...
2
votes
1answer
52 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, ...
2
votes
1answer
380 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 ...
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
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} ...
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
94 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& ...
2
votes
2answers
67 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 ...
1
vote
1answer
79 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
71 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} ...
1
vote
1answer
41 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
67 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} ...
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? ...
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
76 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
40 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
42 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: ...
2
votes
2answers
705 views

Multicolumn/multirow inside align

Is there a way to use \multicolumn or \multirow inside an array environment which is inside align environment? For instance, the following piece of code gives me an error. What is the way around this? ...
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
42 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
67 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
60 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 ...
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 \\ ...
9
votes
1answer
945 views

Positioning of numbers in gb4e.sty examples

I'm planning to use the following numbered examples in a document (see example below). I would like the number to be at the top of the example, but for the ones with diagrams it ends up in the middle. ...
17
votes
5answers
10k views

bordermatrix with blocks

I need to write a complicated matrix, that has a structure as in the attached picture.
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 & = & ...