Questions tagged [makecell]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
41 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
1answer
60 views

Why does not `\makecell` provide proper vertical alignment for this particular line?

I am trying to align table cell contents using \makecell. I see it is very strange that (in the same table), one row aligns vertically as intended but the other does not. I want the words 'Component' ...
1
vote
1answer
54 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 ...
2
votes
1answer
55 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
3answers
37 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
2answers
58 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
1answer
46 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
1answer
51 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
1answer
36 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
2answers
66 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
1answer
28 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
1answer
65 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
1answer
79 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
1answer
46 views

rowcolor uneffective in longtable with makecell

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
2answers
43 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[{...
0
votes
0answers
154 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
0answers
113 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
2answers
61 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
2answers
124 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
1answer
92 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
1answer
48 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
1answer
146 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
0answers
49 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
1answer
67 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
2answers
178 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
3answers
186 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
1answer
47 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
2answers
99 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
1answer
71 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
1answer
113 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
1answer
55 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
3answers
173 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
4answers
127 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
1answer
422 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
2answers
70 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
2answers
244 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
2answers
82 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 ...
2
votes
2answers
66 views

Align columns with numbers by decimal point and ratio symbol (colon :)

I want to achieve alignment by decimal number AND the colon (:) ratio symbol, similar to what is shown in the code below as opposed to what is shown in the figure. I would welcome any suggestions for ...
2
votes
1answer
40 views

How to achieve a centered header over right-aligned columns of numbers when the header is long relative to the width of the column of numbers

I have difficulties to produce a relatively wided centered header entry over a relatively narrow column of right-aligned numbers. The other way around it works fine with the makecell package as shown ...
1
vote
2answers
310 views

Cell size with multirow and rotated content

I have the problem, that the cell size on my rotated multirow cells does not adapt its size, so that the contents fit. I tried following the solution described in Long text in rotated multirow , but ...
1
vote
1answer
36 views

How to make a sentences to become 2 line using \thead [duplicate]

I had try include \thead but not working. I want to make Class AA and Class BB go into second line. \documentclass[12pt,oneside]{book} \usepackage[showframe]{geometry} \usepackage{amsmath} \...
0
votes
1answer
45 views

vertical text problem in table

I'm making a planning for some report, and used the LaTeX table generator to change it from Excel to LaTeX. However, if I'm running the generated code, the vertical text gets split up, which I don't ...
0
votes
1answer
522 views

Can we use \makecell in Tabularx

I am not sure why I cannot use \makecell Basically, I just want to have a content centre there. Making my life very difficult. \documentclass[12pt,oneside]{book} \usepackage[showframe]{geometry} \...
1
vote
2answers
189 views

\Xcline (makecell) doesn't lign up with \vrule

I'm not sure how to fix this problem where the \Xcline from makecell doesn't lign up with the \vrule I set in my longtable(need that since the actual table might span several pages). Here is a MWE of ...
1
vote
1answer
47 views

How to align rotated table cells

I need help with aligning rotated cell text. The problem is that I don't know in advance the text that appears in the table, so I can't use something like \settowidth\rotheadsize{text}. This is what ...
3
votes
2answers
86 views

Is it possible to create a command with another command, passing code as a string?

I want to loop through a list and print some text. The placement of that text is inside a table, inside a \makecell command. I could hard-code the items from the list I want, including some \\ ...
2
votes
1answer
247 views

How to Solve Error With Square [] Brackets on New Line in Header

In the table below, if I move the units in the square brackets to the next line in the header (e.g. [mg/g] on a new line), I get an error. However, if I use curved () brackets instead, there is no ...
3
votes
3answers
477 views

Colored tables with booktabs, makecell and cellspace

While experimenting with different table-packages, I realised, that each package basically stands for itself and often lacks in compatibility with other great packages. So I tried to create a table ...
0
votes
1answer
154 views

Fix errors for a specific table

I have a table with this MWE. \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amssymb} \usepackage{booktabs,makecell} \begin{document} \begin{table}[htb] \captionsetup{justification=...
0
votes
0answers
163 views

\makecell is not working in \tabular{*} s columns, in the l first column it works fine

See this please: \documentclass[11pt]{article} \usepackage[nopar]{lipsum} \setlength\parindent{0pt}% globally suppress indentation \usepackage[format=hang,labelfont=bf]{caption} \usepackage{fullpage} ...