{tables} is about the tabular environment and related packages such as {array}, {booktabs}, {tabularx} and {longtable}. For questions about the table environment (i.e., about floating or positioning), use {floats} instead.

learn more… | top users | synonyms (2)

15
votes
3answers
1k views

Expandable version of \InputIfFileExists or \IfFileExists

From this question: Cannot use \toprule when doing \input inside tabular -- why? I know that everything inside the tabular environment should better be expandable. The MWE below suggests that ...
9
votes
1answer
370 views

How to place all floats (tables in particular) at a certain point in the document

I would like to place all of the tables in the document at the end but before the bibliography generated by biblatex and the notes printed by endnotes. In other words, I'd like to collect the tables ...
7
votes
2answers
405 views

Making a table with special headings

What package can I use to make a table that looks like this one?
9
votes
1answer
744 views

Use text data as mark labels in pgfplots

I have a table with numerical data and text in different columns, like this: 0 0 0.1 1 0 \pi 2 0 \frac{\pi}{2} I'd like to put text labels on a plot using the text in the third column ...
5
votes
1answer
942 views

Adjusting S column in siunitx

I am a beginner in LaTeX, trying to use it for an industrial test report. I have numerous tables in my document, and I have recently discovered the capabilities of siunitx. I would like to use S ...
4
votes
2answers
112 views

How can I render a large number of tables in succession?

In the following code an error !h' float specifier changed to !ht` I think because my tables span multiple pages. How can I get them to display properly one after the other? ...
1
vote
1answer
77 views

How do I do table alignment?

I have the following code: \section{Database Design} \begin{center} \begin{table} \begin{tabular}{ | l | l |} \hline Field & Type \\ \hline id & Primary key \\ \hline ...
3
votes
1answer
4k views

Merge columns in LaTeX

I would like to merge column in LaTeX. I can make that but this line is incomplete because it still open on the left. Perhaps you will not understand what I mean, but this is the code that I wrote ...
2
votes
1answer
1k views

Problem with vspace around table environment

I recently decided I wanted a caption for the top table, so I placed it in a table environment. When I did this, the \vspace*{-2.5cm} before the second table seemed to be ignored for some reason. Does ...
0
votes
1answer
225 views

Latex : spacing of Figures inserted as Tables

I have inserted 2 figures into my Latex document as a table, using a mini page, so that they are next to each other. When i turn it into a PDF document, the figures overlap. I would like to be able to ...
2
votes
1answer
1k views

Importing CSV table - Error [closed]

I am new to LaTeX and am compiling a document right now using TeXworks. I am trying to create CSV tables into my document right now, and although I succeed in between I must have some small bug in the ...
6
votes
1answer
2k views

Table caption very skinny

I have a table like this: \begin{table} \centering \begin{center} \begin{tabular}{c|c|c|c} Data set & Image size & Hole size (pix) & Total time\\ \hline Mailbox & 459 $\times$ 489 ...
0
votes
0answers
72 views

Making a table in LaTeX [duplicate]

Possible Duplicate: Keeping tables/figures close to where they are mentioned How to influence the position of float environments like figure and table in LaTeX? I want to insert a table ...
15
votes
2answers
23k views

Insert image and list inside a table

I am trying to add both an image and list inside a table but I face various problems. As shown in the picture, the image is above the first horizontal line and also the lists are not properly ...
2
votes
1answer
339 views

Error while using colors in latex table?

I am working on color table and using code below. \documentclass[11pt,a4paper]{article} \usepackage{array,ragged2e} \usepackage[pdftex]{graphicx} \usepackage[framemethod=TikZ]{mdframed} ...
0
votes
1answer
182 views

erraneous text in a LaTeX tabular array created using custom macros

I have a tabular array that is based on David Carlisle's answer to Generating LaTeX tabular code during compilation. I have modified the code so that columns and rows are defined in different ...
7
votes
1answer
568 views

How to align decimal separator inside a specific table?

The table comes from the excellent answer of Philippe Goutet about this question : \documentclass[a4paper,12pt]{article} \usepackage{array,booktabs} % I add booktabs AM ...
3
votes
1answer
165 views

