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

1
vote
0answers
38 views

longtable next to longtable [no multicolumn]

I'd like to place multiple tables (two or three) next to each other, with the following requirements: They need to be able to span accross pages They need to be aligned next to each other I need to ...
4
votes
2answers
40 views

Line breaks in custom command that uses tabular environment

I am using a resume template I found here - http://www.davidgrant.ca/latex_resume_template There is a custom command, based around the tabular environment, which is in the MWE below. I would like to ...
0
votes
1answer
25 views

Strange extra line after forloop in a tabular table

I'm trying to generate table lines (tabular environment) with forloop macro. I've got strange extra line after forloop. \documentclass {article} \usepackage [utf8] {inputenc} \usepackage [english] ...
2
votes
1answer
32 views

How to keep a nice table, it won't line up properly

Basically i'm trying to make a 2x8 table with a variable in the first column with horizontal lines but it won't line up and keeps adding the word "height" into the table when viewed as a pdf. I can't ...
3
votes
3answers
46 views

Columns are not the same width in a table

I have the following code for a table, but I can't figure out why 2 columns are wider: \newcolumntype{C}{>{\centering\arraybackslash}p{2em}} \begin{table}[h] \centering ...
2
votes
2answers
82 views

Lots of text in one table cell

I need to place lots of text in one table cell. I tried to use longtable, but it seems to work, say, only on a row basis and gives terrible result in case when one row isn't fit in a page. Something ...
0
votes
1answer
54 views

Creating special table [duplicate]

How can I create a table such as following: I do not know how can I have A and B in the middle of four rows ?
1
vote
2answers
63 views

Scan a cell of a table with lines

Is there any way in latex to scan a cell of a table with horizontal, vertical, diogonal with lines? I want similar thing as in below figure. Thanks.
10
votes
3answers
6k 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
0answers
43 views

Problem with framelines in tables

I am having a problem with LaTeX at the moment, which I seem completely incapable of solving. I am trying to create a simple table which has 4 columns and (should have in the end) 36 rows, including a ...
5
votes
1answer
54 views

How to obtain a fixed gap between columns in a table?

How can I center a column of a table which is raggedleft/raggedright at a specified position? Basically the length between W and X, X and Y and Y and Z should be the same, W should be raggedright, Z ...
2
votes
1answer
20 views

missing value in multirow envoirnment of a table in beamer slide

i want to add this table in beamer, but when i use multirow envoirnment , values aginst multirows is not showing in the table. my MWE is as \documentclass[xcolor=table]{beamer} ...
2
votes
2answers
35 views

Multiple columns in table, problem with alignment

The following code generates a table: \begin{table}[!t] % increase table row spacing, adjust to taste \renewcommand{\arraystretch}{1.3} \caption{An Example of a Table} \label{table_example} ...
0
votes
1answer
26 views

Footnotes next to each other in a sideways table?

How can I put footnotes next to each other in a sideways table? The para option for footmisc does not work here. Minimum working example: \documentclass[11pt]{article} \usepackage{rotating} % to ...
1
vote
1answer
23 views

hyperlink in table of beamer

I am preparing a slide in beamer. One page of my slides is a table. I would like to use other pages to explain the table, I am thinking of adding sth like hyperlinks, if I click a cell of a table, ...
2
votes
1answer
71 views

Wrapping text around a table in enumeration environment with cutout and parshape

I borrowed the code for my MWE from here. I want to put the table to right side and have difficulty in understanding parshape command. What is the purpose of 15 26pt\linewidth 26pt\linewidth ...
0
votes
0answers
23 views

Customizing Multiline captions

I would like to have a caption which is centered and has multiple lines. For example, \documentclass{article} \begin{document} \begin{figure} \centering \begin{tabular}{cc} \rule{5cm}{3cm} & ...
2
votes
1answer
42 views

How to combine ‘float’ and ‘longtable’ packages functionality

