Questions tagged [arrays]

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

Filter by
Sorted by
Tagged with
3 votes
1 answer
28 views

How to align 4 equations and enumerate them

I have 4 equations that I want to take up the entire width of the text, and I want each of the equations to be enumerated as a composite number like equation (34.1) equation (34.2) equation (34.3) ...
conrado10000's user avatar
2 votes
2 answers
191 views

Matrices inside a matrix, with only text in the inner matrices

I want to draw a big matrix as an 8 by 8 to represent the combination of two HMMs. How do I go about it?
Cutie's user avatar
  • 45
0 votes
1 answer
16 views

Title over multicolumn array and side-by-side arrays

I want to add in a presentation (beamer) 4 multicolumn (4 columns each) arrays side-by-side and give a title over each array. What I tried for my article was this \documentclass[12pt]{extbook} \...
Νικολέτα Σεβαστού's user avatar
2 votes
2 answers
37 views

Table: combine fixed column width, \multicolumn, and text wrapping

I'm trying to create a sort of table which: a) is the same width as my text, b) has columns with predefined widths; c) has cells which span over multiple columns; and d) wraps text in these ...
Thomas Leibundgut's user avatar
1 vote
0 answers
25 views

Question concerning an error occurring only one time in two similar examples (tables/array and I cannot find the mistake) [duplicate]

I'd like to create a table, but I get the strange error "Missing $ inserted \end{frame}". Here is the code. See below for a similar example, where it worked. Unfortunately, I cannot find my ...
Bernhard Boehmler's user avatar
1 vote
1 answer
49 views

Why doesn't centered paragraph work inside table with tex4ht?

I am using the solution given in How to vertically-center the text of the cells? by Jimi Oke, which works well for me: If you also want to align all the cell contents toward the center in a ...
Nasser's user avatar
  • 20.1k
0 votes
0 answers
35 views

Nested systems of equations with left brace and referenceable sub-equations

I am trying to make a system of equations that contains a sub-system of equations. The equations should be numbered with arabic numbers (e.g. 1, 2, ...) and the sub-equations with a combination of ...
Neil Lamas's user avatar
0 votes
2 answers
49 views

Making array with increment in LaTeX

\documentclass{book} \begin{document} \edef\s{0,45,...,360} \s \end{document} In LaTeX, I don't know how to make an array start from 0 with increment 45 and end by 360. I try to make code ...
Ongky Denny Wijaya's user avatar
1 vote
1 answer
61 views

How to draw matrices with lines and side braces? [duplicate]