imagen beside a math

how I can make me stay in the following way but instead of using $ using the command / begin {align} for me to number the mathematical formulas to reference them later? \begin{center} ...
4
votes
1answer
5k views

vertical text orientation (multiple rows) in tabular environment

I would like to create a table that is labelled like the axis of a plot, i.e. a vertical orientation of the y-axis' label. This is what I have \begin{tabular}{rc|c|c|c|} ...
5
votes
1answer
430 views

Creating a simple table article; multi line table headings, display date on same line as caption and double underlines

I have written my first LaTeX document, and although it broadly looks like how I want it to, I want to polish it further to give it a bit more of a profession look - alas, this si where I have come ...
3
votes
2answers
696 views

How to align rows in Tikz nodes & tabular environment

In the attached image, you can see the text is not aligning properly. At the end it started to align as required. Sorry I can not reduce the MWE any more. since the preamble in big so I will put ...
6
votes
3answers
744 views

Error when using tabular environment

I'm trying to create a simple table, but it just won't compile. Here's a sample bit of code: \documentclass[11pt]{article} \usepackage{amsmath, amssymb} \usepackage{calc} \usepackage{array} ...
4
votes
1answer
2k views

Vertical Line Length in Table

I am practicing LaTeX by recreating tables from one of my professor's textbooks. I came across an example I can't recreate entirely. The problem is that vertical lines in between cells of the table ...
1
vote
0answers
329 views

Wrapping file paths in tables [closed]

I am programmatically creating LaTeX documents. Now, what I wish to do is to have a table in which a file path wraps. I expected I'd be able to do this by defining that column of the table as a ...
-1
votes
1answer
748 views

table breaks spanning multiple pages

i'm having an issue with a table that spans multiple pages and breaks across columns that span several rows. my code is listed below. the problem is that on page 1, row 1 shows up with foo1, bar1 ...
8
votes
1answer
956 views

Table specific questions

I use report class and I have just started working with tables. I have created one: \begin{table} [ht] \centering \caption{Ut convallis pharetra augue at aliquet} \label{table1_disc_log} \small ...
8
votes
1answer
432 views

How can I make a table like the type in this image in LaTeX?

I'm trying to make a table like the one in following image in LaTeX but I'm unsure how to go about it. I've been using the tabular environment from the booktabs package, but the following code ...
9
votes
2answers
832 views

Properly align numbers with units in table

I need to typeset a table comparing, among other things, the temporal resolution of certain datasets. Ordinarily, I would put the common unit into the table header, and only list the values in the ...
9
votes
2answers
4k views

How can I left-justify a paragraph cell in a table?

I have a table of maths as below, where I've used the p{} attribute to allow the list of partitions to wrap inside the cell. The problem is that it also justifies the column, which looks very strange ...
7
votes
2answers
3k views

Table of Figures

Is there a nice way to include multiple figures in the format of a table? I want it to look something like the following mock-up (pardon my terrible MS Paint skills), and am willing to include any ...
2
votes
1answer
535 views

Wrap text inside tabular environment without changing a lot of code

I used the following code: \begin{tabular}{|c|c|l|} \hline Pin Number & Pin Name & Analog Function\\ \hline \hline 1& 4xOUTZ& Yaw-rate or Z-rate output voltage 4 times amplified ...
4
votes
2answers
786 views

How to define a table in documentclass?

Consider a simple table in the document: \begin{tabular}{ l c r } 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \\ \end{tabular} How we can define this table within the ...
4
votes
2answers
901 views

Vertical centred alignment of text in table cell

I would like to know how to put vertical centered text inside a table cell. The problem with m column type is that i'm actually using tabularx to auto detect the width of the columns ...
20
votes
2answers
3k views

Highlight a table row with a rectangular overlay

I am trying to highlight the row of a table by drawing a rectangle over that row. A wrinkle is that the code for the table is pre-written from external statistical software and then included in the ...
12
votes
3answers
244 views

