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

2
votes
2answers
32 views

Centering a table and the caption

I can't center the table with the following code, but the caption is in the center: \begin{table}[h] \centering \resizebox{0.8\textwidth}{!}{\begin{minipage}{\textwidth} ...
1
vote
1answer
111 views

How can I put the table caption on the top in pdfLaTeX? [duplicate]

I have this code \begin{table}[H] \caption{My Caption } \centering \begin{tabular}{*{6}{|p{3cm}}} \hline\hline But caption comes at bottom. I can't use this \begin{table}[Ht] as it ...
8
votes
1answer
683 views

Spacing after itemize inside a tabular

I have a problem with the spacing after an itemize inside a tabular. \documentclass[12pt]{article} \usepackage{lipsum} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{framed} ...
2
votes
1answer
53 views

Latex - set row height for a part of a tabular

I am trying to write a table. The table has 3 parts: header, body, footer. The rows of the body must have a fixed height regardless of their content. The last column should extend until there is ...
0
votes
0answers
91 views

Cell borders in tables “disappear”

I'm using LyX to edit some tables and TexMaker, but when I set the background color in the cell, the border line "disappear". For example: http://postimg.org/image/xp2xocp7z/ (one of my tables in ...
5
votes
2answers
110 views

Unify the size of two tables

How can I unify the table size and the font size for these two tables \documentclass{article} \usepackage{graphicx} \begin{document} % Table 1 \begin{table}[h] \resizebox{\textwidth}{!}{% ...
6
votes
2answers
94 views

How to indicate a sliding window in a table

I have a table as follows in beamer. \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage{default} \begin{document} \begin{frame} \frametitle{test} \begin{center} \huge \Huge ...
2
votes
0answers
49 views

Display math and tabular

I'm pretty new to latex and having some trouble. I have multiple math formulas which I'd like to organize on the page. i used: \begin{tabular}{p{6cm}p{6cm}} \[...\] & \[...\]\\ \end{tabular} ...
1
vote
0answers
24 views

how to make attached table format in latex [duplicate]

The table format is attached and i would like to know how we can create it in LATEX. kindly help me.
4
votes
2answers
56 views

How to h-alignment subtable to the limits of text?

I have this 2 subtables. How could I separate more the 2 tables, puttin the space indicate in the image in the center to get bigger the central distance ? I usually use \centering for center... are ...
0
votes
1answer
28 views

I want to construct a pseudo glossary using a table - how do I replicate a hanging indent?

I want a glossary in my thesis, but have come to the conclusion the glossaries package is overkill as I don't want to use much of the functionality. All I want is to be able to manually add a few ...
1
vote
0answers
47 views

How to avoid cutting tables at end of page? [closed]

How to avoid this kind of things? The table has the double of height you can see
7
votes
1answer
64 views

Generate automatic revision's numbering tabular

Situation I have to make a cover template for a document. At the end of the page, I have to add the revision number with other useful info like this example: \begin{tabular}{lccl} Revision 0 ...
1
vote
1answer
48 views

Remove whitespace around an enumeration in a table

I've tried using the enumitem suggestion given on http://stackoverflow.com/questions/4968557/latex-very-compact-itemize, but I still see white space around my enumeration: \documentclass{article} ...
1
vote
0answers
53 views

Dynamic Tables from Data Array

I have Data like that: Now i want to create that Table a bit Dynamic, I searched for Dynamic LaTeX Tables but only found Things for Excel and CVS. (And I dont have any of that formats…) Does ...
2
votes
1answer
785 views

Horizontally align multi-line cell in table

I want to horizontally align two cells with two lines in a table environment, something like this: ------------------- | A long | foo | | | ----| | multiline | bar | ------------------- ...
8
votes
4answers
150 views

specific table layout

I want to draw a table like this: with the table width being a portion of the line width, like e.g. 0.8 * linewidth. But I cant figure out how to do it. Anyone? edit: MWE: ...
4
votes
2answers
79 views

Adding background color to table cells in LyX

I'm doing some tables using LyX and I tried to set a color background in the cells , but I got this error: Undefined control sequence \rowcolor {cyan} & The control sequence at the end ...
13
votes
1answer
8k views

How can the margins around a table set to 0pt?

I need to put a table inside another table, and would like to set the outside margins of the inner table to 0pt. How can I do this (in particular for tabularx, but hopefully this would be the same for ...
3
votes
2answers
73 views

How to draw lines and put objects relative to other lines

I'm trying to draw a simple line, and at the end of that line include a table. I would like to do it without having to compute myself the position where the table needs to be drawn. How can I do that? ...
0
votes
2answers
38 views

centering content of table cell in LATEX

What i am getting using below code what i want Code \begin{table}[h] \caption{GENERAL PARAMETERS FOR THE SIMULATION} % title of Table \centering % used for centering table ...
1
vote
1answer
49 views

Table with an itemized list in second column

A colleague of mine asked me for help creating the following picture using tex code. Can someone share a bit of code, maybe for the first two rows? ...
6
votes
3answers
75 views

bigdelim and text with multiple lines

I have a table with a common label for multiple lines. Using bigdelim I place brackets to give explanations. My explanation has too much text for one line, so I would like it to break over multiple ...
37
votes
2answers
44k views

Changing the font size in a table

What's the recommend way of changing the font size in a particular table? Is there a better way than enclosing all values with, for example, the \tiny function.
3
votes
1answer
53 views

Can the Latex pick up the size of font in table?

Can the Latex pick up the size of font in table? I want to create the table with rigorous bounds and that Latex pick up the size of font by itself.
2
votes
1answer
47 views

How to color a single cell in a longtable [duplicate]

We are using XeLaTeX and the longtable package to visualize information, one of those reports must have a colored cell. A single cell, not the entire row. An example output is here: Is there a way ...
2
votes
1answer
208 views

Why doesn't this this line appear between tables?

I'm trying to learn how to typeset caption tables but... why doesn't this text appear between tables? \documentclass{article} \usepackage{subcaption} \begin{document} \begin{table} ...
2
votes
1answer
48 views

Raising one cell in a table

That is, I would like to raise one cell (e). Currently, the code is as follows: \documentclass{standalone} \begin{document} \begin{tabular}{llll} \hline A & B & C & D \\ \hline a ...
2
votes
2answers
169 views

How to make a wide longtable fit on page?

I'm new to LaTeX, and copied over a table from Excel into TeXShop (mac) using the macro. I set it as a longtable because it spans two pages, but with regard to width, the table isn't fitting. Also, ...
3
votes
2answers
163 views

.jpg image inserted in a column is shrinked or squeezed

When I am trying to insert a .jpg image in one column of a table in latex. it is getting shrunk and not able to stretch or fit into the whole column. it is getting shrunk or squeezed & when I am ...
3
votes
2answers
60 views

\newdimen in LaTeX is 0pt after assignment, why?

In the below example, I print out the two dimens in the subfigure captions. Surprisingly (to me), the first one prints correctly but the second one is somehow zero pts. Here is the MWE: ...
9
votes
2answers
261 views

Table with alternating row colours and rounded corners

I am trying to create a table with alternating row colours and rounded corners. I combined two answers so far to achieve this: Thorsten Donnig's answer about alternating row colours. Jake's answer ...
16
votes
3answers
2k views

How to Create Comparison Tables in LaTeX?

I am a new user (both to LaTeX & this forum). I want to create a Comparison Table for an Article (like the one shown here): Can someone please help me with this.
7
votes
2answers
127 views

Table-like scheme in LaTeX

I would like to draw the kind of table (I don't know any proper name for this, so I cannot research for similar question) shown in the picture below: I have absolutely no clue on how I can draw ...
6
votes
2answers
110 views

Long text in multirow

I have long text in a multirow cell. And the text takes more rows than the rows in the second column. \documentclass[a4paper,12pt]{report} \usepackage{multirow} \usepackage{longtable} ...
5
votes
1answer
40 views

Create linewidth spaced three columned table with column alignment

I'm writing a two columned article: \documentclass[10pt, aps, prb, twocolumn]{revtex4-1} I would like to include a table which is as long as 1.\linewidth. The table should consist of three columns, ...
3
votes
1answer
38 views

Problem with Multicolumn and Multirow table

I have a problem in my multirow and multicolumn table. As you can see in the figure, there is an extra horizontal line over the first column. Can anybody tell me how to remove it. I constructed the ...
3
votes
2answers
75 views

Rotated multipage table at start of chapter

I'm working on an article in which I have to put a large and wide table. This table is directly at the start of a new chapter. Because it is very wide, I want to rotate this table (or use it in a ...
6
votes
2answers
201 views

Warning: Please use \TABLE{…} in place of LaTeX environment

Please see the MWE: \documentclass{JHEP} \author{me} \abstract{a} \title{title} \begin{document} \begin{table} \begin{tabular}{c} hello \end{tabular} \end{table} \end{document} After compiling ...
3
votes
3answers
578 views

Centering siunitx columns

I have the following table, with the decimal aligning handled by siunitx (MWE): \documentclass{scrartcl} \usepackage{booktabs} \usepackage{multirow} \usepackage{siunitx} \sisetup{ ...
2
votes
1answer
160 views

How to make this table in LaTeX?

I'm not an expert in LaTeX, and just want to ask. How can we build the following table in LaTeX? Thanks.
2
votes
0answers
72 views

! Undefined control sequence on tables

I am new in LaTeX. I have created LaTeX and Gnuplot to build my graphs. Currently I have to add new table using LaTeX. but I get error: ! Undefined control sequence. l.60 \mycaption ...
1
vote
2answers
64 views

How to create a new line in the table cell

I am trying to create a table, but the content in the table cell is quite long, so I decided to create a new line for the cells. But I am not sure how to do that, could someone help me on that? Here ...
4
votes
1answer
65 views

Align missing data in siunitx S column type

How can I align missing data inside a S column type like in the below image? If I just add {\textemdash}, the dash is not centered, example: \documentclass{article} \usepackage{siunitx} ...
2
votes
2answers
67 views

vertically center text in a table

I've got the following table: \documentclass[11pt]{article} \usepackage{rotating} \usepackage[ lmargin=1.0in, rmargin=1.0in, tmargin=2.0cm, bmargin=2.0cm ]{geometry} ...
2
votes
2answers
90 views

Insert loop inside table?

1- I want to make a table with n number of rows ? my wrong code \newcommand{\xx}{ \begin{tabular}{|c|c|c|} \hline \newcount\fooo \fooo=10 \loop 11 & 12 & 13\\ \hline \advance \fooo ...
4
votes
1answer
707 views

Landscape forces premature pagebreak

After some trouble I have managed to make a table in landscape orientation that breaks over three pages. I used tabularx and the landscape package. Now my problem is that the thing won't float like ...
0
votes
2answers
71 views

Longtable & siunitx

So this is the first time I am attempting to use the longtable package and for some reason, I can't even get MWE to run - Pdflatex gets stuck after loading the booktabs package. I honestly can't see ...
1
vote
1answer
55 views

Justified text and multicolumn size in tabularx

I'd like to create table with (a lot of) justified text and some multicolumns. My example is below. It works more or less... but I get lots of underfull \hbox notices, which I think it's because ...
3
votes
2answers
78 views

Problem with table content

I have drawn a table of 2 columns and 5 rows. but because of 2nd row, 2nd column content is long,,, Only half of the table displays. other part is not displayed.. Please help me.....I tried many ...