{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
3answers
102 views

How can I fit my table in the text block?

I want to make my table fit in the text block. At the minute, a large part of my table is being cut off at the right-hand edge the page. My code is: \documentclass{article} \usepackage{graphicx} % ...
1
vote
2answers
52 views

Referencing a table in latex

My latex document is given below. \documentclass[12pt]{report} \linespread{} \usepackage{fancyhdr} \usepackage{amsmath,amssymb} \usepackage{caption} \usepackage{relsize} ...
2
votes
1answer
29 views

Gap between double-spaced paragraphs with table

I have the code for a table between two blocks of texts (of multiple paragraphs). When the text is single-spaced, there is no problem; however, when I doublespace the text using setspace and ...
3
votes
1answer
21 views

Problem with \multicolumn in \longtabu environment

I'm a relative newbie to LaTeX and am having a problem with a longtabu table. I've set it up with alternating row colors, which works great. However, this makes the captions on all but the first page ...
0
votes
0answers
46 views

I want to write the examples in non-italic form

I want to write the examples in non-italic form in latex please guide me
1
vote
1answer
63 views

Table of tables with captions?

Minimal example: \documentclass{scrreprt} \begin{document} \begin{figure} \centering \begin{tabular}{cc} \begin{figure} \begin{tabular}{cc} 0 & 1 \\ 2 & 3 \\ \end{tabular} ...
1
vote
1answer
58 views

How can I modify the classicthesis margins only for the tables?

I would like to include some longtables and deluxetables in my PhD thesis written with classicthesis, but I find two problems: The deluxetable is not floating. The longtable is truncated on the left ...
3
votes
1answer
42 views

Vertical align in longtable

I would like the content of the first and second column to be vertically aligned on top, since the 3rd column will contain a bunch of data so it would not be readable if vertically centered (which is ...
0
votes
1answer
32 views

How to use the displaymath environment within a table?

I am trying to use the cases construct within a table. I tried to follow this example. When I copy paste the entire example, it compiles without an error. But when I try to reproduce it, I get ...
3
votes
0answers
44 views

Creating a maintenance log on just one table

Since I couldn't find a topic similar to my question I hereby just post it. I've created a maintenance log where all steps are described in one big table. The table is filled with different options ...
3
votes
1answer
45 views

Bad alignment in table cell using siunitx table type S

I have a problem with number alignment using the S table type from siunitx package. The numbers are not centered and especially on the right side the number falls out of the table. The ...
3
votes
2answers
60 views

Table border is not complete

I want to draw a table and i used the following code \begin{table}[htbp] \centering \caption{Ship simulator required inputs} \begin{tabular}{|c|c|} \hline L_{PP}, L_{WL}, L_{OS}, B, T, T_{a}, ...
2
votes
2answers
36 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? ...
4
votes
1answer
76 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
69 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
56 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
53 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
95 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
34 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 ...
1
vote
1answer
64 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
50 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 ...
4
votes
4answers
214 views

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
51 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
37 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
81 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
37 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
111 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
77 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
147 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
1answer
47 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
29 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
86 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
70 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
102 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
135 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
122 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
65 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
54 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
43 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
52 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
74 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
57 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
142 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
40 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
225 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
49 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
97 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
457 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
2answers
61 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 ...