Questions tagged [makecell]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
24 views

\makecell - space after word wrap

I use table "longtblr" and inside I use "\makecell[{{p{5cm}}}]{abcd}". I want to add shift/space before "defined by default)" , like in "Option 2". Thank you ...
ikif's user avatar
  • 39
2 votes
1 answer
42 views

Line breaks inside multirow does not make cell bigger

I have some long lines in a table and I am using \makecell to add in line breaks. Usually this works fine (vertically centres the text and expands the cell to fit), but I need this inside of a ...
Henry Ginn's user avatar
1 vote
2 answers
62 views

Combining columns and rows in overleaf

I would like to put "U.S. census" in the middle of the given space, and also "GroupA" as well. Currently it's somewhat shifted. How should I combine the rows? \begin{table} \begin{...
snowman's user avatar
  • 11
2 votes
2 answers
66 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[]{...
EoDmnFOr3q's user avatar
  • 2,301
0 votes
1 answer
36 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 ...
StrikeAgainst's user avatar
2 votes
1 answer
33 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[...
Christoph Thiede's user avatar
0 votes
1 answer
52 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 ...
enrico223's user avatar
1 vote
0 answers
51 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 ...
Sahil Rai's user avatar
0 votes
1 answer
46 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 ...
Hemang's user avatar
  • 67
4 votes
3 answers
143 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 ...
LukeTheWolf's user avatar
1 vote
2 answers
574 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 ...
Pollen's user avatar
  • 13
1 vote
2 answers
66 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{...
Simon's user avatar
  • 303
3 votes
4 answers
184 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} \...
user25957's user avatar
  • 623
1 vote
1 answer
48 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$ &...
Memristor's user avatar
  • 119
1 vote
1 answer
90 views

Right bigg bracket

How can I do the right bracket like that of the left hand side?
Memristor's user avatar
  • 119
2 votes
2 answers
229 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} \...
Lithimlin's user avatar
  • 133
8 votes
3 answers
257 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 \...
Reactionic's user avatar
0 votes
0 answers
110 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 ...
black's user avatar
  • 372
0 votes
2 answers
64 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 ...
polmdm's user avatar
  • 1
1 vote
2 answers
25 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|...
Johansson McFleppers's user avatar
1 vote
2 answers
61 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 ...
Sung's user avatar
  • 15
0 votes
1 answer
82 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[...
ei2's user avatar
  • 3
0 votes
2 answers
60 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{...
Ying Xiang Tow 's user avatar
2 votes
1 answer
105 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, ...
user1993416's user avatar
  • 1,046
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 \...
jiawei chen's user avatar
4 votes
1 answer
358 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{\...
user4035's user avatar
  • 5,035
1 vote
1 answer
121 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 ...
Genevieve's user avatar
0 votes
1 answer
64 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} \...
Gen G's user avatar
  • 1
1 vote
1 answer
672 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 ...
Elise's user avatar
  • 197
0 votes
2 answers
93 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] ...
Dhruv Nair's user avatar
1 vote
1 answer
172 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 ...
Winston Yau's user avatar
2 votes
1 answer
427 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 ...
Al-Motasem Aldaoudeyeh's user avatar
1 vote
1 answer
63 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 ...
Torie's user avatar
  • 11
3 votes
1 answer
590 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)...
Al-Motasem Aldaoudeyeh's user avatar
2 votes
3 answers
61 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 ...
Rvan8's user avatar
  • 23
1 vote
2 answers
74 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{...
itc's user avatar
  • 657
0 votes
1 answer
165 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 ...
NickG's user avatar
  • 193
2 votes
1 answer
72 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 ...
Namal's user avatar
  • 301
2 votes
1 answer
49 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. ...
HWilmer's user avatar
  • 203
1 vote
2 answers
215 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{...
Nasser's user avatar
  • 20.2k
1 vote
1 answer
346 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, ...
Bram Vanroy's user avatar
1 vote
1 answer
249 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]{...
nateroe's user avatar
  • 115
2 votes
1 answer
307 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....
golmschenk's user avatar
3 votes
1 answer
96 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]{...
MNP_88's user avatar
  • 63
0 votes
2 answers
149 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[{...
likethevegetable's user avatar
1 vote
0 answers
430 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 ...
s.k's user avatar
  • 677
0 votes
0 answers
432 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 ...
ViToni's user avatar
  • 203
3 votes
2 answers
203 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 ...
snadhelta's user avatar
2 votes
2 answers
396 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 ...
forrest's user avatar
  • 958
2 votes
1 answer
85 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 ...
Fredrik P's user avatar
  • 1,386