Tagged Questions

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

learn more… | top users | synonyms (2)

2
votes
2answers
82 views

Error missing \endgroup for table tabulary with bullet list

I'm trying to insert a bullet list in a table of the type tabulary , but it always throws following error! Missing \endgroup inserted. <inserted text> \endgroup ...
0
votes
2answers
70 views

How to make the following table with multiple cell merges

How can I make the following table in LaTeX?
3
votes
2answers
162 views

Difference between tabular and array environment

What is the difference between a tabular and an array environment? When should be used the former and when the latter?
4
votes
3answers
92 views

Enlarge table/tabular without using tabularx

I have the following table and I want to enlarge this. The width of the table has not to be big as the \textwidth but it should be a little bit larger as it usually is: \documentclass{article} ...
4
votes
2answers
126 views

Cross-referencing within a Table

I have defined a new counter to track chemical reactions listed in a Table \begin{table} \begin{tabular}{clccr} \hline \# & Reaction & $\log_{10}A$ & $n$ ...
3
votes
1answer
94 views

Proper Formatting for Simple Tables in LaTeX

I have a table as below that doesn't format properly through pdfLaTeX. Specifically, the vertical lines for each row don't extend all the way down to create a complete box. Is there a better way to ...
0
votes
0answers
32 views

How to split a table vertically? [duplicate]

\begin{tabular}{ |p{3cm}||p{3cm}|p{3cm}|p{3cm}| } \hline \multicolumn{3}{|c|}{States} \\ \hline cpu & Higher--Lower & Lower-Higher \\ \hline ...
2
votes
2answers
116 views

Number of row in a tabular

Is there a simple way to get the number of rows of a given tabular ? More precisely, I have a variable \t@b which contains something like foo & bar \\ foo & bar \\ foo & bar I will ...
5
votes
2answers
100 views

Varying the number of decimal places in spreadtab

