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
vote
2answers
39 views

Line break with longtable and multicolumn

I am trying to write up the following table. However, I cannot get a line break to work (needed for Branches and Results column's) and as such the table runs off the side of the page. My attempt is ...
1
vote
1answer
28 views

Text not quite centred in table using makecell

See my code below and attached image showing output of the code. I'm producing a table which is just about finished, but one last thing is bothering me. The text in the cells of the column titled "...
0
votes
0answers
28 views

Someone could help me with this code? Was made in latex-tables.com

I made a table with the help of latex-tables.com. But when I try to compile, I had the error: Use of @startpbox doesn't match its definition. ... What am I doing wrong? \usepackage{rotating} \...
0
votes
1answer
11 views

\rowcolor not working in latex IEEEtrans

I am trying to colour rows in some tables in a latex IEEEtran article but the colouring does not show at all, and no error is thrown as well. Here is the snippet of code I used: \usepackage{array, ...
2
votes
3answers
27 views

Wrapping text within a multirow cell

I've managed to create a table with multirow and multicolumn with fixed widths in the columns. However, I cannot change the width of the column that contains 'Condition'. Ideally I want the text ...
2
votes
2answers
65 views

Some adjustments of a nice table

In relation to my previous question and the code also provided by the user @Zarko for a nice table, I kindly ask for some adjustments such as those shown in the figure below and reported in the main ...
0
votes
1answer
21 views

\shortstack in table throwing Compile Error

I am trying to put some cell text such as "Measurement type" and "Event labels" into multirow cells of two lines, where the aforementioned names would be split into two lines. \begin{table*}[t] ...
0
votes
0answers
17 views

Stargazer Output for Descriptive Statistics of Data Frame

I am working in R Studio with a panel data frame (10 companies, for each I have 18 years of observations of several variables). Since I am writing in LaTeX, I would like my descriptive statistics to ...
5
votes
2answers
111 views

A specific format for nice tables

With this code: \documentclass[a4paper,12pt]{article} \usepackage{mathtools,amssymb} \usepackage{booktabs, isotope} \begin{document} \begin{center} \begin{tabular}{lcc} \toprule \textbf{Osservabile} &...
2
votes
1answer
18 views

Color background for title row in csvsimple

Assume a simple example centered on the csvsimple package. \documentclass{standalone} \usepackage{csvsimple} \usepackage{fp} \usepackage{xcolor} \begin{filecontents*}{input.csv} Foo,Bar,Baz,...
1
vote
1answer
30 views

How can I make all columns have same width with tabularX?

I want to make a table that has equal column widths. When I write text I want the text to go vertically, however I can't seem to make my last column behave as the other columns using tabularx package. ...
1
vote
2answers
2k views

How to use Nested multicolumn and multirows

I want to make a good table on table but I am not an expert. Below is my code for the label \documentclass{article} \usepackage{times} \usepackage{multirow} \begin{document} % Article top matter \...
1
vote
1answer
25 views

Aligning entries of a table at dots if entry is a number, otherwise centered

I have the following table, where the entries are either numbers or a dash, possibly followed by one or more asterixes: \documentclass[notitlepage]{article} \usepackage{tabularx} \usepackage{...
2
votes
1answer
41 views

How do I use \includegraphics with booktabs?

I'm making a reference document for my students regarding the 14 Bravais lattices. I've gotten this table to work but it is messy. Does anyone have suggestions on how to clean it up? (I've added ...
1
vote
1answer
39 views

Making a new command for tabular environments with flexible table sizes

I'm trying to create essentially a "new command" or "new environment" with a tabular environment. Is there any possibility to make a simple command that allows me to enter the size of the table and ...
3
votes
2answers
52 views

Trouble with formatting a tabularx environment

I've been trying to format a table without success. I've followed several suggestions that I found in other answers but never manage to fully adapt it. This is one of the examples I tried: \...
4
votes
2answers
156 views

How to add left arrow between two tables?

How can I add an arrow between two tables? \documentclass[english]{IEEEtran} \usepackage{booktabs} \begin{document} \begin{table*}[!htb] \large\setlength{\tabcolsep}{0.1pt}...
2
votes
1answer
23 views

Hide entire tabular row using multiaudience

I am using the multiaudience package to create two different versions of a LaTeX document. My document contains a tabular environment with a table row which I want to make visible to one audience ...
1
vote
1answer
17 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 ...
1
vote
1answer
36 views

Superfluous headers and footers when using longtable in revtex4

There are two long tables in my LaTeX file: the first one should be supplied with headers and footers while the second one does not need such auxiliary lines. How to solve that the headers and ...
0
votes
1answer
30 views

How to create braces which span multi-lines in a table?

This is my template code for the table I'd like to create: \begin{table}[] \begin{tabular}{cllll} \multirow{3}{*}{multirow} & & & & \\ & & &...
0
votes
3answers
45 views

make bold text followed by normal text gives error as can be used only in preamble?

I want to create text like this using latex. Bold Text1: Normal Text1 Bold Text2: Normal Text2 Bold Text3: Normal Text3 Bold Text4: Normal Text4 So I tried creating my new commands something like ...
0
votes
0answers
31 views

Longtable - Changing Font Color of Header Row doesnt extend to all cells

I am using longtable package as most of the tables that I use tend to go on for multiple pages. What I want is now that the header row should be filled with blue colour and white text. The remainder ...
1
vote
1answer
32 views

Automatic line break inside multicolumn table

I'm trying to create a table as shown below. I'm not sure why my code makes the "Sample ID" column as wide as the "Composition" column even though they have a different setting in the multicolumn{}{...
2
votes
1answer
19 views

Unbalanced Gap after CAPTION in TABLE

The CAPTION package with FONT=FOOTNOTESIZE leaves a wide gap after a caption. Specifically, a caption before TABULAR leaves a wider gap, while that after TABULAR doesn't. Here's an example. \...
0
votes
2answers
43 views

Beamer \only command messes up tabular

In beamer, I'm trying to create a row-by-row tabular set of slides: each slide exposes a new row. I've solved a lot of problems, but I'm still having issues with a extra partial row being generated. (...
2
votes
2answers
264 views

Position of \only within a \tabular

I have the following code: \documentclass{beamer} \usetheme{Boadilla} \usepackage[frenchb]{babel} \begin{document} \begin{frame} \begin{tabular}{ll|ll} \only<1>{only 1} \only<2>{...
0
votes
0answers
16 views

Note at the end of the table in Latex [duplicate]

I have some tables in Latex and I need to add some notes at the end, I tried this code, but the note that I have to add is too large for the table and I dont know how to fix it, there is another way ...
1
vote
1answer
28 views

Picture in LaTex table vertical centered

This is my first post here so please understand if I did something wrong. I want to have a table in LaTeX where icons should be displayed in the first column (centered) and text (vertically centered) ...
2
votes
1answer
37 views

Sizing article within article

I have an article , the whole bunch is written as \documentclass[12pt,english]{article} %\usepackage[margin=2in]{geometry} %use this later of you need tp specfy margin %\usepackage{microtype} % ...
1
vote
1answer
20 views

Formating figure and table to be side by side on beamer

I have this I want them to be on one slide side by side. I tried using minipage to know success whatsoever. Here is my entire latex code: \documentclass{beamer} \usetheme{Warsaw} \usepackage{...
0
votes
3answers
110 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} % ...
2
votes
1answer
48 views

Create a multi-page table without tabularx

I have create a multi-page table. Using tabularx, my attempt is as follows: \documentclass[a4paper,preprint,aps,unsortedaddress]{revtex4} \usepackage[top=2.5cm,bottom=2.5cm,left=3.5cm,right=2.5cm]{...
1
vote
0answers
27 views

Override margin settings of revtex4

I would like to modify the left and right margins around the table in the following "code": \documentclass[a4paper,preprint,aps,unsortedaddress]{revtex4} \usepackage[top=2.5cm,bottom=2.5cm,left=3.5cm,...
-1
votes
1answer
78 views

How to draw table like this in latex [on hold]

Hello, I am trying to draw a table in the texstudio. Since, I am new can anybody help , how to do that ?
1
vote
0answers
27 views

Error while inserting the title in each column of the table

I have code for wherein I tried to insert the title for each column but I am getting an error. The error says: Missing control sequence inserted How to overcome this? \documentclass[...
0
votes
2answers
87 views

! Misplaced \noalign. \midrule ->\noalign

This is the table \documentclass{article} \usepackage{array} \newcolumntype{C}{>{$}c<{$}} \usepackage[skip=0.333\baselineskip]{caption} \usepackage{booktabs, ...
0
votes
0answers
15 views

I need put a figure and table in three columns, as follow:

I need a put a figure + table in the same column in three diferents columns, as follows: It´s better to use tabular or columns command? How can I do?
4
votes
3answers
188 views

Auto line break with very long word within table

I am trying to break a very very long number, 128 in length, to fit into a table cell so it won't go over the page. I've looked up methods using longtabu, tabular with p{5cm} commend, \makecell, \...
0
votes
1answer
31 views

The is blank space appearing in the once in run a latex code for double coloumn

I am using ASME template which is a double column template. I have the following issues Question 1 I am getting a huge blank space in my final document. I tried to remove this by using \vspace but it ...
0
votes
1answer
25 views

How to stretch long table to new page in two column IEEE format?

I have 60 rows and 12 columns with plenty of text data inside the table.I am using IEEEtran format.I want to place my table in whole page with continue to next page. Tried many libraries but didn't ...
0
votes
0answers
29 views

errors =Illegal unit of measure (pt inserted). \end{tabularx} [duplicate]

\documentclass{article} \usepackage[margin=20mm]{geometry} \usepackage[table]{xcolor} \usepackage{rotating} \usepackage{multirow, tabularx} \begin{document} \begin{sidewaystable} \scriptsize \...
3
votes
1answer
25 views

What does the notation \usepackage[table,xcdraw]{xcolor} mean? Which package arguments into which?

I saw an argument in a file that displayed: \usepackage[table,xcdraw]{xcolor} I am a bit confused what is getting parsed into which. It seems that the material in [] are usually options for xcolor. ...
1
vote
3answers
59 views

How do i change “Fig 1” to “Table 1”

So, what i want to do is to replace where it says "Fig. 1" under this table to "Table 1 " in such a way that it will continue numbering each table after that with "Table n+1" NOTE: This table is put ...
0
votes
1answer
46 views

Tikz table with reference

I need to draw a table with the same arrows. The reason I do not want to use the graphics software is that I need to add dynamic references inside the cells using latex. I would appreciate if ...
0
votes
1answer
44 views

Equation Defintion Alignment Using Xepersian

The following code will define a new environment which will arrange the definitions of equations. I want the explanations start from right side, but the equations inside definition align left and ...
0
votes
0answers
49 views

Two dots after “Table 1” in a table caption

In my latex file I use the following table \begin{table}[H] \begin{center} \begin{tabular}{|r|r|r||r|r|} \hline & \multicolumn{2}{|c||}{$\F \cong F_r$} & \multicolumn{2}{|c|}{Generic $\F$}\\ \...
1
vote
1answer
51 views

! Extra alignment tab has been changed to \cr in table with array

This is the error I have gotten while having my table as here ; ! Extra alignment tab has been changed to \cr. \endtemplate l.168 Sample & Size ( $\mu$ m) & ...
0
votes
0answers
31 views

MULTI ROW TABLE in latex

I have written the code below \begin{table}[] \begin{tabular}{|l|l|} \hline Type & Name \\ \hline \multirow{2}{*}{Amp} & Diclofenac \\ \cline{2-2} ...
1
vote
1answer
43 views

Need LaTeX to automatically update a reference number within a table

I'm need to assign a reference number inside a table such that it automatically updates the number at the end and restarts the counter when the initial part of the reference number changes. For ...