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

13
votes
3answers
6k views

Adding color to a table column as a beamer overlay

I'm trying to have an overlay that adds a background color to a column of a table in beamer. I can create a table with a colored second column using the colortbl package. \begin{tabular}[]{r >{\...
2
votes
2answers
48 views

Specify the height of table header

I'm new to Lyx and I have a problem. I have the following table and everything is good except that I want to limit the height of header cells. I want them to be shorter that this where each header ...
4
votes
2answers
108 views

How to make editorial table from sections

How would it be possible to make an editorial list/table? I'm not asking how to create a list or table, but if it is possible to attach something to \section's and \subsection's in the form of a \...
2
votes
2answers
48 views

Formatting Latex Table

I have created a table in latex. However, the table is covering the entire page, and I cannot see some of the columns. It would be great if someone can help me format the table. Thanks! \...
5
votes
2answers
92 views

Table with list

How would you make this kind of table? How can you line the numbers with each item in the list? I'm trying to use \multirow{17}{*} for the list, but it doesn't seem to work. This is the source code:...
2
votes
1answer
49 views

Answers in table at the end of document in exam template

I am writing multiple choice paper in following format \documentclass{exam} \begin{document} \begin{questions} \question This is a multiple choice question \begin{choices} \choice this is a ...
1
vote
1answer
25 views

Include three images, so that the first one spans over two rows

So I would like to have 3 images; the first image spanning across the two other images (the first one is taller than the other two). Example: [1]|[2] [1]|[3] Here is the code I currently use, keep ...
2
votes
1answer
22 views

Can't change table reference format

I need to change reference to table to "табл. CHAPTER_NUM.TABLE_NUM", I was tried to do something like: \documentclass[a4paper, ukrainian, utf8, 14pt]{extreport} \setcounter{secnumdepth}{5} \...
2
votes
1answer
42 views

Is there a way to create a column-wide table in beamer?

I am writing a presentation using beamer class, and I want to show a table and then split some text in two columns. I tried to use the code below, but it doesn't work, and I can't find that much ...
7
votes
1answer
1k views

LaTeX tables in pandoc, captions

If I feed a simple LaTeX table to Pandoc, e.g. \begin{table}[h!] \begin{tabular}{ll} x&y\\ \end{tabular} \caption{A caption} \end{table} and convert it to HTML using pandoc -s table.tex -o ...
2
votes
2answers
56 views

How to generate a table of figures

How to generate a table of figures like this example below:
2
votes
3answers
58 views

How to insert vertical whitespace above and below a tabular environment

