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

6
votes
1answer
6k 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
1answer
161 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
118 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} ...
8
votes
2answers
639 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 ...
2
votes
1answer
102 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 ...
4
votes
1answer
277 views

How to make all table cells center aligned?

I have this code which works fine \begin{table}[ht] \caption{Table Data } \centering \begin{tabular}{c c c c} % centered columns (4 columns) Now i have the dynamic headers so i have ...
3
votes
1answer
327 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 ...
5
votes
1answer
668 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: ...
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 ...
2
votes
0answers
235 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 ...
3
votes
1answer
67 views

Why is the final column of this table running off the page?

\begin{document} \begin{exe} \ex \begin{tabular}{ l l l } & + -naqa (diffuse) & + -nuqa (placer) \\ \hline alli- `dig' & `knock over or destroy, to throw something to the floor' & ...
5
votes
1answer
139 views

How to make a figure consisting of a table of subfigures and headings?

I've got 3x3 images that I'd like to arrange in a table with row and column headings. All images have the same dimensions. I still want the caption to read "Figure 1.1" and not "Table 1.1". One way ...
2
votes
1answer
144 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 ...
4
votes
2answers
564 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
126 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
207 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
144 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 ...
4
votes
1answer
106 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 ...
2
votes
2answers
319 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 ...
7
votes
1answer
840 views

Differences between longtable and xtab

I have a pretty simple table that needs to span multiple pages. This seems like a job for either the supertabular/xtab package or the longtable package. The voting on the answers to this question ...
5
votes
1answer
763 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 ...
10
votes
2answers
658 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 ...
2
votes
1answer
1k 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
128 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 ...
4
votes
1answer
62 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 ...
1
vote
0answers
279 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
124 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)|] ...
6
votes
2answers
627 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 ...
6
votes
1answer
327 views

How to use only mathematical input in the first column with pgfplotstable

I can use a mix of text and mathematical input in the first column of a table generated with pgfplots with no problem, and also mathematical input in, e.g. the last column, as this mwe shows: ...
3
votes
1answer
64 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 ...
3
votes
1answer
246 views

Table and \tikzexternalize

It might not be a usual thing to do but I need to put some tikz pictures in a Table with externalization. I did \documentclass{report} \usepackage{tabu} \usepackage{tikz} \usetikzlibrary{external} ...
2
votes
1answer
643 views

tabularx with rotatebox and top-alignment

I would like to write a table with column name in a rotatebox. The problem is that I can't make the row title in 2 lines and rotated and then, the content in itemize is not top-aligned. Can you help ...
4
votes
1answer
108 views

algpseudocode side effect

All tables in my document seem to be affected after I've started using package algpseudocode. Pretty much every table now always starts with two additional lines. These lines are utilized properly ...
2
votes
0answers
43 views

Why doesn't raggedright work in the last column of a tabular (with package array)? [duplicate]

Here's my MWE: \documentclass{article} \usepackage{array} \begin{document} \begin{tabular}{>{\raggedright}l>{\em}l} A & B \\ E & F \end{tabular} ...
4
votes
1answer
575 views

place floating tables and figures in order of appearance

In my document I number tables and figures with the same counter, using the answer to http://stackoverflow.com/questions/3865036/using-a-single-count-for-figures-and-tables-in-latex/7771554#7771554. ...
7
votes
1answer
108 views

LaTeX doesn't put 3 tables at the top of a page as I'd expect

Why in the example below LaTeX puts Table 3 in p. 3 and not in p. 2 (just after Table 1 and 2)? I use the parameters [htb] for the position and I set topnumber equal to 3 so that I would expect Table ...
4
votes
2answers
682 views

Latex Table in Exam Class

I'm trying to add Question Type : Match the Pairs using EXAM Class use code mentioned below : [FYI: I'm converting HTML Table into Latex table. I'm using pdflatex to get pdf from tex file mentioned ...
3
votes
1answer
114 views

Centering a text in longtable

I am having some difficulty with centering a text in a table. If you happen to have some spare time, please kindly enlighten me on the following problem. Referring to the picture below, you could see ...
11
votes
3answers
917 views

Horrible table layout

I have a table which gives an overview of some theory. It includes a lot of words or combination of words. The layout is horrible and not LaTeX quality. Some guidance as to how to improve would be ...
5
votes
2answers
462 views

Can't use utf8 encoding with datatool

I am using datatool to manage tables and I am getting errors when the data.csv file (encoded either as UTF-8 or ANSI) has characters like 'á'. I can get it around by having data.csv encoded as ANSI ...
3
votes
1answer
103 views

nodal-graph in table spacing issue

Good day, hi, I am having some difficulty with including graphics in a table. If you happen to have some spare time, please kindly enlighten me on the following problem I would like to know how to ...
4
votes
1answer
121 views

Table entry shifted downwards with Hyperref package

I wanted to make a table with two columns: the left column lists the terms that the right column explains. Also I'd like to make the terms on the left column link to itself. The minimum working ...
4
votes
1answer
3k views

Using German umlaut in LaTeX tabular directive

I am trying to use German umlauts in a tabular directive. The file is encoded in UTF8 and the useage of umlauts outside of the tabular directive is working flawlessly so there should be no general ...
5
votes
1answer
285 views

Create Table for a Family of Curves

Following the issue Color Management with a Family of Curves I couldn't find a proper way of creating the associated table for a family of curves. I tried to create new columns with respect to the ...
1
vote
1answer
612 views

multirow with paragraph

I created a multirow table in LyX. When I tried to convert it to PDF, LyX hang and I had to kill the process. Finally, I narrowed the problem down to a MWE where there is only a single multirow cell, ...
5
votes
1answer
291 views

Is it possible to automatically stretch a table to fit the remaining space on a page?

\section{Change the improper fractions to a mixed number.} \begin{tabularx}{\linewidth}{|X|X|} \hline $\dfrac{29}{3}$ & $\dfrac{30}{4}$ \\ \hline $\dfrac{22}{5}$ & $\dfrac{48}{5}$ \\ \hline ...
6
votes
3answers
510 views

Vertical alignment of graphic and tabular

There are a bunch of related questions here. But I was not yet able to pull this off yet. I have the following code: (where hist.tex is a plot drawing) \fbox{\scalebox{0.40} {\input{hist.tex}}} ...
0
votes
1answer
357 views

Supertabular + minipage

I have a very long but narrow table (3 columns but 800 rows) and I would like to have it such that the table starts on the left side of the page and breaks onto the right side of the page before ...
3
votes
0answers
243 views

Highlighting extremal values in table when all values are not the same data type [closed]

I have a table generated by pgfplotstable, and would like to highlight the maximum value in each row for a particular number of columns. Here is a simple, completely made up, example that should ...
6
votes
2answers
2k views

Vertical Alignment of tikz picture in a table cell

I apologize in advanced for asking a question that has been asked before. I have read the other posts on SE about vertical alignment but I'm very new to Latex and had difficulty understanding them. ...