I want to use exact placement for my table. As I read on SO it can be done with [H] option for table environment provided by ‘float’ package. But this doesn't seem to work with longtable which I have ...
1
vote
2answers
66 views

File ended while scanning use of \Gscale@box@dd

I am getting this error for a while now, and I can't seem to fix it?! Here is my code - my table won't even load because of this error. \documentclass{article} \usepackage{hyperref} ...
0
votes
1answer
61 views

How to use \multirowcell?

This question is connected to another one I asked some days ago: How to do a table with multiple multirows_. The problem I have is that my text does not fit nicely in the \multirowcell and I haven't ...
3
votes
2answers
57 views

Including a subfigure and table inside a figure environment

I want to include a table and an image as two subfigures in a macro figure environment. Apparently the code compiles but it isn't placing the elements how I want: The table and the image side by side ...
1
vote
1answer
45 views

Inserting single character in only one column

I just want to know how to insert a single character like $ in only one column of a table. To be precise I don't want that character in my heading, but in all other data rows of the corresponding ...
2
votes
1answer
29 views

Shortcut to declare alignment of many columns in a table

Suppose I have a table with 20 columns that should all be centered. Is there a way to declare the alignment without literally counting out 20 c's? Something like c{20} might be the syntax. I feel like ...
2
votes
1answer
99 views

TikZ tree beside table

I would like to place a TikZ tree beside a table. The document type is apa. So the tree has four branches and therefore I want to place a 4 x 6 table to the left of the tree. The height of the ...
4
votes
2answers
131 views

(How) can CSV data be transposed for display in tabular

I can use the csvsimple package to automatically display data from a CSV file in a tabular environment. Can the same be achieved in transposed (rows to columns and vice versa) form , as shown by the ...
3
votes
2answers
52 views

Unexpected behavior of arraystretch and figures in table cell

Using the graphicx and the includegraphics command, I want to place a figure in a table cell. In addition, I use the arraystretch command the increase the padding of cells. Unfortunately, I get a ...
12
votes
3answers
3k views

Centering in tabularx and X columns

How can I center the column when using X in tabularx environment like in this example? \begin{tabularx}{\textwidth}{@{}lXXXXX@{}} 1 & 2 & 3 & 4 & 5 \\ \end{tabularx}
3
votes
2answers
264 views

Fixing itemization alignment and line wrap inside tabular

I'm trying to construct a table using the following code: \documentclass{article} \usepackage[inline]{enumitem} \begin{document} \begin{table}[h] \begin{tabular}{p{.3\linewidth}p{.7\linewidth}} ...
4
votes
3answers
91 views

How do I fix this table?

The table is big in length and width, hence top and bottom of the table are chopped off from the table generated in a pdf file. Here goes the latex code. \documentclass{article} ...
5
votes
2answers
68 views

Table with multiple rows and columns

I just want to create a table with multiple rows and columns, here is a very suitable solution:Table rowspan and colspan, but can anyone help me to get a variable column width rather than the equal ...
4
votes
1answer
56 views

Making hhline work together with arydshln

I am trying to create Optimality Theory tableaux (a specific type of tables used in linguistics). These tableaux generally look like the following - the important thing is that both the first column ...
12
votes
4answers
450 views

How to make this table fit on a portrait A4 page?

\begin{table}[htbp] \centering \footnotesize \caption{Add caption} \begin{tabular}{ccccccccc} \toprule Bank & Country & & & Conditional joint ...
0
votes
0answers
35 views

Filling a cell of the table with color and preserving the border

I used \cellcolor{} to fill the cell of my table. However, the black borders of the cell disappears. The tex viewer shows borders, but I don't see the borders when I open as a pdf. Can you help me ...
1
vote
1answer
52 views

Loop through table for boxplot prepared

I am trying to produce figure with 2 boxplot prepared plots from an inline data file. I grabbed this code from here to use as a starting point. Given that the wrapper code allows the boxplot data to ...
2
votes
2answers
49 views