I used a tabular in middle of text, but there is little (vertical) space around the table inside the text. How can I increase the margin of this tabular (the distance between horizontal lines of table ...
4
votes
2answers
58 views

Tables: font size setting for all the cells and \arraystretch

I'm trying to create tables with small font size text in cells and large space between rows. If I put \small in every cell, the command \renewcommand{\arraystretch}{1.3} works, but if I try to put ...
2
votes
1answer
63 views

using textwidth in table to make sure table width same as textwidth

I am confused about why \begin{tabular}{|p{0.6\textwidth} | p{0.4\textwidth}|} generates a table with width larger than the page textwidth, since 0.6+0.4 should come out to be 1.0 and so I expected ...
1
vote
0answers
35 views

import cvs file with special characters as table in latex

I am trying to import a cvs file with special characters to my latex file using scvsimple however, I am getting some errors. I tried many suggestions from the forum and net but non worked for me. ...
1
vote
1answer
61 views

How can I color one cell of a table using a tikzpicture?

I want to draw a table, and color one cell in another color. As I'm not that experienced in latex, I found this example: \usepackage{tikz} \usetikzlibrary{calc,matrix} \usepackage{amsthm} \usepackage{...
31
votes
3answers
78k views

Add notes under the table

I'm using the latex package apa6e because the apa package isn't using APA style version 6 yet. Now I'm trying to add a table with notes right underneath it, like in this table for instance: Since ...
55
votes
1answer
59k views

How to add extra spaces between rows in tabular environment?

I couldn't find any option that lets me expand the vertical space between rows in tabular environment. For example, \begin{tabular}{c c} $f^{(n)}(x)$ & $f^{(n)}(0)$ \\ $-2xe^{-x^{x^{x^2}}}...
2
votes
1answer
46 views

Setstretch for a table

I am trying to put a list inside a table, using paragraph mode, but the space between the items is too wide, so I was thinking about using the setstretch{} command. Do you know how can I set it in the ...
13
votes
1answer
321 views

When to use tabbing

When should I use the tabbing environment? Whenever I want to line things up I reach for tabular, and I have this vague worry that I sometimes miss a simpler solution because I don't think in terms ...
0
votes
1answer
32 views

Problem with formatting Text in Table

Here is my code. Every time I include an image into my table the text in the same row skip lines and start from the bottom, to align itself [the text] with the image. Can you please advise me on how ...
0
votes
1answer
144 views

How can I write explanations below tables? [duplicate]

I have two tables and these tables are in one page. I wrote explanations about these. Although there a lot of space, explanations cannot be located below the tables. How can I fix these problems? \...
2
votes
2answers
87 views

Merge table rows vertically and align text vertically

I want to create a table that looks like this: So this is what I already got: \documentclass[]{article} \usepackage[T1]{fontenc} \usepackage{booktabs} \usepackage{multirow} \usepackage{graphicx} ...
2
votes
1answer
47 views

problem with text wrapping in tabular environment

I would like the contents of a cell in a row span several lines. I have the following MWE: \begin{table}[b]{ \begin{center}{ \begin{tabular}{|l|c|c|c|c|} \hline Source & Value & Affected &...
2
votes
1answer
23 views

HVFloat, caption below table

I would like to use the rotated table with the caption bellow the table. Unfortunately, the following code does not work. Thanks for your help.... \usepackage{hvfloat} \usepackage{booktabs} \...
2
votes
1answer
28 views

Different justification for table caption

I need get something like this with caption package: Word "Table 1." in the left with period after number. MWE \documentclass[]{report} \usepackage{caption} \captionsetup[table]{labelformat=...
3
votes
1answer
34 views

Thickness of lines in a table in LYX

I would like to increase the thickness of the top and the bottom lines of the attached table in Lyx. I tried command \newcommand{\hthickcline}{4} as shown in the attached Lyx file but it does not work....
1
vote
1answer
25 views

How to make \@namedef within a tabular cell have wider scope?

How can I make \@namedef stated within a tabular cell define a name that can be reused outside that cell? For example: \documentclass{article} \begin{document} \makeatletter \begin{tabular}{ll} \...
3
votes
2answers
64 views

Best way to align table cells at an operator?

I have some large upper triangular tables in csv form like this: , A, B, C D, $-10 \pm 2$, $52 \pm 40$, $9 \pm 3$ C, $8 \pm 300$, $411 \pm 1$ B, $9 \pm ...
0
votes
0answers
46 views

How to select monospaced numerals for tables only when using mathspec?

For one of my documents I used OldStyle numerals in regular text. For math I use Lining numbers. For tabular material I would like to use monospaced lining numbers if these numbers are math-related (I ...
2
votes
1answer
33 views

\multirow cell is not vertically centered when \cellspacetoplimit and \cellspacebottomlimit are used

Common cell is not centered vertically. Without \setlength\cellspacetoplimit{5pt} and \setlength\cellspacebottomlimit{5pt}, it is centered. But I do want additional spacing between rows. I can ...
2
votes
1answer
65 views

Conceptual Semantics diagrams

for a university assignment I have to typeset this kind of diagrams (from Jackendoff's Conceptual Semantics framework). I'm not that familiar with LaTeX's handling of matrixes, tikz and so on, so I ...
5
votes
3answers
604 views

Can't use utf8 encoding with datatool

I am using datatool to manage tables and I am getting errors when the data.csv file (encoded either as UTF-8 or ANSI) has characters like 'á'. I can get it around by having data.csv encoded as ANSI ...
10
votes
2answers
9k views

Center text in a single table cell

Suppose I have simple table. While I want the columns in general to be flush both right and left, there are certain cells that I want to be centered. \documentclass[12pt,a4paper]{book} \def\x{This ...
3
votes
1answer
34 views

How can I group elements with \right in table?

Let's say I have a simple table defined like this: \begin{table}[!htbp] \centering \begin{tabular}{ |p{5cm}||p{5cm}| } \hline \multicolumn{2}{|c|}{Table} \\ \hline Part Num & Part Let \\ \...
8
votes
3answers
2k views

pgfplotstable; longtable with caption and repeating header

I would like to use the pgfplotstable package in order to import data from a .csv file into a multi-page table. I would like for the table to have: a caption above it and its header to repeat at ...
6
votes
5answers
9k views

How to center table caption that includes a newline

My table caption spans more than on line so I added a \newline to split the caption at an appropriate position. Now, the two lines are left aligned. How do I center the two lines of the caption? \...
1
vote
1answer
52 views

Enlarging the table

How to enlarge this table? Thank you in advance \begin{table}[ht] \large \centering \begin{tabular}{c|c||*{8}{c|}} \multicolumn{2}{c}{} & \...
1
vote
1answer
29 views

“Undefined control sequence” while creating a tabular from a csv file

This issue is to say the least, very weird. I have a 12 columns csv file about several macroeconomics indicators: n,pibreal,pibnom,deflactor,c,isr,trc,tdeflactado,trcdeflactado,I,x,m 2000,...
3
votes
1answer
936 views

How could you make an image a hyperlink to a section in a LaTeX document?

I'm fairly new to latex and am currently working on a few articles as practice before I use it for more official documents. In my current document, I am attempting to make a table of icons (png ...
1
vote
1answer
60 views

remove space between columns in longtabu with rowcolors

I use the ltxtable package to create long tables with variable width columns. Using this I want to completely remove the space between to table columns by doing this: \documentclass{scrbook} \...
2
votes
2answers
66 views

Tabular individual vertical alignment in header row with varwidth columns

How can i bottom align the header row only? Is there a way to do it with \rowstyle or something similar as i did to make the whole row \bf? I would prefer not to use multiple tabulars. (\...
2
votes
2answers
120 views

Format whole row of table as bold

This appears to be a problem which a few people have had before, but since I've been unable to find a solution which works I thought I should ask again. I have a LaTeX table of 5 columns width and ...
0
votes
0answers
28 views

Complex long table not passing through pages

I used this solution to create the layout of the table: tabularx and hhline, to improve the look of the table. Here is the layout: \usepackage{tabularx,array, rotating, caption, hhline} \...
1
vote
0answers
33 views

Foreach loop in tabular, missing endgroup inserted

I'm trying to create a table using the foreach loops made available in the pgffor package. Using the following code, I am able to generate the right contents, but not aligned properly. \begin{tabular}...
2
votes
1answer
40 views

Change font in all sideways tables

Is there any way how to change the font in all sideways tables of the document? The following code \makeatletter \renewenvironment{sidewaystable} {\renewcommand\familydefault{mdput} \@...
11
votes
3answers
32k views

Error: extra alignment tab has been changed to \cr

I am using the ACM SIG template and trying to create a table of 4 columns. I get the error mentioned in the title of the question. I know the standard reasons why this error can occur. But my ...
0
votes
0answers
42 views

bad mathchar (32768) error message in my regression table made with estatb in stata

I have imported a regression table made with esttab in stata in my LaTeX document using the packages booktabs and threeparttablex. To do so I follow the steps indicated in the post Regression tables ...
3
votes
1answer
47 views

Blank page before long table

I want to add a page-long table using: \begin{center} \begin{tabular}{| p{3cm} | p{3cm} | p{3cm} | p{4cm}|} %long table \end{tabular} \end{center} However, this adds an ...
4
votes
1answer
37 views

shrinkable glue in table

I doubt that there's a way to do this, and I've only run into a situation that needs this feature only once, at that time there was a simple workaround, but I've been amazed at what people here come ...