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

3
votes
2answers
64 views

top alignment of table in table

I have a small :) problem with latex. I wanted to put an enumeration into a tabular, but this didn't work. Than I worked on a workaround ending up with the following code. My Problem: The cells are ...
1
vote
1answer
52 views

Circle a number inside a table

Open to any and all suggestions / alternative layouts. Need to be able to cleanly circle a number inside of a table. Currently I have this (stolen from elsewhere) and it produces output as attached. ...
3
votes
2answers
53 views

horizontal alignment of two tables with variable vertical space

I would like to have 2 very simple tables like these: \begin{center} \begin{tabular}{rl} text:&text2\\ &text3\\ something:&other stuff \end{tabular} ...
6
votes
2answers
160 views

How to resize a table to fit the page's width (without changing font size)

How to resize a table to fit the page's width (without changing font size)? \documentclass[twocolumn,a4paper]{article} \usepackage{multirow} \begin{document} \begin{table}[h] ...
0
votes
1answer
37 views

Long table centres the table

I have a table like this \begin{tabularx}{\linewidth}{lX} Cap & The underlying is a an interest rate cap\\ Floor & The underlying is an interest rate floor\\ Swap & The ...
3
votes
4answers
71 views

How to draw straight lines to indicate repeat values in merged table cells?

Can you help me the following working: I'm looking to indicate that the value 2.00 is repetitive vertically through a straight line like in this sketch (the result should be a solid, continuous line, ...
5
votes
1answer
137 views

Is there a dummy package like Lipsum or Blindtext for Tables and Figures?

Lipsum and Blindtext offer paragraphs, lists, and even whole documents of dummy content for testing LaTeX layouts. Is there a package that will generate tables and figures in a similar way?
8
votes
3answers
181 views

Code review: Tables on a page

In a document I am working on, I am trying to group four tables on a single page. However, it seems I still have not one, but multiple issues with my understanding of how tables work... I tried to ...
0
votes
0answers
16 views

subfloat, how to put two tables side by side instead of one above the other? [duplicate]

I need to put two tables side by side in my Springer LNCS paper. I used the \subfloat command but something went wrong: instead of being side by side, one is below the other. Here's my code: ...
1
vote
0answers
15 views

Vertical Centering [duplicate]

The following LaTeX code produces a table with one row and three columns. Each cell contains two short words word-wrapped so that one name is above the other. A design requirement of this table is the ...
2
votes
2answers
56 views

Align table by dot - Not with siunitx

I'm trying to align numbers in a table by the dots. I know of one method using the siunitx package. But I can't load the package. siunitx error: "incompatible-package"! Package 'SIunits' ...
6
votes
2answers
2k views

Reference table rows by automatic counter

Problem I have defined an environment to automatically number example sentences throughout my document. It uses the tabular environment and automatically numbers the first column of each row using a ...
0
votes
0answers
21 views

Table Captions overlaps table in LaTeX

I put caption and label to a table in LaTeX and when I run the code it seems to close to table, the font is larger than I would like it to be and there is too much space between table caption and the ...
0
votes
0answers
26 views

Controlling the height of table lines

I'm trying to make a signature line. I can't think of anything but using the tabular environment. \documentclass[a4paper,12pt,icelandic]{report} \begin{document} \begin{table}[b] ...
4
votes
3answers
72 views

Braces at the right of rows in a table

I want to put a brace at the right of the rows in a table. I use \documentclass{book} \usepackage{multirow,bigdelim} \begin{document} \begin{tabular}{cc} \hline Sample values: each line contains ...
0
votes
0answers
27 views

Table Captions overlaps table in LaTeX

I put caption and label to a table in LaTeX and when I run the code it seems to close to table, the font is larger than I would like it to be and there is too much space between table caption and the ...
5
votes
1answer
29 views

replace Table emtpy cells

I'd like to know how one can change the table's default empty cell space to something else when the cell has nothing written in it. E.g: \begin{table} \begin{tabular}{l l l l} 1 & 2 & 3 ...
8
votes
3answers
5k views

