Questions tagged [makecell]
The makecell tag has no usage guidance.
140
questions
2
votes
2
answers
61
views
How to top-align the rotated cell contents of one row in a table?
Consider the following MWE:
\documentclass[]{scrartcl}
% PACKAGES
\usepackage[]{mathtools,amsthm,amssymb,mathrsfs,mathalfa} % Math Packages
\usepackage[]{bm} % To get bold math.
\usepackage[]{...
0
votes
1
answer
29
views
Is it possible to programmatically add line breaks inside \makecell?
I've found myself in a situation where I need to dynamically add a list of strings inside a tabular cell in multiple instances, each string in their own line. To tackle this, I tried to go with the ...
2
votes
1
answer
30
views
Vertically align numbers in siunitx column at the bottom
I have a table with different row sizes and some S[] columns from package siunitx. By default, the numbers in the S columns are vertically centered in each row:
\documentclass{article}
\usepackage[...
0
votes
1
answer
49
views
Proper table formatting
Ideally I would have vertically aligned text and notes at the bottom of the page, not of the minipage, and not use multirow.
The outer colums should take up as small as possible space, and the middle ...
1
vote
0
answers
40
views
Creating a PDF with variable column widths and row blocks
I'm trying to create a script that will take in data with variable lengths and which needs to be put in a PDF report. The number of columns are fixed, but the content needs to be shifted. As it's a ...
0
votes
1
answer
45
views
How to make landscape, threeparttablex, longtable and makecell work together?
I am using a longtable that expands up to 3 pages in Landscape mode. I have used makecell, to insert linebreaks and vertically and horizontaly align the contents in cells. I want to enter footnote in ...
4
votes
3
answers
129
views
Color issue with the combination of the longtable, rowcolor, and makecell
I am trying to add a list of elements into a longtable cell.
I have tried several solutions and the only one that has proved really applicable is the one I present in the following MWE.
The main ...
1
vote
2
answers
258
views
How to align text at the top of a cell when there is a \makecell in the table
I'm having issues trying to align all the text at the top of my cells. Indeed, it looks like because of the \makecell I am using, the text beside is not where it should be. I have tried a lot of ...
1
vote
2
answers
61
views
tabular: cellcolor fills only part of cell if makecell is used
\documentclass{article}
\usepackage[table]{xcolor}
\usepackage{makecell}
\begin{document}
\begin{tabular}{c c }
\cellcolor{blue!=10} \makecell{ 1 \\ 2} \\
\cellcolor{blue!=10} 10000 \\
\end{...
3
votes
4
answers
165
views
how to make cellcolor not fill the cell completely
\documentclass[]{article}
\usepackage[utf8x]{inputenc}
\usepackage[english]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amsthm,amsfonts,amssymb}
\usepackage{graphicx}
\usepackage{floatrow}
\...
1
vote
1
answer
45
views
Help!! I don't know why the right bigg bracket is not encapsulating everything while the left worked [duplicate]
\documentclass[a4paper, openany, oneside, 12pt]{report}
\usepackage{makecell}
\begin{document}
\begin{adjustbox}{width = 1 \textwidth}
\large
\begin{tabular}{c|c|c|c}
\hline $(2,1, 1)$:= $1^1 2^2$ &...
1
vote
1
answer
80
views
Right bigg bracket
How can I do the right bracket like that of the left hand side?
0
votes
0
answers
17
views
How to use a big right bracket inside a \makecell package of a table [duplicate]
How to force the left bracket to encapsulate the whole values just like the left one
2
votes
2
answers
170
views
\makecell with typeface and line break
I'm having a bit of trouble using typefaces like \textbf or \spacedlowsmallcaps in \makecells with line breaks.
The following code works:
\begin{table}
\centering
\begin{tabular}{lcc}
\...
8
votes
3
answers
238
views
Size of the Rotated Table Cells
I want to create a custom table with tabularray package. I have used makecell and rotating packages to rotate some of the table cells. Additionally, the length of the rotated cells are set with \...
0
votes
0
answers
100
views
Vertically align multi-line text in tabular with makecell
I have a table with line-breaked cells (using \makecell) and want to align the content vertically. The ``makecell'' command has an optional parameter for that -- however, only horizontal, not vertical ...
0
votes
2
answers
59
views
How to align the content of this table?
I'm struggling with the alignment of the content of this table. I want that the content of each cell of the first column to be centered vertically or at least to remove the white space at the top of ...
1
vote
2
answers
24
views
How do I vertically center the text in a single cell next to multi-line 'makecell' cells in a tabular environment with variable widths?
Below is a simplified example table I have:
The code being:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{makecell}
\begin{document}
\begin{table}[h]
\begin{tabular}{|c|c|c|c|c|c|...
1
vote
2
answers
57
views
Problems about creating tables
I want to create a table like this
However, what I can get is one like this
In the table I created, there are two problems existing, which are
the middle vertical line is too short to reach the top ...
0
votes
1
answer
73
views
I want my table cells to overflow. How do I do that?
I have a table that is coded like this:
\begin{tabular}{p{1in} p{3in}}
\makecell[l]{Text in a \\ cell} & \makecell[c]{Text in \\ another cell} \\
\makecell[l]{Another row} & \makecell[...
0
votes
2
answers
56
views
Table error causing excessive runtime
I tried to write a table, but I cannot find what is wrong with it as it is preventing my file from compiling:
\documentclass[10pt,a4paper,twoside]{report}
\usepackage[version=4]{mhchem}
\usepackage{...
2
votes
1
answer
90
views
How to fill color in table cells with two lines
I am trying to make a table where cells have colored backgrounds.
I am using \colorcell{}, and it works fine with one line of numbers.
However, I would need two lines in each cell. To make two lines, ...
1
vote
1
answer
40
views
The characters are out of the form and it reminds me that "Overfull \vbox (16.44144pt too high)", I don't know why
I'm curious about a mistake that I have made. I wrote like this:
\documentclass{ctexart}
\usepackage{multirow,makecell}
\begin{document}
\begin{table}[!htbp]
\begin{tabular}{|c|r|}
\hline
\...
4
votes
1
answer
289
views
How to remove extra vertical space in a table cell bordering makecell
MWE:
\documentclass[11pt]{article}
\usepackage[a4paper]{geometry}
\geometry{tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}
\usepackage[english]{babel}
\usepackage{tabularx, makecell}
\setlength{\...
1
vote
1
answer
106
views
Using longtable and makecell, how can I get different alignments for different columns?
I have a two-page (long)table, on landscape orientation. I would like the first column to be centered-centered, but the remaining columns to be top-left (using makecell).
I would like each row to look ...
0
votes
1
answer
62
views
How to use different cell alignments in the same row?
Using \makecell, I would like the first column of each row to be centered, centered (cc) but the remaining columns to be top, left (tl). Is this possible?
\documentclass{article}
\usepackage{array}
\...
1
vote
1
answer
566
views
siunitx : How to align \qty value numbers in tables
I would like to make a table with values followed by its units, in which the numbers of the values are aligned according to the "rules" of the siunitx-package. I can do this with two columns ...
0
votes
2
answers
89
views
Is there anyway to make this table fit within my document? Additionally, how may I space the first row of the table as the second image below
\documentclass[a4paper, 12pt]{article}
\usepackage{booktabs,array}
\usepackage[table]{xcolor}
\usepackage{colortbl}
\usepackage{float}
\usepackage{makecell}
\begin{document}
\begin{table}[H]
...
1
vote
1
answer
148
views
How to extend rule to cover entire table in landscape
I am trying to make a really wide table fit onto my table on latex, in doing so I used \makecell as well as turning it into \landscape mode to make it fit, but it seems the \rules (\toprule, \midrule ...
2
votes
1
answer
326
views
Why does `\makecell` not provide proper vertical alignment for this particular line?
I am trying to align table cell contents using \makecell. It strikes me as very strange that (in the same table), one row gets aligned vertically as intended while the other does not. I want the words ...
1
vote
1
answer
62
views
How do I fit my specified data into a table which fits within the page limits where the maths doesn't hit the top of each box?
I have made a table that fits my data but not the way I would like. I have mixed and matched different ideas but nothing has worked. There is probably a much simpler way of creating a table with this ...
3
votes
1
answer
489
views
How to vertically align the contents of cells in NiceTabular?
I am trying to to vertically align cells contents in NiceTabular when they get significantly different heights. However, \adjustbox and makecell do not seem to work (neither does \adjustbox and \Block)...
2
votes
3
answers
57
views
Struggling with Top Alignment / Vertical Alignment with Tabular
I am struggling to align the content of the left column to the top of the tabular cell. I have tried using the \begin{tabular}[t]{|l|l|}, as most other posts have suggested, but have had no luck in ...
1
vote
2
answers
73
views
1. How do I align all equations in column 2? 2. Also the left [ of my matrices is not appearing. How do I solve these 2 problems?
Below is the my code:
\documentclass[11pt,oneside,openany]{book}
\usepackage[a4paper, left=1.5cm, right=1.5cm, top=3cm, bottom=3cm]{geometry}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{...
0
votes
1
answer
149
views
Unable to vertically align correctly long table
I am using the package longtable and what I want to achieve is to have vertically centered cells, and equal row height.
I have tried using m{} column type, to achieve the vertical centering, but when ...
2
votes
1
answer
69
views
How to separate words in table cells with a fixed width and vertically align the text?
I need my table to fit in a A4 page so I fixed some of the columns. Now I run into various alignment an word separation problems. Like in the cell next to the ID A.7.2.2 I have no other idea how to ...
2
votes
1
answer
47
views
Empty spaces and no alignment in table
I am trying to create a table. This is the code I am using and I am getting this output. As you can see there are weird cell alignments and I can't explain the blank spaces in the bottom part either. ...
1
vote
2
answers
200
views
error when using 'm' option in tabular after adding command \makegapedcells
I added the command \makegapedcells from package makecell and now my tabular gives error when using m for fields.
There seems to be some conflict. Here is MW.
\documentclass[12pt]{book}
\usepackage{...
1
vote
1
answer
282
views
Combining S column type with makecell \thead
I am trying to have nicely aligned numerical values in my table (alongside potential empty cells or text), with \thead table headings to have multi-line column descriptions. When I try the following, ...
1
vote
1
answer
224
views
makecell package error {\let\tabg@pe\theadgape\thead@}
I have a table that I am trying to use in a Wiley publishing company LaTeX template.
Here is the table I am trying to use - this code thanks to R ztable latex output not working:
\documentclass[12pt]{...
2
votes
1
answer
284
views
Line break in \makecell in tabular cell in AASTeX results in extra column width?
I would like to use \makecell with to add line breaks in my table. However, this results in extra column width, with the width being what it would have been had the text not been broken onto two lines....
3
votes
1
answer
90
views
rowcolor uneffective in longtable with makecell [duplicate]
I'm trying to color the rows of a longtable with rowcolor as follow (in the MWE I have onyl included few rows of the very long table):
\documentclass[a4paper]{article}
\usepackage[fontsize=8pt]{...
0
votes
2
answers
129
views
\bfseries in makecell failure
I'm trying to insert \bfseries to each row of a \makecell command, but it is not compiling. MWE below:
\documentclass{article}
\usepackage{makecell}
\begin{document}
\begin{tabular}{l}
\makecell[{...
1
vote
0
answers
395
views
Conflict \thead function defined in two packages
I'm using both:
\usepackage{makecell}
\usepackage{tablestyles}
in a *.tex document.
If I use the previously shown order, I got an ! LaTeX Error: Command \thead already defined. error on the ...
0
votes
0
answers
369
views
Alternative for makecell?
While working on a solution for Typographic conventions template / package I came across https://tex.stackexchange.com/a/26692/28139 which makes use of the optional argument for \\ to increase spacing ...
3
votes
2
answers
176
views
Makecell: Declare default alignment in \usepackage[]
I want to load the makecell package with a default option to make all \makecell cells left-aligned by default. What should I substitute in for OPTIONS below to make left-alignment the default behavior ...
2
votes
2
answers
346
views
Rotated bold font in NiceTabular table heading
I am making table using both nicematrix and makecell packages, because these packages applied together allow to obtain multirow heading cells containing rotated text (as pointed here; if I am not ...
1
vote
1
answer
240
views
conflict between arydshln and makecell packages. How to resolve
I am using answer in how-to-place-a-vertical-dashed-line-between-columns-of-a-matrix
to add dashed lines in a matrix.
But I also load package makecell to fix another problem with tables as given in ...
2
votes
1
answer
80
views
Can't simultaneously use makecell, threeparttable and tabulary
I'm trying to accomplish "threeparttables" while simultaneously using both makecell (to achieve within-cell rowbreaks) and tabulary (to make the tables not exceed \linewidth). But while I ...
2
votes
1
answer
401
views
How to make a table with multirow rotated cells?
I am trying to make the table with automatically centered, rotated multirow cells. Something like in the picture, but with cells automatically fitted to their content:
I tried to apply solutions ...