The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [cell]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
55 views

split and move large cell of table to next page LaTeX

I need help with automatically moving rows from one cell of the table to the other page. I need a solution for automatic text transfer from one long cell to next page. The solution may seem strange ...
4
votes
2answers
66 views

Vertical line in a table with merged cells

Here 's my problem: I would like to reproduce the following image in Latex in order to automate the generation of my documents: (It's french with meaningless data haha) For now I managed to get the ...
3
votes
2answers
73 views

Cell not completely colored

As some other people over here, I have some troubles having the cells of my table colored properly. I read many threads about this on the forum, but all problems I could find were related to the ...
0
votes
1answer
48 views

Horizontally and vertically centered multi-lined cells

I want a table where the cells contain either a single line of text or two lines of text, and the cell contents are both horizontally and vertically centered. The height of the cells should be 2cms ...
1
vote
1answer
47 views

Repeating Image Background in Table Cell

I want to create a table with a cell that has a repeating image as a background, i.e. the image should not stretch to fill the entire cell, but rather tile (like in the example below). I have the ...
0
votes
1answer
45 views

The \cellcolor command of the colortbl package does not work

I'm trying to use the \cellcolor command from the colortbl package. Here is the code I wrote: \begin{footnotesize} \begin{table}[!hb] \begin{center} \begin{tabular}{|c|c|c|c|c|} \hline \mbox{$B_3B_2 \...
1
vote
1answer
44 views

Can we use both tabularx and multirow together?

