Tagged Questions

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

2
votes
2answers
30 views

Automatic linebreak in table cell with p doesn't work

I am using the following code. In the p{6cm} column there comes no automatic line break in the text of the cell. Instead of this, the too long text overwrites the right cell. What do i wrong? ...
3
votes
1answer
65 views

Flexible table with calculating column width fails starting from division by 10

I received a table template, which I'm intended to generate dynamically with data using Java. But when the table becomes to large, the compilation with LaTeX fails. The specific about this template ...
0
votes
0answers
55 views

Table and longtable centering and caption alignment

I want to format table and longtable in a special way: 1) table/longtable should be positioned to the center of the page 2) table/longtable caption should be positioned between left and right ...
1
vote
2answers
48 views

\cellcolor removes \hline

I have a table where I am filling some of the cells with a gray color. It works fine. The problems is however, that the horizontal lines of the table becomes gray too. How can I solve this so that the ...
1
vote
1answer
49 views

How to center align a table with lots of columns in LaTeX?

So I have a table with lots of columns. Because of this there's a lot of space on the left (i.e. \parindent) and very little space on the right of the table: Here's the relevant code: ...
5
votes
2answers
89 views

Extra space on right hand side of table

I have a table in landscape mode, and there is extra space on the right-hand side of my table (see yellow circle). What changes need to be made so that the text is spread evenly across the table? ...
2
votes
0answers
27 views

LyX: put space between first and second columns of table

When inserting a table in LyX, there's a space between the first and second rows, which I can get rid of by selecting the first row and turning off "bottom line", or selecting the second row and ...
0
votes
1answer
52 views

Vertical alignment of table text

I'm trying to align my table text vertically: MWE: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{array,pifont,xcolor} ...
0
votes
0answers
62 views

How to draw flow lines on tabular?

I have created a tabular in latex and I would like to have flow lines on it, pointing from one element to an other. I do not care how it looks like, I just want to show there is a flow from one ...
2
votes
1answer
40 views

\vfill to make even space in double column tabular

I have a long, thin table with titled sections. It didn't fit on one page so I split it in two parts of roughly equal length and but these in a another tabular environment. I am happy with the design ...
3
votes
4answers
124 views
+50

How to extract each pair of two adjacent cells of a table into a separate tight page?

For the sake of simplicity, I provide a table as follows. I cannot make it simpler because simplification probably no longer match my real scenario. The code below was written by me and modified ...
1
vote
1answer
40 views

Column size personnalization and \diaghead

my aim to break table cell content lines automatically, and to reduce certain column size. The first column size cannot be reduce; I guess in cause is the \diaghead command. Also,how can I get a ...
2
votes
1answer
31 views

Automatically bold first sentence of a caption in longtable

This question is a follow-on from Automatically bold first sentence of a floats caption. I can automatically bold the first sentence of the caption in my normal tabulars, but the code doesn't seem to ...
2
votes
2answers
78 views

Table Management for Dummies

The short question: Is there a way for someone with extremely limited TeX knowledge to build and edit a table with some formatting (certain cells colored, double line borders, standard column/table ...
0
votes
0answers
36 views

break lines automatically [duplicate]

how to break automatically the lines in the following table? Thanks. \documentclass[a4paper, 12pt]{report} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage{subcaption} ...
5
votes
2answers
99 views

\midrule splits vertical lines in table

I realise that the booktabs package does not want me to use vertical lines in my tables. However, I like vertical lines in my tables. Therefore, I am hoping there is a workaround to a problem that ...
5
votes
1answer
69 views

Valid names for new column type

Is it possible to have a column type name like AP or P1 or anything that is not a single letter? \documentclass{article} \usepackage{array} \newcolumntype{P1}{p{5in}} \begin{document} ...
10
votes
4answers
145 views

# in conditionals in alignment tabs?

I am looking for ideas how to make TeX understand that when # appears both in the if-else and in the else-fi part of a conditional in an alignment tab, in the end there will never be more than one # ...
0
votes
0answers
33 views

Table does not display in List of Tables

I'm including a table: \begin{table}[htb!] \centering \csvautotabular{results.csv} \caption{Results} \end{table} And in the top of my document, I have: \listoffigures \listoftables However, all ...
0
votes
0answers
24 views

siunitx and summary statistics below table - separate alignment block possible?

I am using siunitx to format tables as it is very handy with aligning, rounding etc. However, I typically have summary statistics in a separate part below the table. Since these often only contain ...
1
vote
1answer
80 views

Table with a different fonts for different columns

I'm using XelaTeX to typeset a table with a vocabulary list in a foreign language, with a structure similar to this one: different columns are typeset in different fonts (and scripts). It seems that ...
2
votes
2answers
65 views

Generic table definitions

According to the topic How to use commands in table specs, and still support array package? I have tried to intense the way of creating tables, definitions. \documentclass[fontsize=11pt, % Document ...
3
votes
1answer
98 views

Complex tabular layout

I am trying to understand what the following line implies for a tabular and did not find anything matching it: \begin{tabular}{|*{2}{@{}p{184pt}@{}|}} What is the *{2} for? What is the @{} for?
7
votes
2answers
129 views

How to align the last column to the right in tabular?

This is my code: \documentclass{article} \usepackage{array} \begin{document} \begin{tabular}{p{10em}>{\raggedleft\arraybackslash}p{10em}} First\newline Second & Alpha\newline Beta ...
3
votes
1answer
110 views

How to draw some lines between figures in LaTex

I want to draw the following figure. How do I do this? Some lines between figures, and Can you give me this lines some color? Some color lines in figure, as following:
4
votes
1answer
59 views

Enumerating tabular data

How do you enumerate tabular data like this? a) stuff stuff stuff b) stuff stuff stuff c) stuff stuff stuff I considered making a table then using a counter: ...
2
votes
1answer
43 views

