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

139
votes
10answers
58k views

Beautiful table samples

I'm interested in learning about some nice-looking table samples. Colors can make a huge difference, and just providing some color to headers, background, or borders can dramatically change ...
4
votes
1answer
2k views

Citing a reference in a table

I was preparing a table in my research paper where I was having a formula in one column and the name of the Mathematician who discovered it in another column. I also want to cite the paper of the ...
3
votes
1answer
327 views

How to create a table like I do in Word

I searched for examples with Google about how to create a table like this with LaTeX but nothing can help me, so I just make the question here.
3
votes
2answers
313 views

Table column spacing: right most column has too much space, should be shared

I made a table. It has 5 columns, the last 4 centered. Right now, they are not evenly spaced. Namely, the last column is way too far from the others. How do I go about fixing this? Here is the code ...
6
votes
1answer
392 views

Multirow in multirow

I am trying to get this to work. It is supposed to have a cell (that was already created with multirow) with three rows but I do not know how to get it to work. I am using shortstack to get it, but ...
0
votes
1answer
757 views

LaTeX \bar in table [duplicate]

I'm very new to Latex. So i want to put a \bar W in a table but the bar is covered by the horizontal line of table.So it becomes invisible. I tried adding \noalign{\smallskip} after \hline but it cuts ...
0
votes
1answer
339 views

Too many errors while trying to create a table

\begin{table}[h] \begin{tabular}{ c c} \hline Hypothesis & Belief & Plausibility \\ \hline Null & 0 & 0 \\ Red & 0.2 & 0.6 \\ Green & 0.15 & 0.6 \\ Blue & ...
0
votes
1answer
202 views

How can i auto resize the column according to content

I use this code: \begin{table}[H] \caption{Offsets 2} \centering \begin{tabular}{*{6}{|c}} \hline\hline \rowcolor{orange} student status & location type & outside region & approved ...
2
votes
1answer
179 views

What packages do I need to learn as developer to learn LaTeX?

I am a web developer and I often have the need to convert the the webpage to pdf. I have just discovered latex and pretty much liked it. But as there are many packages available , I am not into book ...
4
votes
1answer
2k views

How can i make a tabular fit the page width with the text centered?

I want to create a table that will be as wide as the page. I used this code : \begin{tabular}{|l@{\hspace{7pt}}|c@{\hspace{50pt}}|c@{\hspace{80pt}}|} \hline Τ1 & Triangle Inequallity & $ ...
6
votes
2answers
720 views

Better vertical space between paragraphs and centered tabular or figure

When I need to place a tabular or figure inside a paragraph (usually in exams or class notes) I use {\par\centering <tabular>/<figure>\par} because center environment uses too much ...
4
votes
1answer
228 views

Draw a table with bars going across the rows

Is there a way to do this? My hunch is that I can simulate this by creating a table that has 20 columns, no separators, use the | as a manual column separator, and then draw a rectangle that can ...
4
votes
1answer
379 views

Shift table up after rotating

I am using \rotatebox to rotate a table 90 degrees counter-clockwise on a portrait page. I am able to center the table horizontally, but not vertically. It sits at the bottom of the page below the ...
6
votes
1answer
3k views

Problem with fontsize when using longtable

I am using longtable package to make my large table span two pages. However I have set the font size with \fontsize to my table to be quite small. The only problem is that when the table is finished, ...
7
votes
3answers
337 views

How to change font size of all text in a table?

Hi I am trying the following code but only the first row (the headings) is being changed to the specified font size. How can I make the whole table's font size change? \begin{table}[!htbp] ...
1
vote
0answers
73 views

Positioning figures [duplicate]

I want to force a table and a figure to appear in a page with nothing except them. I've tried \clearpage but it makes lots of extra spaces in the document. Also some of the figs appear in the end of ...
3
votes
1answer
142 views

Column line overshooting the horizontal line in table