Conditional command (depending of the arguments)

I have the commands: \def\tabfive{% \renewcommand{\arraystretch}{1.1} \begin{tabular}{p{0.18\linewidth}p{0.18\linewidth}p{0.18\linewidth}p{0.18\linewidth}p{0.18\linewidth}} \fiveoptions ...
10
votes
1answer
937 views

white text on black background in entire table

I am looking for a way have white text on black background in the PDF output of PDFLaTeX applied to a document containing a basic table with dividing lines and some colored links. Using ...
5
votes
2answers
4k views

Footnotes tabularx-environment LaTeX

I've been trying to find a satisfying solution to the footnotes-in-tables-problem for hours now. Nothing I come across seems to work the way it should. Still, in the tabularx package documentation it ...
2
votes
1answer
267 views

Recreate efficiently this figure

I am writing a technical document, and I need to explain several steps of a construction which use matrices and linear equations. I was puzzled how I would create my figures and one paper I reference ...
4
votes
1answer
1k views

Full page table template

I am making a manual with LaTeX and at the end of the manual I want to insert a full-page blank table where I can have people sign to acknowledge that they have read the manual. Currently I am doing ...
1
vote
1answer
427 views

Horizontal and vertical alignment of a picture in a table

I want to align a picture in a cell of a table. Following works as I want for the text in the top left cell and the picture is already vertically aligned, but not horizontally: ...
4
votes
1answer
613 views

Table Spanning the Textwidth

I am trying to create a very simple, one row table that spans the linewidth. When I use the following command: \begin{tabular*}{\linewidth}{l@{\extracolsep{\fill}}r} Entry 1 & Entry 2 ...
15
votes
2answers
2k views

How to create new table environment

I am working on a book that has many many such tables. Is there a way to create shortcut for the code shown below. I want to make table caption a variable, because in the MWE shown below except ...
2
votes
1answer
282 views

Vertical justification and getting rid of extra line segments (in the first cell)

I am working on a table. My problem is that the text in the column "Type" for instance is not vertical justified. In addition I have an extra line segment at the bottom of the very first cell. ...
3
votes
1answer
436 views

Horizontal Filling with LaTeX Tabular

So, this is a case of "It's LaTeX, surely there's a better way of doing this." I've tried using tabular*, tabularx, and a few other things, but I don't quite get what I'm doing wrong with any of ...
4
votes
2answers
370 views

Cutting a table to fit the available space on a page

I have a long list of data, in a CSV file, formatted like this: tiger, 300, 10.0, 7, 4.0 lion, 200, 15.0, 5, 3.0 bear, 100, 15.0, 3, 1.0 fish, 10, 10.0, 2, 0.1 The first rows are more important ...
5
votes
1answer
16k views

how to fix the width of the columns in the latex table?

I have a table with long heading names. I want to fix the the width of the columns. When I do so the text flows out if the column. Any suggestion about fixing it. Here is the example ...
0
votes
1answer
588 views

Why doesn't the first column wrap text to its width?

I have the following code \documentclass[a4paper, 11pt]{article} \usepackage{multirow} \begin{document} \begin{tabular}{|p{2cm}|p{6cm}|p{1cm}|p{1cm}|p{1cm}|} \hline \multicolumn{2}{|c|}{} & ...
10
votes
2answers
189 views

Execute non-expandable code inside a tabular environment

As there is no Expandable version of \InputIfFileExists or \IfFileExists, the question arises whether it is possible to execute non-expandable code in a tabular environment after all: File main.tex: ...
8
votes
2answers
2k views

Cannot use \toprule when doing \input inside tabular — why?

Using \input inside a tabular environment does not seem to work in all cases, but I don't see why. The MWE below gives the following error message: ! Misplaced \noalign. \toprule ->\noalign ...
7
votes
1answer
7k views

Are there any tools that convert a table from MS Word to LaTeX tabular format?

I have a really big table in MS Word and would like to convert it to tabular format automatically. I'm using Texmaker and their quick tabular wizard is good but it doesn't let you copy paste data ...