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

0
votes
0answers
25 views

Specifying columns using cellspace

I'm using cellspace to try get some more padding around fractions in tables and I'm stuck on this gibberish: \begin{tabular}[b]{ >{}l*{2}{| >{$}Sc <{$}}} What does it all mean? For ...
0
votes
1answer
83 views

one problem of creating table in latex

I want to create a table in LaTeX by this \begin{table} \begin{center}‎‎‎‎ \begin{tabular}{‎c‎ | c | c | c | c ‎|c ‎‎‎‎‎‎‎‎{c}‎r}‎ ‎j/i‎ & 1:Tumor & 2:Envir & 3:Leuk & ...
0
votes
2answers
512 views

Fit to landscape longtable generated with xtable and sweave

I read many TEX questions/answers on fitting a table to your page width, but cannot figure out how to do apply it in my context (using xtable/sweave). Everything that I tried (using adjustbox, tabu) ...
0
votes
2answers
54 views

Ignore particular tabular cell height and simple overflow its content (like \multirow)

I want latex to ignore the height of a tabular cell and to overflow its content to the above and below tabular cell (see image - red arrows). First I tried \multirow but this doesn't align the text on ...
7
votes
2answers
705 views

Prevent xtab breaking table too soon

Xtab breaks a long table spanning multiple pages too soon -- see my screenshot: The output seems rather unsightly to me. Can I make it take more of the available space? Alternatively, is there a ...
0
votes
1answer
75 views

Tabular - Problem in aligning text

I've created a table and I want the text to be centered and aligned vertically in the middle so I used this code \documentclass[a4paper]{article} \usepackage[french]{babel} ...
4
votes
2answers
80 views

Error when specifying width of column in table

\documentclass{beamer} \begin{document} \begin{frame} \begin{table} \begin{tabular}{c{15mm} | c | c | c | c} Television & Radio & Washer & Dryer & Computer \\ \end{tabular} ...
2
votes
2answers
108 views

Something is wrong with my multirow

\begin{tabular}{p{2cm} p{2cm} p{2cm} p{2cm} p{2cm}} \hline & \multicolumn{2}{c}{Latin America}& \multicolumn{2}{c}{ Africa}\\ \hline & {\large $\Delta p_c$} & {\large $\Delta ...
3
votes
1answer
58 views

Table header appears twice at top of page

The following minimal code demonstrates my problem. (For me) the header appears twice on the table which is placed at the top of page #2. Any help would be appreciated. \documentclass{article} ...
8
votes
2answers
175 views

Importing CSV file as a table in Latex but file too long

I am trying to import a CSV file but the data in the table is too long it goes down till the end of the page and disappears without continuing on the next page. Here's the file: ...
4
votes
1answer
63 views

How to set a picture with caption in table?

How to set caption for images in table? like this image.
0
votes
1answer
42 views

If can set caption for images in this table?

If can set caption for 3 image in cells of table in this command? What abut For one image? ‎\documentclass[11pt,fleqn]{book}‎ ‎%\usepackage{amsmath,amsfonts,amssymb,amsthm}‎ ‎\usepackage{graphicx}‎ ...
1
vote
1answer
63 views

tabularx “Missing number, treated as zero” error

error: ! Missing number, treated as zero. } l.16 \begin{tabularx}{\textwidth} {x x x x} MWE: \documentclass[12pt,a4paper,fleqn]{book} % ...
2
votes
1answer
182 views

Vertical alignment text first column with merged cells and last column

I'm relatively new to Latex and I really appreciate this community, it has already helped me a lot. However, I've been unable to find the answer for the following problem: I want to create a 3 ...
7
votes
3answers
189 views

Adding a note in tables

How do you put the "Note: preferred model for each metric bold."? This is my work: \begin{table} \caption{Model selection metrics} \begin{center} \begin{tabular}{l c c c c c} \hline {} & ...
3
votes
4answers
131 views

Chemical structures drawing: {table} vs \chemfig

