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

16
votes
4answers
4k views

Why can't I wrap \rowcolor in \only? (Beamer)

See the following minimal example: \documentclass[table]{beamer} \begin{document} \begin{frame}{Boo} \begin{table} \centering \small \begin{tabular}{rcc} \only<1>{\rowcolor{green}}Hey & ...
2
votes
0answers
123 views

Changing bibliography styles locally

Is it possible to change the bibliography style locally in a document from author-year to numbered citation. I have used Apalike in the thesis that I am writing now, but there are two tables which ...
1
vote
0answers
34 views

How to change default alignment for table environment in report class [duplicate]

I am using the table environment in report class. Here is the MWE: \documentclass{report} \begin{document} \begin{table} \begin{tabular}{cc} \hline a&b\\ c&d\\ \hline \end{tabular} ...
4
votes
2answers
14k views

Changing Table Numbering Scheme to Include Section Number

When I create a table and use \caption, Latex automatically adds "Table 1.1" or something similarly numbered. I'm using the book format, and want the caption numbering to be of the form "Table x.y.z", ...
4
votes
1answer
439 views

Add keys to table (with picture and code) [duplicate]

As you see in the red part of the picture, I would like to add keys to explain what the brackets stand for. I just added this with paint, but is there a way to do this in tex? Also, are there nicer ...
1
vote
1answer
107 views

Issue with table and text width

I ask for help since I cannot cope with an issue occurring in the compilation of my LaTeX file. I put a table in a section (documentclass cv), but unfortunately the table starts from the middle of the ...
0
votes
1answer
180 views

LaTeX figure labeling in tables

I have 6 figures in a 2x3 table which, inclucing the caption, fill one page nicely. I would like to label them with a), b), c) at the top left of every row. I experimented with subfigures, but didn't ...
30
votes
3answers
3k views

Parametrize shading in table through TikZ

I wanted to do some shading in a table according to its values. For example, if you see the table below: a b c d a 90 10 0 0 b 0 80 10 10 c 0 0 95 5 d 0 10 5 85 I want to ...
3
votes
1answer
267 views

Environment for two columns with lstlistings

In order to reduce copy-pasting, I want to create an environment that will produce a two-column table with headers and two listings in different languages, like below: \begin{tabular}{l l} Python ...
3
votes
1answer
224 views

Labelled subequations in table with multiple equations per row

I'm trying to make a table containing 4 equations in which the two in the left column are labelled 1a and 1b, and the two in the right column are labelled 2a and 2b. I've been able to construct such ...
2
votes
1answer
117 views

How to place footnote under TABLE in ConTeXt?

I need to place footnotes, declared inside \bTABLE \eTABLE, just under the table, delimited with a short rule. |----------| | table | |----------| _______ *footnote I also need to \placetable ...
7
votes
2answers
14k 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 \\ ...
5
votes
2answers
294 views

Can I draw shapes and align them as a matrix or a table using TikZ?

Is there any way to create this final figure along with its text which depicts the idea behind k-fold cross-validation in statistics with shapes aligned like in a table or a matrix using TikZ? From ...
7
votes
2answers
79 views

table alignment question

I have a table that currently looks like this: Code \begin{table}[H] \caption{Muuntajan nimellisarvot ja ylajannitepuolelta mitatut arvot} \centering \begin{tabular}{llr} \toprule Nimellisarvot ...
5
votes
0answers
205 views

Table vs Plot: How to print table of values, with colors representing values

In an effort to collect knowledge that will ultimately allow me to answer this question, I am seeking a way to generate a table where numeric values are plotted as cell-filling colors. The color ...
0
votes
1answer
122 views

How to force text down in table-header?

I would like to have my table-headers in the bottom of the cell, instead of in the top, as they are in this piece of code. Can anybody help me? \documentclass{articel} \begin{document} ...
1
vote
0answers
28 views

placing a footnote in a table [duplicate]

