Questions tagged [cell]
The cell tag has no usage guidance.
133
questions
0
votes
1
answer
20
views
\cellcolor doesn't work in my talltblr environment
I'm trying to add colour in some cells in my tab but it won't work for my talltblr environment. I want to colourize cells with A in grey.
\documentclass[a4paper,12pt]{book}
\usepackage[left=30mm,top=...
2
votes
1
answer
36
views
Text not vertically aligned in tabularx cell
I've run into a problem that I can't seem to find a solution to. I am using the package tabularx since I work with small pages. My table has a mix of figures and text, and I would like the column to ...
1
vote
3
answers
42
views
Latex table cell linebreaks expands to whole row
I have this table, and making \\ line breaks in first column, but this affects also the next cell, which is unintended. How can i stop this behavior? I have tried a lot, at this point, but i feel ...
0
votes
1
answer
46
views
Table with different number of columns after some rows
I want to create a table with different number of columns after a specific row. This is what I've accomplished so far:
\begin{center}
\begin{tabular}{ |p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|...
5
votes
1
answer
112
views
How to modify single elements of PGFPlotsTable?
I want to create a table with some values. Afterwards I want to replace one
element of the table and display a plot.
The nearest I get, you can see below in the minimum example.
So there are two basic ...
3
votes
1
answer
41
views
Aligning chemical + and arrow with vline of tabular
I would like to reproduce this figure:
So far, I have managed to come up with this code:
\documentclass{article}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[french]{babel}
\...
2
votes
2
answers
55
views
Vertical centering in tabularx after forced \newline
I am having troubles with a vertical alignement in cells after forcing \newline.
Consider this MWE:
\documentclass[12pt,oneside]{report}
\usepackage[utf8]{inputenc}
\usepackage{array}
\usepackage{...
1
vote
1
answer
52
views
How to center merged cells vertically in a table and stretch the merged border to cover all of the cell?
I am using the code:
\definecolor{atlas}{RGB}{11,128,195}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\begin{table}[H]
\centering
\begin{tabular}{| l | C{2cm} ...
0
votes
1
answer
56
views
text in table cell wrap
1st picture is the expected way in a table cell, 2nd picture is the failed outcome using the following table rules. 1st picture's table cell items can be written in two lines, but in the 2nd picture ...
0
votes
1
answer
64
views
Remove vertical space above list in cell with color
When a list is the first item in a cell, it has a big vertical space above. In order to remove this space, classical answers are based on inserting \@minipagetrue before the list.
Unfortunately, this ...
1
vote
0
answers
39
views
How do I break the text in a table-cell? [duplicate]
I am using Tufte book. For the table below, I want to add a line break in the first column. I want "Nr. of transactions" to be in one line and "pre-processing" on the second line. ...
0
votes
0
answers
41
views
Is there a way to automatically set the cell width to achieve the shortest table within the page?
I want to automatically set the cell width to allow the table height to be kept minimum. There might be 2 or 3 lines of text in a cell, so this is no problem if the table height is the minimum in such ...
0
votes
0
answers
69
views
Set the width of \TextField to the width of the table width
I want my \textfield width to fill the width of the table. For now I have this:
\documentclass[a4paper,2pt]{article}
\usepackage{hyperref}% load last unless you know a package should be loaded later
\...
4
votes
1
answer
188
views
How I can add color arrows in a table cell?
I would like to replace each + and - with green and red arrows, respectively, in my table like table below:
My table code:
\begin{center}
\begin{tabular}{ |c|c|c| }
\hline
50 & 30.5 & +19....
0
votes
1
answer
64
views
How to add company logo to the merged cell of table?
I am making a CV and in experiences section, I would like to have a logo (normally a small image) before the designation and the company name. This logo must be in the merged cell of first raw second ...
1
vote
1
answer
47
views
space above and below the text within a cell in a table
In the following simple table:
\documentclass{scrbook}
\setcounter{secnumdepth}{0}
\usepackage[table,x11names]{xcolor}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage[T1]{fontenc}
%\...
0
votes
2
answers
65
views
Why is the line alignment off between the first and second column in this table?
The line alignment between the first column is off. The cells in the first column start a line higher. I use overleaf, and I have tried to make a minimal example below.
\documentclass{article}
\...
1
vote
2
answers
57
views
beamer: uncover table by row when number of cells is not constant
The first row of the table has one cell, but the second row has 2.
\documentclass{beamer}
\RequirePackage{array}
\begin{document}
\begin{frame}
\begin{tabular}{|c|c|}
\cline{1-1}%
a \\ \cline{1-2}%
\...
3
votes
2
answers
69
views
Long arrow into a twocell diagram
Through the code:
\documentclass[12pt,a4paper]{memoir}
\usepackage[all,cmtip,2cell]{xy}
\UseAllTwocells
\begin{document}
\xymatrix@R+20pc@C+3pc{
\bullet\ruppertwocell^a{\hspace{....
3
votes
2
answers
55
views
Uniform cell length with centered text in a table where L is the line width, K is the number of cells, and each cell is L/K long
I'm trying to recreate this table. I would brute force the width with p{kcm} where k is just some number. But the text is not centered. I have tried many other solutions. But none of the work. And ...
2
votes
4
answers
70
views
I want the sentence (number of IRS Elements to be fit inside the cell)
\begin{table}
\centering
\renewcommand{\arraystretch}{1.5}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline
\multicolumn{1}{|c|}{} &\multicolumn{11}{|c|}{Number of Users / Number ...
1
vote
2
answers
736
views
tabularray individual cell colouring
I am attempting to colour specific cells in a table. I have tried recommendations such as color only a cell of a table and Efficiently colouring block of table cells, but when I try the code, only a ...
1
vote
1
answer
122
views
Settings for individual cells in nicematrix
The MWE is:
\documentclass{article}
\usepackage{nicematrix}
\begin{document}
\begin{NiceTabular}{X[2,l]X[r,m]}[hvlines, cell-space-limits=5pt, width=0.5\textwidth]
text 1 & text 2 text 2 text 2\\...
2
votes
2
answers
79
views
Aligning text/cells in a table within a specific separator
I'm doing list of MAC addresses. I have used tables, but I don't know how to manage the space (before or after) the hexadecimal value.
For one device the different MAC addresses are not properly ...
0
votes
1
answer
93
views
How to center text on multiple row within table?
I have produced the following table:
By using the following code:
\begin{table}[H]
\centering
\caption{Dati principali del velivolo \texttt{Lockheed C-130J Hercules}.}
\begin{tabular}{...
5
votes
4
answers
654
views
Lines between array cells
I'm looking for a natural way to selectively add horizontal and vertical lines between the cells of an array.
Here is an example.
+-----------+
| A B C | D E
| +-------+
| F G ...
1
vote
3
answers
214
views
\cellcolor overrides borders even with \hhline, how do I fix?
Here is a minimal working example of my code. When I compile it using overleaf online TeX editor I get the expected result and everything works fine, while when I compile it using texstudio here is ...
1
vote
1
answer
188
views
Package diagbox ruins my \hline
Preamble:
\documentclass{article}
\usepackage[a4paper, total={190mm, 280mm}]{geometry}
% Greek
\usepackage[LGR, T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[greek]{babel}
\usepackage{...
1
vote
1
answer
208
views
Adjusting the table width with the page width and defining cell width at the same time
I am writing a text in LaTeX and I need to insert a big table in it. As it is quite wide and I wanted to adjust it to the page width, I used the \begin{adjustbox} command. However, I have a problem ...
0
votes
1
answer
29
views
Centering a table in a cell of an other table
I have this table:
\documentclass[10pt,conference]{IEEEtran}
\usepackage{pgfplots}
\usepackage{tikz}
\pgfplotsset{compat=newest}
\usepackage{cite}
\usepackage{newtxtext,newtxmath}
\usepackage{...
0
votes
0
answers
32
views
Colouring individual cells [duplicate]
I would like to colour individual cells of a table based on quantity. For example if the cell value is <5 then the colour should be green. if >5 but less than 10 should be orange, and red for if ...
1
vote
2
answers
118
views
Full width row on a tabular - cell occupying multiple cells
I am trying to recreate this table on Latex:
but I can't figure out how to have a cell occupying three cells instead of just one (for the Tritanomaly percentage entry for example).
This is the best ...
2
votes
1
answer
128
views
unwanted black background generated in first cell of table
I know there's already been a similar question, but I still can't solve this problem by myself...
Following you find my preamble:
\documentclass[12pt, a4paper, oneside, BCOR=12mm, DIV=18, parskip=half,...
2
votes
1
answer
56
views
Image inside a cell
I am inserting several images inside cells of a table, but instead of readjusting the height of the cell, the figure gets overlapped with some horizontal lines, and I don´t know how to fix it.
My ...
0
votes
3
answers
186
views
How to horizontally center text inside cells
I´ve been trying to align horizontally the text inside the left-side cells and I couldn´t make it.
Here is my preambule:
\documentclass[12pt]{article}
\usepackage[letterpaper, left=2.4cm, right=2.4cm, ...
0
votes
0
answers
453
views
Importing Excel cells into LaTeX
I'm doing my first project in Latex and I needed to retrieve values from an Excel file. I don't want/need to import the whole file but I need to reference some cells.
I would need to do something like:...
1
vote
2
answers
38
views
Additional space in table cells when using multicolumns
How can I left-align all values in the column T=10?
\begin{table}
{\def\arraystretch{1.4}\tabcolsep=4px
\begin{tabular}{ccccc}
\hline
\multirow{2}{*}{Class} & \multirow{2}{*}{...
0
votes
1
answer
568
views
Adjust row height and cell text - Latex
I'm trying to create table in Latex like this;
\begin{table}[h|]
\begin{center}
\begin{tabular}{cccc}
& & \multicolumn{2}{c}{\large Actual Values} \\
& & Positive ...
0
votes
1
answer
26
views
Have found how to break multi-page table within row to the next page but need help to add horizontal lines on the top and the bottom rows
It's related to my previous question. I need to break a large row of the table containing many sentences and lists. I'm very excited when i found this : Credit link. Now, my problem is i can't add ...
1
vote
1
answer
121
views
Create a minimalistic grid/table showing interaction between two things
Is there a way to create the following minimalistic-looking grid/table?
The grid should have thick lines.
The cells should be write-able.
There should be a label denoting the name of the "...
4
votes
2
answers
247
views
Diagbox line issues with cell height
I tried various solutions posted here but I can't find the appropriate one to solve my issue. I have a long text header in the second column that is affecting the diagonal line and celle height in the ...
7
votes
3
answers
199
views
String of hexadecimal numbers don't align properly in tabular cell
The code below
\begin{tabular}{ |c|c|c| }
\hline
$C_2$ & B5 6E 2C D4 F3 12 57 3E 8C 8C 1A 77 A3 EE C3 41 \\
$P'_3 \xor P_3$ & 00 00 00 00 00 0F 00 03 00 00 00 00 00 00 00 ...
2
votes
2
answers
47
views
Problems of Making Multiple Multirow Table
I want to write a table, here is my code:
\documentclass{article}
\usepackage{bbm}
\usepackage{amsmath}
\usepackage{multirow}
\begin{document}
\begin{table}
\caption{Tipe opsi barrier.}
\begin{...
3
votes
2
answers
489
views
Fix table cells width and alignment
hope you all feeling well and safe
please help with the code below, the issue is with the cell width of last 3 column (3rd row onward), I want them to have similar width. please find attached code ...
1
vote
0
answers
68
views
How to align a rotated text to left in multirow cell?
I am working on Springer template, I created a tabularx table which contains rotated multirow cells. this is the table which I create it:
I want to align all the rotated columnrow to left, and the ...
1
vote
2
answers
2k
views
How to fix the width of columns in tabularx table?
I am working on Springer template, I want to create a tabularx table and I to fix the width of the columns. I work on landscape page and I want create a table like that table which contains 34 columns:...
1
vote
1
answer
66
views
How to convert a tabularx table into longtable in twocolumn class?
I have created a table. I used template of springer which has a \documentclass[twocolumn] class. the table is shown in the following figure:
my code :
\documentclass[twocolumn]{svjour3}
gsave
...
1
vote
1
answer
123
views
How to create that table? [closed]
I used a code, I have a table which created by using tabularx, but the problem is that, I want to create that following table by using tabularx and using textwidth, where the value of the first column ...
1
vote
4
answers
221
views
How to use multirow in multicolumn to merge a tabularx cell
I used a code, I have a table which created by using tabularx, but the problem is that, I want to create that following table by using tabularx and using textwidth
I wont change the structure of my ...
1
vote
1
answer
604
views
How to put a text in a center of a tabularx cell in Latex?
I used a code, I have a table which created by using tabularx, but the problem is that, I want to remove the word MADM into center of cell, and the head text into the center too, but I won't change ...