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

learn more… | top users | synonyms

9
votes
1answer
260 views

What is best practice for aligning distinct arrays or tables side-by-side?

I have two related tables that could naturally be displayed side-by-side but don't have to be. However, it saves space to display them side-by-side rather than one atop the other. If I do so without ...
2
votes
1answer
280 views

How can I write a matrix using the whole page width in a two-colum document?

How can I write a big matrix (or array) in the width of the page while using two columns for all paper? I know that for figures (figure*) can be used, is there any way to do it for arrays?
7
votes
3answers
287 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)$), ...
4
votes
1answer
240 views

Counters for use in array/tabular cells

The following practical example \documentclass{article} \usepackage{array}% http://ctan.org/pkg/array \newcounter{tabcol}\newcounter{tabrow} \newcolumntype{C}{>{\stepcounter{tabcol}}c} ...
6
votes
2answers
2k views

Extra vertical space after \hline causes a gap in the right border of an array

I wanted to put a bit of space after an \hline in an array; the main suggestion floating round the Internet seems to be to use \hline \\ [-1.5ex] Unfortunately, this causes a gap in the line on the ...
3
votes
1answer
131 views

Line breaking and floating

I have a matrix and I want to show some lines of text floating right to the matrix. The problem is that the following code shows two lines of text without executing \\ break-line. \[ M = \left( ...
5
votes
1answer
4k views

LaTeX doesn't recognize \end{array}

Following code ... \begin{align} \begin{array} 1 & 2 & 3\\ 1 & 2 & 3 \end{array} \end{align}... results in numerous errors: - Argument of \array has an extra } (line 0) - ...
5
votes
1answer
277 views

What environment to use in writing formal deductions?

Learning about mathematical logic, I have to write formal deductions*. How can I write them using TeX? Any feedback is welcome. (*)Roughly they are numbered lists over two columns, the first ...
6
votes
1answer
2k views

Breaking an array of equations

I wanted to break long equations in an array environment. To do this, I used dmath environment from breqn package but it did not work. How can I write long equations in an array environment with line ...
1
vote
1answer
267 views

Overbrace is not alligned correctly

Here is an equation: \documentclass[a4paper,10pt]{report} \usepackage{xltxtra} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{array} \usepackage{unicode-math} ...
3
votes
3answers
5k views

Array alignment within align environment

I am trying to typeset an array within an align environment, aligning to a specific separator in the array. In the following example, I want to align on the ":" separator in the array. ...
4
votes
1answer
441 views

Text column in array

I am trying to do something that seems relatively simple but I can't get it to work. Basically, I would like one of the columns in my math mode array to be text, so I am trying to use pre and post ...
5
votes
1answer
949 views

Changing the fontsize of selected column in table

I want to decrease the font-size of a selected column. I tried \documentclass{article} \usepackage{multirow,array} \usepackage{booktabs} \begin{document} ...
10
votes
3answers
2k views

Using \underbrace with table columns

I have the following code: \begin{displaymath} \begin{array}{|c|c|c|c} p & q & p\lor{}q & p\land{}q \\ \hline 0 & 0 & 0 & 0 \\ 0 & 1 & 1 & 0 \\ 1 & 0 ...
4
votes
3answers
1k views

adjust the array size to the size of the frame+Beamer

I inserted a table into a page of a presentation Beamer but the problem is that the array size exceeds the frame. How to adjust the array size to the size of the frame?
1
vote
1answer
99 views

Compiling errors in a matrix that correctly show up?

I have a little problem with nested arrays. The following examples give the correct matrix after a Latex=>PDF run but generate LaTeX errors ! missing $ inserted. <inserted text>, that I would ...
9
votes
4answers
152 views

Restore the original array code

The arraypackage redefines array in various ways. I was woundering if anyone had made a package containing a localized (prefixed) version of the kernel array? I have a document were we have a simple ...
4
votes
2answers
2k views

left aligning the conditional statement inside an array

I have equations of the form a = b + d for i <= 4, j < 3 = c for i = 5 = d - e + u for i > 5 I am writing them using the following code in latex: \begin{equation} a = ...
10
votes
3answers
2k 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.
8
votes
3answers
561 views

array within frac, using nath package

I use the nath package to get automatically-sized delimiters, but it breaks having a \begin{array}{…}…\end{array} within a \frac{}{} (simply removing the \usepackage{nath} below fixes the example, but ...
2
votes
1answer
351 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 ...
11
votes
2answers
763 views

Problems with alignment of sequences

I want to align two sequences: a_1, b_1, c_1, d_1, e_1 etc. a_2, b_2, c_2, d_2, e_2 etc. here's what I wrote \begin{align} \notag &a_1,\ &b_1,\ &c_1,\ &d_1,\ &e_1\ ...
8
votes
1answer
3k views

Add more horizontal space in an array

Is there a setting I can input to the array environment, which will slightly increase the horizontal spacing between each entry? I would appreciate it if you could test your code on the following ...
6
votes
1answer
441 views

How can I update the array package? Warning from tabu

I am trying to use the tabu package, but it returns a warning which does not seem like a good sign. Does anyone know how to resolve the following issue? LaTeX Warning: You have requested, on input ...
7
votes
4answers
3k views

How to align a system of multiline equations?

I've got a system of equations, each of them doesn't fit the page width, so I'm searching the way to align them so that: the brace should appear to the left with no indentation the first line of ...
7
votes
4answers
515 views

What is the best way to indicate repeated off diagonal elements in a matrix/array?

I'd like to typeset a matrix of the following kind: When the symbols involved are big, like, in place of $r$, suppose we had $\mu(k-1)$ and in place of $\lambda$, we had $\mu(k-2)$, the matrix B below ...
6
votes
3answers
1k views

Color a line in array

Is it possible to change a color of a single line inside an array environment? I have an array of possible solutions and I'd like the best one to be highlighted, the array is declared like ...
10
votes
3answers
4k views

Convert numpy array into tabular

I am doing some data analysis in python, putting the results in form of a matrix stored into a numpy array. I would like to put this results into a report and the best way would be to put a table with ...
5
votes
1answer
4k 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 ...
7
votes
2answers
284 views

Is it blkarray compatible with beamer?

When I try next code \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage{blkarray} \begin{document} \begin{frame}{Title} \[ \begin{blockarray}{c|c} ...
3
votes
1answer
683 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: ...
1
vote
2answers
222 views

How to get the command (csname) content in another command (csname)

I'm trying to make a class following my school's standard for thesis and I got a problem when I tried to implement a list of acronyms, because this list should be alphabetically sorted and the ...
2
votes
1answer
309 views

Latex words within eqnarray are getting emphasized

I have a latex equation within an eqnarray as follows, \begin{eqnarray*}\nonumber f(\xi) = \min \xi\\ where, \forall n_{j} \in N, \xi = \max (\xi_{1}, \xi_{2}, .., \xi_{j})\\ s.t.\\ \forall n_{j} ...
8
votes
3answers
2k views

Page with Symbols and Notation

I want to make a section for symbols and special notation, which should look like this: What would you suggest in doing this? Should I just do like a table and create an array of 3 columns?
6
votes
2answers
6k views

Curly braces and nested arrays

I am trying to reproduce the equation of the image below. I am using an array environment to create the first big curly brace. I have tried to nest a second array to produce a second curly brace, but ...
4
votes
1answer
140 views

Paretheses should match same height on single line in multiple arrays

Given is following formula: \[ a^{(k)}=\left(\begin{array}{c} a_1^{(k)}\\ \vdots\\ a_n^{(k)} \end{array}\right)\to\left(\begin{array}{c} a_1\\ \vdots\\ a_n \end{array}\right)=a \] The first ...
9
votes
3answers
2k views

Problems using `\left\{` in array environment

I am trying to define a matrix in segments by enclosing the entries of the matrix in boxes, and also using the open and closed braces to label those segments. So far I have developed the following ...
4
votes
2answers
522 views

generating LaTeX tabular code during compilation

I use LaTeX for scientific reporting in brain imaging (fMRI). I have a tabular array in LaTeX, that contains quite a lot of rows and columns, which both are brain regions and in the each intersecting ...
2
votes
1answer
100 views

How to create an array with the last column align on the right at the end of the page (using array environment))

I would like if possible using array environment, to align the last column of my array to the right and at the end of the page. Something like that: \begin{array}{\textwidth}{l r} first column ...
14
votes
1answer
2k views

Multivariate polynomial long division using LaTeX

How do I typeset polynomial long division using multiple variables in LaTeX? I am hoping to be able to do polynomial long division using 2 or more divisors. Currently, the packages I am using are: ...
20
votes
3answers
2k views

How do I create a Shidoku grid?

I can't figure out how to create a Shidoku grid using LaTeX. In other words, I am trying to have a 4x4 grid with a bold line separating the 2x2 subsquares. I have the sudoku package but it won't ...
2
votes
1answer
148 views

Sized delimiters (\left( \right)) are too tall for vertically aligned array (\begin{array}[t])

Please compile the below and the problem will be clear. \documentclass{article} \begin{document} \noindent Compare \[ \begin{array}{l} \land ~a\\ \land \left( \begin{array}[t]{l} \lor ...
5
votes
2answers
695 views

Numbering Vertical Addition Problems

Right now I have the following for a vertical addition problem but I would also like it to be numbered without messing everything else up. \begin{array}{c@{\,}c} & 1 \\ + & 1 \\ \hline ...
5
votes
2answers
1k views

breaking lines in a matrix/array environment

I have a matrix whose entries are quite long and must be broken up across multiple lines. The desired break-points are the + operators separating terms in each matrix element. The following code is ...
6
votes
2answers
3k views

Make each column of a table have same width

I have a table as follows: &$\begin{array}{c|cc|cc} & x & \multicolumn{1}{c}{y} & i & 0 \\ \hline x & 0 & \multicolumn{1}{c}{} & -49 & \\ y & ...
2
votes
1answer
2k views

Caption of a table in an array-environment

I used the array-environment to construct a table of data: \documentclass[12pt,landscape]{article} \usepackage{amsmath,amssymb} \usepackage{array} \usepackage{booktabs}% for top-,mid- & ...
4
votes
2answers
236 views

Vertical alignment through all document

I am processing a text, which is the specification for my mathematical package. The typical style for the specification looks as follows: I can align expressions only in a single environment, using ...
12
votes
4answers
3k views

PGF/TikZ: How to store strings in array?

I'm trying to generate a lot of name badges. I'm wondering, is it possible to store the names as strings in one array, according to the PGF manual: ...
2
votes
1answer
13k views

How to use tabular/array to arrange figures [duplicate]

Possible Duplicate: How to use images in a table? I'm looking for a solution for automatic alignment of figures within my tex-file. I would like to keep it as simple as possible. I have the ...
7
votes
1answer
2k views

Make every element of an array displaystyle?

Is there a way to make every element of an array be \displaystyle? I don't want to do something like \everymath={\displaystyle} (or whatever it should be) because I want this for a particular array ...