It seems that placing a footnote in a table is different a footnote in the text. Consider this table \begin{table} \centering \caption{Simulation parameters} \label{sim-param} ...
5
votes
1answer
762 views

How to set the width of column in longtable method?

I`m trying to put a table in my document. it is bug in both width and height. So I need to use longtable, landscape and fixed width for the column. but I cant. Please help. I want this table fit in ...
61
votes
3answers
107k views

How to vertically-center the text of the cells?

I have a simple table as follows: \begin{table*} \centering \begin{tabular}{|l|c|c|c|c|p{2in}|} ... ... \end{tabular} \caption{The factors the camera solver depends on to ...
16
votes
2answers
1k views

How can I produce a graph from a table?

What I want to do is plot a graph for a given data set. This must be simple to do, but I just cannot find a simple explanation of how to do it... I have the following table (no problem so far): ...
3
votes
2answers
157 views

tabularx doesn't break rows correctly

I've got some problems with tabularx. I need a table with 4 columns and the last one should contain a lot of text so I need it to break rows automaticly. And from my reasearch I thought that it should ...
6
votes
1answer
277 views

Tables are not compiling using IEEEtran class

I'm writing a paper using the IEEEtran class (conference mode) and the compiler even get stuck for the simple example table one can find in the manual. Here is the almost minimal example: ...
1
vote
1answer
157 views

How to display a number with many decimals and year correctly

I have a table in "import_csv_2.csv" as follows: No. Year W(G) 1 2010 0.02110333 2 2008 0.02082747 3 2006 0.02037291 ... \pgfplotstabletypeset[ col sep=comma, ...
5
votes
4answers
1k views

Insert new line in table

I am trying to put part of a header of a table on a new line. This is my code: \documentclass[a4paper,11pt]{article} \begin{document} \title{} \author{My name} \date{\today} \maketitle \section{} ...
3
votes
1answer
1k views

tables across page (ltxtable vs ltablex)

In the past I worked with the ltxtable package, which unfortunately require the table in a separate file. Now I found the ltablex package which claims to be a rewrite (or it rewrites) the tabularx ...
2
votes
2answers
2k views

Dificult using LTXtable

I have a script in R that build a report in LaTeX. Sometimes, this report has very long and very wide table, so, after some research I decided try ltxtable. My problem is that I didn't get how it ...
5
votes
1answer
44 views

Total number of longtables (v3.02+)

I'm wondering, are there any ways to get (and forward-reference at the beginning of the document) the total number of tables when using longtables? There are utility packages for standard table ...
1
vote
1answer
333 views

hline in nested table

I have a really complex table in my opinion which is why im running into some Problems here. I used a nested table because I had Problems when using the \multirow and \cellcolor / \rowcolor command. ...
14
votes
3answers
12k views

How to refer a figure as a table?

I have a question regarding LaTeX .. I have a table from an excel file which I print screened and posted as a figure in LaTeX. However, I want to make it a table. Problem is, the particular table has ...
52
votes
3answers
89k views

Is there a way to slightly shrink a table, including font size, to fit within the column boundaries?

I have a table that is just a little too wide for a 3.33" column. Is there a way to simply shrink the table a little to make it fit? I'm OK if the 10pt font becomes 9pt-something. Here is an example. ...
4
votes
1answer
189 views

How to automatically generate the following combinatorical table?

The following shows an example of X possible tables with constraints that will be specified shortly. \documentclass[preview,border=12pt,12pt]{standalone} \begin{document} \begin{tabular}{ccc} n & ...
2
votes
1answer
399 views

Why do I get this error with pdflatex?

First, apologies for not having an MWE, I know it makes things harder. I am unable to replicate the problem on a small example. I suspect there is some kind of bug with multirow and pdflatex. I keep ...
6
votes
2answers
218 views

Pgfplotstable for journals

a) Most journal have old LaTeX distribution or do not want to bother with “complicated” packages such as those derived from pgf (see Using TikZ in journal articles). I have build a table using ...
3
votes
2answers
101 views

How can I get rid of space after a tabular, aligned to the right via \hfill?

I'd like to get rid of the additional empty space on the right between \begin{tabular}{ll} \textsc{place,} & \textsc{date}\\ Place, & \today \end{tabular} % and the right page ...
4
votes
2answers
173 views

How to trim horizontal line ends in table with vertical lines?

How to obtain something like this ? The only way for trimming horizontal line in table that I found is using booktabs. The problem with booktabs is that it doesn't manage good vertical lines. I ...
2
votes
1answer
961 views

Error on table inside a beamer

I'm preparing a presentation using the beamer class, and I need to put a tabular environment inside it and I always get the errors Undefined control sequence \end{frame} and Missing number, ...
1
vote
1answer
374 views

fit tabular width with multicolumns into text width latex

So i want to make the following table fit in my text width. The table is much longer than the text. Any propositions? Thanks in advance. Here is the table code (dont pay attention to the comments' ...
26
votes
5answers
5k views

Reading data from a relational database into a LaTeX table

I'm using Tex Live 2009 on Debian squeeze. I can upgrade if I really, really have to, but I'd rather not. i was wondering if it would be possible to do the following. Given some data in a ...
6
votes
2answers
181 views

Vertical lines in table where none is supposed to be

\begin{table*} \renewcommand\arraystretch{2} \begin{tabular}{|c|c|c|c|c|c|c|c|c|} \cline{3-9} &&\multicolumn{7}{|c|}{Hashtag-dataset} \\\cline{3-9} &&Joy & Fear ...
2
votes
1answer
98 views

Handling blank rows for use with multirow automatically when using datatool

The following example code is slightly adapted from Peter Grill's answer to "Table including rows of a master table". The problem I'm having is that if I have a multirow, then I need an extra blank ...
2
votes
1answer
234 views

Column with fixed width and centre alignment

In the following code, \documentclass[12pt]{article} \usepackage{multirow} \usepackage{array} \usepackage{hhline} \newcommand{\spe}[1]{\multicolumn{2}{c}{#1}} \makeatletter ...
1
vote
1answer
137 views

How can I have a tabular flush with the margins? [duplicate]

Consider the following: \documentclass{article} \setlength\parindent{0pt} \begin{document} content \hfill content \begin{tabular*}{\textwidth}{l@{\extracolsep{\fill}}r} one & two \\ ...
4
votes
1answer
99 views

Error with pmatrix inside multline* inside minipage inside tabular

The following is a minimal example of code that gives me an Argument of \multline* has an extra } error. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{tabular}{c} ...
6
votes
1answer
176 views

Table including rows of a master table

I have a big master-table* containing reference items and that is a simple cross-project database of such items. Now I'd like to include in different documents parts of this master table and select ...
2
votes
1answer
212 views

Text in long multirow is not vertically centered

I have a large table, and the first two cells are multirow cells which span the height of the table. Instead of centering properly, they are centered in the top portion of the table, and I am ...
6
votes
2answers
107 views

Place table based on position of column break

I have a table with two columns of different widths. I want to place my table in my page such that the line between the two columns falls on the center of the page. If the columns were the same size ...
2
votes
2answers
184 views

How to make multiple tables?

How to make multiple tables on the same page, as in the example?
6
votes
1answer
250 views

Custom environment vs macro inside a tabular

In a document I'm writing I have a nested tabular structure that I want to capture as a macro for reuse. I'd like to define the nesting using a new environment but it doesn't seem to work. I have ...
4
votes
2answers
100 views

Series of long equations formated into a table with references

I have a series of long equations, 12 of them, that I'm trying to format into a table. The table is something like: \begin{tabular}{L{1.7cm} | L{1.8cm} | C{12.2cm} R{1cm}} \toprule \textbf{Label 1} ...
5
votes
1answer
254 views

Change diagonal line color in the table (slashbox)

I want to change the diagonal line color to white (the one at the left top corner in my case). Here is the image Here is the code \documentclass[12pt, a4paper,twoside]{memoir} \begin{document} ...