Kerning the table contents

I have the MWE as follows: \documentclass[12pt]{article} \usepackage{caption} \captionsetup[table]{position=bottom} \begin{document} \begin{table} \centering \begin{tabular}{|r|l|} \hline ...
3
votes
0answers
109 views

Hopeless table formatting [closed]

I have a document where I enter a command \tab and that creates a table for me. The right part of the table always stays the same and the left part of the table is entered with arguments of the \tab ...
0
votes
0answers
27 views

Control stargazer table output in combination with mathpazo and siunitx

I like the idea to control all my numeric outputs with the smallest number possible of packages. I use mathpazo to control my fonts and siunitx to control formatting. Yet when I knit a LaTeX table ...
1
vote
0answers
50 views

Using Gnumeric tables with classicthesis

Just a quick question. I am finishing my PhD using Latex of course and I have been writing the chapters separately. In each of the chapters tex files I use tables that I exported from Gnumeric ...
4
votes
1answer
35 views

eqparbox causes error for \hline and \hdashline

When compiling the MWE below, I get presented with the errors "Undefined control sequence \hline" and "Undefined control sequence \hdashline". The problem is caused by the eqparbox package, as code ...
1
vote
1answer
54 views

Format tables with points under each other

so I have this rather complicated table and I am trying to format the cells so that all points in one row are under each other. What I tried so far was to edit the "\multicolumn{1}{l}" to include ...
4
votes
3answers
167 views

Table environment that can break inside a cell

I am wondering if there is an environment for creating a table in LaTeX that will not only break at \hline, but instead can break in the middle of a cell. I have to write very long reports in one ...
2
votes
0answers
20 views

Custom table with mdframed and parcolumns: LaTeX Error: Something's wrong--perhaps a missing \item

I am building my own table environment using parcolumns and mdframed. \documentclass{report} \usepackage{parcolumns} \usepackage{mdframed} \newenvironment{mytable}[1] ...
3
votes
2answers
93 views

Latex Table write Text beside \hline

I want to add text beside the \hline line in order to structure my table more accurately. The following picture illustrates what I want, the code represents the table. Anyone has some ideas? I'd ...
2
votes
1answer
59 views

\cmidrule one column wide

What's the problem with a \cmidrule(lr){1}? Please consider the following MWE \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table} \centering \footnotesize ...
2
votes
1answer
1k views

Vertical centering of text spanning multiple rows [duplicate]

Possible Duplicate: How to vertically-center the text of the cells? I am using multicolumn to create a table. The code that I have is here: \documentclass[10pt]{article} ...
2
votes
1answer
68 views

How to line up a tikz image with the bottom of a cell in a tabular

The code for the two images below is identical except for the colors and the 4pt in the bounding box in the bottom image. In the bottom image the diagonal line touches the corner of the blue area; in ...
2
votes
2answers
103 views

ConTeXt: Height fitting with row spanning in a table

How can I shrink the height of the foo cell to fit its content? \starttext \startTABLE \NC foo \NC[nr=2]\input knuth \NC \NR \NC bar \NC \NR \stopTABLE \stoptext ...
2
votes
1answer
106 views

Creating a table in a narrow space

I'm working with moderncv and having difficulties when creating a table in a narrow space. How to make the table properly? Edited: \documentclass[10pt,a4paper,sans]{moderncv} ...
2
votes
1answer
105 views

How to do a table with multiple multirows_

I've just started to work with latex. I'm aware of the post How to get multiple multirows in a table? but still with it I don't manage to do with my table what I'd like. Basically I'd like to get two ...
1
vote
1answer
59 views

Is it better to let tables to be on top with tpb, or use “H”/“h”?

I am writing a thesis that has some occasional tables. I cannot decide if it's "better" (both aesthetically and maybe in other regards) to just use the default "tpb" floating placement, which makes ...