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

learn more… | top users | synonyms

1
vote
0answers
19 views

Size and position of array [duplicate]

The following is an extract from my LaTeX file which describes a table. The table has a fair amount of space below it. I would, therefore, like to increase the arraystretch. However, by increasing it ...
6
votes
2answers
79 views

Problem with \pgfmathparse and font style of array elements

There are probably other ways to do that, but I was happy I've found this code working just fine for my needs: \documentclass{article} \usepackage{tikz} \newcounter{grpcnt} \def\groups{grp1, grp2, ...
1
vote
0answers
24 views

table into page width in a double columns page

I am writing a paper with double columns pages and I like to insert a table across the width of the page. This is my attempt but its output is not what I look for : the table and the text are layered ...
2
votes
1answer
86 views

writing text next to equations in array [duplicate]

I am trying to reproduce the attached picture: But I can't in any way figure out what the correct way to write text next to an equation is. Is there a package for this?
2
votes
1answer
336 views

Dynamically format labels/columns of a LaTeX table generated in R/knitr/xtable

I have some tables coming from the statistical package R that I want to export in LaTeX markup. I would like to make every column large as the longest word of its label (assuming for simplicity the ...
5
votes
2answers
360 views

Gaussian elimination

I want to demonstrate examples of Gaussian elimination/the Gauss-Jordan method as shown below. There are some things that I like about what I have right now. Each column is the same width from ...
1
vote
0answers
70 views

Error when trying to load the array package

I am writing my thesis paper in Math and I really need to use the array package. But when I wrote \usepackage{array} an error occurred. It says "pdflatex> ! Emergency stop." What should be the ...
4
votes
2answers
68 views

How to put the formula in line with the text in the example below

Be the $ \begin{array}{cccl} \gamma\ : & \! \mathrm{I} & \! \longrightarrow & \! \mathbb{R}^2 \\ & \! s & \! \longmapsto & \! \gamma(s) \end{array} $ differentiable and ...
4
votes
2answers
80 views

clean, breakable left-aligned array-like environment

The centered, yet left-aligned aspect of \begin{array}{lll} ... \end{array} is what I usually go with to give a list of conditions. My only problem with it, is that it is not breakable, so I try to ...
4
votes
1answer
69 views

Vertical bar strangely moving in a complex block matrix macro (XeTeX or pdfTeX)

The following code: \documentclass[a4paper]{report} \usepackage{amsmath,amsfonts,amssymb,multirow} \usepackage{mathtools} \newcommand{\sq}[1]{\left[#1\right]} ...
1
vote
0answers
83 views

array and loop to set frametitle, subsection, and text

In the example below, I store text into three variables (\subTa, \subTb, \subTc), and then use these variables to set the subsection, set the frametitle, and display text on each slide, all using ...
6
votes
1answer
109 views

Combining rows and columns in array

I am trying to write some kind of blockmatrix \[A_n= \left( \begin{array}{cc|cc} && 0 & 0 \\ & A_{n-2}&n-2&0 \\ \hline\\ 0&-n+2&1&n-1 \\ ...
2
votes
1answer
171 views

Wrap equation to new line, in array environment

Is it possible to wrap an equation to a new line (such as in How to wrap a long equation in latex but within an array environment? I have a column vector of regressors that I want to show over two ...
4
votes
1answer
67 views

how to adjust array inside 50% of linewidth

I've couple of tables drawn using array; one of the sample is mentioned below: How can I automatically adjust table to get fit inside 50% of line-width? $\displaystyle ...
1
vote
0answers
100 views

radix sort tikz [closed]

I want to visualize Radix sort to look like but I can't find a way based on this Thanks in advance
1
vote
1answer
244 views

Displaying long division manually with some caveats [closed]

Due to odd circumstances, I need to present long division manually (in math mode). That is, without using a macro. Moreover, I cannot use \multicolumn or \cline. Normally, I would do: \[ ...
5
votes
1answer
479 views

`missing $ inserted` Error when not putting $ before and after array environment

Considering this answer I added $ before and after the array, i. e. before \begin{array} and after \end{array} in the following code. Then the former missing $ inserted Error was gone. ...
3
votes
1answer
80 views

Creating Table using array

I'm trying to create entry similar to tables using array begin{array}{*{20}{r}} {}| & A |& B \\ \hline A_1| & {one|} & {two} \\ B_2| & {three|} & {four} \\ \hline ...
5
votes
2answers
75 views

Array spacing in multiple line environment

Consider the following MWE \documentclass{article} \usepackage{amsmath} \begin{document} \begin{gather*} \renewcommand{\arraystretch}{1.2} \begin{pmatrix} \frac{1}{2} \\ \frac{1}{2} \end{pmatrix} ...
0
votes
0answers
59 views

Equivalent of Latable for matrix/vectors generation

Does anyone know an equivalent for Latable (which is used to generate latex code for tables) but to do the same thing with matrices and arrays ?
3
votes
1answer
88 views

Center array headers but right justify numbers in columns

I'd like to center my headers but right-justify the numbers in the columns. \begin{array}{c|c|c|c|c|c} x & y & (x-\overline{x}) & (y-\overline{y}) & (x-\overline{x})(y-\overline{y}) ...
7
votes
1answer
197 views

Matrix derivation

I would like to display a matrix with a dot (derivative) on top of it. The entry of this matrix shall consist of arbitrary symbols. When I write \begin{align} \dot{\begin{pmatrix} x \\ y ...
2
votes
1answer
237 views

tikz array indexing to paint with custom palette

I have a custom palette which I want to paint with it by indexing. Here is my attempt: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \def\colorPallete{{0.00 ...
6
votes
3answers
975 views

Integral sign inside equation array becomes too small

\documentclass[12pt,a4paper]{report} \usepackage{palatino} \begin{document} \begin{equation}\label{good} \int_{0}^{1} \end{equation} \begin{equation}\label{ugly} \begin{array}{c} \int_{0}^{1}\\ ...
6
votes
2answers
106 views

How to make the this brace bigger? “}”

here is my code: \begin{equation*} \left . \substack{ 2 \beta_{r,j}^{(l)} = \beta_{r,j}^{l-1} + \beta_{R+r,j}^{(l-1)} \epsilon_{m}^{j} \\ 2 \beta_{r,m+j}^{(l)} = ...
31
votes
3answers
1k views

Programming Conway's Game of Life in LaTeX

My aim is to program Conway's Game of Life in LaTeX, and make the output into an animated PDF. I intend to use PGF/TikZ for this, especially pgfmath, but I'm stuck at the moment because I need to ...
1
vote
0answers
31 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 ...
4
votes
2answers
95 views

Creating a new array column type dynamically

I am evaluating toks registers for various uses - they are still fairly new to me. I'm using them to construct a table column-wise. During this, I have come across an issue I have failed to find a ...
3
votes
1answer
84 views

How to numbering each row in an array environment that is used within an align environment

I am trying to typeset a multiple line optimization problem in LaTeX. I have had a lot of difficulty using the align and alignat environments to get things to align properly. I recently managed to ...
3
votes
2answers
111 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
128 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
138 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
69 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
108 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
196 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
198 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
1k 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
66 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
165 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
113 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
161 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
129 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
437 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
61 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
76 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
186 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
74 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} ...