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

8
votes
1answer
1k views

How to wrap text around a landscape table over multiple pages? \sidewaystable or \landscape + \longtable

I am trying to create a landscape table that breaks over multiple pages. I have successfully done this with the following: \begin{landscape} \begin{longtabu} to \textwidth{some columns} \caption[my ...
1
vote
1answer
158 views

Centering text in a tabular environment

Good day to all, This look not beautiful for me, I want the text is centred in the box, especially $\frac{1}{s^n}$. Your help is much appreciated. \documentclass{report} \usepackage{amsmath} ...
8
votes
1answer
991 views

pgfplots need help with complicated stacked bar chart using selected rows from data table

I'm trying to recreate this bar chart from the data table found in the MWE below. It involves doing a couple things that I can't figure out: stack positive and negative bars on the same axis, ...
3
votes
2answers
1k views

Having a table use textwidth and still have centered text?

I'm wondering if it's possible to have a table in LaTeX that spans the entire textwidth, and that the columns automatically center themselves... I have tried using the "X" option in tablerx, but it ...
10
votes
1answer
28k views

Brackets in first column in table give “Missing number, treated as zero” error [duplicate]

Possible Duplicate: Error with table I'm writing a table with 4 columns and 1 row. The first column starts with a bracket. It compiles without issues: \documentclass{article} ...
2
votes
3answers
621 views

Table of images with captions

I have a table with four images. \begin{table}[ht] \caption{table caption...} \centering \begin{tabular}{cc} \includegraphics[width=45mm]{w.png} &\includegraphics[width=45mm]{x.png}\\ \newline ...
4
votes
1answer
700 views

How to sort table for plotting with pgfplots?

Is it possible to sort a table at the point that is included in a pgfplot. In the example below, the point x=3 and x=4 are ordered for plotting. I am looking prefereably for an 'in-place' solution, ...
0
votes
1answer
902 views

LaTeX table header with split horizontal lines

I've seen the following table in paper and would like to reproduce it in LaTeX. The one thing that I'm struggling with is the broken horizontal lines between the two different "Dep. Var." columns (gap ...
5
votes
1answer
371 views

Interference between \includeonlyframes and \onslide across tabular row

I seem to have run into a strange interference between \includeonlyframes and use of \onslide to uncover a row in a tabular environment. Consider the following: \documentclass{beamer} ...
5
votes
1answer
3k views

Remove top and bottom margin in tabular (around lists)

If I create a table with several (short) lists, currently I'm using a table construction with enumitem to (almost) remove the left margin. Now I still have a rather large margin at the top and the ...
7
votes
2answers
735 views

How to make \tfrac work in >{}?

When I used >{$\sqrt\bgroup\tfrac}c<{\egroup$}, I got the following output. The weird part happened at the last column. How to fix it? \documentclass[border=3pt]{standalone} ...
12
votes
2answers
4k views

Color entire table

How do I get an entire table to get a background color. I dont mean the indivual cells but the entire table to get a gray shade. Something like this:
3
votes
2answers
1k views

Caption on tables with wrapfigure

I'm simply trying to get a table on the right side of my text. I've tried many different packages like float, floatflt, and wrapfig, the latter got me the closest to what I wanted. My only issue at ...
1
vote
1answer
868 views

multirow doesn't seem to work

EDIT: The problem now is that in the table, between 'Baseline' and 'Action' there is a space that I want to remove (look the image below). 'Action' is indented, and it's ok, but it's too detached from ...
6
votes
1answer
3k views

Newline in \multirow environment

One element of a multirow column is long. How can I split it so that it spans over multiple line. The following code \documentclass{article} \usepackage{multirow,array} \usepackage{booktabs} ...
2
votes
1answer
538 views

Spurious spaces in tabular environment with siunitx and percent symbol

I keep getting spurious spaces when I use the siunitx in a tabular environment in the presence of a percent (%) symbol. I am trying to align at the decimal point. My code is: \begin{tabular}{lS} ...
3
votes
1answer
437 views

Misalignment of table columns when using multirow

I have a LaTeX document in which I am using custom environment and commands to make everything a bit easier. However, when I use the multirow command in one of my custom environments, the alignment of ...
3
votes
3answers
4k views

How to draw a multirow table?

I am new to Latex and need help drawing tables. Here is what I have right now: and here is the code for it: \begin{center} \begin{tabular}{|c|c|c|c|} \hline Topology & Average Delay(s) & ...
8
votes
2answers
703 views

How to shrink a table automatically so that it fits onto a page?

I have a table that looks like this: \begin{table}[h] \centering \caption{MYCaption} \label{tbl:table1} \begin{tabular}{|l|l|l|l|} \hline \rowcolor[gray]{.8} \multicolumn{4}{|c|}{Team 1}\\ \hline ...
4
votes
2answers
352 views

Need help with cosmetic changes to longtable

I need some assistance with a longtable (code below). I have a few things that I've been trying to accomplish but have not been able to. 1) I want the grey background to cover the table in a similar ...
3
votes
1answer
439 views

Automatically insert capital letters as alphabetical breakpoints in a sorted column of names

Recently I used LyX to prepare a list with 200+ guest names for a wedding (page 1 illustrated below). Actually, it was a table including invited family names, the number of persons of each invited ...
3
votes
1answer
2k views

Altering the position of bullet given by \item

I am working on my resume and for that I am using one of the following construct: \documentclass[letterpaper,9pt]{article} \newlength{\outerbordwidth} \usepackage[empty]{fullpage} \usepackage{color} ...
5
votes
1answer
331 views

Alternate multicolumn

Is there a nice way to use \multicolumn in alternate rows in a table. i.e., \begin{tabular}{| l r |} \hline item 1 & item 2\\ \multicolumn{2}{|c|}{item3}\\ item 1 & item 2\\ ...
1
vote
1answer
497 views

siunitx package not working in tables

I can't get the special table columns from the siunitx package to work. The numbers render in a normal l column but not in the special S coulmn. Here's my minimal example: ...
3
votes
1answer
2k views

Greek Letters in Latex Table

I have been using online latex editor for generating equations for my blog. I am kind of novice to Latex. Now I want to generate a table for the first time. But when I try to write a greek letter into ...
2
votes
1answer
536 views

Create Custom tabular

Is there a way to make something like tabular such that in a loop we get each column in a line and render them in a custom format. Like this \begin{custom_tabular} l1c1 & l1c2 & l1c3 \\ l2c1 ...
1
vote
1answer
672 views

How can I affect my table formatting from the preamble?

I'd like to change my LaTeX table formatting slightly, but due to the way the documents are generated, I can't do so by changing the actual LaTeX code, but can change what will appear in the preamble. ...
6
votes
2answers
2k views

Trying to replicate a table from academic paper

I have this table: I'm trying to replicate something like this table: The main things that I wish to replicate are (i) How the text is appended very neatly to the top and bottom of the table ...
3
votes
1answer
348 views

Problem coloring an entire table due to \raisebox

I'm trying to make an ENTIRE table gray (see picture but I can't get it to work with \raisebox. Here's my code: \documentclass[a4paper,11pt]{article} \usepackage{color,amsmath,amsfonts,amssymb} ...
5
votes
2answers
584 views

Can't get table border lines to meet in the corners

I'm trying to create a table with horizontal and vertical lines, but the lines aren't meeting in the corners and I can't work out why. Can anyone point out what I'm doing wrong? ...
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 ...
2
votes
1answer
2k views

How to export a table?

I defined a table in LaTeX : \begin{tabular}....\end{tabular}. Now i want to export that table to an image (PNG or something}. It is possible? How can i do that?
1
vote
0answers
137 views

Standalone package errors when creating table [duplicate]

Possible Duplicate: Avoid paragraph due to trailing empty line in standalone file How to make a standalone document with one equation? Below is a MWE of a table that keeps outputting ...
4
votes
1answer
3k views

Numbering equations in tabular environment

I wish to number equations in a table, like numbering them in \begin{equation}. ... \end{equation} Since all the equations are written as "inline" equations (for example, $a = b+c$) in ...
1
vote
1answer
624 views

Multicol alternative

This post is a follow up to this post: multiple pairs of columns which was about generating columns of name/value pairs. There are sample outputs there. I now have several solutions and am at the ...
1
vote
1answer
553 views

multirow in a table

I have the follwing table \begin{table}[t] \center \footnotesize \caption{the capt} \label{thelabel} \begin{tabular}{ | c | c | } \hline %\multirow{2}{*}{\textbf{Name}} & ...
4
votes
1answer
1k views

Text column in array

I am trying to do something that seems relatively simple but I can't get it to work. Basically, I would like one of the columns in my math mode array to be text, so I am trying to use pre and post ...
8
votes
1answer
413 views

How to round to units of thousands or millions, etc., in a table column?

I have a table with lots of raw numbers in the billions and hundreds of millions. I'd like to abbreviate the figures in these columns to millions. So instead of 234,091,123 as per the input, I'd like ...
3
votes
2answers
2k views

Automatically adjusting the size table cells

Is it possible to automatically adjust the size table cells according to their content, or to make the size of all cells uniform ? This is an example: \begin{table}[t] \center \footnotesize ...
1
vote
1answer
129 views

Split paragraphs into table rows

I am writing a class file. I am defining a variable for my custom \maketitle like so: \newcommand*{\comment}[1]{\def\commentname{#1}} \comment{} I want to be able to write a list of comments like ...
7
votes
2answers
12k views

Type multiline equation in a table in LaTeX

Who knows the way to write a multiline equation in a table? I am using the code below: \begin{table} \centering \begin{tabular}{|c| c| c|} \hline %inserts horizontal line &f1& f2 \\ ...
2
votes
1answer
554 views

Matching question

Is there a standard package for generating a matching question such as: Match the following states with its capitals: Michigan Raleigh North Carolina Lansing Minnesota ...
2
votes
1answer
432 views

Display wide and long table

In the appendix of my report, I would like to add a table. The problem is that I have a cell "description" that contains too much text to be displayed on one line, now the row "overflows" on the ...
7
votes
1answer
1k views

Changing the fontsize of selected column in table

I want to decrease the font-size of a selected column. I tried \documentclass{article} \usepackage{multirow,array} \usepackage{booktabs} \begin{document} ...
0
votes
2answers
321 views

Using hfill to prevent expansion of text in table environment

I am using inline lists (from the enumitem package) within a table (see Comma-separated list environment) Originally, I had an issue where the inline list would expand horizontally to the width of the ...
14
votes
3answers
12k views

Tabular with p type columns to fill page width

I wish to be able to have a table (using tabular) that fills the page horizontally with each column using a fraction of that space, for now assume that they are equally sized. I wish to be able to ...
2
votes
1answer
347 views

URI with & in \href inside tabular inside a beamer frame

I have a strange effect, when I want to typeset a URI inside a tabular in a frame. Example: \documentclass[10pt]{beamer} \usepackage{hyperref} \begin{document} \begin{frame} ...
4
votes
1answer
620 views

Vertical placement of subfigs adjacent to another subfig

I have been using LyX, so I am fairly new to manipulating the underlying LaTeX. I have some images that I would like to arrange in a complicated fashion. The format I would like looks like | Fig_A1 | ...
0
votes
1answer
465 views

customize tabular

i want to customize my table using the tabular environments, i write : \begin{tabular}{|l|c|r|} \hline colonne 1 & colonne 2 & colonne 3 \\ \hline 1.1 & 1.2 & 1.3 \\ \hline 2.1 ...
3
votes
1answer
401 views

Big table in beamer

I have a big table that does not fit in the slides with Beamer, i write this : \documentclass[10pt]{beamer} \usetheme{CambridgeUS} % theme \usepackage{tikz} \begin{document} \begin{frame} ...