I want to generate something like in the figure below. I have currently the following but is not complete as you can observe. Any idea how to do this? \documentclass{article} \usepackage[utf8]{...
pixel's user avatar
  • 1,316
9 votes
2 answers
813 views

Is there an easier way to generate a multiplication table?

I am trying to find an easier way to generate randomised multiplication tables. I want to keep the formatting exactly as it is- with the table and the lines I have added- etc... Is there a more ...
user292225's user avatar
1 vote
1 answer
50 views

colortbl & dcolumn: Package array Error: Illegal pream-token (\tabpre): `c' used

While using the packages colortbl, dcolumn for the scenario described in MWE, I am getting the below error message: MWE: \documentclass{article} \usepackage{colortbl} \usepackage{dcolumn} \...
Kumaresh PS's user avatar
  • 1,267
3 votes
2 answers
193 views

Lines inside Array

I want to create a line inside an array (for a matrix), among which what I have created is as shown below. (I used \usepackage{hhline} and \usepackage{arydshln}) \[\small{\left [\begin{array}{cc|c} ...
Wildabandon's user avatar
0 votes
2 answers
41 views

How to split complex alignments into multiple columns?

My document includes multiple recursive definitions. To increase readability, I split these definition into multiple (usually two) columns. To get more accurate alignments, I use array. Thus, ...
grbll's user avatar
  • 1
10 votes
2 answers
435 views

How to properly align two numbered equations?

I try to type two following equations: These equations are not subequations. First number 1 in (1.1) and (1.2) means chapter. My problem is that each part of these equations is centering. I can't ...
Sindzicat's user avatar
  • 113
0 votes
1 answer
40 views

Cell lines are cut when using multiple rows

Working in a large project with some commands defined for usage in a table. I list them below. Using them, I am trying to create a table which has multiple rows and still aligns the other cells ...
nyw's user avatar
  • 25
-1 votes
1 answer
83 views

How can I transform this table into Latex?

I am struggling a lot to adapt this figure from Sheppard & Barnes (1990) into LaTeX: What do you suggest? :)
Gabriel Zaffari's user avatar
2 votes
3 answers
172 views

Gap between array columns

I am using an array inside a tcolorbox, but I am getting this unwanted gap between the columns of the array. How do I make this array perfectly fit into the parent tcolorbox and remove the gap between ...
Alan's user avatar
  • 197
4 votes
4 answers
520 views

Design array with arrows with tikz

I would like to draw something like this with Tikz: I started with this but it didn't work: \begin{tikzpicture} \node (1) {$a$}; \node (2) {$b$}; \node (3) {$c$}; \node (4) {$d$}; \node (5) {$e$}; \...
Dunno's user avatar
  • 317
-1 votes
1 answer
36 views

How do we draw a diagram of a circle shaped thing with four arrows pointing up, down, left, and right?

I was wanting to draw something like the following: The motivation was to illustrate a data-structure some people refer to as a "two-dimensional linked list" class TwoDeeNode { // NODE ...
IdleCustard's user avatar
1 vote
1 answer
35 views

having trouble compiling an array [duplicate]

When I try to compile the code below, I get an error message saying "missing number" and "illegal of measure" in reference to the specific part [\hskip.017in -1,\sin{a}\hskip.017in]...
user272533's user avatar
8 votes
2 answers
349 views

Nicematrix overbrace and underbrace clash with surrounding text

I am surprised that I didn't find anything on this topic here. In the following document, the contents of the braces clash with the above text even after several compilations: \documentclass{article} \...
Bubaya's user avatar
  • 2,149
1 vote
1 answer
76 views

How to fit a long array in IEEE Access Latex two column template?

I am currently writing in an IEEE Access Latex format. The work I am doing involves long arrays which I am facing difficulty facing in a single column. The arrays tend to overlap with the text in the ...
Haris Saeed's user avatar
2 votes
2 answers
103 views

small matrix inside big matrix

How can put a matrix inside a matrix like the picture shown with a big letter inside the smaller one?
Thunder Black's user avatar
2 votes
2 answers
184 views

How to number each step of a solution in a visually appealing manner?

I am seeking assistance with formatting my solution. Specifically, I am looking for a way to number each step of the solution without using the format "Step 1:", "Step 2:", and so ...
cricket900's user avatar
0 votes
1 answer
56 views

Diagonal Arrows in a Table/Array Diagram

I'm trying to replicate the following diagram. My first thought was to use tikzcd and draw arrows between the empty nodes, but that wasnt resulting in the same appearance. Any guidance is appreciated,...
avp n's user avatar
  • 35
1 vote
1 answer
34 views

Centering text vertically inside array

I want to have tikzpictures next to each other (horizontally) with an equal sign between them. I'm using an array environment. Here's a minimal working example: \documentclass{article} \usepackage{...
Tanny Sieben's user avatar
1 vote
1 answer
51 views

amsmath alignment problem within array

I'm trying to typeset this messy handwritten solution: I plan on putting the "checks" part of the solution in a 2 column table immediately under the (x,y) solution -- i.e. 1 cell for each ...
Siuslaw Math's user avatar
0 votes
1 answer
31 views

Expand table for additional columns & use TiKz to draw diagonal circle around like terms

I'm creating a solution set for my students to assist them with learning how to multiply two polynomials. The mwe below works for a 2 x 2 table (binomial x binomial). But I need to show a binomial ...
Siuslaw Math's user avatar
1 vote
1 answer
66 views

Pass a list of arguments to a matrix: issue with last step in iteration

I wish to define a command like \myrowvector{values={1,2,3}} and have spacing details set in the preamble. I have adapted code by user31729 to great effect, except... How should I deal with the last ...
PatrickT's user avatar
  • 2,828
0 votes
0 answers
22 views

"Missing $ Inserted" error in math environment [duplicate]

I have the following .tex file: \documentclass[convert={density=300,outext=.png}]{standalone} \usepackage{standalone} \usepackage{amsmath} \usepackage{amssymb} \begin{document} $$\begin{array}{cc|c} ...
user242007's user avatar
1 vote
1 answer
84 views

\amsmath: Problems creating array for synthetic division

I'm attempting to create step-by-step solution for finding the factors of a polynomial using synthetic division. The code for creating the synthetic division layout is courtesy of David Carlisle and ...
Siuslaw Math's user avatar
1 vote
1 answer
57 views

How to make \mathbf robust?

I made a command \statementinput which makes a table easily with given two lists of elements. Most of the elements are math formulas, and I don't want to put each of them in \(\), so I used the array ...
The Great Seo's user avatar
6 votes
4 answers
1k views

How to make a table less cramped

I used MathPix OCR program to get the Latex code of this table. When I tried to use the tabular mode, all the "a" and "g" lost the math font. So I had to put $$ between each ...
Maroon Racoon's user avatar
1 vote
1 answer
73 views

nicematrix: handle with empty cells / drawing lines into a NiceArray

I would like to add/draw lines (like the shown red one) over and under the letters A, B and D (not at the \cdots) - each to the upper and lower end of the matrix. What is nicematrix's correct method ...
cis's user avatar
  • 7,465
4 votes
2 answers
171 views

Two matrices of same height, but different number of rows

I want to have two matrices of the same height. In the 1st matrix, how can I replace X \\ \ddots with a single row (e.g. with the content x x x) so that this single row is centered vertically? \...
cis's user avatar
  • 7,465
1 vote
1 answer
66 views

How to globally decrease or delete the vertical spaces between lines in `alignat` and `align` environments?

First an MWE and its output are as follows. \documentclass{article} \usepackage{amsfonts,amssymb,amsmath} \begin{document} An example in `alignat' \begin{alignat*}{2} x&=3&\hspace*{1em}&...
M. Logic's user avatar
  • 3,961
0 votes
1 answer
70 views

How to search for an element in array in Tikz?

I am trying to pass a value (first input argument) and an array (second input argument) to Tikzset and I want to check if the value is in the array. Each time I am running the code, the array is read ...
Mostafa's user avatar
  • 47
0 votes
0 answers
17 views

Lyx: Moving row up/down commands always grayed

When using array and moving the cursor into a cell, commands to move a row up/down (or a column left/right), accessed by Edit | Rows & Columns are grayed: I searched for move row in the manual, ...
mins's user avatar
  • 243
4 votes
3 answers
335 views

Procedure for obtaining the formulas of the half angle

I am trying to write the procedure for obtaining the formulas of the half angle, but nothing at all. I don't know if it is too complicated to do it. My current code is: \documentclass{article} \...
cqkozqnzizztjqljpd's user avatar
3 votes
1 answer
158 views

How should I format a large value array in latex?

Hi I am trying to describe a value array I used in my program in my bachelor thesis report. I thought it would look more in sync in latex but it does look weird. Do you have any advice on how to ...
user199590's user avatar
0 votes
2 answers
51 views

Array/tabular env. showing fractions directly in display mode and correctly spaced?

In my Latex documents I usually include arrays and tables with fraction that always get crushed to their inline form, giving an unpleasant result. I know I could solve the issue by switching every \...
5kywAlker43's user avatar
2 votes
1 answer
92 views

Solving systems by reduction

In LaTeX, when I solve systems by reduction, I like to put the numbers by which I multiply the equations in front of the key of the system, how would this be done? I'm able to create the system ...
Guillemus Callelus's user avatar
0 votes
1 answer
108 views

I am trying to post json arrays as text in LaTeX

as the title states I'm trying to have my json arrays be posted as text in LaTeX. I'm using VSCode as editor. I'd like to have this json array be posted as a list in LaTeX but can't figure out how to ...
Robert's user avatar
  • 1
3 votes
2 answers
128 views

adjust horizontal spacing in array environment

Please consider the following simple example: \begin{array}{rcl} a&=&b \end{array} If I use this, then the horizontal spacing between "a" and "=" and the horizontal ...
0xbadf00d's user avatar
  • 363
0 votes
1 answer
39 views

How to mark fields and write next to them in arrays, without making it a new field?

I want to do this (at the "S") but I have no idea how to do it without making it a new field and thus making new borders, my code looks like this: \documentclass[a4paper,12p]{scrartcl} \...
HaDeS_Monsta's user avatar
1 vote
0 answers
71 views

Bad alignment of \begin{array}...\end{array} with LaTeX2HTML

I recently used latex2html (released January 1, 2021) to convert a mathematical LaTeX paper with 100 plus equations of varying complexity with very good results, except for one flaw. Which I have ...
Tore H-W's user avatar
  • 493
2 votes
1 answer
85 views

Array as a list of matrices?

I would like to have an array as a list of matrices but keep getting the error "Extra }, or forgotten \right.". As an example, I have the following: \begin{align*} \mathcal{X} = \left[ \...
ivan's user avatar
  • 21
4 votes
3 answers
124 views

How to write q series using array environment

I would like to code in latex, please guide me I tried this code, $$\left(\begin{array}{c} q^2, q^8 \ q^3, q^{7} ; q^{10} \end{array}\right)_{\infty}$$ but I want the base q^{10} to be in the middle ...
Sanagama's user avatar
0 votes
0 answers
63 views

Array and latex- tools packages issues = File ended while scanning use of \@newenv. \RequirePackage

I am trying to use the MDPI journal latex template, however, I keep on having this error "File ended while scanning use of @newenv. \RequirePackage" regarding the package "array". ...
M.A's user avatar
  • 1
1 vote
1 answer
45 views

How do I indent or use tabs to separate a multi-part question while using an array environment for aligning equal signs (see picture for details)?

\documentclass{article} \usepackage[shortlabels]{enumitem} \usepackage{amsmath} \begin{document} Let \(f(x)=2x^2-12x+13\) \begin{enumerate}[(a)] \item Express $f$ in standard form. ...
anon's user avatar
  • 35

1
2 3 4 5
21