{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.

learn more… | top users | synonyms (2)

9
votes
3answers
4k views

Different column number in rows

I would like to create a table like this: | H1 | h2 | <--- is centered vertically | T1 | | | T1 | text | text | text | | T1 | text | ...
3
votes
1answer
600 views

form field alignment with a table cell

Is there any way to horizontally centre the checkboxes in the following MWE? Also is there any way to adjust the size of the checkboxes so that (i) they do not touch the cell border, and (ii) they are ...
11
votes
2answers
1k views

Table using booktabs and cellcolor looks ugly

When using \cellcolor in a booktabs table, I find that the output is not really appealing: I don't really care that the colored cell does not touch the lines above and below (cf. Coloring columns ...
2
votes
0answers
387 views

Automatic formatting of LaTeX table [closed]

I have a table table.tex coming from a statistical software Stata. I would like to know if there is a way to tell LaTeX to format, for instance, some coefficients in red and italic. Something that ...
21
votes
5answers
1k views

What are some alternatives to presenting data instead of tables?

What are some alternatives to representing tabular data? Currently, I am trying to construct a table but seeing as how, everyone in my class will be doing that, I want to stand out and I'm looking to ...
2
votes
2answers
338 views

using lists inside multirow

I want to use a multirow item list in a column of a table, but it does not work. it says an \item is missing but it already ended before. \documentclass[a4paper,10pt]{article} \usepackage[a4paper, ...
1
vote
1answer
217 views

Table width error with multirow and longtable with consecutive `multicolumn`s?

I have this longtable table, where I want to locate two multicolumns after each other. When I compile with the second multicolumn commented out, everything is fine (pic 1). But with two consecutive ...
6
votes
2answers
126 views

Placing Matrices in Tables

I was curious if it was possible to create a matrix within a table? for example i wanted to create a 2 column table with left containing text and the right containing a matrix. Could someone tell me ...
2
votes
1answer
81 views

Why here is a large gap between caption and next text? Can I fix it? [duplicate]

asasasasasasasasasasas \begin{table}[ht] \centering \begin{tabular}{|r|l|} \hline 7C0 & hexadecimal \\ 3700 & octal \\ \cline{2-2} 11111000000 & ...
0
votes
1answer
251 views

How to fit a table of figures with various sizes into a page

I'm trying to fit four figures with various sizes into a table on one page. I started with the following code, but couldn't figure out how to get it work. How can I achieve that? begin{figure} \begin{...
8
votes
2answers
432 views

Hiding a column with colored cells

I want to use the column type described in this answer to hide certain columns in a table. The table occurs multiple times throughout the document, always with different columns hidden. Some of the ...
3
votes
1answer
238 views

\cline Not Working with Customized Column Padding

When I reduce the table's horizontal padding using @{}, the \cline command does not work properly anymore. It is shown in the MWE below. \documentclass{article} \begin{document} \begin{tabular}{|c|c|...
10
votes
3answers
184 views

Looping Through a Nested List

I have a hunk of data like so: { { {AA},{AB}, ... {AZ} }, { {BA}, {BB}, ... {BZ} }, ... ... { {ZA}, {ZB}, ... {ZZ} } } defined in a macro called \clebschdata. Each term XX is a list of eleven ...
1
vote
0answers
209 views

Document programming in Latex [closed]

I'm looking of document programming in LaTeX, but I have not found it; just tutorials for beginners. Can someone suggest me the best (French or English)? ok .. thank you for your answers. Then I ...
3
votes
2answers
710 views

how to write make rectangle box and write in it

\documentclass{article} \usepackage{graphicx} \usepackage{amssymb} \begin{document} \title{GROUP THEORY}\bfseries \maketitle \section{ALGEBRIC SYSTEM :} NOTE: The algebraic system define over operator ...
11
votes
5answers
1k views

problem with using loop inside the tabular environment

I am having trouble with using a loop inside a tabular environment: \newcounter{it} \setcounter{it}{0} \begin{tabular}{ll} \loop\ifnum\theit<4 \addtocounter{it}{1} Q & A\\ \repeat ...
4
votes
2answers
207 views

How do I remove unnecessary spacing before and after a table?

Example: Let A = \{$\alpha$,$\beta$,$\psi$\} be a set operates on $\star$ then \begin{table} \centering \begin{tabular}{l|lll} \textbf{$\star$} & \textbf{$\alpha$} & \textbf{$\beta$} &\...
4
votes
2answers
155 views

Can't get a new line in my table caption

(Below) is what I have, with some data shaved off. However, when I view my PDF the caption looks like: Table1::NGC 2264... I would like it as: Table1 NGC 2264 (centered of course) I've been ...
0
votes
1answer
164 views

The right way of forcing a long table in place

I was wondering what is the right way to include a long table in between pages? I have a table that is an A4 page long, if I use \begin{table}[h] it pushes the table to the very end of the document, ...
2
votes
0answers
99 views

How do I display a very wide table at the bottom of a page over two columns? [duplicate]

I'm writing a paper in LaTeX according to a CogSci template which uses two columns. However, I have a very wide table which needs to span accross both columns to be shown correctly. I want this table ...
1
vote
1answer
224 views

insert images into a tabular environment

I have 8 images, in which i want two images across, by 4 images down. I am trying to do this with the following code: \begin{figure}[htb] \centering \begin{tabular}{@{}cccc@{}} \includegraphics[...
6
votes
2answers
121 views

Extra row appearing in table assembled in pgf for loop

I'm constructing a table one line at time inside a \pgfplotsforeachungrouped. An unwanted line appears after the \hline at the end of the last round of the loop as evidenced by the lone decimal point ...
4
votes
1answer
120 views

How to align the columns of several tables

Given Table 1 and Table 2, I want to create a Table 3 whose columns are Column1(Table3) = max{Column1(Table1), Column1(Table2)} Column2(Table3) = max{Column2(Table1), Column2(Table2)} ...
3
votes
2answers
204 views

Mysterious whitespace around table

I've been trying to remove the whitespace around my table 1 but without any luck. I have attached the MWE, can someone please help me to take a look, thanks! \documentclass[11pt]{amsart} \...
1
vote
1answer
274 views

tables in lyx that flow with the text

I have been using float:table as my default for tables. I insert a float:table, then in that float I insert a child document (as input) that contains all my latex code for the table. This works fine ...
7
votes
1answer
301 views

siunitx overfull hbox dependent on table-format

There are a few similar questions (see here and here) regarding overfull \hboxes in siunitx tables but neither solves/explains the following. Consider this MWE: \documentclass{article} \usepackage{...
2
votes
1answer
98 views

“align” inside “table” because of table caption - how to do pagebreak?

I have a table: \begin{table} \begin{align} \nonumber b_{1} & = 0,200 & \beta_{1} & = z \\ \nonumber b_{2} & = 0,022 &...
2
votes
1answer
149 views

Highlight smallest number in table

I would like to highlight the smallest number in each row. How would I go about doing this. In the following for example, would like to highlight 3 and 3. \documentclass{article} \usepackage{datatool}...
3
votes
2answers
81 views

setting the automatically enumerated text in the middle of the row

I've enumerated my text in rows but it's not in the middle of the row and I don't know how to achieve that. My MWE: \documentclass{article} \usepackage{array,tabularx,multirow,geometry} \geometry{...
3
votes
2answers
1k views

Overbrace over two columns of 3-column Table [duplicate]

I'm little new in LateX. What I want to achieve is to make overbrace over two columns in 3-columnt table. I mean that I don't want to make overbrace over whole neither one column. For now I got this: ...
4
votes
2answers
613 views

dcolumn and tabularx, part 2

This is a follow-up on another question I asked. I am trying to combine the dcolumn package with tabularx (or tabular*for that matter) so the table spans the width I specify, columns are evenly spaced,...
0
votes
0answers
37 views

Figure out the width of each column [duplicate]

I want to know the width (e.g., *pt) of each generated column. How can I do it? \documentclass{article} \begin{document} I want to know the width (e.g., *pt) of each generated column. How can I ...
4
votes
2answers
846 views

Alignment in table

I'm creating a table but I'm not getting the correct alignment in the last row of the table. It's a multirow and muticolumn example. Of course, I'm putting some fictitious information and data in the ...
2
votes
0answers
130 views

Left align a Table? [closed]

I write a simple table code in LaTeX, but it is aligned in the centre of my page. I want to align the whole table in left position. How is this possible? \begin{table}[h] \begin{tabular}{| l |p{1in}|...
2
votes
1answer
168 views

Rowcolor wont cover all cells in the row

The following code \begin{tabular}{|m{1cm}| |m{10cm}|} \hline \rowcolor[gray]{0.9} \centering Grupo & \centering Descrição \tabularnewline \hline \hline 2B & instalações que utilizam ...
8
votes
1answer
424 views

TikZ double arrow between table rows

I need to create a double curved arrow that connects two cells in my table. I have found some sample a got this \documentclass{article} \usepackage{array,multirow,graphicx} \usepackage{tikz} \...
9
votes
2answers
3k views

Combine column types defined in dcolumn with tabularx

I'm looking for a way to define a column type which "mixes" the 'D' column defined in the dcolumnpackage and the 'X' column defined by the tabularx package. In other words, I want a column type that ...
4
votes
1answer
732 views

table in LaTeX giving error

I'm trying to create the table using the below script and its giving this error "! Missing $ inserted.<inserted text> $ l.689 \end{tabularx}" \begin{table*}[t] \centering\setlength{\...
2
votes
1answer
107 views

Spacing rows in a table

I am having a very difficult time typesetting this Cayley table. When I use this code, it gives me an error and tells me that I am using an illegal unit of measure. I know I do not have the correct ...
4
votes
1answer
538 views

Alignment of siunitx S-column looks bad with big numbers

I have to put a bunch of numbers into a lab report, and I currently use siunitx with tabular and the S column type. It looks great for small numbers and large column heads. However, for small heads ...
22
votes
4answers
3k views

A table with square cells

A friend is trying to make some auto-generated bingo boards, and LaTeX seems like an obvious choice - nothing fancy, just a 5x5 table with square cells, centered text, and line wrapping if necessary. ...
3
votes
2answers
480 views

Create a table column by column with special border formatting

I need to create some tables for a special college report. The data provided specifies the values column by column. The user Andrew Swann pointed out, that there is a way to create TeX tables column ...
3
votes
1answer
131 views

Vertically stack parboxes in a cell of a table

I need to insert an enumerate environment in a table. Following hints from this page: itemize in a tabular environment, I used \parbox to prevent error (Putting itemize environment in a tabular ...
4
votes
1answer
1k views

Name, address, email Template (sort of empty table) for the attendees of a seminar?

I want a three column "Name", "Address", "email" template with appropriate spacing. I know how to do this in MS word. But I am just curious how to do it in Latex? I might need space in the heading for ...
5
votes
1answer
698 views

How to make a table wide in a twocolumn-mode document?

How could I make a table wide (like using table*) in a twocolumn-mode document, that can break a page? Below the expected result (made in any ordinary text editor). Page 1 Page 2 UPDATE By ...
2
votes
2answers
208 views

Using a bib key containing an ampersand (e.g 2000A&AS..143..391S) in table?

I am currently stuck with this issue. The following is a typical .bibtex entry of a paper that I need to reference: @ARTICLE{1996A&A...307L..41V, author = {{Vink}, J. and {Kaastra}, J.~S. and ...
4
votes
1answer
118 views

Enumerate every row, excluding the first one in a table

I want to numerate every row, excluding the first one, in a tabularx environment. In my MWE the first line, headline, is also numerated. How can I turn this off? \documentclass{article} \usepackage{...
13
votes
4answers
394 views

How to clarify and enliven a dense table

I have a table that is quite dense: Any ideas how could make this easier to read, specifically in terms of distinguishing between different rows and columns? Was thinking Excel-style cell shading ...
3
votes
1answer
151 views

\raggedright has unusual behaviour in tables

I'm trying to make one column in a table appear ragged right. I've had some success, depending (inexplicably, to me) on the number of columns. The following works for me: Attempt 1 \documentclass{...
3
votes
3answers
119 views

How to shorten the space of the entry in a table?

My code is as follows, \documentclass{article} \usepackage{amsmath, amssymb} \usepackage{setspace} \usepackage{ulem} \usepackage{float} % fix the table \usepackage{bold-extra} \usepackage{amsmath,...