{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
1answer
13 views

vertically and horizontally center content of complex tabu table

I'm having this MWE and want to horizontally and vertically center the x's in the last row (the numbers are for debugging purpose only). I've tried an appraoch with \newlength{\xlength} ...
2
votes
1answer
36 views

Alignment inside the table in tabular

I created a table, but the last column is moved to the left, although I set it as central. I cannot find what I am doing wrong, so if someone can suggest me how I can solve my problem I would be very ...
1
vote
1answer
14 views

Tabu table is too wide though there is enough space to shrink

I'm trying to make this table to fit to \textwidth. The first column has column type X from tabu package which should make it work. But it does not. Adding the "to \textwidth" option dosen't have any ...
5
votes
2answers
96 views

How can you put multicolor backgrounds in a table entry?

I'm wondering if these is a simple way shade an entry in a table with multiple background colors. Image attached shows between 0-3 colors per table item entry.
2
votes
3answers
37 views

Help with table multicolumn

I'm going crazy in trying to draw the following table in LaTeX: Can you help me please? Thank you in advance Here's what I've done: \begin{tabular}{c c c} A & \multicolumn{2}{c}{B}\\ E ...
4
votes
4answers
184 views
+50

siunitx error: “invalid-number” Invalid numerical input 'e'

Well I've been working in some tables and for the number alignment I normally use the siunitxpackage since Mico helped me with this question. But I've had in these new tables an error I don't ...
0
votes
0answers
41 views

Problem with duplicate copies of material in a table

I'm writing my PhD thesis and I have a problem with duplicate occurrences of material in tables. I'm doing a simple table for example: \begin{table}[h!] \centering \begin{tabular}{|l|c|c|c|c|c|c|} ...
1
vote
1answer
17 views

Missing padding for S column in tabularx

I am trying to create a table that has a filling column in between. However, my last column (an S type) has not padding on the right side for reasons I do not understand. Here a MWE ...
1
vote
2answers
43 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
190 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
39 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
19 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
87 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
46 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
64 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
55 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
19 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
461 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
0answers
32 views

Get element from a table

I have the following table: \begin{filecontents}{table.dat} a 0.70 b 0.58 \end{filecontents} and I am trying to access at the elements with the command \pgfplotstablegetelem{0}{0}\of\table but ...
1
vote
1answer
44 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
34 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
642 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
57 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
44 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
66 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
83 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
32 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
54 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
22 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
98 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
56 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
20 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
75 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
45 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
29 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
39 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
51 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
39 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
28 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
123 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} ...