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

learn more… | top users | synonyms

2
votes
1answer
157 views

Array and macro resetting

I would like to make an array with some automatic calculations. I use the package ftlpoint. I made a test, but it does not work: \newcommand{\line}[2]{% \fpMul{\produit}{#1}{#2}% Calculation ...
2
votes
1answer
5k views

How to resize a fomula inside a block?

I would like to insert a formula as a block in my presentation: \begin{block}{concretization}{ $\renewcommand{\arraystretch}{1.5}% \begin{array}{l} \gamma \rightarrow ... \end{array}$ ...
5
votes
3answers
10k views

Typesetting on block matrix is ugly

I have a large n x n matrix I'm trying to typeset. My current code is as follows: $\left(\begin{array}{c|ccc} 1 & c_2 & \cdots & c_n \\ \hline 0 & ...
2
votes
3answers
11k views

how to insert multi line equation in the tabular environment?

How can insert multi line equation in the tabular environment? For example see the following code that can show my request. \begin{tabular}{rrr} &a &b\\ &u=\begin{cases} 0;& ...
3
votes
1answer
989 views

Passing two or more dimensional arrays to lua

I can write: \def\myarray{{Nrs,1,2,3}} then I can call lua: \luadirect{myfunc(\myarray)} and access the values in the array/table. How would one do it for multidimensional ones? I initially ...
1
vote
2answers
346 views

\pgfmathdectobase macro \pgfmathresult digit index or bitwise operators

Is there a way to access each digit of a macro returned by \pgfmathdectobase (or \pgfmathresult) which is a binary number ? This would be useful for a function which prints the power set of a given ...
1
vote
2answers
758 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} ...
33
votes
4answers
8k views

Using display style fraction in a matrix environment

I'd like use the \dfrac command in a bmatrix environment as follows: \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{bmatrix} \dfrac{\partial f}{\partial x} \\ ...
5
votes
3answers
2k views

Multiple arrays side-by-side?

what I've been trying to do is to pack multiple arrays on a single 'row', similar to what subfig module does with images (and tables, I guess); mostly to conserve space. Something like this: I ...
4
votes
3answers
2k views

How to include an array in cell of a tabular environment

For an equation that has an array we use \\ for new row as well, and \newline didn't work, and this is understood by the tabular environment as a new row! Would appreciate all the help!
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\\ ...
5
votes
3answers
389 views

Is there a \foreach function that works in the preamble?

Tikz/PGF has an extremely useful implementation of \foreach, which allows for instance the construction \foreach \x / \y in {1/a,2/b,3/c,4/d} {\x is a lot like \y} in which you can iterate over a ...
0
votes
0answers
177 views

How to make a table column disappear? [duplicate]

Possible Duplicate: Easiest way to delete a column? I have many table in my document, and I have decided I don't want one of their columns to appear in the output. I don't want to just ...
1
vote
2answers
1k views

Right Align Equation Number with hfill in Custom Environment

I have a couple of custom environments that I want to be able to use \hfill to right align the last column (similar to what {align} environment does with equation labels}. I attempted to use \hfill ...
1
vote
2answers
1k views

Changing elements of arrays in Beamer without shifting the unchanging elements.

An array is to be displayed in a Beamer presentation with some elements constant across all slides in the frame. Other array elements, however, must change with the overlay in the frame and are of ...
3
votes
1answer
496 views

Array problem, can only have one row.

I'm not sure what I'm doing wrong, I'm trying to create a line of bits with labels. I'm trying to do this with an array: $\begin{array}{c|ccccccc} \mbox{L1} & \mbox{L2} & \mbox{L3} & ...
4
votes
2answers
902 views

Problem with \bordermatrix inside array

When a \bordermatrix is placed inside an array, the spacing between rows will be wrong (see the MWE below). What is causing this problem? Is there a solution? \documentclass{book} \begin{document} ...
0
votes
1answer
2k views

Cannot make latex multicolumn work

I am trying to make a matrix in LaTeX. Now I am trying to make a table with multicolumn like a b c d у So I coded \usepackage{arydshln} \usepackage{array} \usepackage{amsmath} ...
6
votes
3answers
415 views

Adding colour to table cells when decimals are aligned with arrays and {.} used in the column definition

I've got a table (below) that aligns the decimal points of my data - I wish to highlight a value (2 adjacent cells), however this leaves a white space where the decimal point is! If I increase the ...
18
votes
5answers
13k views

bordermatrix with blocks

I need to write a complicated matrix, that has a structure as in the attached picture.
6
votes
1answer
6k views

Right-aligned columns using the tabularx environment

I'm trying to typeset a matrix which has entries of differing widths. However, for aesthetic reasons, I would like each of the columns of the matrix to be the same width, and I'd furthermore like ...
2
votes
2answers
1k views

How can I process an array using TikZ 2.00 syntax?

I use TikZ/PGF 2.00. In the CVS PGF manual pag. 563 we have \def\myarray{{1,"two",2+1,"IV","cinq","sechs",sin(\i*5)*14}} \foreach \i in {0,...,6}{\pgfmathparse{\myarray[\i]}\pgfmathresult, } My ...
9
votes
1answer
1k views

Positioning of numbers in gb4e.sty examples

I'm planning to use the following numbered examples in a document (see example below). I would like the number to be at the top of the example, but for the ones with diagrams it ends up in the middle. ...
4
votes
3answers
2k views

How to get TikZ nodes not to change alignment?

I'm still working on rendering a nice block matrix. I've been using BMAT but it is irrelevant for the question at hand. I want to connect various entries in an array/matrix/BMAT by lines, and I'm ...