\begin{tabular}{|m{3.5cm}|m{5.5cm}|m{4.5cm}|} \hline \emph{Category of Benefits} & \emph{General Benefit} & \emph{Operational Advantages} \\ \hline \multirow{3}{*}{\pbox{3.5cm}{Robust ...
13
votes
1answer
1k views

Scientific Notation Only For Large Numbers

I have a table full of numbers. Most of them are floating point numbers that are less than one, some are integers from 1-100, and a few are large (×10^75). I know how to set the precision of the ...
8
votes
3answers
1k 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 ...
4
votes
1answer
302 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 ...
7
votes
1answer
395 views

Footnotes in tabular environments within multicols

I'm running into a strange inconsistency when I use footnotes in and out of tabular environments within multicols. In particular, I'm declaring a savenotes environment in a style file as follows: ...
3
votes
1answer
313 views

How to increase the vertical space between two “touching” tables?

I skimmed Can't generate vertical space between tables but am looking for sth slightly different: I don't really want to keep the tables together necessarily - I'm happy to let LaTeX (or whoever ...
3
votes
1answer
17k views

How to force a figure and a table to stay on the same page in LaTeX? [duplicate]

I have an image and a table that I want to display on a page. Each eats up little less than half of the space available so there's not much room for any other stuff on that page, but I know there is ...
3
votes
1answer
328 views

Postprocess row with pgfplotstable

I am trying to surround all elements in a specific table row with square brackets, using postproc cell content in pgfplotstable. As shown in the MWE, it works well for processing a column, but not ...
9
votes
3answers
226 views

How can you change the alignment of calstable?

calstable is always left aligned. \documentclass{article} \usepackage{cals} \begin{document} \begin{center} \begin{calstable} \colwidths{{1.5cm}{1.5cm}{1.5cm}} ...
4
votes
1answer
328 views

Color in multirows

I have a similar problem to that on the post xcolor package; color multirows with the following table. The four-row-cell containing the word 'HHeader' should be completely gray. I have tried to ...
3
votes
1answer
2k views

Multirows, multicolums and vertical centring in the tabu environment

I have a table, using the tabu environment, in which I would like multirow and multicolumn cells. Inside the cells, any content that doesn't vertically fill the cell should be vertically centred. ...
2
votes
1answer
257 views

Align text and numeric values by decimal in table body using dcolumn

How can I align numeric values in the body of my table by decimal point when some of those values are accompanied by character values? For example, say I wanted to report some standard deviations in a ...
1
vote
0answers
63 views

Table caption above, figure caption below [duplicate]

In a LaTeX article, I would like to place table captions above the tables and figure captions below. Is this possible?
4
votes
1answer
522 views

tabularx: bottom alignment on r or l-columns when X column wraps

In tabularx, when the X-column wraps on more than one line, l/r/c-columns remains top aligned: MWE: \begin{tabularx}{5cm}{lXr} 1 & qwer asdf zxcv qwer asdf zxcv qwer asdf zxcv & 1 \\ 2 ...
2
votes
1answer
172 views

How can I left-align the table in pdfLaTeX in TeX Live?

I have these two TeX files: \documentclass[a3paper,landscape]{article} \usepackage{array} \usepackage{tabularx} \usepackage{longtable} \usepackage{ltxtable} \begin{document} Hello. ...
4
votes
0answers
342 views

Aligning a table (vertically) with a subfigure [closed]

I want to show three pictures and a tabel with explanatory text: --------- --------- | | | | | Pic 1 | | Pic 2 | | | | | --------- --------- ...
1
vote
1answer
342 views

How can I autoadjust the table height, width in LaTeX with many pages of text

I am using CentOS and TeX Live. I am new to LaTeX. This is what I am trying \documentclass[landscape, letter]{report} \usepackage{ltxtable} \usepackage[table]{xcolor} \usepackage{colortbl} ...
4
votes
1answer
330 views

How can I make the document as wide as possible in LaTeX

I am new to LaTeX and don't know much about it. I am generating PDF from the LaTeX source files. My column are very wide and I want that PDF should expand to fit the data. Does not matter how long ...
8
votes
2answers
7k views

Get a table and figure on the same page with captions & labels

Here's what I'm looking for: I need a table and a figure to stay on the same page, while keeping captions & labels fully functional. Both the table and the figure need their own caption and their ...
2
votes
1answer
87 views

Odd behaviour when dashes are add in a table?

Using the following MWE : \documentclass[12pt,a4paper]{report} \usepackage[lmargin=3.81cm,tmargin=2.54cm,rmargin=2.54cm,bmargin=2.52cm]{geometry} \usepackage{booktabs} \usepackage{siunitx} ...
2
votes
1answer
673 views

How to implement this table in LaTeX

I really tried hard to do this on my own, but I keep failing ... Using multi-column and multi-row commands confused me. I know some of you might frown upon such a request but I really need help ...
7
votes
1answer
988 views

Tabulary on a rotated page does not use correct \textwidth

I'm trying to have a tabulary-table on a landscape page in a portrait document. Because I want to have the table use the full width, I tried to set it width to \textwidth, but the width of the table ...
3
votes
1answer
427 views

Automated table for excercise points in tikz

I'm a computer science student. And I write most of my excercises in LaTeX. So I often have to create a table for excercise points, with different numbers of excercises and different amounts of points ...
2
votes
1answer
3k views

How to adjust space between columns in longtable environment?

In the regular tabular environment, we can use \setlength{\tabcolsep} to specify the size of the space between the columns, but this doesn't work in longtable. Is there a similar command? ...
17
votes
2answers
1k views

Creating a triangular table

Is there a way to create something that looks like this? I have looked at the \rotatebox command, but that will not get the same "jagged" edges on the bottom, and looked at How to draw a ...
2
votes
2answers
1k views

Table formatting

I use the following table: \documentclass[a4paper, 12pt, bibliography=totoc, index=totoc, abstracton, ...
8
votes
1answer
1k views

Animating tabular rows in Beamer without showing the table border

I have a tabular environment with three rows, and I would like to show only the first row on my first slide, then show the next row and finally the third row. I have a solution that almost works but ...
5
votes
1answer
1k views

LyX table border colour

I have a multi-row table in LyX, with black horizontal borders at the top and bottom of the table. I would like to insert other horizontal borders inside the table that are grey rather than black. ...
2
votes
1answer
82 views

Referencing and printing table entries in main body

I have a table with numbers and I would like to reference a specific number in this table by re-producing it in the main body of the text. For example in this table: \begin{table}[h]\caption{Summary ...
3
votes
2answers
1k views

Footnote in tabu table not shown

Which package should I use for proper footnote handling in tabu tables? I thought tabu was supposed to do everything tabularx does, but footnotes do not show up in tabu tables. Working (using ...
5
votes
1answer
983 views

Making advanced tables [duplicate]

I am trying to generate tables like the one above I found in a textbook in LaTeX. In particular I am trying to find a way to make that $\$ slash symbol in the left upper corner. It would also be ...
4
votes
1answer
338 views

Using longtable with \cmidrule: page-breaking issues

Here's a (minimal?) working example that illustrates both the issues I am having: \documentclass{article} \usepackage{longtable,booktabs,lipsum,array} \usepackage{pgfplots} ...
5
votes
1answer
218 views

How to TeX a table contain large bracket

How to Tex a table in the form? I'm not interested in the detail of the matrix content, just interested in the form of the matrix, especially how to put the arrows and labels outside the matrix. ...
4
votes
1answer
115 views

colors in tablecells in LaTeX

I'm making a tabular and I want some of the cells to be colored. So I searched how to make colored cells. I now have the following: \documentclass{article} \usepackage{xcolor,colortbl} ...