{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
126 views

How to indicate a sliding window in a table

I have a table as follows in beamer. \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage{default} \begin{document} \begin{frame} \frametitle{test} \begin{center} \huge \Huge ...
6
votes
2answers
230 views

Passing the current column width to a macro (for table headers)

In an attempt to separate the formatting of tables, and in particular their headers, from the content, I have produced the following code: \documentclass{article} \usepackage{array} ...
6
votes
2answers
242 views

Looking for Elegance and Convenience in Code with Many Numbers

I am designing tikz images of numbers arranged in a tabular environment. Each number is formatted according to a particular style (different colors and shape). I first define the style for each number ...
6
votes
2answers
209 views

What is the correct way to calculate \multicolumn size when using tabularx?

What is the correct way to determine the correct size for use with p{} needed by \multicolumn to get the size correct? The problem is this: I want to use tabularx and also use \multicolumn. To do ...
6
votes
1answer
728 views

Alignment at specific character with S column from siunitx

To avoid starting a new question yet again, I'll use this tread as the problem is the same as the first one. \documentclass{article} \usepackage{booktabs,dcolumn} \usepackage{calc} ...
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 ...
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. ...
6
votes
3answers
741 views

Tabular with automatic \hline

Is there a package or simple command that will insert an \hline after every line in a tabular environment? It is rather annoying to do it all manually, and it seems like there should be a simple way ...
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: ...
6
votes
1answer
784 views

How to trim the length of \toprule? [duplicate]

How to trim \toprule (from booktabs package)? It is probably something basic I'm missing, but I need it and it's nowhere to be found.
6
votes
2answers
3k views

table with tabularx and multirow

While using tabularx and multirow I tried to import this table (made with Word) in LaTeX: but it's not really working. It seems as if there isn't enough space for the text, but shouldn't taburlarx ...
6
votes
1answer
2k views

How can I align rotated text in a table at the bottom?

I have a code that produces a table. The three last columns have rotated text. I would like to align them to the bottom (not top as in the code below). In addition I would like to center the "nr" and ...
6
votes
2answers
321 views

How can I define a macro that adds a row to a table that has not yet been printed?

I want to generate a list of technical abbreviations and acronyms that I use. Currently, I'm defining all acronyms with a macro I have designed. Now, I want the macro to call another macro, called ...
6
votes
1answer
339 views

longtable: extra table structure after last entry

My long table extends one more column after the last row and is not smooth. What am I missing? \usepackage{longtable} \begin{longtable}{|l|l|} \caption{sample table with extra lines} \\ \hline ...
6
votes
2answers
1k views

Centering tables in document class apa6

I'm using the apa6 class in doc mode for my thesis. Now, when I create a table and try to center it on a page, the table is centered alright. The caption, however, still floats on the left of the ...
6
votes
1answer
624 views

Pgffor and the alignment character (&)

I need to construct a table that looks like: \begin{tabular}{ccc} a(1,1) & a(1,2) & a(1,3)\\ % <--- a(2,1) & a(2,2) & a(2,3)\\ % <--- I need this a(3,1) & a(3,2) & ...
6
votes
1answer
449 views

How to make nested table span all underlying cells

How can I make a nested multicolumn table span all its underlying columns such that 1 2 3 do not look squashed together but are rather distributed equally over the 2 cells? \begin{tabular}{ c c } ...
6
votes
1answer
986 views

How do I create the headings for this multirow multicolum table?

I wish to create a table that looks like the following: +-------++--------------------------++--------------------------+ | || Category A || Category B | | Title ...
6
votes
3answers
2k views

Table exceeds page

I'm new to tex and got a problem with a table that exceeds the page, because the content is too wide. I'd expect the table to wrap the text into a new line / new lines, if the text is too long for the ...
6
votes
2answers
4k views

Tabular, make a column or a row emphasized

I want to create a table and to make all cells of a column emphasized. Is there a simple way to do it, or do I have to emphasize every single cell?
6
votes
0answers
226 views

Is there a “widetable” counterpart to “longtable”? [duplicate]

Possible Duplicate: Table and multi-page I have some tables with 25 columns that don't fit on the page, even after rotating with sidewaystable. I know about longtable but what I would need ...
6
votes
3answers
638 views

etoolbox conditional causes unwanted empty row in tabular

This code leaves an empty row at the bottom: \documentclass{article} \usepackage{etoolbox} \def\somedef{foo} \begin{document} \begin{tabular}{|l|} \hline First row, not important \\ \hline ...
5
votes
1answer
60 views

hyperref link jumps beneath table's top caption when floatrow is included

I use the following packages related to captioning, tables and hyperlinks: \usepackage{hyperref,caption} \usepackage[style=Plaintop]{floatrow} \usepackage[referable]{threeparttablex} I have a table ...
5
votes
1answer
114 views

centering column headers in siunitx table column

In this table with some big numbers the column headers centered over the decimal point look odd to me. And, too, the columns seem a little too wide. I've puttered a bit with other answers here and ...
5
votes
1answer
52 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 ...
5
votes
2answers
182 views

Problem with subcaptions in subtables

I am trying to implement a table with several subtables, but working with subcaption does not work neither when I try tabularx. This subtables have different number of columns. with the following code ...
5
votes
2answers
227 views

Table with multiple rows and columns

I just want to create a table with multiple rows and columns, here is a very suitable solution:Table rowspan and colspan, but can anyone help me to get a variable column width rather than the equal ...
5
votes
1answer
113 views

Minted Environment inside Tabular

I want to create a table with Tabular and put a minted environment into it, just like here: How to embed a minted environment inside a tabular environment?. However, as shown in that post, the minted ...
5
votes
2answers
226 views

alignment of numbers in exponential format in a table with complicated header rows

I have a table that contains a lot of numbers. I have been defining new column types to allow me to specify column widths and allow \newline within a cell. Some of my columns of numbers are in ...
5
votes
2answers
267 views

Isometric Tables in LaTeX

Can someone please help me with a simple LaTeX code to draw something like the attached picture?
5
votes
1answer
101 views

Tables: vertical alignment of cell

I have a tabu-table and my default row-style is and has to be p. But I want the head-row (Column 1 and Column 2 in the MWE) to be vertically centered. How can I achieve that? MWE: ...
5
votes
2answers
2k views

Missing \endgroup inserted error in a table

I am getting 'Missing \endgroup inserted morekeywords={class,run}]' on line 16 while running the tex. I am using TexStudio. How can I solve that problem? \documentclass{article} ...
5
votes
2answers
270 views

Anchoring Table (Tabularx) from the Bottom of Table

Can you anchor a table at the bottom, inline with text? I have another question posted which I seemed to have solved myself - List Numbering Through Multiple Tables - but I have since found my way ...
5
votes
1answer
160 views

Add table titles from captions in scrreprt class

I am badly looking for a way to give all my tables the same title in the document, that is used in the list of tables via caption[title]{long description...}. The reason is that my tables originate ...
5
votes
2answers
111 views

Adjust table record in center

i have this latex table \begin{table}[H] \centering \footnotesize \begin{tabular}{p{3.5cm}p{3.5cm}p{3.5cm}} \hline Metric& cca vs. cca1 &cca vs. King James Bible\\[0.1cm] ...
5
votes
1answer
147 views

Possible to wrap multiple rows within a column at one time?

I am producing a document that has "interlinear" qualities. As such, it would be much simpler if I could wrap multiple lines of text at one time. Here is an example of what I want: Let's take these ...
5
votes
1answer
306 views

Splitting figures/tables into separate files

I'm preparing an article for submission in a journal and it requires that the PDF of the text be uploaded without figures and tables and each figure and table should be it's own PDF file complete with ...
5
votes
1answer
426 views

How to adjust the width of a wrap text sideways column header in tabular [duplicate]

I am trying to create table as below, in Texmaker. here i am facing following issues. To wrap text the column headers from 4 to 6 and align it center. Hspace on paragraph [row 3 last column] is ...
5
votes
1answer
284 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 ...
5
votes
2answers
342 views

Creating Thin Tables in LaTeX

Suppose I have the following table: \begin{table}[!p] \fontsize{6}{6}\selectfont \caption{First 200 terms of Hofstadter's $Q(n)$}\label{tab11} \center{ \begin{tabular}{l r r r r r l r r r r r} ...
5
votes
2answers
211 views

Is the longtable enviroment limited? I have a several pages long table

I am writing a long table with several complex things inside. When I realized I needed a multiple page table I tried to change table to longtable, but it just gives me a lot of errors. How can I ...
5
votes
1answer
103 views

What is the right way to set predetermined column widths with tabularx?

I was just wondering about this, because I went over the tabularx documentation and I couldn't find an answer. So, there are several questions going on here: Is it better to use a proportion of the ...
5
votes
4answers
911 views

Big curly brackets and rotated text around table

I have a rather cramped looking table here showing the chance of a nurse touching a surface type given (s)he is doing a certain type of care. I would like to make a large curly bracket to the left of ...
5
votes
2answers
3k views

Colored tables and cline/hhline

How to write \clines (or \hhline) in colored tables so that the color of the cell does not hide the line? Here are two solutions but neither of them works fine. \documentclass[a4paper,11pt]{article} ...
5
votes
1answer
781 views

White space between columns using \rowcolor{somecolor}

I have been using \rowcolor{color} command and I have noticed that there is always some white space between one cell and the next one in the row. Here is my code: ...
5
votes
2answers
966 views

Tabular integration by parts

All I am trying to do is write an integration by parts table in LaTeX. I can't seem to find an .tex code examples anywhere though I have seen pictures of such tables in PDF form (like at ...
5
votes
2answers
198 views

Odd results using FP package inside table environment

I'm trying to create a number of running totals using the FP package. I define a macro for adding numbers to a running total and then I define a macro to output the final value. The problem I'm ...
5
votes
1answer
480 views

footnote, hyperref, tabular

I have many tables with footnotes inside and I need hyperref in my document. Now, the problem is that footnote in my tables does not point to the notes at the end of the page. It points to the first ...
5
votes
4answers
2k views

Center column headings in tabular: multicolumn not respected

I would like to center column headings (and column headings only) in the following table. Why does it work with the first column, but not the second (I thought \multicolumn is the correct approach to ...
5
votes
1answer
529 views

How to represent tic tac toe table in Latex?

Hi all I need numbers from 1.... 8 as below in a table. 0 1 2 3 4 5 6 7 8