Change the word “Table” in table captions

I need to have tables with their numbers, just as when I use \caption. My problem is that when I use the \caption it shows me like this: Cuadro x.x: this is some table. The word Cuadro is ...
3
votes
1answer
40 views

Vertical Alignment or Centering

\begin{tabular}{|c|c|c|c|c|} \hline & \multicolumn{2}{c|}{Demand} & \multicolumn{1}{|c|}{} & \multicolumn{1}{c|}{} \\ \cline{2-3} AAA& Group 1 & Group 2 &BBB & CCC \\ ...
5
votes
2answers
46 views

How to add more space underneath and above a horizontal line in tabu?

I'm having the following table in my document: \documentclass[12pt]{article} \usepackage{tabu} \begin{document} \[ \begin{tabu} {c | c c c c c c} \firsthline f & a_{11} & ...
50
votes
4answers
58k views

How can I have two tables side by side?

Suppose I have two tables that don't have many columns (3, for example). How can I position them side by side?
1
vote
0answers
45 views

How to type a table in LaTeX? [duplicate]

Every time I'm working with tables in LaTeX, I'm frustrated, because I can't find a clean way to type them. Suppose my code looks like this: \begin{tabular}{c c c} blablabla & blabla & bla ...
3
votes
2answers
52 views

Problem with align inside tabular environment when using xcolor

I'm trying to build a table with multiple numbered equations inside, hence I used the align environment. On the other hand, I need to color some cells, so I included the xcolor package with the table ...
-2
votes
1answer
57 views

How would I make a table like this? [duplicate]

Getting the line that splits down the variables column is giving me trouble.
5
votes
1answer
79 views

Creating tables with enumeration in LaTeX

I want to create the following table: The MWE is as follows: \documentclass{article} \begin{document} \begin{tabular}{|c|c|c|c|} \hline % after \\: \hline or \cline{col1-col2} ...
2
votes
2answers
53 views

Efficiently colouring block of table cells

I made a table with the following code and the hhline package: \documentclass{article} \usepackage{hhline} \begin{document} \begin{tabular}{l || l l l l l | l} & 1 & 2 & 3 & 4 & 5 ...
0
votes
1answer
53 views

Centring table cell content under headers/subheaders

How may I place cell1, cell4 and cell7 under the particle column and cell2, cell5 and cell8 under the mass column in family 1? \documentclass[11pt,a4paper]{article} \usepackage{blindtext} ...
0
votes
2answers
65 views

Custom line break and column sizing in table

I use the following code to produce a table (using XeLaTex): %!TEX encoding = UTF-8 Unicode \documentclass[twoside,a4paper]{article} %---- Allow the insertion of graphics and tables ----% ...
4
votes
4answers
111 views

Specially indent tabular environment to the left

I would like to indent a tabular environment so that it is to the left than usual. This is because my table doesn't quite fit the page. (Don't worry that it is not the "right" thing to do; this is ...
0
votes
1answer
52 views

Numbering tables with tabular

I'm really new to Latex and would need some help with some basic coding: I can't number this table (which I would just be Table 1 right now). \label{tab:Deactivation} is not working, if I place it ...
2
votes
1answer
44 views

Tweak and prettify a nested table

I am attempting to create a table in which cells of one of the columns contains a nested table as the cell value. So far I have got this: \documentclass{article} \usepackage{array,multirow} ...
3
votes
3answers
47 views

longtable Alignment

I'm using a long table with image and lots of text. The alignment of it is wrong for me. I'd like to know how to make the text start on top of the box, near the line. Here is my code for the longtable ...
5
votes
1answer
31 views

Using lengthconvert with siunitx S column

I need to align numbers in a table. The numbers are generated from the \Convert command from the lengthconvert package. I want to use an S column from the siunitx package to align the numbers, but ...
3
votes
1answer
51 views

Fill last page with empty lines in longtable/longtabu