Move Text Down in Table to Avoid Overlap with Line

I'd like to move the text "District Profile Report: English Language Learners" down so that it doesn't touch the upper horizontal line while keeping the logo aligned between the two lines (the logo ...
1
vote
3answers
41 views

Tables and figures slightly wider than text in article class

I have some tables and figures which are (slightly) wider than the text width. This results in them aligning with the left side of my text and going far out in the right side instead of actually being ...
2
votes
3answers
47 views

Add vertical space between \hline and the row consisting of only \multicolumn (without using \midrule)

I want to add vertical space between \hline's and the rows consisting of only \multicolumn. I do not want to use \midrule. The answers in this question do not work in case of \multicolumn. Here is ...
2
votes
1answer
55 views

Page Breaks in Two-Column, Multi-Page Table

I'm currently using xtab to create long tables that span two columns, and multiple pages. What I'd like to do is have a finer degree of control over when the table is broken on a page / column ...
2
votes
1answer
50 views

Problem with vertical alignment of cells in tabular environment

I'm having a problem with vertical alignment of cells in a somewhat complicated case. Does anyone know how to have a different vertical alignment for two cells in the same column? And also if you use ...
3
votes
2answers
136 views

How to center a big table in LaTeX?

I have a relatively large table composed the following way \begin{table}[ht] \caption{Backtesting - CFM $\alpha=5\%$, $confidence \ interval = 95\%$ } \centering \begin{tabular}{rrrrrrr} \hline ...
2
votes
1answer
35 views

\arraystretch in conjunction with booktabs

I'm trying to enlarge the row-height of my booktabs-table but \arraystretch does this asymmetrically. I am slightly confused because this is an obvious problem to me and I couldn't find any solutions ...
5
votes
2answers
223 views

Weird Error from \midrule

I am getting a weird error code: \expandafter \let \cmrsideswitch \@tempa \fi \fi? Strange error in my table The question above had the same code and it was liked to his use of \cmidrule. I am ...
4
votes
1answer
45 views

Braces for cases in tabular environment

I would like to create an aesthetic table with some cases within the table. I would like to denote the cases with braces from the left, as usual, like in the picture below (taken from ...
3
votes
2answers
81 views

multicolumn table

I want to make a latex multicolumn table, i wrote the code below, however, the result is not what I want. Is there anything wrong? Anyone can help? Thanks in advance. The code: \usepackage{booktabs} ...
4
votes
4answers
452 views

centering tables

I am trying to create my CV, using tables. I want them in the center of the page, but they continue to position a little bit to the left. I am using the command \centering before the environment ...
1
vote
1answer
32 views

Asking spreadtab to add all rows above?

I love the idea behind spreadtab. The author should be congratulated. However, it seems to require that I specify specific numbers for the rows that I want to add. What if I have a document, where I ...
3
votes
1answer
51 views

Resizing table when using package {threeparttable}

I'm using the {threeparttable} package because I want to use table notes, but I'm having a problem resizing my tables. If I use {adjustbox} to enclose {tabular} (or {tabularx}), I get an error ...
3
votes
3answers
73 views

Arranging page in a single big table

I'm a LaTeX beginner, so I apologise in advance if the question has an obvious solution or has already been answered. I have to write a short technical report on a lab experiment for college, and the ...
0
votes
1answer
27 views

Why does this cause an Overfull hbox ?

I am doing quite a big report and I am getting quite a lot of overfull badboxes (actually I got one whenever I use a tabular), so I decided to work on a MWE so I can understand what is really ...
3
votes
1answer
75 views

tabular environment: incrementing the headings

Is it possible to let LaTeX increment the headings in a table environment? If so, how could I do this? For example, I would like to have 7 columns and 7 rows where the columns except the first are ...
1
vote
0answers
38 views

Colorising a table based on the content

It can be hard for humans to recognise strings of numbers as being the same. Consider the table below If cells that had the same content were each colours the same, then it is much more clear. ...
0
votes
1answer
38 views

table legend - wrong reference

I'm using these commands to create a table with a legend, but the problem is that when I make a reference to it, it appears as "Table IIIB" instead of "Table III". Can you help me please ? ...
2
votes
2answers
44 views

itemize in table without excess space

I am trying to create a list of bullet points in a tabular environment. When I use itemize, the line separating different jobs on my cv is no longer separated. When I manually use cdot however, the ...
1
vote
2answers
88 views

How to set horizontal space for tabular

Below is item in tabular. Using tabular text gets out of the page. In-order to get rid of this. I tried with \\. But doesn't help. It's not aligned. Can anyone help me to get the below Below ...
1
vote
1answer
32 views

cellcolor affects horizontal alignment in table

I have a table and I want to highlight some cells with color with \cellcolor. However the horizontal alignment is distorted, as you can see in the image. Can this be corrected with the current ...
1
vote
1answer
57 views

Reducing space between columns manually

I'm working on a table in report documentclass. Here's some of my code below: \documentclass[12pt]{report} \usepackage[table]{xcolor} \setlength{\arrayrulewidth}{1mm} ...
1
vote
3answers
45 views

A table consisting of mathematical expressions [duplicate]

The following is my code, but it didn't work, do I miss some package? Please, give me advice and correct code. Thanks for your help! \begin{tabular}{|c|c|c|c|} \hline & x<0 & x=0 & ...
6
votes
1answer
107 views

Do not indent a tabular

In the following minimal example, the tabular seems to be indented, unless I misunderstand (for example, maybe left-aligned does not do what I think?) \documentclass{article} \begin{document} ...