Questions tagged [arrays]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

How to make text centre aligned in a table? [duplicate]

I am new to LaTex and I am making my CV. I want to add a table for my education section but it does not look good. this is not at all appealing to the eye. Here's the code, please suggest some ...
1
vote
2answers
42 views

How can I make these table columns adaptive so that they remain centered?

I'm trying to create a table that can adapt its column height so that when the text length increases, column-width stays the same but column height adapts. Also, I'd like this table to have the text ...
6
votes
3answers
231 views

Side brace only some equations

Im trying but failing since quite some time now to get the following: I've got 6 equations aligned and I want to brace the first 4 of them with some text behind. But my result is this something like ...
0
votes
0answers
48 views

How can I make the “divide symbol” in long division more smooth

Are there any methods to make the connection (the red circle in the following figure) between \cline{3-10} and \text{\Large)} in my code more smooth? For example, how to make the left end of the rule ...
2
votes
1answer
31 views

Vertical alignment instructions are reversed with tabular

According to Overleaf documentation for tables, I have to use m{}, p{} or b{} to vertically align my text, but for some unknown reason, in a three-column test table, the instruction in the first ...
1
vote
0answers
165 views

array.sty is missing in MikTex Console package database

I compiled a LaTex document using Texmaker and got the following error message ! LaTeX Error: File `array.sty' not found. Normally, this error will be resolved after installing the package in the ...
4
votes
2answers
50 views

Space increase between array

Question-1 I want to increase space front side and backside of semicolon(;). Question-2 I want to change position of y->\infty at downward side (Same as at y->0) MWE: \documentclass[12pt]{...
7
votes
1answer
91 views

Problem when using the specifier `b` of `xparse` with tabulars

Edit: Phelype Oleinik has opened an issue in the bug tracker of LaTeX3 for that issue: https://github.com/latex3/latex3/issues/839 The following code provides an error. \documentclass{article} \...
2
votes
1answer
25 views

How to encircle /square rows/elements and block this Matrix [duplicate]

The following matrix is my desired matrix form : I attempted to use the nice matrix environment since it offers a solution encircling/squaring rows and elements as seen in this photo above. The only ...
2
votes
1answer
40 views

Formula alignment in a transition matrix

I used the issue raised in the link below to build 2 alternative ways of generating a transition matrix for a Markov Chain. However, as you can see, in the first version, my formula are losing their ...
1
vote
0answers
17 views

Missing delimiter (. inserted). error in array environment [duplicate]

It is a ``missing delimiter (. inserted)."-type error. I spent a great amount of time but still can't spot the missing part. Can anyone help to fix it? \begin{align*} \begin{array}{ccc|ccc} ...
2
votes
3answers
35 views

Can't fit an imported excel table in a page (overfull hbox and vbox)

Good evening to anyone. I'm trying desperately to fit this table into an horizontal page. As I've used excel2latex to import it, I'm using the array environment, and I don't really know what to do to ...
3
votes
2answers
83 views

Linear Program: Align non-negativity constraints

I'm trying to properly align a simple linear Program: Right now I'm using \usepackage{amsmath} \begin{document} \begin{equation*} \begin{array}{r r c r c r} \displaystyle \min &x_1 &+&x_2\\...
1
vote
1answer
28 views

How can I subtract 1 from the number of columns to repeat in array environment?

I was trying to create an environment for an augmented matrix and came across this answer, which gave me this code \newenvironment{amatrix}[1]{% \left(\begin{array}{@{}*{#1}{c}|c@{}} }{% \end{...
1
vote
1answer
26 views

Nested array and tabular spawns a 't' from nowhere. How to remove it?

Example: \documentclass{article} \begin{document} \begin{center} \begin{tabular}{ll} text & $ \begin{array}[cc]{ll} & 1 \end{array} $ \end{tabular} ...
6
votes
2answers
464 views

How to automatically use typewriter font in arrays?

I'm trying to write a script on formal logic. The source code looks something like this: some text... \[ \begin{array}[]{c | c} p & (\lnot p) \\ \hline 1 & 0 \\ 0 & 1 \\ \end{...
0
votes
0answers
24 views

How to set borders to specific cells in array or align environment, using LyX

I was wondering if there's any possible way to set borders to specific cells in an array environment using LyX? I want to get something like this: But all I was able to do without getting dirty with ...
3
votes
1answer
87 views

Placing arrays side by side

I want to place three arrays side by side. They all should be aligned by their top line. How can I do that with the following arrays: \[ \begin{array}{c c | c} p & q & p \land q \...
0
votes
1answer
19 views

Macro expansion inside array

I got stuck with the following piece of TeX: \def\foo{A} \def\bar{\foo} \let\baz\bar 1: \baz \def\foo{B} \\ 2: \baz \\ \begin{array}[t]{r} \def\foo{C} 3: \baz \\ \def\foo{D} 4: \baz \\ 5: \baz \end{...
5
votes
4answers
878 views

The integral symbol is shorter compared to the integral symbols that follow in the rest of the document. Why?

This is the code that gives me shorter integral symbol \begin{align*} \begin{array}{l} {a_0} = \dfrac{1}{2L}\int\limits_{-\pi}^{\pi} {f\left( x \right)dx} \\ \left. \begin{array}{l} {a_n} = \dfrac{1}{...
1
vote
1answer
39 views

Equal spaces on other edge columns when using multicolumn with longer contents

\documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \begin{array}{|r|c|l|} \multicolumn{3}{c}{% AAAAAAAAAAAAA }\\ ...
1
vote
2answers
55 views

Generate a table from a list

Suppose I have a list of n items, is it possible to create a 2 by n+1 array? I have my MWE \documentclass{article} \usepackage{enumitem} \begin{document} %Example 1 \begin{enumerate}[label=\textbf{\...
1
vote
1answer
24 views

Array size of things

I have the following code: \documentclass[12pt]{article} \usepackage{mathtools} \begin{document} $$ \begin{array}{cl} f(\hat{x}_n) & =\displaystyle \int_{-1}^{0} \hat{x}_n d t - \...
1
vote
1answer
27 views

Size of fractions and spaces in arrays

I have the following code: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} $$\hat{x}_n(t)=\left\{ \begin{array}{cc} 1 & -1\leq t \leq -\frac{1}{n+1} \\ -(n+1) t &...
0
votes
1answer
34 views

How do I horizontally centre all the entries. Specifically so labels on the left are in centre

I have no idea how to show this as latex on here. If somebody could edit this for me then that would be great. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage[...
2
votes
2answers
33 views

What is the best approach to align equations in order to organize common terms in a equation? (aligned vs array) [closed]

This question is about opinions and experiences of users. What is the best approach to align equations in order to organize common terms in a equation? What is preferable in the particular case ...
1
vote
2answers
34 views

How to change brackets for this modified matrix?

I found this code here (stackexchange) and modified it for the matrix I needed to make. But I want to have thoses brackets[ ]. I tried to change blockarray for \left[ and \right]. Can anybody help me ...
0
votes
1answer
46 views

How to label an array?

How do I label an array? The label can be anywhere on the right side. I can't find a \label in the array documentation.
6
votes
6answers
347 views

How to align, enlarge and center the following contents?

I want to align 2 and 4 with the red lines on their right. vertically enlarge the middle column to provide well balanced space for its contents. vertically center the contents in the third column. \...
0
votes
1answer
30 views

Two column listing separated by a vertical line, LaTeX

I'd like to create something like this: and I achieved similar results in LaTeX, but nothing is alligned and there is too much white space over and under the text. Any solutions? Here's the code ...
3
votes
2answers
206 views

How to add either dashed or colored vertical line in array, but without using `arydshln`?

I need to make what is called augmented matrix, using array. This requires a vertical line added before the last column. Using answer in adding-vertical-line-equal-sign-to-augmented-bmatrix-without-...
1
vote
1answer
38 views

The most fancy way to write 2D array

I have something like What's the best way to do it? I tried this method but it doesn't work. \begin{array}{r}[[0.86455156], \\ [-0.82104237], \\ [4.12186079]]\end{array} Getting,
2
votes
1answer
81 views

How to embed \choices in tabular in exam class?

Similar to the question: Exam class multiple choice answers in table format, I'm trying to embed the \choices into a table format and looking like a table. \documentclass[11pt]{exam} \usepackage{...
2
votes
1answer
36 views

Fitting array in beamer

I want to fit the array within the width of my slide. \documentclass[aspectratio=169,xcolor=table]{beamer} \definecolor{lava}{rgb}{0.81, 0.06, 0.13} \definecolor{myblue}{rgb}{0.0, 0.30, 0.60} \...
0
votes
0answers
41 views

Shift Underlining a row in an array

For this code I just want the underline of the elements to shift to the second row when I start calculating the second row of the resulting matrix. Is there a way to do that? (And I also want the ...
0
votes
0answers
20 views

“array” most efficient code for creating step-by-step solution procedures for single variable Alg equations?

Greetings LaTeX Community! I need to create step-by-step procedure solutions to share with my high school students. Is "array" the most efficient method of creating these columnar style ...
0
votes
0answers
17 views

Arrays cutoff in multicol - 2 columns

The Problem Hey, I spent about 3 hours trying to solve this problem with multicol in LaTeX. Hope it would help some people out: arrays cuttoff in LaTeX So as you could see, my arrays in the \align* ...
1
vote
3answers
85 views

\rowcolor and @{} issue

In the next example we can see that \rowcolor does not take into account the declaration @{} in tabular preambles. Is this a normal behavior? Is there some elegant way to avoid that spurious filled ...
1
vote
1answer
23 views

How to put the caption of a subfigure in table style (or array style)

I have the following code to put some figures alongside. \begin{figure*}[!htb]{ \subfigure[test]{\label{fig:test}\includegraphics[scale=0.3]{test.pdf}} \end{figure*} This code works correctly. I ...
3
votes
2answers
121 views

Table (or similar) of numbered displayed math

I want to refer to a "table" of equations, but I want every "cell" to be numbered. All answers I have seen of anything similar deal with numbering lines, but I'd like to number ...
1
vote
2answers
27 views

align in array causes right shift

Compile the code: \documentclass{article} \usepackage{enumitem,amssymb} \usepackage{amsmath} \usepackage{multicol} \usepackage{hyperref} \usepackage{multirow} \usepackage{xcolor} \usepackage{array} \...
1
vote
0answers
21 views

How to add a large equation in Latex (problem with \right] \left[) [duplicate]

I want to add this equation to my letter, but it doesn't fit the page: $$ I_{GRV3}=\int_{\Sigma_{i}}\left[4 \pi S_{i}^{i}-v^{\mid i} v_{\mid i}+\frac{1}{4} h^{i j}\left(\Delta_{i m}^{l} \Delta_{j l}^{...
1
vote
1answer
65 views

Why put the dollar sign before and after the array environment

So I am trying to type in a table ducumenting different mathematical equations under different heading, something like this: and it is suggested to me that array environment is better than table ...
3
votes
2answers
41 views

Alignment of 3 arrays: first on left, second on top-right and third on bottom-right

I am having 3 arrays with different dimensions. I want to place the first array on the left, second on the top-right and third on the bottom right. So, far I am able to place only two arrays, below is ...
5
votes
3answers
139 views

Adding arrayrulecolor command removes top rule

The code below results in the image below. \documentclass{beamer} \usetheme{Montpellier} \usecolortheme[named=gray]{structure} \usepackage{colortbl} \usepackage{array} \newcommand{\gr}[1]{\textcolor{...
0
votes
1answer
63 views

Procedure to produce a Latex source modifable Latex file from initially a MS Word table

Sorry to post again from the same subject I posted a few days ago. I have had an answer but impossible to reproduce the generation of a Latex source from a docx MS Word document. So, I attempt here on ...
1
vote
2answers
88 views

I can't change \hhline color with \arrayrulecolor{}

I have created a table with tabular and cellcolor, and you know what hapends: the cell color overlap the border. I have found that this is often solved with hhline. In order to change the color in ...
3
votes
1answer
40 views

Refinement of nested cases / aligned equations

For the following two approaches or sets of equations, I would like to 1- (in the first set) make the first for align with the two fors below 2- (in the second set) keep the font and interspaces the ...
0
votes
0answers
22 views

csvsimple inside tabular environment, but csv data includes LaTeX arrays/tables/aligned etc

I am trying to import a csv using csvsimple, and I have already overcome the challenge of the csv delimiter (by adding curly braces around every field), but I am now stuck with a admittedly weird ...
5
votes
3answers
184 views

Issue with the alignment of the array

I am having the issue with the alignment of an array. Please, find the below code: \documentclass[12 pt, a4paper]{book} \usepackage{multicol} \usepackage{geometry} \geometry{ a4paper, ...

1
2 3 4 5
17