Questions tagged [arrays]

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

18 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
56 views

The middle row of matrix and cases does not align at baseline

When I wrote a row vector in a matrix or a 3-branch function in a cases, I noticed that the middle row does not align at the baseline of the content outside. As one must be conformed to university ...
2
votes
0answers
35 views

Add vertical space for individual lines in an array in LyX

I know that I can add vertical space for individual lines in an array in LaTeX by including an optional argument after the line break (see example below). Is there way to do this in LyX without using ...
2
votes
0answers
319 views

Diagonal line in math arrays

I have some arrays in math mode, such as the one below. I would like a diagonal line in a cell, something like diagbox (diagobx package) or diaghead (makecell package). But it seems that diagbox and ...
1
vote
0answers
19 views

Array: extend \newcolumntype to \provide etc

Consider the (silly) MWE: \documentclass[]{article} \usepackage{array, ragged2e} % in a package \newcolumntype{R}[1]{>{\raggedright\arraybackslash\hspace{0pt}}p{#1\linewidth}<{}} % here \...
1
vote
0answers
24 views

Fail to typeset an array spanning multiple pages properly using pdfTex

I tried to convert a long list of equations in .tex to .pdf using pdfTex. Those equations were written in the array environment, which spans multiple pages. The pdfTex didn't create a pdf file ...
1
vote
0answers
43 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 !...
0
votes
0answers
13 views

Arranging payoffs within sgame - or, how to adapt an array to its parent cell

I am using the sgame package to typeset some game-theoretic bimatrix games. (Unfortunately, sgame in incompatible with array, and any package depending on array, which is why I'm struggling to find ...
0
votes
0answers
18 views

array of the package array deletes \hpace at end of cell

Consider the following code: \documentclass{article} \begin{document} $\begin{array}{ll} A\hspace{1cm}&A\\ A \end{array}$ \end{document} We have the following result: Now, if we load the ...
0
votes
1answer
24 views

labelling arrays

Sorry if this is stupid but writing $$ \begin{array}{c} \label{cycle LP} \text{min} \ \ \ w^t x \\ \text{s.t.} \sum_{C \in \mathcal{C}} x_v \geq 1 \\ x \geq 0 \end{array} $$ ...
0
votes
0answers
47 views

Multivariate polynomial long division in LaTex

How do I typeset polynomial long division with multiple variables using LaTeX? I want to do polynomial long division with two and more divisors. I know there was a similar question already answered ...
0
votes
0answers
21 views

Select one of many groups of array definition

I use variable.tex to definite some Array: Name, color, folder In main.tex: \input{variable.tex} In variable.tex: ( not exist begin/end{document} Each Group includes 3 Array: Name, color, folder %...
0
votes
0answers
88 views

How to control the height of square brackets of matrix

Here is my code for creating a matrix: \begin{equation} \left [ \begin{array}{ccc} 1 & 2 & 3\\ 1 & 2 & 3\\ 1 & 2 & 3\\ ...
0
votes
0answers
56 views

Using \newcolumntype definition together with colortbl package

I just upgraded my Miktex distribution and I am not able to compile my MNWE example (see below) \documentclass{article} \usepackage{array} % tex.stackexchange.com/questions/12703 \...
0
votes
0answers
66 views

Formatting long division involving decimals

I am looking for ways of improving the formatting I have been using to present long division involving decimals. Using this answer I have managed to come up with the following MWE. \documentclass{...
0
votes
0answers
236 views

Disappearing border lines in table

I am trying to draw a table like below. The preview in overleaf is perfect as shown below. However, after I render in texstudio using pdflatex, the cell border lines are sporadically missing like ...
0
votes
0answers
486 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} \...
0
votes
0answers
280 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
0answers
62 views

setting values in an array according to set conditions

I have an array of value from an image of suns magnetic field. I am meant to set all values above 3*sigma and below -3*sigma to 1. the values in between to 0. and i also have nan values in that array ...