{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
2answers
45 views

Automatic table generation

I am working on a book that includes word-to-word translations that need to be put in a table. The format of the average page looks like this: Regular paragraph text. Verse. Translation section. ...
3
votes
2answers
77 views

Remove whitespace between columns in table

I'm trying to create a table using booktabs, but for some reason I get extra whitespace between my last two columns. \documentclass{article} \usepackage{booktabs} \begin{document} ...
3
votes
1answer
61 views

To have smaller font in this table of presentation

My code \documentclass{beamer} \usepackage[T1]{fontenc} \usepackage{lmodern} \begin{document} \begin{frame} \frametitle{Nobel Prizes in Bioelectromagnetism} {\fontsize{0.3em}{0.3em} % ...
0
votes
0answers
30 views

Change column width in table

I would like to change the width of columns 2 and 4 in the table below. I'm not sure as to where I need to alter the code in order to change the width. Any suggestions? \documentclass{article} ...
2
votes
1answer
21 views

The text in first column of a multirow table is crossing the borders

\begin{table}[!ht]\footnotesize \centering \begin{tabular}{|p{2.8in}|p{3.5in}|} \hline Goals & Approaches\\\hline \multirow{3}{*}{STRU Mathematical Modeling} & Empirical studies for loop ...
1
vote
2answers
50 views

Aligning in table with siunitx

I need the numbers in the following table aligned by ":". Unfortunately the additional "," in the numbers causes some problems which I can't solve. \documentclass[10pt,a4paper]{article} ...
0
votes
1answer
21 views

Problem with tables and underful \hbox

I'm struggling to sort out some errors with the following table. I'd love some advice please? I keep getting errors like \underful hbox . \documentclass[a4paper]{article} \usepackage{array,pdflscape} ...
2
votes
1answer
40 views

multicolumn X paragraph?

\documentclass[a4paper,10pt]{article} \usepackage{array,tabularx,longtable,tabu} \usepackage{lipsum} \begin{document} \begin{longtabu} to \linewidth {Xccr} \lipsum[1] & Val1/1 & Val1/2 ...
2
votes
2answers
178 views

Typography rules : how to apply them on such tabulars

I am trying to apply the typography rules I read here and there on the stackexchange network (vertical rules by no means, horizontal rules are often over-used, etc), and managed to do pretty well ...
2
votes
2answers
146 views

How to make a table more vertically compact?

I finally managed to use the cases construct within a table: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{table} \begin{tabular}{l p{7cm} ll} \hline a & b & c \\ ...
1
vote
2answers
34 views

Inserting a logo at the left side of the table without changing the width of rest of the rows

I am trying to use this table as a header for my document, the problem when including the logo, the width of the rest of the rows changes. Possible to merge the "cells" of the table on the left ...
2
votes
1answer
91 views

tables without tabular?

I'm having a lot of difficulty with the tabular environment. Granted, I'm trying to do a lot, including centering horizontally and vertically, using different fonts in different cells, and different ...
1
vote
3answers
84 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
44 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
15 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
16 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
44 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
49 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
40 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 ...
2
votes
1answer
32 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
27 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
41 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
35 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 ...
2
votes
2answers
50 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
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? ...
2
votes
1answer
58 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
45 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
47 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
87 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
24 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
45 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
61 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
32 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 ...
1
vote
1answer
50 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
36 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
27 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
35 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
98 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
67 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
28 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
22 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
79 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
96 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
126 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
109 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
58 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: ...