Stack Exchange Network

Stack Exchange network consists of 175 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.

2
votes
1answer
38 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
22 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
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] ...
2
votes
1answer
51 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
vote
0answers
28 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
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
189 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
26 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
2answers
93 views

! Misplaced \noalign. \midrule ->\noalign

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

How to draw table like this in latex [closed]

Hello, I am trying to draw a table in the texstudio. Since, I am new can anybody help , how to do that ?
0
votes
1answer
32 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
0answers
32 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
27 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. ...
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 ...
1
vote
3answers
61 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
0answers
50 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$}\\ \...
0
votes
0answers
32 views

MULTI ROW TABLE in latex [on hold]

I have written the code below \begin{table}[] \begin{tabular}{|l|l|} \hline Type & Name \\ \hline \multirow{2}{*}{Amp} & Diclofenac \\ \cline{2-2} ...
3
votes
2answers
45 views

Tabular: Package array Error: File ended while scanning use of \multicolumn

I try to make a simple table with the heaser line to be red as the following example shows: \documentclass[a4paper]{report} \usepackage{xcolor} \usepackage{colortbl} \begin{document} \begin{...
0
votes
1answer
47 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 ...
1
vote
1answer
53 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
1answer
31 views

tabular, small detail

Could you please kindly help me to break the blue boxes (see picture) to the next line so that the Table is narrower? Than you very much for your help! \begin{table}[] \centering \caption{...
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 ...
1
vote
1answer
38 views

tabularx repeat headers at the start of each new page

I am trying to write a latex template for math dissertations for my university and I have gotten most of the formating built into the appropriate class file. However, one issue that I'm not sure how ...
0
votes
0answers
29 views

longtable ignoring bottom margin

I came to a problem similar the the one posted at: Longtable and floats: wrong table breaks on pages with floats (part 2): There is even a solution posted at: https://www.latex-project.org/cgi-bin/...
0
votes
2answers
32 views

How do I center text in a table vertically without using the array package?

I have a table, that works perfectly. I just want the text to be centered vertically. I do not want to use the array package, because I do not want to specify the column widths manually, I just want ...
1
vote
1answer
33 views

How to justify only the first column of this user-defined tabular environment **while using ragged2e**? [UPDATED]

I'm currently updating my CV using a very cool template I found on the Internet quite a long time ago (a user-defined CV class + the template itself). During these years, I've been more or less able ...
1
vote
1answer
36 views

Need to wrap the text in a column

some texts inside a column should be wrapped to the next line, however as I see from the following code, the text length is too large that interfere with the rightmost columns. \documentclass[...
1
vote
1answer
31 views

How to stretch a specific column

What I have is a table that should stretch to the text width and want a specific column to stretch. What I have now is \begin{tabular*}{\textwidth}{ll r@{.}l l r@{.}l r@{.}l} ... \end{tabular*} What ...
0
votes
2answers
31 views
5
votes
2answers
76 views

Color table rows and columns

I have a table whose rows are set to alternate between white and gray using xcolor's \rowcolors{2}{white}{gray!10}. I also want to highlight a column of that table, sos that it looks something like ...
2
votes
1answer
36 views

You can't use `\prevdepth' in restricted horizontal mode

I've had some troubles typesetting a table. At first, the table wasn't being centering despite my code. And then when I used the adjustbox command to resize the table Latex gave me the following error:...
-2
votes
1answer
181 views

I want to make a table like this. But i am unable to do the specific table

\documentclass{article} \usepackage{booktabs} \usepackage{multirow} \usepackage{siunitx} \begin{document} \begin{table} \begin{tabular}{lSSSSSS} \toprule \multirow{3}{0.3cm}{} & \...
1
vote
2answers
46 views

Command for Pretty Printing a Poll/Voting as a table (Splitting Parameter Value)

I want to write a command for writing a poll. My Plan is: \poll[<sumofvotes>]{<Poll title>}{ OptionA: <Votes for A> OptionB: <Votes for B>* OptionC: <Votes for C> ...
1
vote
0answers
18 views

change align footnote in table

I have a Table with a footnote in it based on this post \footnote in table* environment and overall, I am happy with the Table's aspect, except that the footnote marker * is on the right part of the ...
1
vote
1answer
28 views

Table: make one row and one column in bold and add a axis name as shown in the picture

I would like to create my table as shown in the picture. I have attached the LaTeX code I have written. How to modify it, to get the same as that in the picture? \begin{table}[h] \begin{center} ...
1
vote
2answers
27 views

how to make the images be surrounded by a layer of space within the cell

\begin{tabular}[h]{|l|c|} \hline \multicolumn{2}{|l|}{Proving Rectangle}\\ \hline 4 right angles & \raisebox{-\totalheight}{\includegraphics[scale=0.3]{ProveRectangleA}}\\ \hline Parallelogram ...
3
votes
2answers
89 views

How to make fancy tables in latex?

I want to draw a table given below as it is I don't how to make it properly. I can make a table like this given below: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{table}[] \...
1
vote
1answer
28 views

achieving merge cells in table latex

How can I achieve this table in latex As of now this is the result by using this code \begin{table}[] \centering \caption{My caption} \label{my-label} \begin{tabular}{|l|l|l|l|l|l|l|...
5
votes
2answers
62 views

Misalignment of tikz plots in tabular

I have the following code: \begin{center} \begin{figure}[H] \begin{tabular}{lll}\vspace*{0.2 cm} %1 \begin{tikzpicture} \draw[->] (-0.5,0) -- (2,0) node[right] {$x_1$}; \draw[->] (0,-0.5) -- (0,...
0
votes
0answers
41 views

Undefined control sequence \tbl

I am writing a table in Latex. A reproducible example is as follows: \begin{table} \tbl{RE} {\begin{tabular}{cc} \toprule \textbf{Step 1:} & estimate p \\ \addlinespace[1cm] \textbf{Step 2:} &...
1
vote
1answer
38 views

Get single cell borders to have their own colors

I have following table in LaTeX: \documentclass[]{article} \begin{document} \begin{center} \begin{tabular}{r *{10}{| c}} \cline{2-9} 1 & & & & & & & & \...
3
votes
2answers
70 views

How to vertically centre a cell spanning multiple rows with the p column type

Bit of a mouthful of a question title I have the following table: I'm not completely convinced it's the absolute best way to display this information, but I'm reproducing a table that is laid out ...
4
votes
4answers
44 views

How to use \verb in the environment tabular?

I proposed to put a \verb|\sffamily| into a multicolumn command as the 3rd parameter, but LaTeX referred 3 errors. Here is my code. \documentclass{article} \usepackage{array} \begin{document} \begin{...
3
votes
0answers
27 views

Sidebar from mdframed does not cover table at end of page

This is a problem that happens sometimes when there is a frame (with sidebar) between two pages and a table is placed at the end of a page: the sidebar (with background) does not cover the entire ...
0
votes
1answer
38 views

Missing $ using Align and Tabular

I'm needing some help to fix this minor error, can't seem to find where's the missing $ character. I've tried to add $$ for both \mathbb{P} and \mathbb{Q}. Latex compiled and showed it in plaintext ...
2
votes
1answer
44 views

Spacing between elements in an array

I have the following table almost finished (I tried to make the code as much readable as I could) \documentclass{article} \usepackage[table]{xcolor} \usepackage{tikz} \usepackage{mathtools} \...
3
votes
1answer
32 views

how to make tex4ht center a long table as it does with table?

when using \centering option in table, and then using either tabular or longtable then both come out centered in PDF as expected. But in tex4ht, only the tabular comes out centered in middle of the ...
2
votes
1answer
19 views

How to remove lines added above and below table when using tex4ht?

tex4ht for some reasons added extra horizontal lines above and below each table. While these lines do not show in pdf. Here is a MWE \documentclass[11pt]{article}% \usepackage{float} \begin{...
2
votes
1answer
16 views

how to make caption be centered under table when using tex4ht?

What is the correct way to force tex4ht to put the caption under the table like it shows in pdf? The caption always comes out shifted to the edge, while the table is centered OK in the middle of the ...