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

8
votes
2answers
257 views

Automating table creation

I have the following table that I need to recreate quite a few times Due to its size and complexity (yes, I am a tex novice) I am looking into ways of automating the creation of said table. I try ...
2
votes
2answers
2k views

\hhline doesnt work

I wonder you can help me why LaTeX can't draw a \hhline in my table?? (I would put a picture but I need at least 10 reputation...) Here is the code: \documentclass[12pt,titlepage]{report} ...
3
votes
1answer
177 views

Why use \listoffigures \listoftables [closed]

Why do people include "Lists of Figures" and "Lists of Tables" in their theses/books? (as generated by \listoffigures, \listoftables, etc.) Besides the obvious reason that they take up space and ...
5
votes
1answer
1k views

Increasing the height of the Beamer footline

When I add a tabularenvironment to the footline of my presentation, only the first line is shown. How can I increase the heigth of the footline to show the whole table? ...
1
vote
1answer
761 views

Horizontal line through table cell

I have a very long, thin table that I'm folding onto itself to make a wider, shorter version. The table has a couple horizontal rules to separate data categories. For example, the original table is ...
1
vote
1answer
1k views

Soft midrule in table

3 small questions: 1) I'd like to put a soft \midrule in this table between Care type and the headers, but I'd like it to not quite reach the edge of the table: (at your discretion to mess with the ...
2
votes
1answer
132 views

Vertical spacing within float

I have a table in which I want to include two tabular elements one below the other (and justified right). Right now I have this code, that displays exactly what I want.. I would like to add some ...
2
votes
1answer
661 views

Left align after \specialcell in a centered table

I'm outputting descriptive tables from Stata using estpost and esttab into TeX format, and then importing them in LyX. I use \refcat to label my survey questions, and since some of them are very long ...
1
vote
1answer
340 views

xtab breaking table even though next row could “apparently” fit

Below is the MWE for a table spanning multiple pages. I like how this works generally, but the last row is awkwardly left on a lonely page. In the actual document there are many sections more rows, ...
1
vote
1answer
15k views

LaTeX Error: Environment table undefined

When I try to compile a latex file, I get the following error: LaTeX Error: Environment table undefined. I think the line that is causing the problem is: \begin{table} Does anybody know how I can ...
1
vote
1answer
2k views

\multicolumn table cell doesn't fit page width

I have this code: \documentclass{article} \usepackage{lipsum} \begin{document} \begin{tabular}{ |c|c| } \hline \multicolumn{2}{|c}{\lipsum[1]}\\ \hline text text text text text text & ...
1
vote
2answers
896 views

Table too wide, first column too big?

I have the following table: \documentclass[a4paper, % Seitenformat 12pt, bibliography=totoc, index=totoc, ...
4
votes
2answers
286 views

Problem with table

I'm trying to create a table for my thesis. I'm quite noob in LaTeX so I will request some charity help I already done the table in but in other format. See the attachment. Regards ...
5
votes
4answers
965 views

Big curly brackets and rotated text around table

I have a rather cramped looking table here showing the chance of a nurse touching a surface type given (s)he is doing a certain type of care. I would like to make a large curly bracket to the left of ...
2
votes
1answer
309 views

Make a list with uniform spacing regardless of the characters and number of text lines, possibly with minipages or a table

I am trying to make a list with two columns, where I can used different font sizes and have single- or multi-row columns, while adhering to the page margins and aligning the text properly regardless ...
11
votes
1answer
5k views

Small default distance between the caption and the table

By default (in the article class), a table caption (without letters with depth) is very close to a table with two or more rows. Only if the table has one row then the caption and the table will be at ...
3
votes
1answer
542 views

Top-aligned table cells with different font sizes and controlled spacing

I am trying to achieve a table where a few things have to work simultaneously. Several of these things have been discussed before, but I have been unable to make everything work at once (and some ...
1
vote
1answer
150 views

How to generate this table?

I only know how to use \multirow, but how to use generate the following table in LaTeX?
4
votes
1answer
657 views

How to use commands in table specs, and still support array package?

For a package, I want to write code that creates tables, where the exact type of table is configurable (tabular, longtable, tabularx, ... [Update: David rightly remarked that formats like tabularx ...
4
votes
2answers
733 views

How to change the caption name in the article class when using babel?

I have used the following lines in my preamble \usepackage{babel} \addto\extrasfrench{% \providecommand{\og}{\leavevmode\flqq~}% \providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}% } ...
2
votes
1answer
364 views

Border alignment issue using tabularx in LaTeX

I'm writing a program to parse wikimarkup to LaTeX, and I've run into a bit of an issue when it comes to creating tables. For some reason, the right vertical edge of the table is getting pushed way ...
3
votes
3answers
813 views

Curvy arrows between two tables (with tikz?)

I try to connect two arbitrary tables with arrows. The code example below should demonstrate how: say we want to connect the "1" in A with the "5" in B, the "2" in A with the "7" in B and so on. My ...
6
votes
1answer
978 views

How to trim the length of \toprule? [duplicate]

How to trim \toprule (from booktabs package)? It is probably something basic I'm missing, but I need it and it's nowhere to be found.
1
vote
3answers
865 views

Add more space between cells in a table [duplicate]

I'd like to add more space between the cells of the table below. I've tried the command [2ex] after \\ but this changes the vertical alignment, which I'd like to be centered. \documentclass{article} ...
1
vote
1answer
120 views

Make a particular column of a longtable borderless

I am using longtable package to create tables as the number of rows are large and doesn't fit in a single page. This works fine for me. I now need a particular column not to have top and bottom border ...
1
vote
2answers
153 views

Because of long row, table not set in page cleanly

I create a table,but some rows are very long.Because of that table could't set on page...What is a solution for that?my code is, \begin{table}[!ht] \renewcommand{\arraystretch}{1.5} \caption[Set of ...
5
votes
3answers
11k views

Top alignment of cell content in tabularx

I would like to align the content of each cell (of the first column) to the top. The approaches presented here did not apply. Maybe it has something to do with die tabular-environment inside the ...
1
vote
1answer
1k views

Longtable with multicolumn and multirow not working

I'm using a table generated from Excel2Latex in my document. Despite using longtable, the table gets truncated at the end of page after overflowing the bottom margin. Min. working example provided ...
2
votes
2answers
395 views

How to align and resize uniformly objects in latex table

I am trying to make a table which includes graphics as well. I am doing \documentclass[a4paper,12pt]{book} \usepackage{array} \begin{document} \begin{table}[h!] \begin{center} ...
6
votes
2answers
304 views

Does anyone know an easy way to produce a table with cells spanning multiple pages using latex? [closed]

I'm looking into the possibility of using latex for programmatically generating PDFs from templates with placeholders and some textual data. The current solution I have is based on reportlab, and it ...
1
vote
1answer
1k views

lyx table footnote

I have the table below, in LyX. How can I add text that hugs the bottom line and I want it to be very small text, smaller than the font in the table. \begin{table} \begin{tabular}{c c c c c c c} ...
1
vote
1answer
141 views

How To Fill Leftover Space

I am making a fairly space intensive LaTeX "cheat sheet." Right now, I have added a single table, as so: However, there is a large gap to the right of this table that I would like to fill with a ...
1
vote
0answers
189 views

Set the line separation in a tabu table equal to the line separation in the document [duplicate]

As is known, the tabu environment does not automatically adjust the vertical distance between a cell with multiple lines and another cell, cf. Text too close to cell border when having a nested tabu ...
1
vote
2answers
253 views

Linebreak in table cell at document margin

In order to allow line breaks within a table cell, I use \parbox. But when the cells I want to have line breaks in are in the last column of the table, the best thing would be to break them at the ...
2
votes
1answer
689 views

LyX - Highlight a result in table

In LyX I am using this table as an ERT addition: \begin{tabular}{l rlrl } & \multicolumn{2}{c}{Model 1} & \multicolumn{2}{c@{}}{Model 2} \midrule \midrule Variable Variable Variable 1 ...
1
vote
1answer
306 views

Extra space added in table with multi-rows and columns

I am working with a table with multi-rows and headers. The problem is when I run it, extra space is added both between rows and at the end of the last column. \documentclass{article} ...
1
vote
1answer
723 views

Too narrow S-column in siunitx

I'm making a small table with numbers and units given with the \SI{num}{unit} call. However, the units stretches outside the table width, such that the booktabslines (or any other line) looks too ...
5
votes
2answers
7k views

Figure and Table next to each other (memoir class) [duplicate]

To save space, I would like to place the following table next to each other. Each has a separate caption. I have this, I want this, Sample code, \documentclass[]{memoir} ...
3
votes
2answers
3k views

A table font size smaller than tiny?

I have looked and there are answers for LaTeX documents, but not a way to implement it in LyX. If I have a table and it just does not fit, is there a way to get a text size smaller than \tiny in LyX? ...
1
vote
0answers
25 views

LyX White Space on Slide [duplicate]

Using LyX I find that there is always so much white space between the figure and the the slide title and between the table caption and the table. Is there a way to reduce this space in the preamble?
3
votes
2answers
495 views

table with blank caption but table label

If I don't put a caption on my table, I don't get the "Table 2.2" label underneath it. If I add a blank caption, I get "Table 2.2:". How do I get rid of the ":"? I am using memoir and ...
7
votes
2answers
619 views

How to vertically align multiline column

I am trying to set up a table with the tabularx package (although the used package does not really matter to me). The table should stretch across the entire line. I am trying to get both columns ...
3
votes
2answers
607 views

Defining a newenvironment with optional caption

I am trying to define a new table environment with optional caption. However, if I don't pass it the caption, I am still getting the "Table 1.1:" below the table. What am I missing here? Thanks. ...
2
votes
1answer
136 views

Fit a page to table

How can I fit a page to show an entire table (all I've seen here is the opposed, fit the table size to the page size. But, as I'll not print the result, I want to do the opposite) This is a sample of ...
2
votes
1answer
409 views

Using ERT in LyX [duplicate]

Using LyX to create a Beamer presentation I used the TeX button to insert some ERT: \begin{table}\caption{Regression table\label{tab1}} \begin{center} \begin{tabular}{l r l r l r l} \hline & ...
9
votes
2answers
6k views

How to set the space between rows in a table

This is the Latex code I have to create a table: \documentclass{article} \usepackage{amsmath} \usepackage{tabularx} \usepackage[top=0.5cm, bottom=0.5cm, left=0.5cm, right=0.5cm, ...
3
votes
1answer
162 views

Caption Centered but Table is not

For some reason the caption is aligned in the center of the page but the table is too far to the right. How can I have both centered? \documentclass{article} \usepackage{booktabs} ...
4
votes
1answer
1k views

LyX TeX Table too big

I am including a TeX file into a LyX document using Insert -> Child Document. The Table looks fine on the LyX screen but when I preview the PDF it is 10 times too big. Not sure how to fiddle with the ...
2
votes
1answer
476 views

Column Whitespace

I am using the below table and I am getting A LOT of white space between my first column and my models. The space between my models is fine. \begin{table}\caption{Regression table\label{tab1}} ...
15
votes
3answers
426 views

Is it possible to use the pipe character, |, to separate cells in a table?

I was wondering if it is possible to use the pipe character, |, instead of the & to separate cells. Something like this: c1 | c2 | c3 \\ c4 | c5 | c6 \\ instead of this: c1 & c2 & c3 ...