Questions tagged [makecell]
The makecell tag has no usage guidance.
126
questions
0
votes
0
answers
28
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
1
answer
39
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
20
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
48
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
47
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
43
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
65
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
32
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
79
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
54
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
56
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
116
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
76
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
71
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
114
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
59
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
165
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
50
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
64
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
79
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
63
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
39
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
110
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
84
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
106
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
157
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
54
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
62
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
219
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
201
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
84
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
208
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
120
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
58
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
234
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 ...
0
votes
0
answers
60
views
Use a simplekv variable with a newline inside makecell
MWE:
\documentclass{standalone}
\usepackage{makecell}
\usepackage{simplekv}
\usepackage{tabularx}
\setKVdefault[test]{
kv1 = {Test 2 \\ Test 3}%
}
\useKVdefault[test]
\begin{document}
\begin{...
3
votes
1
answer
88
views
Automatic line break in tabularx environment
I'm trying to get a table that automatically inserts a line-break so some very long text can fit in the cell, instead of overflowing to the margins like it's doing now. I tried with \makecell but didn'...
6
votes
2
answers
265
views
Issue combining makecell and cellcolor
I have seen similar question to this one already but none of the answers I have found seem to solve my problem. I'm trying to color the cells of the first column of my table, but I cannot find a ...
2
votes
3
answers
282
views
Color cell incomplete in coloured columns LaTeX and hhline details trouble
I have a problem with my table in LaTeX. A few of cells doesn't fill well.
I used the package "makecell" to do multirow and define new types of columns instead colortbl package (because I ...
1
vote
1
answer
82
views
weird text place on the top of the column with makecell in latex table
I want that the text is placed in the top of the column in my table. I have the following code:
\documentclass[a4paper,12pt]{scrreprt}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[...
4
votes
2
answers
112
views
Coloring a line of a table
I try to color only the first line of the table below, using the code:
\documentclass{article}
\usepackage{makecell}
\usepackage{hhline}
\usepackage{xcolor}
\usepackage{colortbl}
\usepackage{tabularx}
...
1
vote
1
answer
95
views
How can I create an easily extensible table in latex?
My example table looks like this, but should be easily extensible to implement more nested or merged cells inside.
For instance I want to add more lines to the content of the last column.
Let's say 3 ...
1
vote
1
answer
262
views
How to enable the automatic line breaks in table and forced the text to break?
I have created a table, and I have fixed its width, but the problem when I write a long text, the text breaks the line, I want to add an automatic line break when the text should respect the width of ...
0
votes
1
answer
87
views
Vertical alignment of \makecell header
I have some issues with the vertical alignment of \makecell headers for a longtable. Basically, what I'm trying to achieve is that the single lettera A, B and E are vertically centered while the other ...
0
votes
3
answers
235
views
Rowcolor overhang with makecell
When I trim the sides of tables using @{}, the \rowcolor hangs over the sides. I've fixed this with <{\kern-\tabcolsep} on the first and last column (according to this question). However, if \...
2
votes
4
answers
163
views
Problem with colortbl and makecell
Here is an simple example.
\documentclass{article}
\usepackage[table]{xcolor}
\usepackage{colortbl}
\usepackage{multirow, makecell}
\begin{document}
\begin{tabular}{c}
longer text\\
\cellcolor{...
1
vote
2
answers
681
views
How to bold inside makecell?
I am using makecell for table cell,
\makecell[ct] {Power \\ Profile}
Now, I need to bold the content and hence I used,
\makecell[ct] {\textbf{Power \\ Profile}}
But its not compiling. How can I ...
1
vote
2
answers
81
views
Unwanted space between letters in tabular cell
I am using below code,
\begin{table}
\caption{Performance comparison of CMOS VCO with the state-of-the-art}
\label{tab:3_3}
\setlength{\tabcolsep}{5pt}
\centering
\small
\begin{tabular}{ |p{2cm}|p{...
2
votes
2
answers
365
views
Vertical centering of multirowcell text when specifying other column widths
I have tables where I am trying to use two features together:
multirowcell (from the makecell package) for cells that span multiple rows with new lines inserted into the text in specific locations, ...
2
votes
2
answers
183
views
Reducing the line spacing for a rotated table cell
I'm trying to reduce the line spacing for the rotated table cells in order to reduce the width of the table and to make it look nicer.
Also the cell "Material" looks kind of crammed.
This is what it ...