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

9
votes
1answer
1k views

Is it possible to have multiple paragraphs inside a multicolumn using xcolor or a replacement?

I am getting information written by users in many lines, paragraphs, and I have to put those inside a table, I would like to know if it is possible to instruct LaTeX to accept paragraphs inside a ...
9
votes
3answers
11k views

Control spacing around table caption

I want to put several tables in the same table float like this: \documentclass[a4paper, 12pt]{article} \usepackage[T1]{fontenc} \usepackage{subfig} \begin{document} \begin{table} \caption{Internal ...
8
votes
2answers
368 views

How to check if a column type is defined?

Column types for tables can be defined and overwritten with \newcolumntype. I would like to know if a column type is already defined for an example which shall only be executed in the case where the ...
8
votes
1answer
4k views

How to divide a table row into several columns?

I have a table with two columns. In the first column there is no multiple column. But there are 11 multiple columns in the second column. The format looks like: | A | B ...
6
votes
2answers
561 views

Hebrew vs. German/English translation side-by-side

I am having the following problem: I have Hebrew texts and want to put translations (and other information) right next to it in a nice way. (Previously I used the old Nisus Writer for Mac which for ...
5
votes
3answers
207 views

Troubles with column width in the tables headings

Well, we all know that compose tables in LaTeX is not easy, however, despite the large number of existing packages and options to facilitate this, I still have some problems I could not solve, and I ...
5
votes
1answer
2k views

How to vertically and horizontally centre text and images in (different) table cells?

I have a table which contains images in one column. I would like the first column to have text centred vertically and horizontally. I would like the second column to have text left justified and ...
4
votes
1answer
94 views

Build tabular content via \foreach

I am trying to build up tabular data using the solution at How do I use the ampersand (&) inside a foreach or conditional (or other group/environment) when building tables?, but not having any ...
4
votes
1answer
422 views

Latex Table giving me an error

\begin{table} \begin{tabular}{|c|c|c|c|c|} \hline \multicolumn{5}{|c|}{\textbf{Table 1:}Unfiltered Water}\\ Concentration of analyte in sample & Avg & Std Dev & RSD ...
4
votes
1answer
978 views

How to change the font size only in one column of a table/tabular?

Is there any way to reduce the font size in a table/tabular but only in one of its columns without repeating the size command in each cell of that column? Thanks.
4
votes
3answers
239 views

Can't include a 'tabu' inside \newenvironment with cells in the postamble

I'm trying to include a tabu inside a new definition of an environment but it fails if the postamble (enddef) of the new environment includes tabu's contents, so cells. With tabular or tabular* works. ...
4
votes
3answers
695 views

Bold one cell in table using CSV reader

Is it possible to bold a single desired cell (or number of cells) using csvreader (besides the head)? Here is an example of making the table. \documentclass{article} \usepackage{csvsimple} % Make ...
4
votes
1answer
2k views

Chngcntr: \counterwithout not working

I need to place the tables section after my appendix. I've used \counterwithin{table}{section} to number appendix tables A.1, A.2, etc. Then I use \counterwithout{table}{section} so that the tables ...
4
votes
1answer
3k views

Line break in table caption using beamer

I would like to add a line break in a centered table caption with beamer. I can't seem to figure it out. Here is sample code: \documentclass[xcolor=pdftex,svgnames,table]{beamer} ...
4
votes
3answers
892 views

Extra line of vertical separator using itemize in tabular

I'm creating a resume based off of the example tutorial HERE. It's fairly simple, actually -- just a two columned table with dates on the left and job on the right. I prefer bullets vs. a paragraph ...
3
votes
1answer
91 views

Highlighting in tabular environment

I am trying highlight a row of matrices in a tabular environment. However, the left brackets of the matrices are gone. And I don't know how to fix this. In addition, how can I highlight 2 elements ...
3
votes
2answers
692 views

Align (center) header row in table

I use @{\hskip 50pt} to separate columns in my table. The problem which arises is that I add this extra space after a multicolumn. This also moves the header row so that it is no longer centred. Is ...
3
votes
1answer
1k views

space between columns titles in tabular

I am having trouble doing the following in the tabular environment: title1 title2 ------ ------ a 1 b 2 . . . . . . z 26 That, having only the column ...
3
votes
2answers
1k views

Drawing Arrows in Tables

What is the best way to draw a diagonal line through the following table? \begin{center} \begin{tabular}{*{9}{c}} $e_{1}$ & = & $0$ & $.$ & $d_{1}^{1}$ & $d_{1}^{2}$ & ...
3
votes
2answers
430 views

Can this command be converted to environment?

I have a command as follows: \newcommand{\Comment}[1]{&&&#1\tabularnewline\hline} And now I want to convert it to be an environment as follows: \newsavebox{\tempDescription} ...
2
votes
1answer
824 views

Clash among packages?

I am working on a colored table and found clashes in various color packages and finally no color in alternate rows. I have followed suggestions, but nothing seems to be working fine. Below is my ...
2
votes
2answers
1k views

booktabs and tiny horizontal space

In a regular table, I'm trying to remove the small horizontal space before the first column and after the last one as achieved with package booktabs with the option @{}. How can I do that? Please ...
1
vote
1answer
67 views

Multicols and multirows table

i want to create this table structure: +---+-------+ | | b | | a +---+---+ | | c | d | +---+---+---+ | e | f | g | +---+---+---+ This is, what i have so far: \begin{tabular}{ | c | c | c ...
1
vote
1answer
896 views

Automatic adjustment of cell width

My problem is similar to tabular tabularx automatic linebreak (p/m/b doesn't work as expected). However he had some other issues that I don't have. I have a two-column article. In this article I ...
46
votes
3answers
2k views

Is there a tool to make a complicated Table like this one (“Auswahlliste” from “Pahl/Beitz Konstruktionsmethodik”)?

I’m developing a product as a part of my thesis for my university in Germany. We are supposed to use standard methodology for decision making. One of the tools is called “Auswahlliste”. (I don’t even ...
28
votes
5answers
2k views

How to produce a list of prime numbers in LaTeX

I would like to write a LaTeX script that produces all the prime numbers between the numbers n and m, where n < m. How can I do this? I feel it shoud not be that hard, but I cannot seem to program ...
26
votes
1answer
20k views

Can a table include a horizontal dashed line?

In a normal table, you can use the \hline command to draw a horizontal line. I am trying to make this line a dashed horizontal line. I have found the package dashrule via this answer, but this only ...
19
votes
3answers
7k views

How to make table with rotated table headers in LaTeX

I saw a table created in PowerPoint and wanted to know how to do it in LaTeX. The table is shown below. The aspects of the table that I'm most interested in are the rotated table headers as well as ...
16
votes
4answers
15k views

Fancy tables in LaTeX

I am terrible at LaTeX tables. I managed to produce a table, but it looks so basic. How do I make it fancier? Here is the table's code: \begin{table} \begin{tabular}{|l|l|l|l|l|} \hline ...
13
votes
1answer
2k views

Drawing Karnaugh's maps in LaTeX

I've been using LaTeX for a couple of years, but I'm pretty new to the tikz package. In particular, I'd like to add Karnaugh's maps in my document. I've already found a solution that satisfy me (can ...
30
votes
10answers
2k views

Methods to edit column order in an existing LaTeX table?

What is the best way of editing an existing LaTeX table? I need to swap the order of two columns and can't think of an efficient way of doing this. My table is a long creature of the following ...
18
votes
2answers
14k views

shrinking tables for presentations

What is the most convenient way to shrink a table to fit in a beamer slide?
8
votes
2answers
6k views

How to Rotate Text in Table across column spanning many rows

\documentclass[fleqn,12pt,a4paper]{article} \usepackage{tabularx} \begin{document} \begin{table}[ht] \begin{minipage}[b]{1 \linewidth}\centering \begin{tabular}{|c|c|c|c|c|} \hline ...
7
votes
4answers
2k views

Using external tables in TikZ

How do I use tabela.xls as a data source to a LaTeX table or even a table made with TikZ with the following command? Note: I wanted to use tabela.xls as a data source for multiple files. Tex and that ...
20
votes
2answers
3k views

Highlight a table row with a rectangular overlay

I am trying to highlight the row of a table by drawing a rectangle over that row. A wrinkle is that the code for the table is pre-written from external statistical software and then included in the ...
18
votes
2answers
351 views

Techniques to make tabular contents copyable

Take the following table: \documentclass{article} \begin{document} \begin{tabular}{|c|c|} 11 & 21 \\ 12 & 22 \\ \end{tabular} \end{document} What are the techniques to make this table ...
18
votes
2answers
35k views

How do I color table columns and rows?

I've found question How do I fill table cells with a background color?, but the link to the documentation isn't helping me at all. I'd like to know how to color a table column given my column code, ...
16
votes
4answers
857 views

How to draw the following box using TikZ?

How to draw the following boxes using TikZ? EDIT (22.09.)
16
votes
2answers
2k views

Generate random numbers with a specific font

My objective is to create a table or some form of environment as shown in the figure below. The numbers should be randomly generated every time you compile and have the font shown below. Is ...
14
votes
1answer
12k views

Change caption font size

I want to change the font size of a single rotated table caption (definitely not all the captions in all my tables/figures) Right now I can wrap the text inside the \caption around a \scriptsize{} ...
9
votes
1answer
9k views

Fitting tables into beamer

I have some tables in my presentations that are rather big. I found out how to use \resizebox to fit them into my page. Unfortunately this only works for tables that are wide. For long tables, my ...
9
votes
4answers
12k views

Newline in a table cell which is centered

This question may look like a duplicate but, none of the answers given to the possible duplicates contain the answer to this specific case. I have a tabular, say \begin{tabular}{ccc}. While adding a ...
18
votes
2answers
26k views

Insert image and list inside a table

I am trying to add both an image and list inside a table but I face various problems. As shown in the picture, the image is above the first horizontal line and also the lists are not properly ...
17
votes
1answer
595 views

automatically insert data in a complex table

I have a relatively complex table that looks like this: The same table structure is going to be repeated so many times. I already have the tables in MS Word. My question is if there is an easy ...
8
votes
1answer
262 views

Formatting an array of complex numbers with pgfplotstable

Say I have two csv files representing the real and imaginary part of a complex matrix. I would like to nicely display this matrix in LaTeX. The difficulty is to correctly round numbers and not ...
7
votes
1answer
366 views

How can I create a table that spans across the width of two vertical (and opposite) A4 pages?

I have a large (wide) table to typeset. I usually use the code below for my tables which enables me to specify the width of each column in the table. However, it is up to me to make sure that the sum ...
19
votes
2answers
2k views

Aligning inside tabular environment, specific cell

I'm trying to align a specific content of a single cell. For example, \begin{tabular}{|r|r|} \hline 1 & 2 \hline right & to_the_left \hline 1 & 2 \hline ...
18
votes
4answers
534 views

Avoid repeating [hbt] and \centering for every table

In a document I'm writing, I'm using the familiar [hbt] option for my floating tables, and I center them. I'd like to avoid repeating that every time I'm creating a table. I assume it's easy to add ...
18
votes
3answers
9k views

Aligning Decimal Points in Table

I want to align two numbers in two different rows the decimal point. I do see a link for that here: Aligning numbers by decimal points in table columns However, I don't understand how to ...
17
votes
1answer
23k views

Make a table span multiple pages

I have a table that takes up a full page, but I want it to start on a page that already has some text and then continue onto the next page (i.e. it's ok if the table gets broken up and spans two ...