Questions tagged [cell]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
24 views

Center text vertically in a table with multiple lines

I tried to improve the following table as can be seen in the screenshot below, the output is mostly what I want. Is there any reason the text is not centered vertically when it spans over multiple ...
1
vote
1answer
26 views

How do I apply different aligning options in different columns in a table?

I'm trying to figure out how I get different aligning for different columns in my table. I want the first and second column to be left-aligned and to the top of each cell (in case it turns out that ...
0
votes
0answers
24 views

When using a specific Bibtex package to cite, how can I cite without brackets (e.g. adjust the output)?

I am using one of the Bibtex style packages, the 'cell' package, to handle my referencing (we specifically need to cite in the way the journal Cell does it). It works quite well, but when I cite I ...
0
votes
0answers
27 views

How can I include Databricks notebook cell output (HTML) in my LaTex report?

I have the following output cell in an Databricks notebook (here as picture): I would like to include this output in my LaTex report including the scroll bar. This should work through exporting the ...
1
vote
1answer
30 views

after using \multirow, my table looks like this. How can I fix the cell so that it looks complete and centered text?

\begin{table}[H] \centering \caption{The summary of FFNN design parameters and inputs} \label{tab:ffnn_smry} \begin{tabular}{|ll|} \hline \textbf{Network Type} & FFNN \\ \hline \...
0
votes
1answer
26 views

Table cells go out of bound using multicolumn in tabularx

I'm asking for your help regarding the creation of a table as such : \documentclass[a4paper,12pt]{article} \usepackage[utf8]{inputenc} \usepackage{makecell} \usepackage{tabularx} ...
1
vote
2answers
35 views

How can I align the pictures properly inside table cells?

Firstly, please check the answer's LaTeX code: \documentclass[12pt]{article} \usepackage{graphicx} \usepackage{array} \begin{document} \begin{tabular}{|m|m|m|} \hline & Size & Figure \\ \...
1
vote
1answer
40 views

Adding figure and text in a cell of a table

I am making a table which has some figures in it. Two of the cells need to have some text as well on the bottom of the figure (It's not caption, so does not need to have fig. number).The text is ...
0
votes
1answer
34 views

How to adjust the figure to the cell height?

I have a table as follows ''' \begin{table*} \centering \caption{******} \label{my-label} \begin{tabular}{ m{3cm} m{4cm} m{5cm} } \toprule \textbf{Behavior} & \multicolumn{1}{c}{...
2
votes
1answer
29 views

Table with vertical text

I am new here and would need your help. I would love to replicate the following table in Latex. I wrote this code. \begin{tabular}{c|p{3cm}|p{3cm}|c} \multicolumn{4}{c}{Technical/economic ...
0
votes
1answer
57 views

Text positioning inside table cell

My constructed table results in the following: However, I want to place the checkmark and cross symbols vertically centered. How do I do it? Here is my code: \begin{tabular} {|p{1.5cm}|p{3.5cm}|...
0
votes
0answers
18 views

merging cells in the middle of a table [duplicate]

I am trying to design the following table. The cells in the third and fouth row are merged. I tried multicolumn makes more column but I could not manage to do it in way that it merges.
3
votes
3answers
75 views

The texts in table is going out of the page margin

I have difficulty keeping the table cell content inside the margin. \begin{tabular}{ @{} >{\bfseries}l @{\hspace{6ex} l } Laboratory Skills \ & DNA Extraction, PCR, Gel electrophoresis, SDS ...
1
vote
1answer
96 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
71 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
83 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
75 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
98 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
169 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
48 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
44 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
68 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
197 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
95 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
85 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
65 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
97 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 ...
1
vote
1answer
364 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
47 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
58 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
36 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
420 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 ...
3
votes
1answer
358 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
160 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
607 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{...
3
votes
1answer
202 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
206 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
39 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
35 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
587 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
447 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
234 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
146 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
123 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
540 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
384 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
62 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
1k 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
357 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 ...