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

learn more… | top users | synonyms

7
votes
3answers
391 views

How can I determine the size of an array?

After a long search period, I was not able to figure out how to determine and use the len of an array like this: \def\mar{ 1,2 } \path let \p1=($(rec.west)-(rec.east)$), ...
7
votes
3answers
2k views

Drawing Multiple Diagonal Arrows in a Table

My question is basically the same as this one, but with many arrows instead. (I'd like to see the TikZ solution--I feel like once I get it here, I'll be able to extrapolate and do it in other cases ...
7
votes
2answers
306 views

How to stop fractions in display equations from running into each other?

Is there some standard way to create multiple display equations like the following without having to use: \renewcommand*{\arraystretch}{2} (so that the two rows in the second equation don't get ...
7
votes
1answer
1k views

tabular and array

Consider the following example: \documentclass{article} \usepackage{array} \usepackage{calc} \begin{document} \begin{tabular}{p{\textwidth - 3cm}|p{1cm}<{foo}} Caption1 & Caption2\\ ...
6
votes
1answer
259 views

How to model {smallmatrix} with {array}?

It is pretty normal, I guess, to use \begin{array} ... \end{array} to model matrices, when more control is required than you get with pmatrix, bmatrix, etc., with the proper \left and \right, and the ...
5
votes
2answers
643 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?
5
votes
4answers
867 views

Big curly brackets and rotated text around table

I have a rather cramped looking table here showing the chance of a nurse touching a surface type given (s)he is doing a certain type of care. I would like to make a large curly bracket to the left of ...
5
votes
1answer
6k views

Columns width of array environment

I'm using the array environment and have something like this: \begin{array}{|c|c|} \hline \textbf{x} & \textbf{y} \\ \hline \hline t_1 & lon_1 \\ \hline \end{array} I ...
4
votes
3answers
182 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 ...
4
votes
2answers
97 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
1answer
134 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 ...
3
votes
1answer
1k views

How to draw the following table (simplex tableau)

I would like to draw table, I tried, \begin{equation} \begin{array}{c} z \\ s_1 \\ s_2 \\ s_3 \end{array} \begin{bmatrix} \begin{array}{c|ccccc|c} z & x_1 & x_2 & s_1 & s_2 ...
3
votes
1answer
314 views

Pgfplotstable adding a growth column without column names and then offsetting it

I'm trying to create a new column in a pgfsplotstable which shows the compound growth over the preceding columns. The columns don't have names, and I want to shift the column a little to the right to ...
3
votes
1answer
799 views

using multiple brace in array environment

I want to create something like that Clearly every element should be coherent with eachother and line need to be connected. This is a MWE, how should I modify it to make it coherent: ...
2
votes
1answer
41 views

How to write an array of equations without using eqnarray?

I heard that it is recommended to use align or array. But how should I do so to replace the use of eqnarray? Thank you very much.
2
votes
2answers
147 views

Difficulty modifying an array environment

I have an array that I had past help on and now I am attempting to modify that array. However, when doing so, parts of my "theorem" keep getting shifted to the next line. Here is a MWE: ...
2
votes
1answer
341 views

I keep getting an error in line 38 saying “Extra alignment tab has been changed to \cr.”

\documentclass [12pt]{article} \oddsidemargin=0pt \topmargin=0pt \textwidth=6.5in \textheight=8.5in \begin{document} \begin{center} {\large\bf\LaTeX\ Example 6} \end{center} We can typeset array ...
2
votes
1answer
2k views

Two double-line equations need double left brackets

I have four lines of equations. The first two and the second two need to be grouped by a left bracket, and all four need to be grouped by one overall left bracket. I am using an array within an ...
2
votes
1answer
426 views

subfloat with array?

the following code produces an error: missing $ inserted. 1.109 \end{array} any suggestions on what I am missing: \begin{figure}[H] \caption{My caption goes in here.} \centering ...
1
vote
0answers
62 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} ...
1
vote
0answers
33 views

“]” not working [duplicate]

I tried to compile something like the following but it is not compiling: $$ \begin{array}{ccc} [u,v]=0&,&\text{if bla}\\ [u,v]=0&,&1 \end{array} $$ I also tried ...
1
vote
1answer
65 views

Question about the underbrace in combination with the array

I'm trying to use the \underbrace option, and I kind of managed to make it work with the following code: \begin{equation} \begin{array}{rcl} \left(\Lambda_1 \Lambda_2\right)^T G \left(\Lambda_1 ...
1
vote
1answer
61 views

svmono array padding

The svmono class (available here) butchers spacing inside arrays; compare \documentclass{svmono} \begin{document} $\begin{array}{|l|} text \end{array}$ \end{document} to the same in the article ...
1
vote
2answers
705 views

How to make equal width columns?

Based on Leo's answer but I removed one column and replaced the \big) with a vertical rule. Now I want to make all columns have the same width. How to do this? \documentclass{article} ...