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

Make a table with a fixed width and a flexible height [duplicate]

I would like to make a tabular with only 1 column. I want the tabular to have a fixed width and to contain several sentences. As some sentences may be long, several rows may be needed to hold 1 ...
8
votes
4answers
168 views

Alignment of table entries: the case of negative numbers

Assume that we have a table that has positive and negative entries. My question is simple: how can we have the number alignment to start from the actual number and not the negative (-) symbol? Let ...
1
vote
1answer
42 views

Tables with the same height but with different number of rows

I want to put two tables side by side. Each table has its own caption and the two have a common caption. I can do that with subfloat: \begin{table} \centering ...
2
votes
2answers
41 views

Right-bottom align cells of row of table headers

Quite often I have table headers which need to be wrapped across several lines and I have not find out how to typeset those nicely. The best I have found is using a \pbox like in the example below ...
3
votes
1answer
96 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} % ...
3
votes
2answers
97 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
76 views

Split wide table into two but keeping the same caption and table number

I have a wide table that doesn't fit in one page so I split the table in 2. The problem is that I need to keep almost the same caption (the second one has to add the word Continued to the caption) and ...
1
vote
2answers
57 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 ...
3
votes
2answers
121 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} ...
0
votes
0answers
42 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} ...
1
vote
2answers
66 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} ...
2
votes
1answer
36 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 ...
0
votes
1answer
26 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} ...
1
vote
0answers
184 views

How could I use scalebox to rescale a table such that it fits exactly in the usable page width (i.e., between the margins)?

How could I use scalebox to rescale a table such that it fits exactly in the usable page width (i.e., between the margins)? Is there some way in which something such as \hsize could be used as an ...
6
votes
2answers
135 views

Unify the size of two tables

How can I unify the table size and the font size for these two tables \documentclass{article} \usepackage{graphicx} \begin{document} % Table 1 \begin{table}[h] \resizebox{\textwidth}{!}{% ...
7
votes
2answers
412 views

Measure the column width of a table

Is there a way to determine the width of the first column in a tabular enviroment? I've thought about using a savebox but that would only give me the size of the text (and in one cell only), not the ...
3
votes
2answers
210 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
1answer
60 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
1answer
99 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
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
3answers
103 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} % ...
2
votes
2answers
181 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
45 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 ...
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}, ...
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} ...
3
votes
1answer
22 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 ...
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 ...
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
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
43 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 ...
2
votes
2answers
118 views

Getting `tables` R package to print a text file that I can import into my .tex file

I'm trying to write some R code that takes data from my (evolving) experiment, makes a summary statistics table, and inputs it into the .tex document that I'm writing. I want to avoid copy-pasting. ...
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
1answer
46 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
3answers
74 views

Multiple columns in table, problem with alignment

The following code generates a table: \begin{table}[!t] % increase table row spacing, adjust to taste \renewcommand{\arraystretch}{1.3} \caption{An Example of a Table} \label{table_example} ...
2
votes
2answers
38 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? ...
5
votes
2answers
2k views

Not enough space in table for fractions

The table that I'd like to make does not display fractions with enough space between lines. What's the reasoning for this? (Not enough rep to be able to post a picture yet unfortunately.) ...
4
votes
1answer
80 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
74 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
1answer
55 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 ...
4
votes
1answer
388 views

Color first row in a xtable generated table

I am trying to color the FIRST row of my table. But if I add \rowcolor[gray]{0.95} to the FIRST row the colored row will be the SECOND. Indeed it is quite straight forward to modify from the second ...
1
vote
1answer
65 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 ...
1
vote
2answers
79 views

Centering content of table cell in LaTeX

\documentclass{article} \usepackage[a4paper,left=3cm,right=3cm,top=2cm,bottom=2cm]{geometry} % to fit both tables \usepackage{caption} \usepackage{array} ...
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 ...
1
vote
1answer
53 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 ...
5
votes
2answers
226 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 ...
2
votes
1answer
80 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
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 ...