I write a chemical structure as a table. Please help me understand, How can I reduce the distances between the rows and columns in a table? This is the structure of the zeolite and would like to make ...
2
votes
1answer
39 views

deluxetable* caption not displaying

I am trying to create a page-wide deluxetable using the two-column formatted ApJ article style. The caption displays when creating a single column deluxetable, but will not display when I use ...
4
votes
1answer
67 views

CSV Table Overflow with CSV Simple?

I have a large CSV data set (240 rows - 4 columns ). When I try to embed the data using csvsimple the table overflows instead of flowing to the next page. How can I get the table to flow onto the next ...
3
votes
3answers
62 views

How to adjust multi-lined cell entry with multirow

When I try this code: \documentclass{article} \usepackage{multirow, } \begin{document} \begin{table}[htb] \centering \begin{tabular}{|c|c|c|c|c|c|} \hline & \multirow{2}{*} ...
1
vote
1answer
63 views

Table position at Top Problem

I am trying to place my table at the top of page but it seems there is something I am missing. First of all here is what my document structure \documentclass{article} \begin{document} ...
6
votes
2answers
93 views

Problem with vertical alignment in tabular environment

I'm having a few issues with vertically aligning table elements. There seems to be too much space either above or below the text or image. Is this to do with the fbox environment? I want both the ...
3
votes
1answer
84 views

how to ensure items in two minipages are in same line

