Questions tagged [cell]
The cell tag has no summary.
153 questions
1
vote
1
answer
166
views
How to automatically break long Python module names at dots in \texttt{...} inside tables using \allowbreak or \discretionary?
This is my code:
\documentclass[a4paper, 12pt]{report}
\usepackage{adjustbox}
\usepackage{makecell}
\usepackage{booktabs}
\usepackage{tabularray}
\usepackage{color, xcolor}
\usepackage{amsmath, ...
3
votes
5
answers
312
views
How do I center vertically a text in a table cell?
I'm having troubles on vertically centering a fraction in a table cell. I managed to make the cell bigger (thanks to ChatGPT), but my fractions still aren't at the center. Here's the code:
\begin{...
1
vote
1
answer
55
views
Column spacing when using multicolumn
Trying to make a binder plate for a report but one person has an excessively long title which is throwing off the spacing of the bottom rows. Ideally the logos and adresses would be the same size for ...
0
votes
1
answer
68
views
Vertically center text in table [duplicate]
How is it possible to vertically-center the text of the cells?
\documentclass{article}
\usepackage[a4paper, total={6in, 8in}]{geometry}
\usepackage{graphicx}
\begin{document}
\begin{tabular}{|c|c|c|...
2
votes
2
answers
130
views
decrease table wrapped text spacing
I was working on some tables and thought about having the text for the leftmost index wrapped on two lines.
However, I wish to have the linespacing for cells with text wrapped – Connected components ...
1
vote
2
answers
238
views
How to make a from= , to= argument work in Tikzcd in compatibility mode?
For some reason, which will probably be too much work to fix without breaking something else in my document, Tikzcd only works in my document in compatibility mode with the "Alternative syntax ...
1
vote
1
answer
77
views
Tabular: Aligning cell content on the top left (including an image)
I am having trouble aligning the contents of the cells in a table in the upper left corner. The problem seems to be caused by the SVG file, since everything works fine without it. Also, once I'm ...
1
vote
3
answers
116
views
How to right justify a table cell using package tabular
\documentclass[11pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{times}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{p{0.5\textwidth} p{0.5\textwidth}}
\toprule
...
0
votes
5
answers
168
views
Is it possible to create a table like this one?
I want the cells to be vertical middle aligned.
1
vote
1
answer
115
views
Reduce the width of cells in a table using talltblr
Does anybody know how to reduce the width of cells? I couldn't find it.
Here is a preview of the problem. The width is too important for the datas.
Here is my MWE:
\documentclass{article}
\...
0
votes
1
answer
144
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=...
1
vote
3
answers
114
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 ...
5
votes
1
answer
241
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 ...
2
votes
2
answers
96
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{...
0
votes
1
answer
89
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 ...
1
vote
0
answers
49
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. ...
1
vote
0
answers
225
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
\...
0
votes
1
answer
121
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 ...
0
votes
2
answers
139
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}
\...
3
votes
2
answers
131
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{....
2
votes
4
answers
96
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
1
answer
271
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\\...
0
votes
1
answer
140
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}{...
1
vote
3
answers
905
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
370
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 ...