\documentclass{article} \usepackage{tabularx} \usepackage{multirow} \begin{document} \begin{table}[h!] \setlength\extrarowheight{2pt} % for a ever so slightly more open "look" \begin{tabularx}{\...
0
votes
0answers
42 views

How to allocate more space inside a cell in a table? [duplicate]

I'd like to create an evenly distributed two columns table on a page. In order to have the vertical division centered, I used tabularx: \begin{table}[H] \begin{tabularx}{\textwidth}{X X} a & b \\ ...
3
votes
1answer
65 views

Problem of cell height varying with text when using tikz to generate tables

I am using tikz to generate a table with the following code: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{xcolor} \definecolor{light-gray}{gray}{0.95} \newcommand{\code}[1]{\...
1
vote
0answers
39 views

Using cellcolor with tabu

I have made the following table: \usepackage{tabu} \usepackage{xcolor,colortbl} \begin{center} {\tabulinesep=1.2mm \begin{tabu} to 0.9\linewidth { |[2pt] *{3}{X[1 c]|}[2pt] } \tabucline[...
2
votes
2answers
79 views

Latex table: text does not center on cell

I'm trying to create a table in Latex, but the text does not line up in the center of the cell, in some cells, and leaves out of the table. How can I solve the problem? \documentclass[a4paper,11pt]{...
2
votes
2answers
68 views

Misaligned rotated cell

I'm trying to rotate some cells in my table, but they seem to be right aligned for no specific reason. They also expand the cells somehow. \documentclass[a4paper, 11pt]{article} \usepackage[utf8]{...
3
votes
2answers
45 views

Line breaks and alignment in table cells with math environment

I am trying to build a table which has math environments and forced line breaks. I've found some solutions that come close to what I desire. Effectively, I am working on something like this: \...
2
votes
2answers
84 views

Create table using exact horizontal and vertical cell sizes with intentional cell overlap

I need to create a table where each cell is 1em x 1em. The contents of each cell in the table will be a single glyph from a special Unicode font. Each glyph is 1.1em x 1.1em. There is intentional ...
0
votes
0answers
27 views

Table Cell Problem

I'm working on a table and I try to plot bold line in order to highlight a specific column. However, my lines are cutted before to reach the full cell (horizontal lines...). Someone can help ? \...
1
vote
1answer
43 views

Tabular rows that adjust height to wrap text?

I have a table like this: \begin{tabular}{|l|l|} \hline \multicolumn{2}{|l|}{\textbf{Item Name}} \\ \hline Item Type & Item Subtype \\ \hline \multicolumn{2}{|l|}{Item effect (long ...
2
votes
2answers
40 views

Strange behavior of tabular when a second \multicolumn is added

The original question is about placing figures inside a tabular and trying to adjust them like this: with a code similar to this: \documentclass{article} \usepackage{graphicx} \usepackage{array} \...
2
votes
1answer
52 views

Is there a global variable that reflects the current preferred table column's width?

I wish to insert a (varwidth) box into a table cell, and I want the size of the box to be limited in width to whatever autosize that column would otherwise have, and for any text that I insert into ...
1
vote
1answer
28 views

Insert \searrow between cells in an table with white background

I am preparing a text in which the student can learn alternative fast way to find a solution of an integral. So, in the below, I made a MWE of illustrating the way by manipulating the codes. Sorry if ...
2
votes
1answer
278 views

Change Column Name and Cell Value Pgfplotstable

I have this csv file: ,Accuracy 1,0.982 2,0.982 3,0.982 4,0.988 5,0.916 6,0.976 7,0.958 8,0.97 9,0.945 10,0.988 11,0.969 This is the screenshot when I imported it into Latex file: This is the ...
0
votes
0answers
27 views

Cell horizontal text alignment in a wide table

I have this table in my document, and as you can see the numbers in the to row are not centered, I tried to use some solutions from previous asked questions but none of them fixed this. The Latex ...
3
votes
1answer
185 views

How to mix coloring and hatching in the same cell in a tabular environment?

I have read about hatching here and I understand how to color a cell. But I have a hard time getting a cell both colored and hatched at the same time. Here's my MWE: \documentclass{article} \...
1
vote
0answers
104 views

Custom cell spacing in longtable

Is it possible to define custom cell spacing in longtable? Example: \begin{longtable}{|>{\RaggedRight}p{8cm}|>{\RaggedRight}p{8cm}|} ... one & two\\ three & four\\ five ...
0
votes
2answers
228 views

how to split the text in the cell of table

I need to split the text in the cell. I have tried the \par but this command doesn't work inside the brackets { }. My attempt is below. \begin{table}[] \centering \caption{Caption}\label{tab2} \begin{...
1
vote
0answers
51 views

moving one large cell of table to next page LaTeX

I need help with automatically moving rows from one cell of the table to the other page. I'm using the package longtable but it works only for individual table cells. I need a solution for automatic ...
3
votes
1answer
136 views

How do I create row and column dependent color coding using csvsimple?

I have the following MWE: \documentclass{article} \usepackage{csvsimple} \usepackage{filecontents} \usepackage{longtable} \usepackage[table]{xcolor} \renewcommand{\rmdefault}{ptm} \begin{...
1
vote
1answer
172 views

how to fix the tex vertically in a cell of a table?

this is my problem: I have created a table with excel2latex add for excel but in the first column the text doesn't fit vertically. How can I make the text fit vertically into the first column without ...
1
vote
1answer
37 views

Reducing line spacing in a wrappd table cell text

Apologies in advance, I am a complete LaTeX beginner trying to fix a problem with an existing system. I have isolated the issue into the following test code: \documentclass[12pt, a4paper]{article} \...
0
votes
0answers
33 views

Long table cells adjustment

well I'm facing a problem using longtable in latex. My problem is that I could not adjust my longtable cells correctly. Below my longtable example : \usepackage{float} \usepackage{longtable} \...
1
vote
1answer
387 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
2answers
280 views

How to center text vertically in a table cell of column type 'c' or 'p'?

Here are some tables. We wish to center the text in the table cells vertically. How to write such code? Table 1: \documentclass[conference]{IEEEtran} \usepackage{graphicx} \usepackage[utf8]{...
2
votes
1answer
142 views

How to merge cells borders (drawing walls in a grid)?

I want a draw a wall on a gridcell. Currently I have this: %based on https://tex.stackexchange.com/a/91429/69931 \documentclass[usenames,dvipsnames]{article} \usepackage{tikz} \...
3
votes
2answers
118 views

Set intertext spacing in a cell of a table

I've tried to use \begin{Spacing}{Factor}...\end{Spacing} to set the intertext spacing in the cell of the following table: However there is the unexpected vertical space between the cells. How to ...
2
votes
2answers
59 views

Fit vertical text into table cell

I am making a relatively simple table in LaTeX however, I came across a problem. I am trying to make the following table: However, I get the following: My MWE is the following: \documentclass{...
3
votes
1answer
389 views

manual cell shifting in a tikz-cd diagram

Is there a way to shift single cells in a tikz-cd diagram? My approach so far was to put the contents of the cells inside a node, so that i can shift this node with the usual tikz options xshift, ...
0
votes
1answer
336 views

Left alignment with makecell in a table and using textsuperscript

I am writing a paper to an IET journal using the class cta-author.cls, the left alignment in a table does not work with the \makecell option to break line in a table cell (second column), the same ...
0
votes
1answer
57 views

Dissociate vertical alignment from adjacent cell contents

Good morning and a very good year to all of you, My problem is this: when I insert a table (N2) into one of the cells of my base table (N1), the content of adjacent cells (on the same line) appears ...
0
votes
1answer
40 views

Set environment's parameter the first cell of the table

I need to create new table environment where fist cell(1row & 1column) would be set as parameter of my environment for example \begin{environment}{first box data} & Its information \\ \end{...
0
votes
1answer
979 views

Fancy table: Multicol and multirow

Still dealing with fancy tables, now I am trying to get one with multicolumn and multirow cells. I can get multicolumn cells right, but I am still struggling with multirow ones. MWE in Beamer: \...
5
votes
1answer
311 views

Fancy table: Remove cells and split lines within cells

I have a fancy table in the following MWE, and for the life of me I cannot remove the cell in the lower left corner, and I cannot split lines within cells (I want to split "Ovulation date" and "Poor ...
0
votes
3answers
174 views

Edit table cell style and spaces

I'm struggling with tables in latex. I would like to have the following "word" effect: but with the code: \usepackage{booktabs} \usepackage{colortbl} \usepackage{xcolor} \begin{center} \begin{...
0
votes
3answers
721 views

Remove spacing between rows of a table

I need to remove the whitespace between the rows of a table due to the first cell of first column overflowing to more than a line. See the screenshot the current typset of the pdf. So I need to ...
3
votes
2answers
455 views

Different vertical alignment of text in 4-column table (tabularx)

I'm newbie in TeX, so I've decided to ask for some help. I'm working on technical documentation for my job and I need to create a 4-column table, where text in first two columns top-aligned and ...
2
votes
2answers
96 views

Pictures inside cells overlaps horizontal rules when exported to PDF

I am new to LaTeX. I am trying to make a table with pictures inside the cells. Preview in ShareLatex looks fine, but when I export PDF file to my computer it looks like this. Any suggestions? Here ...
3
votes
1answer
92 views

The cell is not stretched vertically in longtabu

We have a latex longtabu with multirow cells and these cells contain a lot of text. BTW XeLaTeX is used. Problem: cell is not stretched vertically. Why? How can I fix it? I have tried to use \par\...
4
votes
3answers
738 views

Texture or image as background for a single table cell

I want to add a image as background of a single cell of a table, such that the background image is scaled to the actual size of the cell. However, I could not figure out how to do it. I tried using ...
0
votes
1answer
457 views

Table : set cells exact size

I'd like to make a tex document that would fit pre-cut sticking labels sheets. I set the margins with the geometry package. I now want to create a table that would hold the values I have to print on ...
1
vote
1answer
56 views

Table Latex : add lines and center the caption

I'm a beginner user of Latex , i wana drow a table but i got this i wana add the lines between the rows, also the caption in the center and expand the cells. \documentclass{article} \usepackage{...
1
vote
1answer
570 views

Format borders for single cells in table

I would like to create a table that looks like the following: I do not know how to create different borders for each cell. This is what I have so far: \documentclass[a4paper, 12pt]{article} \begin{...
2
votes
1answer
714 views

Diagonal line for a table with multiple rows

Considering the answer of question, I used the slashbox package to draw a diagonal line. But the problem is I have multiple rows in my table and that makes the line not aligned well within the cell ...