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

1
vote
2answers
626 views

Table too wide, first column too big?

I have the following table: \documentclass[a4paper, % Seitenformat 12pt, bibliography=totoc, index=totoc, ...
3
votes
1answer
461 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 ...
2
votes
1answer
263 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 ...
4
votes
2answers
506 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}% } ...
10
votes
1answer
3k 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 ...
4
votes
1answer
509 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 ...
2
votes
1answer
273 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 ...
5
votes
1answer
628 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.
3
votes
3answers
693 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 ...
1
vote
2answers
438 views

Figure is chopped off when inserting a MATLAB table as eps figure

I am trying to include a MATLAB UI table (which I have previously saved as an .eps figure and put it into the same folder as my .tex file) into a LaTeX document, using: \begin{figure} \centering ...
1
vote
3answers
558 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
2answers
147 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 ...
1
vote
1answer
99 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 ...
8
votes
2answers
1k 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, ...
1
vote
1answer
752 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 ...
4
votes
3answers
6k 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
125 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 ...
2
votes
2answers
332 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} ...
1
vote
1answer
252 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} ...
2
votes
1answer
517 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 ...
30
votes
1answer
24k views

Can a table include a horizontal dashed line?

In a normal table, you can use the \hline command to draw a horizontal line. I am trying to make this line a dashed horizontal line. I have found the package dashrule via this answer, but this only ...
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} ...
0
votes
2answers
208 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 ...
1
vote
0answers
188 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
1answer
526 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 ...
4
votes
2answers
4k 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
328 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 ...
6
votes
2answers
459 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 ...
4
votes
1answer
976 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 ...
3
votes
2answers
444 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
128 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
1k views

Placement of tablenotes in longtable with threeparttablex

How can I prevent a pagebreak of the tablenotes within ThreePartTable (threeparttablex) in the following MWE (btw it's a landscape table)? \enlargethispage seems to have no effect. ...
2
votes
1answer
350 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 & ...
3
votes
1answer
147 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} ...
2
votes
1answer
336 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}} ...
4
votes
1answer
9k views

create table with only header bold and center

How to create a table using latex - only it's 1st row bold and center and others are left side and normal. \begin{table} \renewcommand{\arraystretch}{1.5} \caption[m1]{ m2} ...
15
votes
3answers
373 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 ...
4
votes
1answer
852 views

booktabs with custom column spacing

I'm trying to use the booktabs package, and I'm trying to make tables with "column groups" that are delimited by extra space. In the following, I am doing this using the @{} syntax in the tabular ...
6
votes
1answer
279 views

Latex rotated multi-column

Using Latex to try to reproduce the multi-column table with rotation and wrapping of text in the example shown above. It is columns 2 and 3 of the attached image that is giving me the problems. I've ...
3
votes
1answer
318 views

Moving a box, text etc

I have searched the page for how to move a box around on a paper, but I have not found an answer. If the left-bottom corner of the paper is at (0,0) (x, y). I have the following script: ...
2
votes
1answer
797 views

Remove vertical line in tabular head

I want to go from this: To: I have the following LaTeX: \begin{tabular}{p{8cm}|c|c|c|c|c} \textbf{Functionality} & \rot{Old ICCS engine} & \rot{Current ICCS engine} & \rot{Confious ...
3
votes
1answer
384 views

Line break in a table cell for a math equation?

In the middle of typing up an assessment and trying to work out how to get equations to work inside a table environment \documentclass [11pt] {article} \usepackage{amsmath} \usepackage{pdflscape} ...
2
votes
1answer
207 views

Can the siunitx table alignment feature, S, align ratios?

I'd like to align a list of ratios in a column of a table by the colon. Is this possible using siunitx? For instance ratios like the following. 1:0.9 1:1.0125 1:0.99
2
votes
1answer
2k views

Math in table mixed with text and proper alignment

I have some problems using tabular environment mixed with math formulars, multiple lines and alignment. I have this code: \begin{tabular}[!ht]{p{5cm}p{5cm}p{5cm}} \toprule Col1 & Col2 ...
0
votes
0answers
63 views

Table headers and chain aligment [duplicate]

I have 2 questions. 1- How to use a diagonal seperator for the table hearders n and k in a good way. 2- How to align the back of the arrow to the rightand the head to the left of the numbers? ...
4
votes
2answers
401 views

Appendix with mostly tables—problems with floats and longtable

I am sectioning my appendix with \chapter and \section, I sometimes have to add some text sections and then the following table is placed after the next page. I don't know how to prevent these table ...
5
votes
1answer
612 views

Why doesn't \lstinline work in table column?

\documentclass[14pt]{extarticle} \usepackage{xcolor} \definecolor{deepblue}{rgb}{0,0,0.5} \definecolor{deepred}{rgb}{0.6,0,0} \definecolor{deepgreen}{rgb}{0,0.5,0} \usepackage{listings} ...
4
votes
2answers
188 views

I can't use & tabs in the `align` environment while using it inside a custom environment

I've got a custom environment made for problem sets, and it uses a tabular to align the question number and question body. When I try to use & to group parts of an equation together - like if I ...