Questions tagged [cell]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
61 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]{\...
0
votes
0answers
28 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
66 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
62 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
40 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
79 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
23 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
34 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
50 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
25 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
204 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
24 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
107 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
83 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
182 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
35 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
117 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
166 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
36 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
30 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
332 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
239 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]{...
1
vote
1answer
102 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
104 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
55 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
326 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
306 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
56 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
858 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
280 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
153 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
621 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
375 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
91 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
84 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
672 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
434 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
53 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
516 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
620 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 ...
5
votes
4answers
738 views

Vertical alignment of equations including fractions in a table

I need to cramp a table into a tight space, but unfortunately the equations aren't aligning/fitting into it vertically. Here is the code: \documentclass[12pt]{article} \usepackage[a4paper, top = 0....
0
votes
0answers
223 views

Remove white spaces between words in a longtabu cell? [duplicate]

I am trying to figure out why I have white spaces in some of my table cells between some words. This is how the problem looks like: This is the code that I use: \begin{table}[ht] \centering \...
4
votes
1answer
1k views

How to change the left padding for one latex table's cell?

Given the following table: \begin{tabular}{|l|l|l|} \hline a & b & c \\ \hline d & e & f \\ \hline g & h & i \\ \hline \end{tabular} I could find the question Padding at the ...
4
votes
3answers
434 views

How to reduce space between specific cells and properly center caption table?

I've just recently started to use LaTeX and It's been wonderful. However, I've been struggling with tables in general. This is by far my best table creation but still isn't perfect. As you can see ...
0
votes
1answer
130 views

Is it possible to know text height in the cell?

I need to align table cells content vertically. To do it in normal human definition (not in latex base line) and automaticly, i need to know in which cell in the row text is smaller (takes verticaly ...
2
votes
1answer
410 views

Table cell text overflow when using \multirow

I have made a table and in it, I have to use the multirow package for the headers. Works fine when there are two lines but it y-overflows when there are three. I tried increasing the space in each row ...
0
votes
2answers
148 views

How to organize a table with multiple line cell and text in left corner?

I am trying to make this table organized. I want everything in the left corner of the table and the sequence as it is represented now (I want the lines in the same sequence but since I didn't know how ...
0
votes
1answer
95 views

Split cell into five equally sized “sub-cells” with fixed width

I am trying to color cells of a table with 3 rows of 2 cm width each using tabularx and cellcolor. I want to split an arbitrary number of cells of this table into "sub-cells" with different colors, ...