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

1
vote
2answers
44 views

aligning text in a cell of a table

How to vertically align short stack in a cell of a table? I am using "\shortstack" and would like it vertically centred in the cell of a table
3
votes
3answers
198 views

Help with “missing $ inserted” in table* environment

I receive 20 error because of missing $ inserted. However. I put $ before and after each symbol. Here is my code: \documentclass[twocolumn]{article} \usepackage{blindtext} \begin{document} ...
1
vote
0answers
50 views

Cell borders in table disappear in different zoom levels [duplicate]

I'm using Miktex 2.9 and TexnicCenter 2.02 and I would like to have a gray column in my table. I found some examples on the internet. They work, but if I use them, some of the cell borders (only in ...
1
vote
1answer
21 views

Table with large math column?

I want do something like: \begin{tabular}{ll} Text explanation in the left column. Math on the right. & $\int_0^1 \sum\limits_z$ \\ \end{tabular} However, in the above, the math renders in ...
35
votes
2answers
65k views

How do I color table columns?

I've found question How do I fill table cells with a background color?, but the link to the documentation isn't helping me at all. I'd like to know how to color a table column given my column code, ...
2
votes
1answer
88 views

How can branch if I'm in a halign or not?

Edit: It seems that I can use \noalign\bgroup before the \halign. That's fine. But how do I test that I'm inside the halign group? I'm able to write an own if, but it would be better to ask tex for ...
2
votes
3answers
48 views

Wrap text in the first column of a table, before a multicolumn environment

I'm using this code snippet to create a table with multicolumn. Since the headers of the columns are long, I've rotated them 90 degrees. \begin{table}[H] \centering \caption{Accuracy of Bayesian ...
3
votes
1answer
68 views

professional cv spacing issues

I've been trying to figure out how to format this section of Professional CV from ShareLaTeX to make the vertical spacing more tight. The vertical bar between columns tends to leave more space than ...
2
votes
3answers
58 views

Really big table and I cant fit it in one page please help!

I have this table, and I cant fit it, Ive tried using adjustbox and resize but it wouldnt fit all of it in a page. please help! \begin{table}[h] \centering \caption{My caption} \label{my-label} ...
12
votes
3answers
2k views

How to use siunitx and tabularx together?

I'm using the tabular features of siunitx (for what it is worth: v1.3 since I'm on TexLive 2009) to align numbers in tables, eg. \begin{tabular}{ p{1.5cm} S S S } bla & 1.23 & 4.5 & 67.89 ...
0
votes
0answers
22 views

How to use tabularx and siunitx together with siunitx 2.6h / texlive 2015

This is a follow up question of this question: How to use siunitx and tabularx together? Updating to texlive 2015 (with siunitx 2.6h) seems to have broken the accepted answer. So the question is How ...
2
votes
2answers
479 views

Converting Word or Excel tables to Latex

Is there a plug in or something that can convert Ms Word or Ms Excel tables exactly as they are (with borders etc) to Latex? I have used http://www.ctan.org/pkg/excel2latex but it removes the lines in ...
1
vote
1answer
49 views

How can i deal with the justification of my text in tabularx?

How can I center the two last columns of my text in the next table? \documentclass[headsepline=true,paper=letter,headings=big,bibliography=totoc,x11names,DIV=10]{scrbook} \usepackage{typearea} ...
3
votes
1answer
36 views

Table title in uppercase ieeetran class

I'm using the \documentclass[journal]{IEEEtran} and the table title appears in lower case letters as: (Table I.) But, it is supossed that whitin this class the table title should go in uppercase, I'm ...
5
votes
2answers
650 views

Alignment of table header in column with decimal numbers using siunitx

I have a table with decimal numbers aligned at decimal point. In the column header, I have a % sign. In the code snippet given below, the percent sign is aligned at the left in the column, but I would ...
1
vote
1answer
61 views

Multirow table with variable number of rows

I'd like to format a table in which first column has a single line of text, centered vertically across a variable number of rows. Currently, I am using a IfEqCase and adding an entry in the first ...
3
votes
1answer
52 views

