Questions tagged [arrays]

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

Filter by
Sorted by
Tagged with
2
votes
1answer
331 views

Associative Array in LaTeX (Tikz)

I'm modifying a calendar by Robert Krause (TeXample) and I'm searching for a method to get this calendar work dynamically. See also my original post here. As nobody has answered on that oruginal post,...
0
votes
1answer
52 views

In array right braces don't look

In following Tex script right braces aren't looked. \documentclass[a4paper,12pt]{article} \usepackage[turkish]{babel} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \...
5
votes
2answers
706 views

Add math commands with custom look to LyX, to change `array` environment alignment

How can I add a math command with custom look and LaTeX code to LyX? I know this is possible for custom citation commands and character styles, so this should be possible for math commands as well! ...
0
votes
1answer
143 views

what's the problem with the following code? [closed]

I want to write an equation like the following: What's the problem with the following code? \begin{array}{lll} U_2(\phi)=\begin{bmatrix} \cos\phi & -\sin\phi \\ \sin\...
4
votes
4answers
1k views

Making nice tables

I am working on a seminar paper, and I would like to code the following type of table into my LaTeX document. I was only able to create this table by first entering in and formatting everything in ...
5
votes
1answer
156 views

An array that includes a matrix [duplicate]

BAC GM IBM TRW JOHN 200 300 100 200 A = PAUL 100 200 400 0 I would like to create an array that looks like what appears above, except that square brackets should enclose (...
1
vote
1answer
189 views

increasing space between rows of an array

I have the following equation: ‎‎ \begin{equation*}‎ \left\{‎ ‎\begin{array}{lll}‎ ‎-\mathrm{f}-2,‎ ‎& z_{\left( \mathrm{f}+i\right) \left( j_{1},j_{2}\right) }=-1‎, ‎&‎ ‎...
3
votes
2answers
211 views

Column with two equations

What is wrong with this column of two equations? \begin{equation} \begin{align} u(x,t) &= \frac{\partial\phi}{\partial x}\\ \mathbf{u}(\mathbf{r}, t) &= \left(\begin{array}...
4
votes
2answers
781 views

Vertical Alignment in Array Environment

I have produced the following array \begin{equation*} \begin{array}{c|ccc} \hline {} & {\bf{b}}_1 & {\bf{b}}_2 & {\bf{b}}_3 \\ \hline {\bf{a}}_1 & \cos\theta & ...
2
votes
1answer
251 views

! You can't use `\eqno' in math mode. couldn't find a solution in similar threads

\begin{equation} f : \mathbb{R} \rightarrow \mathbb{R} ; x \mapsto \left \{ \begin{array}{cc} |x|^{3} , & \text{für}\ x \lvertneqq 1 ; \\\ x^{2} , & \text{für}\ 1 \leqslant x \...
6
votes
1answer
1k views

Weird equation array error

When I use the following code to generate a simple equation array: \begin{equation} f(x)=\left \{\begin{array}{ll} \frac{\pi-x}{2},\quad 0<x\leqslant 2\pi;\\ -\frac{\pi}{2},\quad x \text{are other ...
4
votes
3answers
4k views

array: set width for certain columns

I have an array (in math mode) for which I want the first column a little bit wider than the rest, and the rest should be of a consistent width. If I just write \begin{array}{c|ccc} 10000 & 1 &...
-2
votes
3answers
82 views

To draw monomial matricies

Need the LaTex code of the fallowing figure given below:
2
votes
1answer
395 views

Tag each line of array inside a { symbol [duplicate]

I want to tag each line of an array that is inside the { symbol. For the example bellow I use align, but a solution with equation, subequation or some other "top" structure might also work. Here is ...
1
vote
2answers
84 views

Nonstandard nesting of left and right vertical braces

In this question I asked about non-standard nesting of over- and underbraces. Now I have occasion to do the same thing with \left{ and \right} in an array, thus \begin{array}{l} A \\ B \\ C \\ ...
3
votes
2answers
492 views

Delimiters around Array

I have a figure in which I have 2 matrices and three 1-D arrays as in the image shown below. As seen in the image the brackets (delimiters) for the array is missing. How can I get the brackets around ...
1
vote
1answer
829 views

Flush top, center, flush bottom in an array

In an array there are three options r, c, l for flushing right, centered and flushing left. But how about flushing up and down and centered vertically? As an example in the array below, I want the ...
7
votes
3answers
411 views

How do I typeset multiple additions nicely?

For some project, I'm trying to typeset something into approximately this: 1234 321 12345 6 ----- + 13906 I've seen people do this using xlop for the addition of two values, which works ...
2
votes
1answer
80 views

Vertical alignment in a function definion

I've been trying to figure out how to vertically align the name of the function only with the 2 first line of the definition: \documentclass[a4paper]{article} \usepackage{amsmath, amsthm, amsfonts, ...
9
votes
4answers
647 views

How to make column bold in array?

\begin{align*} \begin{array}{cc|>{\boldsymbol}cclccl} X&Y&\neg&X&\rightarrow(&Y&\rightarrow&X))\\ \hline 0&0&0&0&1&0&...
3
votes
1answer
121 views

Row/column indexing using collcell

I'm trying to replicate the row/column indexing behaviour presented in Counters for use in array/tabular cells using collcell. However, the collection and printing mechanism (and therefore any ...
2
votes
1answer
615 views

Get square brackets instead of “( )” brackets in the blkarray environment

How to get square brackets in this matrix instead of the "()" brackets: \documentclass[12pt]{report} \usepackage{blkarray} \usepackage{amsmath} \begin{document} \[ \begin{blockarray}{cccccc} a &...
4
votes
3answers
286 views

Placing a drawn tikzpicture next to an array of equations

Currently I have this code that works: \documentclass{article} \usepackage{multirow} \usepackage{mathtools} \usepackage{tabu} \usepackage{pgfplots} \usepackage{tikz} \usepackage{tkz-euclide} \begin{...
1
vote
3answers
310 views

Problem with \bordermatrix

I need to write a complicated determinant of matrix, that has a structure as in the attached picture.
1
vote
2answers
367 views

Is there a simple method for making young tableau without special packages?

I don't mind if my young tableau are not perfect. I have no idea how to install packages at the moment. I just want to write something simple regarding the symmetric group on three objects. I'm ...
1
vote
1answer
69 views

Closing delimiter as if inside array

Suppose that I have defined two commands \newcommand\parens[1]{(\begin{array}[t]{@{}l@{}}#1)\end{array}} \newcommand\stmts[2]{\begin{array}[t]{@{}l@{}}#1;#2\end{array}} which attempt to allow for ...
3
votes
2answers
106 views

Using mhchem with array

I would like to use the array package to format a column filled with chemical formula in order to avoid writing \ce{X} on each line. I don't know if it is even possible. I started from the trick used ...
0
votes
1answer
996 views

How can I get a matrix with row and column labels that can also be aligned with a title?

I'm seeking to replicate this image: Is there a way to get this without using any external packages other than tikz (ideally just some combination of \array and tabular) or wild redefinitions? I ...
0
votes
1answer
661 views

How can I insert an array of figures in a beamer-class presentation?

I want to insert an array containing figures in a beamer presentation. Is this possible? If yes, is there an example for it? I tried with side-to-side figures, but I'm getting a weird error message ...
2
votes
1answer
460 views

Why am I getting “missing a delimiter” error in this equation?

I have the following expression (representing the Taylor expansion of a function of two variables): \begin{equation} B^{n}(s,p) = \left(\left\( \begin{array}{ll} a_{10}s + a_{01}p+a_{20}s^{2} +...
9
votes
5answers
3k views

Add equation number in array

I'm struggling with aligning my equations and provide a number for them. I googled but haven't found a solution for the array environment. I tried the align env. but only with the array env. I ...
1
vote
2answers
189 views

Text wrap not creating vertical separation lines tabular with m{2cm}

I have this code: \documentclass[12pt]{report}% Not sure what this is for \usepackage{array,ltablex,makecell}% ltablex loads tabularx and longtable also \renewcommand\theadfont{\normalsize\bfseries} ...
1
vote
2answers
498 views

Group multiple arrays

I've got a State-Space system (4 matrices that go together), and rather than presenting each SS matrix on a new line I would like to group them together (and look nice while doing so). I'm looking ...
1
vote
1answer
758 views

Left alignment not working on array environment

I'm writing some math(s) stuff and wanted the equations to be on the left side of the document using the array environment inside equation*, but for some reason it doesn't seem to work. Here is the ...
1
vote
1answer
392 views

Allowing for tables that allow page breaks as well as don't

I have a setup in my preamble that allows this: \documentclass[12pt]{report}% Not sure what this is for \usepackage{array,ltablex, makecell}% \newenvironment{conditions} {\par\vspace{\...
1
vote
1answer
727 views

Array of numbers with arrows

In Principles of Mathematical Analysis, Walter Rudin utilizes the following array of numbers: I want to recreate it in TeX but I don't even know how to start. Can someone help me? EDITED: I tried to ...
2
votes
1answer
150 views

Swap two array elements

I am a beginner in Latex programming. I'm working on a small package based on arrayjobx. I have created structures to handle associative arrays as described in arrayjobx.pdf. My intention is to add ...
2
votes
2answers
222 views

How to use braces at left and top of array in equation mode?

I tried to put 2 braces, one at the top and one at the left, but I got an ugly effect. How to fit both braces with the array? \documentclass[12pt]{report} \begin{document} \begin{equation} lines \...
12
votes
2answers
3k views

Matrix vs. array environments

What is the difference between the matrix and array environments?
3
votes
1answer
156 views

How to center a text over many columns of array?

I would like to get the text System of Figure centered in the array. How can I center the text over the many columns of arrays such as here with four columns? \documentclass[english]{article} \...
3
votes
2answers
100 views

Equation labels on rows of an array?

I'm trying to typeset some sets of linear equations, and I'd like the variables to be vertically aligned, sort of like this: x - z = 4 (12) -3x - y + 2z = -6 ...
1
vote
1answer
42 views

Align figures in tabular environment with text

I have two picture that I want to align it with the text next to it from top, i used this code: \documentclass[3p,onecolumn]{elsarticle} \usepackage{array} \usepackage{lipsum} \begin{document} \...
2
votes
1answer
77 views

Command to create alignment

Consider the following mwe: \documentclass[letterpaper]{article} \usepackage{amsmath,amssymb} \usepackage{array} \begin{document} \begin{center} \renewcommand{\arraystretch}{1.2} \...
2
votes
2answers
45 views

Latex - Multirow and Linebreak within array

How to Linebreak and center the following \documentclass[11pt]{article} \usepackage[utf8]{inputenc} % Kodierung \usepackage[ngerman]{babel} % Sprache \usepackage[intlimits]{amsmath} \usepackage{...
3
votes
1answer
167 views

First row of array is the first line

I want to code an array on which the first row would be the first line. I used the array environment. Here is what I get but it's not what I want (the line is centered on the second row). Here is my ...
0
votes
1answer
80 views

Texmaker freezes when iterating over an array and plotting with pgfplots

I have written a latex piece that iterates over two arrays and creates a plot for each entry of the array. However, my Texmaker gets surprised and freezes (I just gets fully processing power of my CPU ...
1
vote
1answer
99 views

How to create several plots in latex using a for loop

I have a bunch of arrays like follow: a[l=3]= (1, 8.099681e-01) (2, 8.099681e-01) (3, 7.399681e-01) (4, 0.000000e+00) (1, 9.600000e-01) (2, 9.600000e-01) (3, 8.800000e-01) (4, 0.000000e+00) a[l=4]= (...
3
votes
2answers
148 views

A simple macro for optimization problems (ifnum error)

I am trying to create a simple macro for optimization problems that must (as per the publisher) compile with LaTeX2e. I want the macro to look like the example below in terms of usage (the actual ...
5
votes
1answer
637 views

Automatically adding page breaks into long array environments

I have been generating a lot of data for a project and I wrote in TeX commands (via print statements) so that I get rows upon rows of data entries that look like a_{1} & a_{2} & a_{3} \\ ...
0
votes
1answer
194 views

Nested arrays with labeled rows and columns

I want to represent a four-dimensional tensor using a matrix of matrices. Additionally, I want to label the rows and columns of the inner matrices. My attempt to make this labeled matrix of matrices ...