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

4
votes
1answer
783 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
222 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
625 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
852 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
89 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
621 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
420 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
0answers
288 views

Want to add more column on the left side? [closed]

Want to add more column on the left side? \documentclass{article} \usepackage{pgfgantt} \usepackage{rotating} \usepackage[graphicx]{realboxes} \newganttchartelement*{mymilestone}{ ...
2
votes
1answer
788 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
64 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
730 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 ...
22
votes
1answer
19k 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 ...
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
3answers
6k 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 ...
17
votes
2answers
13k views

shrinking tables for presentations

What is the most convenient way to shrink a table to fit in a beamer slide?
16
votes
4answers
14k 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 ...
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
338 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 ...
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
11k 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{} ...
17
votes
1answer
577 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 ...
16
votes
2answers
30k 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, ...
12
votes
2answers
9k views

Math mode in tabular without having to use $…$ everywhere

\begin{tabular}{|l|l|l|} \hline Column A & Column B \\ \begin{math} x & y \\ \end{math} \end{tabular} This won't let me compile and gives a lot of errors, how do I enable math mode in a ...
9
votes
3answers
11k 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 ...
8
votes
1answer
247 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
346 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 ...
6
votes
1answer
7k 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 ...
18
votes
4answers
481 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
2answers
2k views

Aligning inside tabular environment, specific cell

I'm trying to align specific content of the single cell. For example, \begin{tabular}{|r|r|} \hline 1 & 2 \hline right & to_the_left \hline 1 & 2 \hline ...
16
votes
1answer
21k 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 ...
16
votes
3answers
4k views

Rounding numbers in a table / Truncating text in table

Is it possible to have automatic rounding of numbers in a table? Say that I have this, made in the usual way with a tabular environment: pi | 3.14592654 e | 2.7182818284 phi | 1.6180339887 Can ...
15
votes
2answers
23k 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 ...
12
votes
1answer
1k views

Curly brackets around a table

I would like to have braces on the left side of a table (either that or on the right side) and bellow the same table. What I have got is $ m-Mal \underbrace{ ...
8
votes
1answer
891 views

Change text color in table, preserve ability

I'm having difficulty creating a new command for \rowstyle that allows me to color the text of different rows in a table and preserve my ability to space out the columns and not induce space between ...
8
votes
4answers
651 views

How to make 4 equal paddings (left, right, top, bottom) in a table cell?

I want each cell in a tabular to have 4 equal paddings of exactly 15pt each. How to make 4 equal paddings (left, right, top, bottom) in a table cell? \documentclass{article} ...
7
votes
2answers
10k views

Create a table with LaTeX

I need to copy a table from a pdf file to my LaTeX document. I know I have to do it by hand but still don't understand how to create a table with LaTeX.
7
votes
3answers
361 views

How to execute command on every table column

I have a table where I have to execute the same command for every entry in the table. For example: \ibibleverse{Matthew}(1:1) & \ibibleverse{Mark}(1:1) & \ibibleverse{Luke}(1:1) \\ ...
6
votes
1answer
995 views

Wrapping text in enumeration environment around a table

I would like to wrap the text in an enumerate environment around a table, this is my actual situation (sorry for including so much code, but I wanted to give a precise idea of the number of lines in ...
6
votes
2answers
2k views

Indent all but first lines of paragraph.

Inside of a table column with a width determined by a p{5in} tag, I want all but the first line of text to be indented. Is there any way to achieve this? Doing it by hand would make later edits ...
4
votes
1answer
179 views

Making a class to generate colored tables with a predefined layout

This is a follow-up question in which I asked how to define classes with \newcommands into \newenvironments, and I had some good answers to this particular issue. However, the problem that I have ...
3
votes
3answers
766 views

How to create columns within an itemize environment?

I want to generate a list of the following syntax for a resume. * <Description of Activity> <empty space> <right aligned date> Currently I have been using a form such as ...