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, ...
1 vote
1 answer
102 views
SetCell inside a newcommand
When having the following, stark reduced, MWE: \documentclass[twoside]{book} \usepackage{lipsum} \usepackage{tabularray} \makeatletter \newcommand{\DoxyOrient}[3]{\SetCell[c=#1]{|#2|}{#3}}% \...
3 votes
5 answers
317 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{...
3 votes
3 answers
228 views
Table only works with blank row?
I have made the following LaTeX table. However, to make it work I have had to include the line & & & & & \\. If I remove the line the table adds an additional column... Here's ...
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 ...
4 votes
2 answers
255 views
How to color a cell in easytable
\documentclass[border=20pt]{standalone} \usepackage[thinlines]{easytable} \usepackage[table]{xcolor} \begin{document} \huge \begin{TAB}(e,2cm,2cm){|c:c:c:c:c|}{|c:c:c:c:c|} \cellcolor{black}1 & ...
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|...
1 vote
1 answer
40 views
In a header containing a table, how is one column appearing below the horizontal bar?
The following code defines a header with a logo, a course title, an quiz title, and boxes for the student to enter in their name, id and section. I will comment out the image since it works and does ...
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 ...
4 votes
4 answers
718 views
Logic proof - Boxes inside a table
I want to create a table as below: But I only came up with the table code, with no clue of how to add the two boxes. \begin{table} \centering \begin{tabular}{lll} 1. & $(\...
1 vote
2 answers
239 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
2 answers
81 views
help with text alignment within table cells
im using tabularx and have my tables formated to the size i want but the text in each cell is alligned kinda weird - words are spilling over to a new line but I would rather the whole word go on a new ...
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 ...
0 votes
1 answer
66 views
Reducing vertical margin, increasing the top margin in the cell and centring the elements in the cell
In the code I am using, \documentclass{article} \renewcommand{\arraystretch}{1.5} % stretching row height \usepackage{amsmath} \usepackage{multirow} \usepackage{tabulary} \newcolumntype{K}[1]{>{\...
1 vote
3 answers
117 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 ...