I am generating a PDF automatically from a database and I want to fill the last page up with empty rows. The document looks like \documentclass{article} \usepackage{longtable} \usepackage{tabu} ...
2
votes
2answers
125 views

Make a column of a table take up all remaining width without other columns wrapping to the next line

I want to make a table with 3 columns. The table will fit the width of the container. The left column will be right aligned and take up as little width space as possible. The center column will be ...
3
votes
0answers
54 views

Embed ConTeXt into LaTeX

I have an XML document which I'm currently trying to converted into XeLaTeX code. I'd like to stick to XeLaTeX rather than move to ConTeXt. However, a problem relatex to the difference in the table ...
2
votes
1answer
38 views

How to create empty vertical separation of tabular

I know \hline\hline will create empty horizontal separation in tabular, how about empty vertical separation? The || seems not work. \documentclass{article} \begin{document} \begin{tabular}{|c||c|} ...
0
votes
0answers
22 views

Table of content and list of table how to improve my numeration

how can i write the table of contents in latex in order to get the total number. In my thesis i get numbers from 1-167. However on my document i have numbers from 1-106 then soon after it turns back ...
3
votes
1answer
47 views

Create three column layout with large text in the middle and annotations in right column

I am trying to create a page layout which looks like this quick sketch I have done with Apple Pages: In the left column there should be some headings of the paragraphs printed in the middle column. ...
22
votes
3answers
7k views

Highlighting table cells

I have a large (13x13) table in which I need to highlight a subset of cells. I know that I can set a background color to those cells using colortbl or xcolor. But I need to highlight the table without ...
2
votes
3answers
36 views

Place sidewaystable together with text

My sidewaystable is always placed on a separate page! How do I make it appear exactly where it is defined? Is that possible? text sidewaystable page break text I've done something like this: ...
2
votes
2answers
77 views

How can I resolve this figure margin issue caused by geometry margin options?

\documentclass{article} \usepackage[left=2.5cm,right=2.5cm,top=2.5cm,bottom=2cm]{geometry} \usepackage[demo]{graphicx} \usepackage{tikz} \usepackage[english]{babel} \usepackage{blindtext} ...
2
votes
1answer
42 views

\multirow without extra &s

It is possible to somehow modify \multirow so that it works like this: \documentclass{memoir} \usepackage{multirow} \begin{document} \begin{tabular}{ll} \multirow{3}{*}{Tall cell} & First ...
2
votes
1answer
35 views

Show table headers on each page

I have a table that takes about three pages to display and I'm using the longtable package. It's three columns by about 80 rows. On the first page, I have headers for each of the columns. Is there a ...
1
vote
2answers
43 views

Why table border is not complete

This is the code of my table and the border is not complete and i don't know why \begin{table}[htbp] \centering \caption{Aertssen values for m and n \cite{aertssen3}} \begin{tabular}{|c|cccccccc|} ...
2
votes
2answers
38 views

Alignment of numbers in table with wide columns

I have a table with numbers which get aligned using the S column type from siunitx. Some numbers are put into \multirow and with the \tablenum macro the alignment works perfectly as long as the ...
3
votes
2answers
94 views

How to obtain a justified paragraph with correct word-spacing in tabular environment?

I'm trying to obtain a tabular with three columns of text vertically aligned on top (using array package and p{'width'}), but I can't figure how to obtain a regular spacing between words, like a ...
4
votes
1answer
9k views

Reduce space before and after tabular environment

I have a document with many occurrences of \begin{tabular} ... \end{tabular} I have been unable to find a global command that will reduce the vertical space before and after this environment. ...
0
votes
1answer
52 views

Table does not display in List of Tables

I'm including a table: \begin{table}[htb!] \centering \csvautotabular{results.csv} \caption{Results} \end{table} And in the top of my document, I have: \listoffigures \listoftables However, all ...
2
votes
2answers
58 views

Equation and image aligned on beamer slide

I'm trying to make a beamer slide which has some matrix equations and an image lined up with each other. Here is my attempt: \begin{frame}\frametitle{Transportation polytope constraints} A ...