Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×The LaTeX Math for Confluence team is here with another tip!
In this part of our series, we’ll explore arrays, a flexible way to organize numbers, variables, or text in rows and columns. Arrays are similar to matrices but offer more control for formatting and aligning content.
Missed the previous guide? Check out:
An array in LaTeX lets you create a grid of elements, use different alignment for each column (l, c, r), and include text or formulas. They are especially useful for piecewise functions or aligning equations with explanations.
Basic array syntax:
\begin{array}{c c c}
1 & 2 & 3 \\
4 & 5 & 6
\end{array}
How it works:
{c c c} specifies three centered columns. You can also use l (left-aligned) or r (right-aligned).
& separates columns.
\\ starts a new row.
And here’s what it looks like in Confluence:
Arrays let you mix numbers and text. For example:
\begin{array}{c l}
x & \text{value} \\
y & \text{another value}
\end{array}
This code works well when you need to label rows or columns.
Brackets: You can wrap arrays in \left(...\right), \left\{ … \right\}, or \left[...\right] if you need delimiters.
Nested arrays: Arrays can be placed inside another array for advanced layouts.
Alignment: Mix l, c, r for different column alignments.
Adjusting size: Use \small, or \scriptstyle to scale arrays like matrices.
Example: a price list with left, center, and right alignment
\begin{array}{lcr}
\text{Name} & \text{Quantity} & \text{Price} \\
\textit{Item 1} & 10 & \$15.00 \\
\textit{Item 2} & 7 & \$3.50
\end{array}
Arrays are a versatile tool for organizing numbers, text, and formulas in LaTeX. They complement matrices perfectly, giving you the flexibility to annotate and align content cleanly. Apps like LaTeX Math for Confluence make it easy to create arrays and matrices with professional formatting in Confluence Cloud.
✅ Coming next: Piecewise functions. In the meantime, you can explore more tips in our guide on writing math equations in Confluence.
Support team_Stiltsoft_
0 comments