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
40 views

horizontally align two minipages with matrizes

I'm trying to set two matrizes side by side, but I can't manage to horizontally align the matrizes. This is my example: \documentclass[a4paper]{scrbook} \usepackage{amsmath} \begin{document} \begin{...
1
vote
1answer
68 views

Array with nested slashes and parenthesis

I am trying to TeX the following schematic: using some fiddling around with multirows. However, everything's messed up, so I suppose there must be a more elegant way. How? So far, my attempts using ...
2
votes
1answer
130 views

How to make Fractions in \array environment from being tiny and squishing up? [duplicate]

I am a new Latex user who's having problems when writing fractions in the \array environment. The text becomes compressed to where reading what I wrote becomes a challenge, and I have so far spent ...
3
votes
2answers
71 views

In `array` environment, why does `\multirow` stretch rows too much when using `=` for width entry?

When = is used, the content of \multirow command is adjusted to automatically be equal to the column in which \multirow appears. But this does not seem to be the case with me. I am trying to use array ...
3
votes
2answers
95 views

How to combine these separate two tables to become as sub tables of a main table?

Here an image of the objective output: a table (TABLE I) of sub-tables (A) and (B) Here is the code of separate small tables: (to be combined) \documentclass[conference]{IEEEtran} \usepackage{array} ...
1
vote
1answer
47 views

How to center alignment of some table entries with predefined widths?

In the table below, the methodologies cell and all numeral entries of quantile columns (Qs) are aligned to the right, while they should be centered horizontally and vertically. By the way, when I ...
4
votes
1answer
129 views

how to represent method for converting decimal to binary

How can we draw the ladder method to convert Decimal to binary in LaTeX, as shown in the figure below, I have tried with following code, but it does not serve my purpose : \documentclass{article} \...
3
votes
1answer
33 views

Error while using multi line brackets

I am getting a correct output for the below code but latex throws an error **Illegal character in array arg. \begin{array}{11}** along with it. Anybody knows how to fix this error? \begin{equation}...
2
votes
2answers
130 views

Help shifting left in align

So I have this problem in my equation, that the bottom equation keeps shifting right even though I need it to be aligned at the 'left side'. Can someone one help? \begin{align} P(y=m\vert x)=\left\{ ...
5
votes
1answer
116 views

How can I force `intertext` command to retain the default indentation in `align` enrironment?

intertext command seems to remove the indentation. Is there a way to get the normal indentation while in math mode? \documentclass[11pt, a4paper]{IEEEtran} \usepackage{amsmath} \usepackage{amssymb, ...
4
votes
4answers
211 views

Using `split` inside array and vertical alignment

The below code produces this: I want to get that second line top-aligned, so the $\frac{\partial^2g}{(\partial n^1_\mu)^2}$ and $\frac{\partial^2 g}{(\partial n^1_\sigma)^2}$ are on the same level. ...
2
votes
2answers
99 views

In LyX, how do you remove the brackets around a matrix after they're already there?

I used the GUI to make a matrix with round brackets, and now I want to remove the round brackets (or change them to square brackets), how do I do that?
1
vote
1answer
30 views

Add a text multicolumn to a tabular

As a new user, I have many questions which I will ask separately now that I have finished my first text and want to improve it. Following my previous question (here), I want to add to my table a third ...
0
votes
1answer
87 views

\begin{array}{ccc:ccc} : No error, but just not working properly

I would like to add a vertical dashed line between the third and fourth column. The following is my code. This code is working well with my thesis template, but a vertical dashed line is not appearing ...
0
votes
0answers
433 views

Using “array” environment with a specific font size

Can we determine font size of a specific array? I am preparing presentation and I want to use different font sizes for different arrays \begin{array}{l}"FONT SIZE COMMAND" bla bla bla \end{array} \...
1
vote
2answers
1k views

How do I caption an Array?

So far, this is what I got. \usepackage{amsmath} \usepackage{graphicx} \usepackage[colorinlistoftodos]{todonotes} \usepackage[colorlinks=true, allcolors=blue]{hyperref} \usepackage[square]{natbib} \...
4
votes
1answer
133 views

place matrix and tikz side-by-side

I'm trying to place a matrix beside a tikz picture and I put isomorphism between them but it doesn't work. Can anyone advise me? This is my attempt: \documentclass[10pt]{article} \usepackage{...
0
votes
3answers
577 views

Vector Equation Alignment

I want to write a Bloch equation in beautiful.. this is my code: \begin{equation} \begin{pmatrix} \dfrac{\partial M_x}{\partial t}\\ \dfrac{\partial M_y}{\partial t}\\ \dfrac{\partial M_z}{\partial t}...
2
votes
1answer
67 views

Problem with array

I'm having some errors while copmiling the following: \begin{equation} k_{t+1}=\left\{ \begin{array}{l} $A.s.k_{t}^{\alpha}+(1-\delta).b_{t}^{P}-\delta.b_{t}$ \quad \text{if $\frac{b_{t}+b_{t}^{P}}{(...
3
votes
2answers
118 views

Centering an element on a row in a matrix

I have a matrix with this form: \usepackage{amsmath,amssymb,amsthm} \newcommand{\dd}{{\rm d}} \begin{equation} \left( \begin{array}{c c c c} 1 & 0 & \ldots & 0 \\ \...
0
votes
3answers
438 views

Break line within array or eqnarray

I have used the following codes to generate two equations. However, the second equation overlaps with the equation index. Can someone please help me look it pretty by breaking the 2nd equation into ...
1
vote
2answers
422 views

How to set up European/French style long division in TeX?

How exactly can one achieve French Style Long Division? Is line drawing/table/array formatting my only way here? I'm really new into TeX/LaTeX trying to find my way around it for elementary math, but ...
4
votes
2answers
65 views

Adjusting spaces for matrices

I can't adjust the spacing this awkward spacing between the row operation sign and the bottom two matrices. I would want to align the bottom two matrices to the left (right next to the row operation ...
1
vote
0answers
81 views

Augmented Matrix - Vertical line has absurd thinkness [closed]

So i used this code to generate an augmented matrix. \[ \left[A | b\right] = \left[\begin{array}{ccc|c} 1 & 1 & 2 & 3\\ 1 & 1 & 1 & 1\\ 2 & 2 & 2 & 2 \...
2
votes
1answer
2k views

Next step in formatting long division

I have posted this and this later item on long division. I thought what appears below worked perfectly. But only today I tried it with an example that has several digits before the decimal point in ...
0
votes
1answer
191 views

How to apply \begin{array} here

Please, how to align the following \documentclass[12pt]{arabbook} %%%%%%%%%%% packages \usepackage{fancyhdr} \usepackage{arabtex} \usepackage{amssymb} \usepackage{amsmath} \usepackage{...
1
vote
2answers
154 views

How to align array inside align?

I wrote an array environment inside align. As array have a blank space around it, I cant align it properly. I'm using array{l}, because I do want elements on the left inside array. \documentclass[]{...
2
votes
1answer
171 views

Writing “stochastic matrices” in LaTeX

I'm having some notes on stochastic processes and would like to know if there is a less painful way to build stochastic matrices in LaTeX. By painful I want to continue the way I did below. Question. ...
1
vote
1answer
61 views

Block matrices without lines [duplicate]

I want to latex the following matrix is there a solution without using arrays? Also, what will be the most efficient way to write this? Any suggestion is appreciated.
1
vote
2answers
113 views

LaTeX doing a really wierd equation array

I don't know what the problem is. Here is the code: \documentclass{article} \usepackage{amsmath,amssymb} \begin{document} Some text. \begin{align} \label{li2} \text{Let $s \in S$ and $C \in \mathbb{R}...
2
votes
1answer
103 views

How to get a single line flushleft in the eqnarray environment

I would like to get a single line in the eqnarray environment flushed left. This is my code so far \begin{eqnarray} \delta_{j} & = & \sum_{i = j+1}^{d} n_{i} \\ and \nonumber\\ g^{\...
1
vote
1answer
124 views

how to increase space between rows in begin array equation?

i want to increase space between rows of this vector\overrightarrow{grad}, in the equation below: \begin{eqnarray} \nonumber \vec F=\vec P=\left( \begin{array}{ccc} 0\\0\\ _mg \end{array} \right)...
3
votes
3answers
256 views

Getting black of a cell in a table

In the following code, I tried to create two rows for each cell in the first column. I want the rows be colored. However, the first rows of the colored cell get black. How can I solve this problem? \...
0
votes
0answers
249 views

Forcing a long table to place in one page

In the following code, I have 2 small tables and one long table. The long table does not fit in the first page and it breaks into the second page which is not favorable. I want to place it in one page,...
0
votes
2answers
60 views

Creating a customised table

I want to generate the table below: I wanted to replicate in latex: no border except the horizontal and vertical lines around the labels A-E and O-D spaced out rows and columns so the entries don't ...
1
vote
1answer
59 views

Tabular/array in captions

Could someone explain me why putting tabular/array environments in captions (figure or table) results in errors. Moreover, the error description does not exactly point to the issue, but just reads ...
2
votes
2answers
431 views

alignat* inside tabular: “Extra & on this line”

I've been struggling with this error for hours now and I have not found a solution yet. I have two environments (one is an alignat* and one is an array), and I need to put them side-by-side. If I don'...
2
votes
2answers
59 views

Matrix vertical and horizontal description

I'm trying a Matrix to represent. What I have now is this: But I want this. A solution with tikz would be maybe better. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc}...
2
votes
1answer
113 views

Doing block matrices with array environment

I am used to writing block matrices using the array environment, when these matrices are decomposed in four blocks, controlling vertical spacing and using \hfill, etc.. Now I wanted to draw a matrix ...
6
votes
4answers
292 views

equation alignment in a two-column table

I am having trouble making a table of equations line up properly. I would like to align the '=' sign for the Division row, but when I do I end up with something like this: Here is the code I am ...
3
votes
3answers
142 views

Delimiter size increased when I am using top alignment inside the \begin{array} which need to be removed. Please provide solution how to solve this

MWE: \documentclass{book} \usepackage{amsmath,amssymb,amsfonts} \begin{document} \begin{tabular}{llll} \textbf{3} & Write this information in a matrix. Remember to use square brackets. & \...
0
votes
2answers
156 views

How Can I make a run off table?

I am new in using Latex. I want to make a run off table like the one in the . I will appreciate your helps.
1
vote
3answers
40 views

Aligning two equations using amsmath, with multiple points of reference

I'm trying to align two lines of equation, one consisting of words to provide meaning and the one below with numerical values. Number per Second &= Bit Amount &* Rate of Channel &* No. of ...
0
votes
1answer
391 views

beamer, tabular* and array - illegal pream-token

I am trying to fit a tabular* to a beamer page. However, it produces a significant amount of errors. I searched stackexchange and google but were not able to understand nor solve the problem by myself....
7
votes
3answers
446 views

Graphics messing up array alignment?

I feel like this has probably been asked before, but I couldn't find a duplicate. I'm having some trouble with an array that I'm trying to make. The main problem has to do with graphics inclusion, but ...
6
votes
1answer
116 views

Conflict between eqnarray and tabstackengine

I seem to be getting conflict between the eqnarray environment and the tabstackengine package (which is very useful for matrices, column vectors, etc.). \documentclass{report} \usepackage{...
2
votes
3answers
17k views

Longtables Help

I want to resize my table for the Appendices in our paper. But I don't know how. Please help me revise it, the output of the table is just half of the paper. Thank you! \documentclass[12pt]{report} \...
2
votes
2answers
73 views

Fitting row space in an array

I have a simple array and some fractions are lying in under \displaystyle. The problem is that they collide with the upper and lower \hline, i.e. they lack of horizontal space. I know there might be a ...
1
vote
2answers
125 views

How to modify a math-mode column type to use teletype letters by default?

With normal text, I have the choice between \texttt{…}, which applies the font change to an argument, and \ttfamily, which applies it to the rest of the group. In math mode, I have the former, with \...
4
votes
5answers
428 views

Parenthesis within arrays

I use Typora. I have obtained the following, using an array and multiple quads : $\begin{array}{lcl} P_4 & = & P_1 & \cup & \\ & \cup & P_2 & \cup & \\ & \cup &...