By including a tikz-picture in my two (tabular) minipages my items are messed up. Ideally there is a corresponding item for each (except there's an empty entry for the last item in the left table). ...
1
vote
2answers
44 views

Vertical centering in several columns in longtable

I would like to change the vertical alignment of the second column in this table (the names of the hypotheses) to be centered, just as in the 1st column. My mininal example: ...
2
votes
0answers
29 views

Vertical space around table

I'm using tabu to create a table. I wish this to be center-displayed, so I am using it as follows: Body of text preceding table. \begin{center} \begin{tabu}{llX} text & text & text ...
5
votes
2answers
76 views

Table alignment problem

So I wasn't happy with how esttab was formatting my regression tables from the statistical program Stata. So I instead I decided to attempt to build my own skeleton table, which had better formatting, ...
3
votes
2answers
95 views

create a table with multicolumns for comparison between 2 sources of data

I wanted to create a table of three columns . the first has several rows and each of the second and third is divided into two columns. I do not know what could be wrong. \document class{article} ...
46
votes
2answers
6k views

Org-mode export to LaTeX: temptation or nuisance?

We are talking about Emacs and Org-mode: There are several advantages of drafting papers with Org-mode and to have them transferred later to LaTeX, e.g.: I'd like to avoid »programming while ...
0
votes
0answers
62 views

Advantages of longtabu? compared with longtable

I know to use longtabu, we need to have the packages tabu and longtable. What are the advantages of longtabu? By now, i just found longtabu can break lines automatically in a table cell, but seems ...
6
votes
3answers
269 views

Fancy Labels for Tables

I am trying to draw relational database tables with tabular. I would like to label each table with a label at the top left of the table. Neither solution that comes to my mind is exactly what I want. ...
3
votes
1answer
48 views

Add vertical space between lines without breaking a vertical line

I am writing a resume in TeX. I'm formatting my technical skills in a tabular environment. Currently it looks like: \begin{tabular}{ l | c c c } \textbf{Programming Languages} & Java & C ...
0
votes
0answers
38 views

Subtable as sidewaystable over three pages

I am trying to create a sideways table over three pages. So my question is first: Is it better to use "one" sidewaystable that "continues" over several pages or to split them each up into subtables ...
3
votes
2answers
85 views

table with two multicolumns

can someone help me fix this table?: \documentclass{article} \usepackage{siunitx,booktabs,caption} \newcommand{\splitcell}[1]{% \begin{tabular}{@{}c@{}}\strut#1\strut\end{tabular}% } ...
-1
votes
1answer
59 views

organizing a table [duplicate]

Hi: I wanted to pull the column (her results) up to be next to the column (my results). can someone help me please?. the MWE is: \documentclass{article} \usepackage{siunitx,booktabs,caption} ...
1
vote
2answers
85 views

How to automatically break “a long word with underscore” in a cell of table, using longtabu package?

I use longtabu package for creating tables, because the table can be very long (several pages) and i need automatic linebreak(or wordbreak) if the sentence(or a single word) in certain cell is too ...
4
votes
1answer
92 views

a column is composed of three parts

I needed to do a table with 4 columns.The first has 2 cells. the second has 4 cells. The third is split into three different things. And, the fourth is split into 3 different things. I know how to do ...
3
votes
1answer
62 views

Auto generate list-items within table from string with delimiter

This is a follow-up on this question: Creating bullet-list from string with delimiters I have a CSV file where I genereate some tables from. Some of those table cells will have items that should be ...
4
votes
1answer
37 views

\setlength not working

I am having trouble with setting space before and after a table. Here is my code for a ten-column table: \begin{tabular}{cccccccccc} \toprule .. .. \bottomrule \end{tabular} As you can see, it ...
0
votes
1answer
51 views

Landscape and header formatting [duplicate]

Hello I am really new at this. I am trying to represent a .pdf with the following specifications: -a4 papper -orientation: landscape -Special header with three divisions -after header divide in 4 ...
19
votes
3answers
2k views

tabular input by columns (i.e. transpose a table)

I would like to be able to transpose a tabular(x) table like in the following example. It is not necessary to be completely automated, but I don't want to change the data order, which is a painful and ...
6
votes
2answers
150 views

Basic S Column Alignment with siunitx package

OK, what am I missing here? Why is the S column not aligning on the decimal: The desired result is the data aligned on the decimal and centered within the column: Code: \documentclass{article} ...
1
vote
0answers
47 views

long table working in TexNiccenter but not in R Studio GUI

I'm having a weird error where my code is working just fine in TexNiccenter but unable to compile within the R studio GUI (probably not an R studio problem just R problem). Here's some background: my ...
4
votes
1answer
33 views

threeparttables in single table environment

I have two threeparttable that I would like side by side in a single table environment. Previously I had a single threeparttable with a center column (of 5 columns) that had no borders, making it look ...
18
votes
2answers
343 views

Techniques to make tabular contents copyable

Take the following table: \documentclass{article} \begin{document} \begin{tabular}{|c|c|} 11 & 21 \\ 12 & 22 \\ \end{tabular} \end{document} What are the techniques to make this table ...
5
votes
0answers
45 views

alignment problem with bold (negative) numbers

I am trying to create a table containing a correlation matrix. I marked the significant numbers bold and insignificant are just normal. Anyhow, all boldifyed numbers are aligned differently than the ...
0
votes
1answer
37 views

Tables grid lines are not equal with columncolor

I am trying to color the background headline of my tables. I am using columncolor, which works very well, but sadly, the grid lines does not look correct. Without columncolor the grid line looks fine. ...
1
vote
1answer
100 views

Table heading formatting

I have had this problem before (sort of) - it's related to this question I asked previously. Basically, I am having trouble with my table headings. I want the headings to be bold and centered ...
6
votes
1answer
46 views

Unwanted padding in tabular columns when cells contain multiple rows

Whenever I need to create a cell with multiple rows in a tabular environment, I usually create enclose the contents of the cell within a tabular environment within the cell. This has been a great fix ...
1
vote
1answer
57 views

How to do Three column Addition?

I want to write a primary school sheet of exercices (additions in columns) with big digits in LaTeX. When i want to do two columns, it is easy with xlop, but i can't to do three columns! How to do ...
2
votes
2answers
98 views

Adjust column width of a table

I am working on it: \documentclass{article} \newcommand\htext[1]{\texttt{0x\MakeLowercase{#1}}} \begin{document} \begin{table}[h] \centering \begin{tabular}{|l|l|l|l|l|l|l|} \hline ...
7
votes
3answers
104 views

Using & in macro abstracting a tabular's row

I am attempting to create a marco for table rows. This will allow me to change the order of the columns in the future, without having to change the order of the columns in every single row. I have ...