I have a table for a budget, which uses spreadtab. \STautoround*{2} \begin{spreadtab}{{tabular}{lrrrr}} @\textbf{Item} &@\textbf{Unit Value}&@\textbf{Unit ...
2
votes
0answers
37 views

Color x Grids in tables

I have been trying to reproduce a table with two uncommon features. Grey first row Header Two last columns with extra row. First I managed to do the extra row, but if I try to put the color in ...
2
votes
1answer
50 views

Set column width to point

I currently have a tabularx table with four columns. I initialize the environment like this: \begin{tabularx}{\linewidth}{l p{0.4\linewidth} | l X l X} How could I change this so that the second ...
0
votes
1answer
56 views

Multirow: column borders missing

I'm not getting column borders correctly in the following table. I'm using multirow package. Also, I want the '123' in the big cell to be centered, but it is misaligned. I'm not sure how to fix this. ...
3
votes
3answers
147 views

What does mean the code in this table?

After see the Andrew Swann solution to my previous question: How to fit this table in a page? I tried to fit it to another table: \documentclass[11pt]{book} \usepackage[utf8]{inputenc} ...
0
votes
0answers
54 views

Latex - Marginal Effect Probit Stata

I would like to have a latex table in which is reported only marginal effects. I was trying the following code, but it's only reported the probit coefficients. What's is my mistake, please? Thanks in ...
1
vote
1answer
96 views

I have a table written in LaTeX but I do not fully understand some symbols can you guys help me?

\begin{table}[h] \centering \caption{Minimum Deviation ${D}_m$ from ${R}_1$} \begin{tabular}{|c|>{$}c<{$}|} \hline Color & \text{Angle ($^\circ$)} \\ \hline Red Medium & 48.17 \pm 0.25 ...
2
votes
2answers
67 views

How to add a percent symbol in table column along with vertical and horizontal cell padding?

I want to create a similar table as in image. I don't know how to customize table border thickness and color scheme as in picture to achieve the desired output. Code: How many rows should i span 4 or ...
0
votes
0answers
9 views

suppressing a column in tabular [duplicate]

I have a tabular in a paper of which I now want to use only a few of the columns in a presentation. I can manually delete the columns I don't want but that's a pain and can lead to editing mishaps. ...
4
votes
1answer
56 views

Hide \multicolumn's

I place the same table multiple times in my main document. For that, the content of the table is placed in a file called model-values.tex. On every \input, I alter the part of the table to be ...
3
votes
0answers
61 views

I can't get roman page numbering to work for pages before main writing section (e.g. TOC,LOF, abstract etc..)

I would like to make all pages before my introduction (TOC,LOF,LOT,abstract), excluding first 3/4 pages (title page, blank page) to be roman numerals with the first page of my introduction =page 1. ...
0
votes
0answers
32 views

multiple page sortable tables

Look at the following MWE. Here we have to tasks that I am trying to solve. Task 1: First. If i try to use the command dtlloadrawdb (instead of dtlloaddb) everything wents fine, until I use the ...
5
votes
2answers
125 views

Table-like lines in tikz matrix

I am trying to draw a "table" in tikz, and more generally, to work it out so that it is easy to write a lot of them. The matrix library makes it a lot easier to place aligned nodes. The next step ...
0
votes
0answers
18 views

Align text and image topwise [duplicate]

I would like to top align an image with a text. The problem is that the text is aligned with the baseline of the image. The current code I have is this: \documentclass[margin,line]{res} ...
3
votes
2answers
47 views

Problem with \tabular \tabularx and \multicolumn

I am trying to write the following "gothic" table but I have many troubles with equally distributed spacing and size of the text. I try the following with tabular: \begin{table} ...
2
votes
2answers
90 views

How to increase the space between text and a table?

Here is my code: Volume of the hall V = 1500 $m^3$ \\ \noindent \begin{tabular}{| c | c | c |} \hline \textit{Surface} & \textit{Area ($m^2)$} & \textit{Coefficient of absorption}\\ \hline ...
2
votes
2answers
53 views

Table caption longer than table

How do I make the table caption the length of the table please? \begin{table}[ht] \caption{Empirical Model Results} \centering \begin{tabular}{l c c c c} \hline\hline & ...
0
votes
1answer
48 views

Column with math mode in beamer won't center under multicolumn row

I am having trouble getting a table to behave as I expect (and want) and I don't know if the problem is with beamer, multicolumn, or math mode. \documentclass[table]{beamer} \usepackage{booktabs} ...
2
votes
2answers
36 views

Centering tabular data horizontally, without giving it its own page

I have a fairly basic table set up right now: \documentclass[paper=a4, fontsize=11pt]{scrartcl} \usepackage[T1]{fontenc} \usepackage{fourier} \usepackage[english]{babel} ...
2
votes
1answer
52 views

How to fully justify tabular columns

I would like a tabular environment with fully justified columns. I my best guess of how to make this happen is to use a tabularx environment (so the tabular knows how wide to be) and then put \hilll ...
1
vote
1answer
33 views

plots and relative table on the same page

I have 4 plots and 4 tables: the tables define tha values used in the plots. I wish to have a layout of this kind: table A plot A \newpage table B plot B and so on. All plots are .jpg figures. ...
0
votes
1answer
33 views

Error when placing tabular inside table environment

I have a working tabular (maybe not that elegant) that I want to place within a table environment in order to get caption and to get it in List of Tables. However, this is not as simple as i thought. ...
1
vote
1answer
40 views

Table positioning and floating problem [duplicate]

Here is my question. I want to put my tables exacty where I want in document so I use \begin{figure}[H] code. but then, this problem appears. If table does not fit the page, LaTeX puts it next ...
1
vote
1answer
85 views

Fit a table to page width

I am new to Latex and making tables using booktab. I made a table with hierarchy in the x-axis such that I have 3 columns and each column further has 3 sub-columns. But, the table fails to fit within ...
2
votes
1answer
54 views

endfloat leaves space even when marker text off

I am using endfloat to process all my tables at the end of my document. I am also using the option to suppress in-text markers. However, endfloat still seems to insert a space where the marker would ...
5
votes
1answer
80 views

Spurious leading horizontal space with \multicolumn in tabular

When I use a \multicolumn within a tabular (or tabularx) there seems to be additional horizontal spacing added at the beginning of the column even though the left alignment was specified for ...
0
votes
0answers
13 views

My table is refered in Alphabetical order! [duplicate]

In my text i put my table \ref{table:3} AND IN MY TABLE I START BY \begin{table}[H]\label{table:1} \centering But imagine my surprise when I see my table being referred as table a in my ...
5
votes
1answer
155 views

How to code this table

I tried to produce this table but I have problem with my code. How can I change my code to obtain the desired output? \documentclass[11pt,a5paper]{article} \usepackage{multirow} \begin{document} ...
7
votes
2answers
135 views

Why does center not center \halign?

With the following code: \documentclass[a4paper]{report} \begin{document} \begin{center} \halign{\vrule \hfil # \hfil & \hfil # \hfil \vrule \cr a & b \cr\noalign{\hrule} c & d ...
5
votes
3answers
62 views

Align text at the bottom of the table cell

I need to create table of content in a table format with text wrapping in the subject titles. The page number is currently at the top of each cell. In the rows where the title is wrapped, I need the ...
13
votes
1answer
287 views

What is the command \span?

I have bumped into the \span primitive a couple of time. I got the impression it is defined in the TeX program, not even in plain.tex. Is that right? And what does that command do and what is it for?
3
votes
1answer
68 views

How to change the color of all the text in a column?

Is it possible, in the following simple table, to change the color of all the text in a specific column? \documentclass{article} \begin{document} \begin{tabular}{ll} one & two \\ three & four ...
1
vote
1answer
40 views

Why the extra line in my tabular, using beamer [duplicate]

Below is a minimal example that displays my problem. In the top row I have an \onslide<+-> command that seems to introduce an extra vertical space in the table, which is not there (as desired) ...
3
votes
2answers
43 views

Wider vertical space with some tables (those causing overfull \hboxes?)

With the following code: \documentclass[a4paper]{report} \usepackage{lipsum} \begin{document} a \begin{center} \begin{tabular}{|c|c|c|} \hline Ord & Esplicito (Adam-Bashforth) & Implicito ...
2
votes
1answer
45 views

Centering multicolumn table entries

I have the table below: I want all of the cell entries to be centered. But I couldn't manage it. How can I do that? My source code is below: \documentclass{article} ...
2
votes
1answer
69 views

row and column specifications in xtable output

Using xtable I am trying to format a table x<- 1:5 y<- 11:15 mytable <- table(x,y) print(xtable(mytable)) Which gives I want to add x and y tag also at the top of the rows and sides
0
votes
1answer
86 views

latex table, divide a column in two columns with multi-row option

I want to create multi-row tables. Here is the baseline table. documentclass[prodmode,acmtecs]{acmsmall} % Aptara syntax \usepackage[ruled]{algorithm2e} \usepackage{multirow} \begin{document} ...
3
votes
2answers
71 views

Split wide table into two but keeping the same caption and table number

I have a wide table that doesn't fit in one page so I split the table in 2. The problem is that I need to keep almost the same caption (the second one has to add the word Continued to the caption) and ...
3
votes
1answer
74 views

I have problems with the alignment of the table on my pages [closed]

Any comment to improve the below code would be a great help. \begin{document} \documentclass[11pt]{book} \usepackage[utf8]{inputenc} \usepackage[spanish,mexico]{babel} \usepackage[T1]{fontenc} ...
2
votes
1answer
78 views

How to draw two lines between text

How to draw two lines between text as shown in this picture. This is my code \documentclass{article} \thispagestyle{empty} \usepackage{lipsum} \begin{document} ...
2
votes
1answer
28 views

Inserting \begin{figure} and \begin{table} enviroments into the \AtBeginDocument{} command

Is it possible to insert either the \begin{figure} ... \end{figure} or the \begin{table} ... \end{table} environments into the \AtBeginDocument{} command? Consider the MWE below: ...
5
votes
2answers
136 views

Decimal point alignment in LaTeX tabular environment but in math mode

The dcolumn package works well for plain numbers but not if these are in math mode eg \begin{tabular}{ld{1}l} \hline \textbf{Species} & \multicolumn{1}{c}{\textbf{Calculated}} & ...