Skip to main content

Questions tagged [arrays]

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

3 votes
1 answer
148 views

Vertical alignment of array inside array

\left[\begin{array}{c|c|c} {\left(\begin{array}{cc} 1 & 2 \\ 3 & 4 \end{array}\right)} & 5 ;6 & x \\ \left(\begin{array}{cc} ...
138 Aspen's user avatar
  • 173
2 votes
3 answers
247 views

How to count the number of lines in an array

How to count the number of lines in an array \def\datalist{16.03.2022/2, 28.06.2022/3, }
Juli's user avatar
  • 121
2 votes
1 answer
106 views

Should an array eat up an explicit \mskip at the end of a column if tabularx is loaded?

Consider \documentclass{article} \usepackage{tabularx} \begin{document} $ \begin{array}{ll} x \mskip100mu & x \end{array} $ \end{document} Before reading further, ask yourself, how far ...
AlMa1r's user avatar
  • 541
1 vote
2 answers
65 views

how to reverse the entries of an array

After tex-ing up many arrays, I realize to my horror that I need to reverse them. In order words, instead of \[ \begin{array}{cccccccc} x & y & z & w \\ 1 & 2 & 3 ...
underflow's user avatar
  • 633
3 votes
4 answers
163 views

How to make sub "array" to aligned with the outer "array" in equation in LaTeX?

How can I align the equal sign in the subarray environment with the equal sign in the outer array environment? \documentclass[letterpaper]{article} \begin{document} \begin{equation} \left. \...
Y. zeng's user avatar
  • 2,105
4 votes
4 answers
136 views

Array aligned with top of item label

I don't understand why the [t] parameter of the array environment does not do anything. I want the top of the brace to be aligned with the top of my item label but it does not work. \documentclass{...
Vincent Krebs's user avatar
2 votes
2 answers
39 views

array with rotated text in one column (not in header) [closed]

I need to make an array/table where I put vertical text in one of the columns (not in the header), like this: What is the most natural/painless way to make such an array, short of using tikz hack? ...
underflow's user avatar
  • 633
3 votes
2 answers
54 views

Array or tabular in Beamer breaks \if

I want to have an array or tabular environment in an \if statement in Beamer. If I have an article, this compiles just fine: \documentclass{article} \def\x{1} \begin{document} \if\x1 \begin{tabular}{...
Sam Jaques's user avatar
6 votes
2 answers
133 views

Simply Adjusting the Position of Dashed Lines in Nicematrix Package

I encountered a problem with the horizontal dashed line created by the nicematrix package in LaTeX. The line is a little close to the bottom of the matrix, overlapping with the elements of the second ...
Prince Chen's user avatar
3 votes
2 answers
253 views

\usepackage{array} causes my build to break

I'm trying to add the following lines to my document: \usepackage{array} \newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}} \newcolumntype{C}[1]{>{\centering\let\...
lukygee's user avatar
  • 59
1 vote
0 answers
29 views

Longtable row height limitation with rotated text

With the following code, I want to create a table that is rotated on the page, but the page itself is not rotated (it is for print in a book, so also the pdf cannot have rotated pages): \documentclass[...
edgar's user avatar
  • 21
0 votes
3 answers
39 views

Latex error: Package array Error: Illegal pream-token (3.5cm): c' used

I have a table that has this command. \begin{table}[ht] \centering \centering\caption{Table features} \begin{tabular}{ r{3.5cm} p{5.50cm} p{5.50cm} } \toprule & \multicolumn{1}{r}{} &...
ddocc's user avatar
  • 39
0 votes
1 answer
29 views

\hspace messes up overbrace

I would like to fix the incorrect overbrace and also place "ADD" over the array but without vertical divider, maybe having it a little bit over with a small line pointing the first element ...
Light Wolf's user avatar
3 votes
2 answers
97 views

Does "array" use smaller font in equation compared with "alignedat" or "aligned" in LaTeX?

Sometimes, it is more convenient to use array to align something in equations in LaTeX. However, the array displays more smaller font compared to the alignedat or aligned. \documentclass{article} \...
Y. zeng's user avatar
  • 2,105
2 votes
3 answers
56 views

I want to increase the line spacing in the following array table, what should I do?

I want to increase the line spacing in the following array table, what should I do? \documentclass{article} \usepackage{amsmath, amssymb} \begin{document} \[ \begin{array} {|c|c|c|c|} \hline X &...
ducanh2021's user avatar

15 30 50 per page
1
2 3 4 5
72