{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
2answers
400 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
188 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
147 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
226 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
213 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
813 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
121 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
428 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
143 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
903 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
345 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
146 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
461 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
962 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
70 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 ...
4
votes
1answer
122 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
1answer
796 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 ...
9
votes
2answers
522 views

Typesetting Supertabular in two columns

The problem is how to typeset supertabular in two columns. Really, I didn't understand the solution in Balancing long table inside multicol in LaTeX. As you see in the picture below, first, the ...
3
votes
1answer
1k views

Horizontally align multi-line cell in table

I want to horizontally align two cells with two lines in a table environment, something like this: ------------------- | A long | foo | | | ----| | multiline | bar | ------------------- ...
2
votes
0answers
46 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} \begin{tabular}{>{\raggedright}l>...
5
votes
1answer
822 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
112 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
1answer
739 views

How to create this table for multi-line rotated text and thick vertical lines?

I want to create the table below and I am not sure how to do it. I also want the lines that say, "Long line of text really long" to be wrapped, and take up 2 instead of 1 so that the table isn't as ...
3
votes
1answer
674 views

How to get horizontal black line when coloring cells?

I have the following table with an arrow showing the missing black horizontal black line: Here is the relevant code, I am wondering how do I get a black horizontal line where there is one missing? ...
4
votes
1answer
293 views

Landscape Picture + Table format

I'm using latex, and memoir, and I want to create a page template that would always take one and only one page, containing a picture that is aligned to the left of the page, and always fitted inside a ...
4
votes
2answers
848 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 ...
5
votes
1answer
386 views

Is there a way to use pgffor to build the rows for a tabular environment?

I was trying to build a tabular environment that is auto-generated through the use of pgffor's \foreach macro. But I can't seem to get it right. Here's a MWE for generating a multiplication table: \...
3
votes
1answer
151 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 ...
12
votes
3answers
1k 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 ...
3
votes
1answer
109 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
478 views

Multirow tables

Firstly I am very sorry for I know not how to make the TeX code works here. I am trying to have multirows for the first and last columns and following is the closest I could get. Could you please ...
4
votes
1answer
147 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 ...
3
votes
2answers
1k views

Table caption spanning two columns

I have an appendix section in my document, and I have to put a table after that. The problem is that I intend to use table*, but if I use that it would ignore table*[h] and will place the table on top ...
5
votes
1answer
408 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
473 views

How to keep tables readable in code

What is the best practice for creating and updating tables in Latex? I am using Texmaker but I find it hard to update a table like adding entries or adding a column. I have to count entries which is ...
7
votes
3answers
700 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}}} \...
3
votes
0answers
310 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
3k 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. ...
27
votes
3answers
77k views

vertically align text in table in LaTeX

Probably a straightforward problem. Why is the final column not center aligned vertically? Here is the code I'm using: \documentclass{article} \usepackage{array} \begin{document} \begin{table}[h]...
2
votes
0answers
99 views

List across multiple rows of a table [duplicate]

Is it at all possible to create a table that contains a list that spans across multiple rows. That is the numbering must continue from row 1 to row 2 etc. My use case is that I have a table in a ...
1
vote
1answer
803 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, ...
2
votes
1answer
56 views

Changing Format of Table Entries

I had attempted to shorten this table and I think I don't think I've edited it properly. In particular I think that I've made a mistake changing everything up to the numeric entries. Would anyone ...
0
votes
1answer
406 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 ...
2
votes
1answer
72 views

Spanning a row over defined columns

My code is as follows, however, "Banks' reaction strategy" should be centered over columns 2 to 4. How can I do that? The code: \documentclass[a4paper,12pt]{article} \usepackage{booktabs} %To make ...
7
votes
1answer
125 views

Why does not \centering work on a table, while \begin{center} does?

I cannot get my grips around the different effects of \begin{center} and \centering when used on tables (not inside tables). The MWE should explain the issue clearly: \documentclass{article} \begin{...