Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [makecell]

The tag has no usage guidance.

2
votes
1answer
34 views

Even vertical distribution of lines in a multiline cell

I am trying to create a figure which has two or three photos on the right and text on the left. What I want is for the text on the left to be equally spread across the height of the cell (equal to the ...
1
vote
1answer
16 views

makecell package and column width

To create the tables I use the makecell package. I would need the last four columns have a with a smaller width than the first: this is my attempt \documentclass{article} \usepackage[T1]{fontenc} \...
2
votes
2answers
41 views

Table coloring doesn't extend all the way with makecell

This issue occurs while using xcolor to alternate the table color, while also using makecell to put multiple lines in a table cell. In this specific scenario, where a larger cell is in a colored line, ...
1
vote
2answers
51 views

How to use \thead with left align locally instead of globally?

How to align the contents of the \thead cell to the right? \documentclass[12pt]{memoir} \usepackage{tabularx} \usepackage{makecell} \begin{document} \begin{tabular}{|c|} \thead{Content \\ ...
1
vote
1answer
34 views

Evenly vertically spaced lines inside makecell

I have a table with a rotated header, and some makecells afterwards to fit the rotated header on one line: \documentclass{article} \usepackage{makecell} \usepackage{graphicx} \usepackage{booktabs} \...
4
votes
2answers
116 views

Align column in table on Plus/minus symbol with values of varying length and align header of first column with data?

I would like the data in the "Confidence Limit" column to align on the plus/minus symbol. Here is a link to a similar but different question Aligning +- sign in table. However, the values in my data ...
2
votes
0answers
71 views

Using makecell in tabu: incompatibility with the packages tcolorbox and todonotes

I have a problem when using the package tabu with makecell and tcolorbox and todonotes. This is my minimal example code: \documentclass[a4paper]{scrreprt} \usepackage{tcolorbox} \usepackage{todonotes}...
0
votes
3answers
89 views

How to get automatic line-breaks using tabularx and makecell?♀

I'm using the tabularx and makecell packages for the aesthetics of my tables. I used the X column type for columns with long texts and \makecell{...} for line-breaks into the cells. But when I try to ...
1
vote
1answer
60 views

Text not quite centred in table using makecell

See my code below and attached image showing output of the code. I'm producing a table which is just about finished, but one last thing is bothering me. The text in the cells of the column titled "...
2
votes
2answers
69 views

makecell alters vertical alignment across table row

Consider this example: \documentclass{report} \usepackage{makecell} \usepackage{lipsum} \begin{document} \begin{tabular}{p{3cm}p{3cm}} \lipsum[1][1] & \lipsum[1][2-4]\\ \lipsum[1][5] & \...
1
vote
1answer
28 views

alignment with makecell

Consider this example: \documentclass{report} \usepackage{makecell} \begin{document} \begin{tabular}{ll} A0 & \makecell{B01\\B02}\\ A1 & Bbbbbbb1 \end{tabular} \end{document} I use \...
0
votes
1answer
53 views

how to align cell text to center with \makecell

\begin{center} \begin{longtable}{|>{\centering}m{.2\textwidth}|m{.2\textwidth}|} \hline \makecell[{{p{.2\textwidth}}}]{this is a test test test test test test\\ a test too} & bear \\...
5
votes
2answers
42 views

styling nline cells

The number line command \nline from the makecell package inserts n cells with a pattern containing an incrementing number. I'd like to treat those as headers, styled with \theadfont and \theadalign. I ...
0
votes
1answer
34 views

set font for multiple paragraphs in makecell

I can set a common font for multiple paragraphs as for par 2 and par 3 in this example: \documentclass{report} \begin{document} par 1 { \tiny par 2\\ par 3 } par 4 \end{document} Unfortunately ...
2
votes
1answer
69 views

How to break a line inside a table cell and add text in the next column ONLY IN CERTAIN CASES?

I am quite new to LaTeX and I am making a wine menu. In some cases I need to add a price for a single glass and/or for a half-carafe... But ONLY in these cases, when such an option exists. I found ...
2
votes
1answer
164 views

Top & left alignment with \makecell in tabular

I'm struggling to make a specific cell (4th column) top and left aligned. Not too sure why \makecell is not co-operating but here's my latex code: \documentclass[10pt,a4paper]{article} \usepackage[...
1
vote
1answer
78 views

multirowcell in the final column of a table has vertical line partly missing

I am using the makecell and multirow packages. The only problem I can't solve is having a \multirowcell in the final column of the table leads to the right most vertical line only going part way down....
4
votes
2answers
123 views

Set \bottomrule of two uneven tables to same height

I have two parallel tables not equal in height. I'd like to set \bottomrule of the shorter left table to the same height as the right one. Is this even possible without rearranging the rows? Using \...
1
vote
2answers
798 views

Spacing in cell with \makecell command

I'm having a problem with deleting the extra space in the cell. I think it may have something to do with using \makecell in a \mulitcolumn. I'm trying to have empty space on the 1st line in the second ...
4
votes
1answer
235 views

Why does \makecell's vertical alignment option affect another cell rather than itself?

I'm puzzled by the behavior of \makecell (from the makecell package) when given a vertical alignment option (such as [t] or [b]). It appears that the specified option doesn't affect the vertical ...
0
votes
1answer
602 views

Using \multirow and \makecell

I am trying to make a table which has in total 4 rows (1 tittle + 3 data). In one column, which contains the same information for all 3 rows, I decided to use \multirow. In this multicolumn I would ...
2
votes
1answer
541 views

colortbl's \cellcolor not filling whole cell in combination with \makecell

I want to color some cells of a table, some of which use \makecell. The problem I run into is that not the whole width of the \makecell cells is filled by the color. MWE: \documentclass{article} \...
1
vote
1answer
318 views

How to align cell text to left with \makecell

I am using \makecell in table text because I need to make multiple lines text inside the cell. But I can not get the third column cells to be aligned to left. My tabular only centers the last cell. ...
0
votes
1answer
574 views

rowcolor doesn't fill complete cell

So I'm trying to color the rows in my table, but in the rows where I use \makecell, the colouring doesn't work properly. Somebody knows a solution for this? \usepackage{xcolor, colortbl} %kleurtjes ...
1
vote
1answer
78 views

Problems with makecell when using tex4ht

I'm having trouble building a document using tex4ht with makecell. Consider the following M(n)WE: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{booktabs} \usepackage{lipsum} \...
1
vote
3answers
285 views

Cell color problem

I have a problem that I can not color all the box \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{cfr-lm} % instead of the "[cyr]{...
2
votes
1answer
348 views

Wrapping text with multirow [duplicate]

I'm working with a long table in and I'm having some issues with the it. I can't wrap the text in the last column, which uses multicolumn. Therefore, the text goes out of margins. Here's my code: \...
2
votes
2answers
90 views

progressbar with overlay text

I need to display the actual percentage value as an overlay to a progressbar. As you can see in the MWE, the only thing I get is to move it below the bar, but I want it inside the bar. Is this even ...
2
votes
1answer
125 views

siunitx & makecell in tables: number alignment does not work

I want to align my numbers with siunitx, but in combination with makecell it produce several error message based on my \makecell commands. I tried to protect my makecell commands with brackets, but it ...
0
votes
1answer
388 views

Get makecell thead to emulate font size of table environment?

I have a table defined like this: \begin{table}[] \tiny It contains a table header in bold with a line break between words. \textbf{\thead{word1 \\ word2}} I added this to my pre-amble as per this ...
1
vote
1answer
2k views

How to vertically AND left-align a cell with \makecell?

I am writing a table with the \makecell package, and I am able to left-align the makecell text with the command: \makecell[l]{here is \\ my text \\ in the cell} I can also top-align the text with: \...
3
votes
1answer
220 views

How to change table background headers color on multiple pages by this code

change the color of the background of the header to blue, not the header font color. thank you in advance \begin{document} \pagestyle{plain} \lipsum[1-5] %\pagestyle{empty} \begin{landscape} % ...
1
vote
1answer
2k views

\usepackage{makecell} is declared, but \makecell is not defined

In my preamble, I declared: ... \usepackage{cite} \usepackage{color} \usepackage{graphicx} \usepackage{caption} \usepackage{float} \usepackage{array} \usepackage{makecell} \usepackage{multirow} \...
5
votes
3answers
2k views

\makecell align does not work?

In the docs of the makecell package in Section 1.1 it stated that one can align text horizontally to the top or bottom with \makecell[t]{..} and \makecell[b]{..}. I tried that with \documentclass{...
2
votes
2answers
423 views

difficulty formatting with multirow and multicolumn

I've created a table that (I think) needs \makecell{}, \multirow{}, and multicolumn{} to be displayed properly. The issue is that the spatial arrangement of my elements is not so great. The lower and ...
1
vote
1answer
486 views

Xhline too long in longtable

I am tyring to make a table with longtable. At regular intervals, I replace the standard \hline with makecell's \Xhline{2\arrayrulewidth}. This mostly occurs below a \multicolumn cell. \documentclass[...
0
votes
1answer
115 views

Footnotes not appearing in makecell used in longtable [duplicate]

I am using a footnote inside makecell inside a longtable and while the footnote's counter is displayed, the text does not appear at the end of the page. Here's a MWE \documentclass{article} \...
4
votes
1answer
1k views

With makecell the text dimension is reduced

I added the makecell package in order to insert a line break within a column of tabular environment. Everything perfect and smooth except for the shrinkage of the text dimension: \documentclass[...
2
votes
1answer
458 views

Hanging indent with makecell

I'm using \usepackage{makecell} to break up some long text inside my tables. I would like to have a hanging indent for that cell. I see some documentation about customizing such aspects, but modifying ...
1
vote
1answer
337 views

Getting tabu to work with diagbox and more correctly

I have been fighting with my code for 5 hours now. How do I get \documentclass[english]{article} \usepackage[allowlitunits]{siunitx} \usepackage{booktabs} \usepackage{tabu} \usepackage{makecell} \...
2
votes
1answer
88 views

Custom longtable hangs forever when admittedly weird redefinition of \footnoterule is used

Please, nobody ask me why I have this code .... The following MNWE does not compile. It does not give an error. It simply hangs forever until I interrupt the process. Because this is pdfTeX and not ...
2
votes
1answer
106 views

\makecell option in currvita leaves a blank line in the second column

I am using currvita package to make my resume. I want to add a line on the left column and I used \makecell. However, using this package leaves a blank line in the right column. The result looks like ...
4
votes
2answers
603 views

Misaligned cells using makecell and xtabular

First a minimal example: \documentclass{article} \usepackage{makecell} \usepackage{xtab} \newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}} \begin{document} \begin{xtabular}{|p{0.65cm}||C{0....
0
votes
1answer
799 views

How to color rows when using makecell?

I'd like to color the rows of a table to make it easy readable. Some cells have multiple lines, so I use the makecell package, and planned to use the xcolor for coloring, but they are clashing. Sample ...
0
votes
1answer
581 views

create a table with multirow's auto-hyphenation

I tried some combinations of packages to reach my combination of needs. But I wasn't successfull. multirow: cells spanning over more then one row hyphenation: should work automatic allignment: cell ...
2
votes
1answer
273 views

text wrapping in a cell of latex table

I have the following MWE: \documentclass[11pt, oneside]{article} % use "amsart" instead of "article" for AMSLaTeX format \usepackage{geometry} % See geometry.pdf to learn ...
1
vote
1answer
243 views

Are m column type and makecell incompatible?

In preparing answer to question I was surprised that this MWE \documentclass{article} \usepackage{array,makecell} \renewcommand\theadfont{\bfseries\normalsize} \begin{document} \begin{table} ...
3
votes
1answer
2k views

align text in a tabu-table top-left without tricks

I use tabu and makecell to create tables and their content. As many other people I want to align cell content top-left. There are a lot of postings about that topic (with different table environments) ...
7
votes
1answer
307 views

\makecell in the header: how to get rid of the space after the last column of the table?

This table is perfect for me except for the space left at the end: How can I eliminate it? @{} doesn't work! \documentclass[british]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \...
1
vote
1answer
489 views

Table Errors - Misplaced \noalign, Misplaced \omit, extra alignment tabs

I am very new to latex, and as I'm nearing the end of my first thesis, due to submission in two days I'm placing the results which have finally been extracted after several attempts over the past few ...