Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tables]

{tables} is about the tabular environment and related packages such as {array}, {booktabs}, {tabularx}, {tabu} and {longtable}. For questions about the table environment (i.e., about floating or positioning), use {floats} instead.

3
votes
3answers
133 views

How make a table border thicker

I need make the border of a table table thicker, as in the following image: How can I do this? My code is: \documentclass[]{article} \usepackage[table]{xcolor} \begin{document} \...
0
votes
0answers
19 views

Cross-reference mismatch inside chapters and sections

I'm having problems with cross-referencing tables and figures. There is a mismatch between the table number in the caption and the table number on the cross-reference in the text. I'm writing a report ...
1
vote
1answer
33 views

Table border is not drawn

Why is the edge is not drawn? This is the code: \documentclass[]{article} \usepackage[table]{xcolor} \begin{document} \begingroup \def\arraystretch{2.2}% \begin{tabular}[]{|...
2
votes
1answer
29 views

Tabular does not look like requested

The code \documentclass{report} \begin{document} \begin{tabular}{|l|l|} \hline{} A & B\\ \hline{} C & D\\ \hline{} \end{tabular} \end{document} ...
0
votes
2answers
64 views

Multirow texts overlapping with hline in this table

the edges are not drawn, why ? How can it be solved? I want complete table: \documentclass[12pt]{article} \usepackage{multirow} \usepackage{multicol} \usepackage{copyrightbox} %https://tex....
0
votes
1answer
80 views

How create this table

I want create this table I have this code: \documentclass[12pt]{ociamthesis} \usepackage{multirow} \usepackage{copyrightbox} \begin{document} \begin{table} \centering ...
0
votes
2answers
103 views

How to make the following complicated table in Latex?

Suppose you can use {amsmath} package. I write a one by myself, but some details are not very good. E.g. in the following Table(show only a small part), the word "Stage" is not in vertical-center as ...
5
votes
3answers
417 views

create a complicated table

I want to create the following table Can someone help me because I have no much experience with Latex. What I have got is the following \documentclass{standalone} \usepackage{tikz} \usepackage{...
0
votes
0answers
31 views

Rotate Big Table

My rotated table cannot be compiled. I could compile it before but something changed. When I could compile it the columns did not align like they should. I already tried different table environments ...
2
votes
2answers
46 views

Table placement and improved formatting

I am trying to display a rather large table within our file. However, the table jumps to a new page while it looks like there is plenty of space on the previous page. The code: \chapter{Results} \...
1
vote
0answers
14 views

Matrix in table problem - payoff matrix [duplicate]

I want to recreate the following payoff matrices: I tried for several hours now but I can't manage to recreate it. My main issue is to get the large brackets in the table. Thanks in advance
1
vote
0answers
16 views

Setting line spread globally, but not for tables

I use a \linespread of 2 globally to nicely space out a document. But when I'm doing tables, the line spacing affects the table as well, here's an example: Is there a way to set the lines spacing on ...
0
votes
0answers
21 views

Reduce line spacing in table

I have a table produced with this code: \begin{center} \begin{tabular}{ | m{3em} |m{2cm}| m{9cm} | } \hline \textbf{111} & \textbf{2222222} & \textbf{3333333333333}\\ ...
0
votes
0answers
12 views

Importing a csv Tablehead into latex, with too many columns

I tried importing a csv table, using the package csv simple: \documentclass[11pt,a4paper]{scrartcl} \usepackage{csvsimple} \begin{filecontents*}{xxx.csv} \end{filecontents*} \begin{document} \...
1
vote
1answer
23 views

Memory error with tabular and latest Tex4ebook running on Texlive 2018

This is a followup of my question here and uses the same MWE and the config file provided by michal.h21. MWE \documentclass[ebook,12pt,oneside,openany]{memoir} \usepackage{lipsum} \setsecheadstyle{...
3
votes
1answer
29 views

How to align input arguments of an algorithm in a grid?

I'm writing an algorithm box using algorithm2e and want to align the input arguments in a grid. I got close to the desired layout using two tabular environments, each inside of a minipage. However, I ...
4
votes
2answers
125 views

Decimal alignment in a table with math mode

After reading some answers on the site, I'm trying to use dcolumn pacakge in order to add horizontal alignment to my tables. Unfortunately without success so far. I'm writing as a part of a group so I ...
0
votes
1answer
35 views

Problem with writing a table

Hi everyone I'm trying do write a table but I have some problem. Could you help me in order to fix it? This is my code: \documentclass[a4paper,12pt]{article}[12pt] \usepackage{amsbsy} \...
0
votes
1answer
41 views

How put title in table

I want put a title in table, my current table is y the correction is: \documentclass[12pt]{ociamthesis} \usepackage{multirow} \begin{document} \begin{table}[H] \begin{center} ...
2
votes
1answer
31 views

Change tabular row height including a matrix [duplicate]

I am looking for a way, to change the height of a row in a tabular environment (or evenly add space at the top and bottom) but without changing the size of an included matrix. If I use \renewcommand{...
3
votes
1answer
81 views

Diagonal Line Across a Table Without Splitting

I am new to latex and I need to create something as shown in the picture. So far this is what i can create. Please keep the code simple \begin{center} \begin{tabular}{|c|c|c|c|c|}\hline $ \star $ &...
4
votes
3answers
79 views

How to redefine characters as alignment tabs in a table

I have a pretty good understanding of LaTex, but I've spent a while now digging up information on catcodes, but because they're lesser known, I haven't seen any applicable examples that will help with ...
0
votes
1answer
102 views

Drawing a 3x3 table in LaTeX

How can I draw a 3x3 table in LaTeX that is numbered? For instance, like those number puzzles where you have to unscramble the board to get the correct order from 1-9 on a 3x3 board.
2
votes
2answers
30 views

makecell alters vertical alignment across table row

Consider this example: \documentclass{report} \usepackage{makecell} \usepackage{lipsum} \begin{document} \begin{tabular}{p{3cm}p{3cm}} \lipsum[1][1] & \lipsum[1][2-4]\\ \lipsum[1][5] & \...
0
votes
1answer
23 views

Scaling output from stable output

print(xtable(x, type = "latex"), floating = FALSE, tabular.environment = "longtable", file = "/Path/Filename.tex") I am using the above code to output a table directly from R. I am using ...
1
vote
1answer
20 views

alignment with makecell

Consider this example: \documentclass{report} \usepackage{makecell} \begin{document} \begin{tabular}{ll} A0 & \makecell{B01\\B02}\\ A1 & Bbbbbbb1 \end{tabular} \end{document} I use \...
1
vote
1answer
22 views

Make tabular span textwidth exactly [duplicate]

Consider this example: \documentclass{report} \usepackage{lipsum} \begin{document} \begin{tabular}{lll} A & B & \lipsum[1][1-3] \end{tabular} \end{document} In the output: the last column ...
2
votes
1answer
61 views

Display table nicely and better code

I have this code for a table... \documentclass[11pt,a4paper]{article} \usepackage[margin=20mm]{geometry} \usepackage{rotating} \usepackage{float} \newcommand*\rot[1]{\rotatebox{90}{#1}} \usepackage{...
2
votes
2answers
53 views

Make table page size [duplicate]

I am new to latex and cannot solve to fit this table to page size even though I looked up the problem in the forum. Any help would be very much appreciated. \documentclass[11pt]{article} \...
2
votes
2answers
53 views

Align headings nicely

I have this code which is the beginning part of a big table. \begin{table}[H] \begin{tabularx}{\textwidth}{XXXXXXXXXXXX} \hline \multicolumn{1}{|X|}{} & \multicolumn{1}{X|}{Shaft Diameter}...
0
votes
1answer
20 views

Repeat same label of the table from previous frame

I am working on a presentation and would like to reuse the same table with the same label from the previous frame. I tried a lot of things, but did not have success. Attached u can find the frames and ...
0
votes
1answer
22 views

Typesetting pmatrix inside a tabular [duplicate]

Can I somehow make a pmatrix play nicely with a tabular environment? I tried using \def\arraystretch{1.5} but it made everything bigger. Here's a minimal example that shows my problem. I'm using ...
3
votes
2answers
71 views

Actual table column width is unequal with set number

I want to create a table with fixed column lengths like this: \documentclass[a4paper,12pt]{article} \begin{document} \begin{tabular}{|p{1cm}|p{2cm}|p{3cm}|} \hline 1 cm & 2 cm & 3 ...
0
votes
3answers
111 views

Can't read my table

Trying to print this table in one page or two maybe . please help. \documentclass{article} %\usepackage[margin=2in]{geometry} %use this later of you need tp specfy margin %\usepackage{microtype} % ...
0
votes
1answer
29 views

Defining adaptive width of columns in a table

Is there a neat way to define all column widths in a table as the same value and adapted to the page size? For example I would like the following 32 columns to have all equal width of 1/32 of the ...
0
votes
2answers
29 views

side by side tables latex - without \floatrow

I have the following simplified document (): \documentclass[10pt]{book} \usepackage{float} \let\origfigure\figure \let\endorigfigure\endfigure \renewenvironment{figure}[1][2] { \expandafter\...
2
votes
2answers
29 views

Tabulars in the same table with separate captions

I'm trying to put two tables side by side and with separate captions. But I get only one caption (namely the last one I insert). Here's my code: \begin{table}[H] \begin{minipage}{.5\linewidth} ...
3
votes
2answers
46 views

How to remove additional spaces in table in latex [duplicate]

I am using the following code to generate a table. \documentclass[acmsmall]{acmart} \begin{document} \begin{table}[!t] \renewcommand{\arraystretch}{1.3} \caption{Some text} \centering \begin{tabular}{...
0
votes
1answer
20 views

Merging table rows instead of splitting them?

I have a table that looks like this: | COLUMN A | COLUMN B | COLUMN C | COLUMN D | |-------------------------------------------| | 0 | A | 100 | 150 | | 1 | B | ...
1
vote
2answers
82 views

How to use several colors in one row in latex table

I need to write very long table (128 rows x 64 columns), with different colors in a rows. Also it have to have "color in color" within one row, so it can be interpreted as one row consists of several ...
0
votes
1answer
46 views

IEEE Template. \cline error in table. Extra alignment tab has been changed to \cr

I had this table working with an IEEETemplate but now when I try to build it with an IET Template I get the error that you can see on the title .. could anybody help me? Thank very much for your time....
1
vote
1answer
44 views

Drawing a thick line through rows of a table to separate first column from second column

I have code for a table to be drawn. It is almost what I want. I am requesting three modifications to be made to it. I would like vertical lines, forming the left and right edges of the table, to be ...
1
vote
1answer
28 views

merged lines and columns in a part of a tabular

I want to do this tabular (by Excel) : But I have got some problems, especially with the merged cells This is the result : I have tried to create a tabular inside the original one but that doesn'...
4
votes
2answers
272 views

How to center the middle of a table to be in the center of the page?

I'd like to have the vertical rule in my {r|l} table to be horizontally aligned in the center of the page. So far, I've only managed to do \begin{center} \begin{tabular}{r|l} short & ...
0
votes
1answer
47 views

Table, Tikz picture in the left, text in the right: how to vertically align?

I would like a table with tikzpictures in the left column and explanatory notes in the right column. What can I do improve the vertical alignment of the row contents in the following example? ...
1
vote
0answers
98 views

Incompatibility of fix in latex3/latex2e in respect to (unmaintained) tabu package

In the github issue: Longtable change breaks 'X' column specification (https://github.com/latex3/latex2e/issues/111) the problem of the incompatibility of a necessary bug fix in latex3/latex2e is ...
2
votes
1answer
38 views

Tabular: Good shaping but uncorrect number of columns

I'm trying to create a tabular with a given shaping. But I'm not able to change the number of column and keep the shaping as the same time. There is an image of the "expected" tabular (made by Excel)...
0
votes
1answer
28 views

Center alignment of text with one row

Please I wanna aligne the text of the row, I added center element for the text but it's not well centered, do I have to add it somewhere else or there's an other element that help me solve this little ...
0
votes
1answer
47 views

literature review table in beamer

i am trying to create something like this - a literature summary review. I am quite new to latex and struggle quite a bit with tables. How can i create something similiar to the example? My table has ...
1
vote
1answer
30 views

horizontal line in table does not cover full width

Below I have the code to create a table in latex, but the horizontal dashed line is not drawn over the full width of the table. \begin{table}[H] \caption{Aggregated sales data of all products} % ...