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

4
votes
2answers
474 views

How do you display table headers that are wider than the rest of the column?

I have a table with lots of columns, which only contain a short values, but have long headings. I think this table would fit width-wise on a single (landscape) page, if I could get the headings sit on ...
1
vote
1answer
138 views

Horizontal centering in table

Consider the following example: \documentclass{article} \usepackage{booktabs,dcolumn} \usepackage{siunitx} \newcolumntype{d}[1]{D{.}{,}{#1}} \newcommand*\mc[1]{\multicolumn{1}{c}{#1}} \begin{...
6
votes
1answer
1k views

Align along dot in tables

Does anyone know how to align the figure along dot within the tabular environment? I would like the figures to be under each other sharing the decimal dot as a common point of alignment. \begin{...
5
votes
2answers
187 views

Captions and labels for my tables, listings, images

I'm writing my master thesis and I have a lot of short tables, listings, etc. in the text. I would use figures for them like this: \begin{figure}[h!] \begin{lstlisting}[mathescape] ... ...
2
votes
1answer
732 views

siunitx: bold single numeric cells + mathspec

I need to bold and align numeric values in a table while using both mathspec and siunitx packages. I've looked at siunitx: Bold single numeric cells for bold and alignment in a tabular environment ...
5
votes
1answer
114 views

Table within table fouls up vertical alignment of neighboring cells!

I nested a table inside of my table like this: \begin{tabular}{p{1in}||p{5in}} \hline This should be on top. & \begin{tabular}{@{\extracolsep{\fill}}lr} Thing1 & ...
2
votes
1answer
140 views

Tabular environment for specified width, bg and font colorings by row?

I'm looking for a tabular-type environment which will allow me to: Specify the total width (like tabular* or tabularx, tabulary) Allow an individual row to have a specific background color (like ...
7
votes
2answers
259 views

Table column align on decimal

Jeff Dean published this famous table of "numbers every software developer should know". I'm struggling to format it properly for a publication that is written in LaTeX. As you can see, the left ...
3
votes
3answers
882 views

Table Large Text and Centering

I'm trying to learn the TeX language in preparation for my final engineering project before I graduate, and while I've been able to find most of the solutions online, I can't seem to find a solution ...
4
votes
2answers
3k views

Sideways (rotated 90 degrees) label for table

How can I create the following table in LaTeX? I created the table below using PowerPoint. Here is my best attempt at using LaTeX to create the table: \begin{tabular}{l|l|l|} \cline{2-3} &...
1
vote
0answers
36 views

I cannot put latex code with pgfplotstable package [duplicate]

I'm makin' a table with this package but I cannot put latex code with $$ in every cell. The code: \usepackage{icomma} \usepackage{fancyhdr} %activamos el paquete \usepackage{endnotes} \usepackage{...
1
vote
1answer
195 views

How to remove multiline space within cell value (in Table)?

This refers to my following question. Setting single row height with multirow \documentclass[11pt,table,a5paper]{article} \usepackage{array,ragged2e} \usepackage{graphicx} \usepackage[framemethod=...
4
votes
1answer
133 views

Is there a way to always get a table on the same page with corresponding footnotes?

I have a situation where sometimes two tables (who look nearly identical to the one in the MWE) are on the right page with the corresponding footnotes but then unfortunately very often not, ...
7
votes
1answer
275 views

How do I use commands within tabular definition?

Using commands within tabular definition result in error ! Missing $ inserted. In this case, it is the \, that causes problems when calling the custom command. Same commands work fine outside tabular ...
5
votes
1answer
305 views

Align table columns with superscript markings

I have a table of integers; a handful of them have an extra superscript marks to distinguish various characteristics. I think the table looks nice, but the superscript marks throw off the alignment....
1
vote
2answers
946 views

Insert the table environment into the tcolorbox environment

Is possible insert the table environment into the tcolorbox environment, made available by the package tcolorbox? % !TEX program = pdflatex % arara: pdflatex: {synctex: yes} \documentclass[a4paper,...
3
votes
1answer
575 views

How to expand row height while using long text in multirow?

I m working on one table which has one row which spans over 3 rows but text in this row is very lengthy so it uses more than 3 lines so all text is not visible. How can i increase row height ...
0
votes
1answer
142 views

How to implement a table with multirow and multicolumn in latex

How can I create a table like this in latex? It is included multirow and multicolumn.
3
votes
1answer
160 views

Tabular p-column and environment gives strange output

The code below does produce a clearly too high column. The same effect can also be seen with other environments (center, ...). How can I use the p-column and have the correct height at the same ...
4
votes
1answer
218 views

Fixing the size of ingredient in the tables' cells

I have created a table as follows: \documentclass{article} \usepackage{array,booktabs} \usepackage{colortbl} \usepackage{xcolor} \begin{document} \newcolumntype{L}{@{}>{\kern\tabcolsep}l<{\kern\...
4
votes
1answer
168 views

How to make a table's columns fill up the page horizontally?

I would like to stretch out the content of the table/tabular-environment over as many columns on the first and second page as possible. How can I achieve that? MWE \documentclass[ 11pt ]{scrartcl} \...
4
votes
2answers
128 views

Tabular(x) cell filled with text from a macro

I'm trying to generate a table containing some static text and some text that should be supplied from a defined macro. Consider the following MWE: \documentclass[a4paper,12pt]{article} \usepackage[...
2
votes
1answer
111 views

Short way to create simple multiple rows in a tabular

Let me please emphasise first, that I do not need a sophisticated tabular --- I'm looking for a clever way to create a simple, but long tabular. I'd like to create an empty tabular which has e.g. 25 ...
8
votes
2answers
864 views

Tabular paragraph vertical alignment

How to make this kind of tabbed paragraph: 3 columns 2cm 10cm 2cm, the last column is right aligned and it's content starts on the last line of the paragraph of the second column. 10. Some text ...
3
votes
1answer
385 views

Arrow alongside table

Long time listener, first time caller. I've got a table \begin{center} \begin{tabular}{cc} And two columns of pictures displaying results with a particular parameter increasing. I am trying to ...
0
votes
0answers
33 views

How to get a table in the Correct Place with LaTeX [duplicate]

Hi I am using LaTeX through no choice of my own. I thought I had just gotten used to it and then it starts messing around with me. My out put is to a PDF document. I am trying to add 6 tables to the ...
6
votes
1answer
888 views

Table cell height too small when wrapping text

I have the following problem with my table: The height of the 2nd row is slightly too small and the text overlaps with the line at the bottom and the top of the cell. My code is below: \begin{...
4
votes
1answer
1k views

Table spacing, multi column

Good day, hi, I have a question to ask. If you have some spare time please kindly spare me a few minutes to enlighten me on the following question. Thanks in advance! So I am trying to construct a ...
2
votes
0answers
323 views

Put ampersand (&) inside conditional [closed]

I'm trying to make a command that formats the alternatives of a test. Can I put an ampersand after each alternative? (I call my tabular command out of this command, and I want to put each alternative ...
13
votes
1answer
911 views

Table with rounded corners

I've taken an example of a very cool table from here and I've made some changes to suit my needs, the problem is that the table it's not correctly rounded: Unfortunately it doesn't seem to exist a ...
6
votes
2answers
407 views

Use input inside a spreadtab environment with calculations

My aim is to create a command for inserting tables, which will format the table, and add calculations on its values, given a file containing the raw data of the rows only. \begin{spreadtab}{{tabular}...
2
votes
1answer
195 views

How to reduce the size of the table by forced new line in cells?

\begin{table} \begin{center} \begin{tabular}{|c|c|c|c|c|} \hline \multirow{2}{*}{Source energy (keV)} & \multicolumn{2}{c|}{Saturation thickness (mm)} & \multirow{2}{*} {1 mean free path (...
5
votes
1answer
148 views

Making one column which is too wide for a page in two pages

I am writing a book using latex, with pages of tables to make the horizontal and vertical alignment of the text and equations strict and precise. However there is a column (on every page) which is too ...
4
votes
1answer
227 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 ...
2
votes
1answer
219 views

Side-by-Side threeparttable?

I have an minor issue in which I have two threeparttables that are small enough to fit onto one landscape page, but I can't figure out how to get them to be side by side. Including two threeparttable ...
6
votes
1answer
9k views

Line-spacing in a cell of table

I'd like to change the line space of sentence in a cell of table. It is not line-breaked, but over-flowed since the sentence is quite long in the cell. My code example is below. The line space is ...
4
votes
2answers
837 views

Little indentation despite \noindent after tabu custom-environment

this question is about a (to me) mysterious little indent (looks like an ordinary blank...) after a custom-environment using the tabu-environment. Please compile this MWE: \documentclass[a4paper, ...
5
votes
1answer
1k views

Overfull hbox in tabular

In the following (M)WE, the tabular version of the Contact information from a CV gives an overfull hbox warning when compiled with pdfLatex, but the minipage version does not. Why? I have not found a ...
4
votes
1answer
122 views

Customized tabular environment

we've quite often have to write tables in our CI layout (colors, borders, fonts, etc). At the moment we use the standard tabular environment with lots of extra instructions (in the environment ...
3
votes
2answers
448 views

Table with cells of different widths

I'm trying to typeset a Word doc in LaTeX - mainly so that I can get the results I want, rather than Word (or LibreOffice) making my decisions for me. And my current difficulty consists of a few ...
2
votes
1answer
2k views

Threeparttable centering

I know that someone already asked pretty much the same but I cannot solve the problem of centering my table after using threepartatble command for the notes. Here it is: \begin{table}[h!tb] \...
3
votes
1answer
145 views

Formatting a LaTeX list as an HTML table

Is it possible to add some configuration somewhere in order to have LaTeX list, such as: \begin{customlist} \item[keyword1] Description. \item[keyword2] Another description. \item[keyword3] Yet ...
10
votes
2answers
927 views

Textures or pictures as background for a table.

I wonder how I can set a texture or a picture in the background of a table. I have tried to google it but I haven't found any satisfactory answer :-( I try to explain better: I know that it is ...
4
votes
1answer
69 views

Sorted output inside a tabular

Currently I'm trying to create an environment with several different \item-like commands. I want the arguments of the different commands to be ordered by their type. Basically the usage of \begin{...
1
vote
0answers
351 views

When using CSV reader, how do I add a currency symbol to the the column [closed]

I am a relatively new to TeX, and have come across a problem i cant solve with csvreader. I would like to add a currency symbol to a couple of the columns i am reading in from a CSV file. Currently ...
3
votes
1answer
6k views

Fix column width with tabularx

I want to create a table with 100% width? The first two columns should have a minimum width and the last column should have the rest width. The text in the last column (except the first cell) should ...
3
votes
1answer
149 views

Alignment issues with lists in a table in ConTeXt

This issue has been answered many times for LaTeX, but I couldn't find any explanation for ConTeXt. Here is a sample that shows the alignment problem : \starttable[|cB|p(4cm)|p(4cm)|] \DC\DL[2]\...
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 ...
6
votes
2answers
1k views

Fill table with dynamic amount of columns

I want to fill a table with a dynamic (calculated) amount of columns. The column should be filled with a value which the user should provide comma separated. I therefore tried to use forcsvloop, but I ...
3
votes
1answer
71 views

Use the content of a counter in cline

consider the following example: \newcounter{cnt} \setcounter{cnt}{3} \begin{tabular}{l|l|l|} \cline{2-3} a & b & c \end{tabular} I have a package that generates tables with a ...