Alignment issues in a table

Consider the following example: \documentclass[ a4paper, 12pt, landscape, danish ]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{babel} \usepackage[ hmargin = ...
2
votes
1answer
45 views

Including Large Table that has 36 rows in a beamer frame

I have following table which I need to include in a beamer presentation : I have read this post . I think I only need to adjust in this \begin{tabular}{*{27}{l}}. But I don't know how is to do that ...
2
votes
1answer
36 views

Grouping of aligned table columns in combination with multicolumn and a long header

I want to create a table with three pairs of columns. The pairs should be identifiable based on the horizontal distance between the different pairs of columns. Each pair of columns consists of a ...
3
votes
1answer
68 views

siunitx: Bold single numeric cells with turned off alignment

Having a table with numeric values, I want to achieve: Automatically grouping digits into blocks of three Highlight some cells in bold However, no alignment is needed. To achieve the first, I use ...
4
votes
1answer
89 views

Thousand Separator in LaTeX and LyX table

I want to get thousand separator in LyX tables. I had the following LaTeX code. It works fine for the second column but not for the first column and also when I import it into LyX it adds extra ...
-1
votes
0answers
35 views

how i can get circular table? [duplicate]

please help me for how i can draw circular table? i can get table on this program or need to install another program? thank.
25
votes
3answers
2k views

A circular table? (where the rows form concentric circles)

I would need to make a table where the rows consist of concentric circles. That is, row 1 is forms the innermost circle; row 2 the second circle; row 3 the third circle and so on. The columns would ...
2
votes
1answer
57 views

Importing table from csv file

I have the following table in a avg_value.csv file: ,M23,F23_1,M36,F44,F63,M70 M23,1.00,0.81,0.88,0.83,0.41,0.82 F23_1,,1.00,0.52,0.56,0.25,0.94 M36,,,1.00,0.62,0.94,0.96 F44,,,,1.00,0.43,0.23 ...
1
vote
0answers
23 views

Should I turn around header and footer when I use landscape?

I have a general question about layout, thus I don't deliver a MWE yet (if you want one, please tell me). In my appendix, I use a lot of landscaped pages for longtables. The tables are several pages ...
3
votes
2answers
100 views

Adding an extra column to an existing table

I have found very nice ways to change the order of the columns of a table. But is there any simple solution to add new columns to an existing table? I have columns from a table that I want want ...
6
votes
1answer
59 views

disabling def from acting on other parts of documents

I use a simple command to stretch rows of a table in my document. (It is Table 1.2) The command is shown below {\def\arraystretch{1.65}\tabcolsep=8pt But what happen is, this stretches all other ...
1
vote
1answer
15 views

Floating objects: defining in a place, saying where to print later

I'm using a system where I can mix TeX and formal definitions, and it has a procedure that generates latex that combining my TeX and the formal definitions. I discovered that I can wrap the formal ...
1
vote
1answer
22 views

Double hline and no top left corner

I am trying to output a table looking like this: That is, where the first line is separated from the rest with a double hline, and where the top left corner is empty. The image above was obtained ...
1
vote
1answer
77 views

Lyx still inserting blank pages between tables in floats

I have a Lyx document with many tables and figures in floats after the bibliography. Lyx is inserting a full blank page (with a page number) between Table 1 and Table 2. Note these tables are rotated, ...
2
votes
1answer
51 views

Itemize Issues in a Table

Nice people here have been able to help me get through this but am faced with a second issue with itemize in another column and it is being a challenge. Any help is very welcome. Thanks. ...
1
vote
1answer
31 views

rowcolors when space is removed with @{}

When space on either side of a table is removed with @{}, then the color added with \rowcolors will expand beyond the width of the table. In the answer provided to a similar question, this is fixed by ...
2
votes
1answer
40 views

Using a macro for table alignment

I am trying to use a macro to define the alignment of a table as shown below: \documentclass{article} \begin{document} \def\align{|l|c|} \begin{tabular}{\align} 1 & 2 \\ \end{tabular} ...
3
votes
1answer
56 views

Generate a sparse table

I need to generate a table of large size (25x10) where only some particular cells are nonempty (and colored). Creating it by hands is rather difficult. Of course I can use some latex table generators ...
1
vote
3answers
21 views

Vertically align checkmark in table column

I have the following table: \begin{table} \begin{tabular}{ | p{2cm} | p{9cm} |} \hline \textbf{Heading 1} & \textbf{Heading 2} \\ \hline Foo & Lorem ipsum dolor sit amet, ...
2
votes
2answers
3k views

Vertical alignment of text and figures in a table

I am trying to put together a table with both images and text, but I keep having problems to get the vertical alignment right. Ideally I would like to have both the text and images in the centre of ...
10
votes
2answers
5k views

\midrule dashed and colored in booktabs — two kinds of midrules in one booktab

Is it possible to make two \midrules in one booktab? The first one should be colored, the second one colored and dashed, as it is shown in the picture. Before each entry is a horizontal space - how to ...
2
votes
1answer
40 views

Table Formatting with and without threeparttable

I have been trying to generate the attached table in LaTeX. I have done it in two ways and I have query for both. The first way I have not used the threeparttable package and in the second way I have ...
2
votes
0answers
33 views

import a long tab delimited data file with first row as the header

Here's a very simple task that I don't seem to be able to get the format right. In short, I am trying to import and format a long tab-delimited txt file, with the first row as the header. I tried the ...
2
votes
2answers
124 views

Would like to have more presentable table

Want to have my table enough spaces between them and words that spill over are handled. Thanks \documentclass{article} \usepackage{rotating} \usepackage{booktabs,tabularx,caption} ...
3
votes
1answer
50 views

How to have ceil function in Table?

Code which works in \begin{equation}...\end{equation} within the normal text but not in the table; extended from this thread. \documentclass{article} \usepackage{mathtools} ...
2
votes
2answers
46 views

Fit table to page

I am new to latex and struggling a bit to fit a regression table onto one page (portrait). At the moment I am using \resizebox but cannot quite get it work. I found a similar thread which relies on ...
1
vote
2answers
23 views

Increasing the space between tables columns [duplicate]

First of all, apologises for the noob question. Second, I am aware similar questions have been asked but their solutions don't work for me unfortunately. Hopefully someone here can point me in the ...
1
vote
2answers
50 views

Tables overlapping to next page

I am constructing a report with multiple tables, but these tables keeps floating to the next page even when is small enough to fit under a text on one page. What can i do? Below is the code i am ...
1
vote
1answer
66 views

How do I fix vertical spacing between tables?

I have a document with about 50 tables in it. If one of the tables goes over the page, LaTeX automatically sends that table to the next page. The issue is that LaTeX increases the spacing between ...
0
votes
0answers
23 views

How to replace a string in a table that is imported

I'm using Stata to generate tables in Latex, which I then import by using import: \import{/Users/me/path/to/}{table1} \import{/Users/me/path/to/}{table2} However, when I do this, I end up with some ...
2
votes
1answer
55 views

2nd Column EnvironmentTable and figure 2x2 on the top of 1st and 2nd page

Can anyone help me revise my code so that I can achieve the following goals. 1.How to make the table to be on the top of the first page? Now it skips the first page and jumps to the middle of the 2nd ...
0
votes
0answers
12 views

How to get Subcaption outside float working for landscape tables?

I use the nice MWE displayed below to display a landscape table (found here: Tex: How to place table on new page.) I have one big table (that's why landscape) which I want to split across multiple ...
-1
votes
1answer
54 views

Would like to have a table like this: Any help please

Have been able to do this using table environment (tabularx) but without success. Need this for my dissertation. Thanks
2
votes
1answer
28 views

I am trying to number the table properly but latex doesn't seem to recognize the label

I have the following longtable: \documentclass[12pt, oneside]{book} \usepackage{graphicx} \usepackage[a4paper,margin=1in]{geometry} \usepackage{pdflscape} \usepackage{caption} \usepackage{csquotes} ...