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

6
votes
3answers
146 views

Why cannot the word in the last column be centered

I have the following table: \begin{tabular}{|p{3cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|} \hline \centerline {image} & \multicolumn{2}{c|}{ABC} & \multicolumn{2}{c|}{DEF} \\ \hline & ...
2
votes
1answer
50 views

How can I center the titles in the table?

I have the following table in LaTex. How can I center ABC and DEF? \begin{tabular}{|p{3cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|p{1.5cm}|} \hline \centerline {i} & \multicolumn{2}{l|}{ABC} & ...
4
votes
1answer
202 views

Macro to apply tabcolsep to a table from external file

I am using R to produce my tables via xtable, but I am not using Sweave to write my document. Instead I am using TexStudio and if possible would like to stick with it. Therefore I am using \input to ...
2
votes
2answers
240 views

Creating a table in LaTex with the following style

I'm new to LaTex, and would like to create a table that looks as follows: How can this be done in LaTex? Thanks.
4
votes
1answer
167 views

Serious problems with table layout

I have some issues when creating my OLS regression in LaTeX and really hope, that some of you could help me. (I do not know how to make more columns and to add text like: ...
3
votes
1answer
147 views

Optimizing size (font AND width) of tables produced with dcolumn/siunitx

I have a couple of tables in my document, and it's time to finalize them. This means I want to optimize: 1) the size of the font (if possible obtain \normalsize as in the rest of the document, or at ...
3
votes
1answer
94 views

How to write over a table? [duplicate]

I would like to make a hanzi grid for practicing Chinese characters, like this one: http://www.hanzigrids.com/version/1328584298/example-pdfs/hanzigrids-yingbikaishu.pdf I am able to make the table ...
2
votes
1answer
63 views

My table exceeds the page on both sides

I'm to make the following table but it exceed the page from both sides and I can't fix it ... any idea what could be wrong? Thank you \usepackage{amsmath} \usepackage{graphicx} ...
6
votes
1answer
135 views

Captions for tables in Beamer

I am attempting to add a caption to a table in a Beamer presentation. The caption I would like to add is "this is my caption" but when I compile the caption reads "Table : this is my caption". What ...
5
votes
1answer
427 views

Colored diagonal divided table cell

How can I fill a table cell with different colors? I have tried the diagbox package but it doesn't work as you can see. I am not so much interested in the diagonal line. I only want to separate the ...
5
votes
2answers
104 views

Table does not fit

I have put this into LaTeX to get a table in another page: \afterpage{ \begin{landscape} \begin{table}[h!] \begin{center} \begin{tabular}{| c ||l | l |l | l | l |l | l |l|l |l |l |l | l|l |} \hline ...
2
votes
1answer
57 views

Source at the end of table and centering cells

How could I add before title the source of the table? Also, in the first row how could I center between 2010 and provisional the other dates? \begin{table}[ht] \centering % used for centering table ...
15
votes
3answers
693 views

Problem typesetting a Prisoner's Dilemma table

I am going to create a table, which should look like The Prisoner's Dilemma, but I can't create it. It should look like this: My preamble look like this: ...
1
vote
0answers
59 views

Creating tables spanning across colums

this is my first time using latex. My problem is i wanted to get the table which is very long span across / continue at the next column. But the end of my table it seems to be disappearing. my code ...
0
votes
0answers
56 views

I can't figure out why my tables are not being numbered [duplicate]

I want to have tables with numbers so I can say "table 1 shows".. Can you please help? Example: \documentclass[table,dvipsnames]{beamer} \usepackage[english]{babel} % \usepackage{beamerthemesplit} ...
3
votes
1answer
272 views

Problems with itemize inside tabular and rotated text

I have some problems with a table in LaTeX. I want to have itemize inside cells and at the same time 90 degrees rotated text in the first column, vertically centered. I have a screenshot of the result ...
0
votes
1answer
755 views

WYSIWYG LaTeX table editor [duplicate]

Are there any WYSIWYG LaTeX table editors that you recommend for creating LaTeX tables?
1
vote
0answers
38 views

Margins- table how do i put the table inside the margins

This is my code, i don't know how to write a tabel on my own yet, so i used an online maker to do this, how do i make sure that the table won't go over my textwidth? \begin{table}[h] ...
4
votes
1answer
155 views

Serious problems with tabularx table layout

I have some issues when creating my tables in LaTeX and really hope, that some of you could help me. My table looks like this: Here is my coding: \documentclass[a4paper,12pt,oneside]{article} ...
1
vote
1answer
218 views

Problem with fit a table in beamer

I try to use \resizebox to fit table in slide, but I reach some error. Please help me fix this problem. \documentclass{beamer} \usepackage{graphicx} \usepackage[labelsep=quad,indention=10pt]{subfig} ...
6
votes
1answer
147 views

Auto break wide table vertically, not horizontally

Haha... I have a wide table (not longtable) that is very wide in width (many columns), a b c d e f g h i j k l m n --------------------------- 1 2 3 4 5 6 7 8 9 0 1 2 3 4 Now, I am looking for a ...
3
votes
1answer
169 views

A problem with underfull \hbox in alignment (tabular*) and/or perhaps the calc package

I am getting an underfull \hbox in alignment (badness 10000) with tabular*. The warning goes away if I adjust the table width by 0.00002pt (as per the MWE below). The difference seems to arise ...
1
vote
1answer
148 views

How to left align caption inside subtable?

I have the following code: \documentclass[letterpaper,12pt]{article} % things needed to include figures \usepackage{subfigure, graphicx} % float must be included for the [H] to actually work ...
1
vote
0answers
44 views

Tables arrangement [closed]

I have two tables, which are rotated 90 degree to align vertically from bottom to top. That works fine. I want to make two tables on the same page. Now each rotated table is on its own page. I want ...
1
vote
2answers
108 views

How can I get my table at the bottom of a two-column page? [duplicate]

I have a table in my document, the code of which is as follows: \onecolumn \begin{table}[b] \centering \begin{tabular}{cccr} \hline \textbf{Hydrofob del} & \textbf{Hydrofil del} ...
3
votes
1answer
154 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 ...
0
votes
0answers
73 views

Equivalent of Latable for matrix/vectors generation

Does anyone know an equivalent for Latable (which is used to generate latex code for tables) but to do the same thing with matrices and arrays ?
6
votes
2answers
1k views

longtable misplaced noalign

Question Why am I getting multiple misplaced \noalign errors? Reproducible example \documentclass{scrartcl} \usepackage{longtable} \usepackage{booktabs} \begin{document} \section{Table test} ...
3
votes
0answers
60 views

Caption of Table “floating” above the table [duplicate]

I have the following code: \documentclass{article} \usepackage{caption} \usepackage{booktabs} \begin {document} \begin {table} [ht] \caption*{\bf{Table 6: Pattern of Share Ownership, 2011}} ...
13
votes
2answers
131 views

Making a table independent of pgf

I use pgfplotstable to generate tables to be included in online submission to journals. I would like to make my paper independant of pgfplotsable because compilation of the document is made online ...
5
votes
1answer
294 views

Aligning vertically centered and horizontally left text of cells in table

My minimum working example : \documentclass[11pt,a4paper]{article} \usepackage[francais]{babel} %\usepackage[latin1]{inputenc} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
3
votes
1answer
156 views

Produce 2 side-by-side tables from tables as external files (source: xtable in R)

Is it possible to put two tables next to each other, which are in separate .tex files, and added to the document via \input? If it's not, I could also create just the 'raw' contents of the tables, ...
0
votes
0answers
846 views

Problems with deluxetable

I'm currently using revtex4 as the document class and I'm trying to use deluxetable here as well, but deluxetable is not working. I've added it to root and refreshed the database so the .sty is found. ...
3
votes
1answer
343 views

Create professional looking table description above table

I'm searching for the 'best' method to create professional academic table descriptions above e.g. a regression table. I managed to create something as below, just wondering whether there is a prefered ...
4
votes
1answer
247 views

inputenc[utf8] error with input-function of external tex files

I got a problem with inputenc[utf8]. My document is in German and uses 'ä, ö, ü' which usually works fine with the following preamble: \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
8
votes
1answer
76 views

media9 in tables

I am using the media9 package to embed sound files in my documents. This works quite fine in ordinary text, but when trying to run the same commands in a tabular environment, LaTeX apparently ends up ...
8
votes
1answer
73 views

Pgfplotstable ignores chars in filename

I am using the ignore chars key from the pgfplotstable to ignore some characters in a table. However, I have noticed that it also removes characters from the file name and I am wondering if this is ...
3
votes
1answer
622 views

\cellcolor command from colortbl package not working

I've been trying to colour single cells but it's not working. Here's a MWE: \documentclass{memoir} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \begin{document} \begin{tabular}{|l|c|} ...
4
votes
2answers
217 views

Vertically center contents of table cell

Consider the following example: \documentclass{article} \usepackage{pstricks-add} \usepackage{booktabs} \psset{ unit = 0.7, dimen = middle, ticks = none, labels = none } ...
0
votes
2answers
672 views

Itemize in Tabular raises “Something wrong--perhaps a missing \item”

By trying to compile the code below the following error will be raised for each \item entry. Something's wrong--perhaps a missing \item \begin{tabular}{ll} 560 v. Chr. & \begin{itemize} ...
4
votes
0answers
90 views

Error when inserting a table in LyX [closed]

I am preparing a research proposal and everything was going very well until I inserted a table. It gives me this error. Even if I use the code mode, I get the same error. I believe its a package ...
0
votes
0answers
44 views

Longtable breaking lists in a cell [duplicate]

I'm trying to produce a CV. I'm using Latex and Python, so I can edit the underlying text document with my material easily and the finished cv will come up adjusted for the contents of each section. ...
0
votes
1answer
39 views

Setting same specific width to columns of sequential tables produces horizontal offset

I obtain weird results when I sequentially arrange several tables with specific column widths MWE \documentclass[ngerman]{scrartcl} \usepackage[german]{babel} \usepackage{booktabs, array} ...
2
votes
1answer
139 views

Table Vertical Alignment not functioning

So I'm creating some tables and trying to use the array package to vertically align the text in some of my columns. Unfortunately whether I use p{xcm}, m{xcm} or d{xcm} the column is always aligned to ...
2
votes
2answers
704 views

Top padding inside tabular when using parbox

I need to fake a caption under an image, since you can't use figure/caption inside tabular/longtable environments (afaik). The data inside the table are generated dynamically so I don't know the ...
0
votes
1answer
62 views

Short hand for \\[space] [duplicate]

Hi I am following the method here How to specify the row height in LaTeX table? To increase the table row height, I was wondering is there a way to create a new command for \\[space] to ...
1
vote
1answer
69 views

Problem with generating table? [closed]

I am using the array package and have a problem with generating the following table: \begin{table} \renewcommand{\arraystretch}{1.5} \centering \caption{Design values of thermal properties of ...
3
votes
2answers
441 views

Color and rules in tables with multirow

I have a problem with colors and lines in tables. I have this code: \usepackage{multirow} \usepackage{colortbl} \begin{tabular}{ll|c|c|c|c|c|c|} \cline{3-8} \cline{3-8} & & ...
0
votes
1answer
380 views

Excel2LaTeX code not working in LaTeX

% Table generated by Excel2LaTeX from sheet 'Sheet1' \begin{table}[htbp] \centering \caption{Add caption} \begin{tabular}{ccccccc} \toprule \multirow{2}[4]{*}{\textbf{Gauge Number}} ...
3
votes
1answer
77 views

Large empty bordered cells in tabular environment

I am trying to build a worksheet for students and I am having difficulty getting my table to behave the way I want it to. I am trying to build a large empty cell, which I mostly have using ...