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

learn more… | top users | synonyms

3
votes
2answers
118 views

Text and symbols get capped in math mode

I use these the following setup in my preamble: \documentclass[oribibl]{llncs} \usepackage[utf8]{inputenc} \usepackage{todonotes} \usepackage{amsmath} \usepackage{amsfonts} ...
2
votes
2answers
139 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: ...
9
votes
1answer
151 views

Matrix looks flat

I would like to typeset a partitioned matrix in LaTeX with dashed lines. After a quick search on TeX.SE, I found this post with a nice example of such matrices. I tried it on my computer and the ...
2
votes
2answers
74 views

How can I structure an enumeration using an array?

I want to structure an enumeration using an array; that is, I want \begin{enumerate}[i] \begin{array} {lr} \item $a \sim a$ & (reflexivity) \item $a \sim b$ then $b \sim a$ ...
0
votes
0answers
24 views

How to align arrays? [duplicate]

What would be the easiest way to align the following block to the left? \[ \left. \begin{array}{l} \text{Wenn A eintritt, tritt auch B ein.} \\ \text{Aus A folgt B.} \\ \text{A impliziert B.} \\ ...
0
votes
0answers
22 views

Table error after using \cline [duplicate]

I try to create bigger table in TeXworks where are different horizontal as well as vertical lines. Everything works fine but it always crash on the \cline command (when I use \hline it works ...
10
votes
3answers
113 views

Array padding not right

I have the following array environment: \begin{array}{ccc} 0 & = & \text{some equation} \\ 0 & = & \text{some other equation} \\ & \vdots \\ 0 & = & \text{last equation} ...
6
votes
2answers
216 views

Vertical lines in matrices should be aligned

I'm trying to write matrices one below the other but I want the vertical lines (compare example below) to be aligned. Eventually, there will be several matrices in one document - in the example below ...
2
votes
1answer
227 views

Logbook for daily activity with automatic hour count [closed]

I am writing a logbook at work in which I note down when I started, left and how much of a break I took in between. I do this for every day, but I would like to use the result to display it in a table ...
6
votes
3answers
3k views

Using a big brace over multiple lines - multiple lines left of it

I am super helpless, I wanna do the following: Mathmode, 2 lines on the left, a brace over both (using array) and than I wanna have 3 lines on the right. A small example: \begin{align*} \left. ...
2
votes
1answer
69 views

Left alignement and right alignement

I would like to realize an alignment as follows, with array environment by preference: abcde fghijk lmnnnnn opq rstuvwxyz So, abcde and lmnnnnn are left aligned; fghijk and opq are right aligned. ...
6
votes
2answers
179 views

How to match left alignment of equations in math mode outside and inside an array?

My code is shown below, every equation is left aligned, my problem is that the equations inside the array enviroment seem to be indented. How can I align all the equations to the same vertical line? ...
5
votes
1answer
139 views

Array indexing does not work for the node label

There is something I cannot understand. I'm using array indexing and it works for determining the radius of the circles and to positioning the nodes. However it does not work as the node content. ...
3
votes
1answer
220 views

circle items in an array

So I would like to circle two of the elements in my array at the same time. Even though they are in different rows and or columns. Here is what I have so far. \documentclass{article} ...
4
votes
1answer
135 views

how to create columns of array

I use the following code to generate this: \begin{center} 2 IteraciĆ³n\\ Fila $S_{1}$ \end{center} \small \[\begin{array}{crl} \kbordermatrix{\mbox{ }& & & & & & & \\ ...
7
votes
2answers
497 views

Modify locally the “array” environment for Equation Systems

When I started to use LyX 2.0.6 I noticed that when an Equation System is needed, there are two options available to typeset it: using the appropriate command on the Math Line cases, or ...
1
vote
1answer
64 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 ...
2
votes
1answer
79 views

Formatting a table

I am trying to format a table but everything errors since I am trying to put a display environment in an array (I also tried a tabular) environment. \documentclass{article} \usepackage{mathtools} ...
0
votes
0answers
29 views

I dont see the error but the message “illegal character in ar.” popped up (line 14) [duplicate]

\documentclass [12pt]{article} \oddsidemargin=0pt \topmargin=0pt \textwidth=6.5in \textheight=8.5in \begin{document} \begin{center} {\large\bf\LaTeX\ Example 7} \end{center} This example demostrates ...
2
votes
1answer
235 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 ...
5
votes
1answer
82 views

delarray and colortbl issue

There seems to have a compatibility issue between the colortbl and delarray packages because when compiling the following code : \documentclass{article} \usepackage[T1]{fontenc} ...
2
votes
1answer
145 views

Unusual problem with eqnarray

I have this code that gives me two problems: y and x are displayed incorrectly in the first and third row of the eqnarray, like if they had a \rm in front of them, why? it gives me main.tex:91 ...
8
votes
1answer
924 views

cases and spacing between array rows

The space between two rows seems to differ if the cases environment is used. Have a look at the following example: \documentclass{minimal} \begin{document} \[ \begin{array}{l} f(x) =% ...
3
votes
1answer
1k views

Missing $ inserted. [\begin{array}{|c|cccccccccc|}]

This latex code \begin{figure}[H] \centering \begin{array}{|c|cccccccccc|} \hline ~ & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 \\ \hline 1 & 1 & 2 & ...
3
votes
1answer
189 views

Distance between array rows

I am using the array environment to create a multiple row bracket expression, as folows: \documentclass{article} \begin{document} \begin{equation} \left\{ \begin{array}{lll} ...
3
votes
1answer
349 views

Array as subscript

While $\begin{matrix} 2 & 4 & 6 & 5 & 4 & 3 & 2 \\ && 3 \end{matrix}$ looks great for the highest root of $\mathsf E_8$, $s_{\begin{matrix} 2 & 4 & 6 & 5 ...
3
votes
1answer
475 views

Replicate a typesetting of polynomial long division

I found a typesetting of series long division I want to replicate in a book I've been reading: So I tried with the following code (using different polynomial than the example): \begin{align*} ...
2
votes
1answer
58 views

Truncated body in tabular array mode

I have the following format : \documentclass[12pt]{book} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} %\usepackage{graphicx} \usepackage[total={7in,10in},top=1in, ...
6
votes
2answers
285 views

When substack and array doesn't work

I am trying to write a formula. But both substack and array cannot fulfil my needs (as far as I know how to use them). The first is how I want it to look like. But I need an i'\neq i below the ...
4
votes
1answer
867 views

How to add vertical and horizontal dashed lines in array and tabular enviroments?

I want to present big matrices using concatenation of rows and columns with dashed lines. Also, I need to do the same for some tables. Is there any way to insert dashed lines in arrays and tabulars, ...
10
votes
2answers
334 views

Selective alignment tabs in tabular/array?

For a while now I've been thinking about an array/tabular feature that would be quite nice to have. It doesn't seem to exist yet, as far as I can discover. And unfortunately, I can't spare the time ...
3
votes
2answers
2k views

Scale down a array contained in an equation - beamer

I have an array inside an equation in a beamer presentation. I tried scaling it down using resizebox but it gives me error : \begin{equation} \label{eq:recursive} \resizebox{\linewidth}{!}{ ...
3
votes
1answer
328 views

Numbering all lines of an array

I know there are already many topics about that but I couldn't find an appropriate answer (most of the time the given solutions are not adapted to my case). Here is my code (some command have been ...
3
votes
1answer
759 views

Array inside Algorithm with underbrace and sidebrace

I'm writing my master's thesis (using LyX's thesis template) and am trying to display an algorithm. Since LyX's algorithm support doesn't quite cut it for me, I've decided to go ERT with LaTeX code ...
1
vote
1answer
478 views

“[” Square bracket Curiosities in an array environment [duplicate]

I am aware of the fact all of the following examples are in fact not the right way of doing whatever they do. But, I came across these examples by playing around with the code that WinEdt produces for ...
5
votes
1answer
260 views

Drawing a grid on each image inside the array of images

Please see what I have written,when I need individual grid on each of picture inside my figure-array. In contrast to previews question Drawing a grid on array of images. Question now is why I can't ...
2
votes
1answer
568 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? ...
9
votes
3answers
7k views

aligned environment of amsmath vs array environment

Today I found out the existence of the aligned environment of the amsmath package. However, I can't see the advantage of using it instead of the array environment from the example provided in ...
6
votes
2answers
818 views

How to make frame in matrix? [duplicate]

I want to draw : I have tried to make this by the following command : \documentclass[11pt,twoside,openright]{book} \usepackage{geometry,tikz,amsmath} \begin{document} ...
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 ...
4
votes
2answers
663 views

“! Missing number, treated as zero.” error in an array

\documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[a4paper]{geometry} % change later to \usepackage{geometry} ...
6
votes
3answers
377 views

How to use data structures in TikZ?

I created a foreach statement, using expl3 and TikZ/pgf: \documentclass{article} \usepackage{tikz} \setlength{\parindent}{0cm} \usepackage{expl3} \ExplSyntaxOn \cs_new:Npn \Counter #1 \Stopper { ...
6
votes
2answers
733 views

Several lines of formulas to the left of one curly brace pointing to equation number

How to make several lines of equations under one curly brace from the left side, such that it point to a reference number. Now I do something like this: \begin{align} \left. \begin{array}{ll} a = b ...
4
votes
1answer
652 views

Problem while using multirow with graphics

I have a problem with the multirow command. \begin{array}{|c|c|} \includegraphics[width=1.5in]{1} & \multirow{2}{*}{ \includegraphics[width=1.5in]{3} } \\ \hline \includegraphics[width=1.5in]{2} ...
2
votes
1answer
577 views

Brace spanning multiple rows in a table and horizontal alignment

I'm a beginner trying to do an brace inside a table, that is spanning multiple rows. I assume the best way to achieve this is to do a two-row tabular environment, with an array environment for the ...
3
votes
1answer
65 views

Does align environment (or an alternative) have an option to choose left, center or right alignment?

I have quite a long set of equations, written in an array environment, but I can't seem to get it to split so that it is spread over multiple pages. I could use the align environment, but I can't seem ...
7
votes
2answers
527 views

cases environment inside an array

LyX is giving a lot of error messages for my Latex code which runs in other places. \[ \begin{array}{rl} p_{Y \mid H_1}(y \mid H_1) & = f_X(g^{-1}(y))\left| \dfrac{dg^{-1}(y)}{dy} \right| \\ \\ ...
5
votes
4answers
805 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 ...
10
votes
3answers
15k views

Adjusting space between array rows and columns

\documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{babel} \begin{document} % ... \[ \begin{array}{ccccc} x(1) & = & \frac{x(0)}{1} & = ...
5
votes
2answers
2k views

Underbraces in Matrix Divided in Blocks

How to put underbraces, inside the parenthesis of a matrix, to name both sides of the blocks? \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage{array} \begin{document} . . . \[ ...