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.

-1
votes
1answer
27 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
22 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
69 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
67 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
77 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
28 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
20 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
17 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
19 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
44 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
38 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
52 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
17 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
19 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
56 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 ...
2
votes
3answers
76 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
24 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
20 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
25 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
43 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
19 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
votes
0answers
38 views

Chapter title and table in one page

I want to have title and table in one page but are coming in two pages. I want these to be in one page.
1
vote
2answers
64 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
35 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
38 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
22 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
251 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
31 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
65 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
35 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
0answers
36 views

text table in beamer - making it more readable [closed]

I am trying to create a literature summary review in a table within document class beamer. The table below is not finished yet, but as you can imagine it will be a terrible ugly one. What can i do to ...
0
votes
1answer
20 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
28 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
22 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} % ...
2
votes
2answers
42 views

Center tabular in align

I'm trying to place a tabular containing some values for x and y inside an align statement. \begin{align*} 0 &= 0 \\ \begin{tabular} {|c|c|c|} %table content \end{tabular} \\ ...
1
vote
0answers
14 views

table cell colored with multirow lets text disapear behind next colored cell

I stumbled over something i do not know how to solve. I don't even know about layers in latex but is seams like my text is disapearing behind a colored cell beneth it and that because i use a ...
0
votes
0answers
32 views

TeXstudio wrong indentation after certain environments

I have the impression that Texstudio struggles to indent text following the end of a list (in code, works fine when built of course). Here's what I get with auto-indentation: \documentclass{article} \...
10
votes
2answers
178 views

tabularx inside tcolorbox not centered properly

I am trying to put a tabularx inside a tcolorbox but it's not centered properly, it's shifted slightly to the right. Here is the code I am using. I am using figure environment for the caption. Is ...
0
votes
0answers
21 views

Give column its own row if a cell is longer than a given amount

My document was originally composed with monospace unicode output from a Python terminal. The original layout used blank spaces to align results into columns. I specified the width (in characters) of ...
2
votes
1answer
58 views

How to use longtable in latex?

I have a really long table and it does not fit the page. So, I want it to span on several pages. When I google about my issue, I came accross longtable. However, it seems like longtable do not support ...
1
vote
2answers
49 views

Image side by side with table keeps on not working

Good morning, I would like to put the picture on the left of the table, all horizontally. When I try this solution it doesn't work. What changes is the picture and table are aligned with left margin ...
-3
votes
3answers
95 views

Create table question [closed]

I would like to create a table like the one I show in the image but I'm a bit lost. Let's see if someone can help me. Thank you.
0
votes
0answers
12 views

Caption Error even it is outside of tabular [duplicate]

\begin{table}[h!] %\centering \begin{center}%\caption{table}{Caption text goes here} \begin{tabular}{| l | p{6.7cm}| p{5.7cm}| p{4cm} | } \toprule Function ...
2
votes
2answers
56 views

Enumerated List with multiple levels within Table

Good morning everybody, I tried to build up a multi level enumeration within a table. The items shall be something like an row identifier in the 1 column (see attached example). Writing Items in the ...
2
votes
1answer
77 views

LTSpice - PGF/TikZ

I am a newcomer to LaTeX and came across PGF/TikZ by chance. Currently I try to draw the function graphs f(x) in PGF/TikZ, but with no success. Can anyone help me to read the data file from LTSpice ...
1
vote
1answer
42 views

Trouble transferring code snippets (table)

My latex knowledge is poor. I am trying to transfer this code snippet: \documentclass{article} %\documentclass[leqno]{uicthesi} \usepackage{amsmath} \usepackage[initials]{amsrefs} \usepackage[...
4
votes
1answer
62 views

Workaround for tabularx inside environment when using csquotes

I need an environment that presents data in a table. The number of right-most columns shall be adjusted at compile-time, and the first column is dynamic width. For this reason I am using \usepackage{...
0
votes
0answers
30 views

image side by side with table [duplicate]

Good morning, I would like to put the picture on the left of the table, all horizontally. When I try this solution it doesn't work. What changes is the picture and table are aligned with left margin ...
1
vote
2answers
43 views

Horizontal centering in tabularx cells

This is my current code: \newcolumntype{b}{X} \newcolumntype{m}{>{\hsize=.5\hsize}X} \newcolumntype{s}{>{\hsize=.2\hsize}X} \begin{table} \caption{Summary of the Most Common BCI Control ...
0
votes
2answers
28 views

Vertically-centre content of a Table

I can't figure out why some of the cells of this table are not correctly centered. Attached the source code. Thanks! \begin{table}[] \centering \caption{My caption} \label{my-label} \...