{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
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
691 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
725 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
496 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
621 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
608 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
477 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
427 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 ...
7
votes
2answers
15k 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} ...
1
vote
2answers
541 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
1answer
383 views

revtex4-1 and colortbl doesn't fill cells

The MWE below shows that the \cellcolor command doesn't properly fill a table cell in revtex4-1 where it would do so in a simple article. Can anyone help me get fills that extend to the boundaries of ...
5
votes
1answer
1k 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
369 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 ...
2
votes
1answer
1k 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
400 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: ...
3
votes
1answer
740 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
2k 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
249 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
1
vote
1answer
4k views

Centring a sidewaystable both horizontally and vertically

I'm trying to have a sideways table at the end of my document, however I can't seem to get it to centre to the A4 page perfectly like intended. Here's my preamble: ...
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 ...
1
vote
1answer
220 views

How to fix a table that is too wide for margins?

I have created a table that is too wide for the margins. What I tried to do was implement \hspace*{-50pt} before \begin{tabular} and \hspace{-50pt} after \end{tabluar}. Which gets rid of the overfull ...
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? ...
2
votes
1answer
64 views

How could I insert a \section tag inside a \multicolumn tag?

is it possible to define a \section inside a \multicolumn in a xtab table?. Example: \documentclass{article} \usepackage{xtab} \begin{document} \tableofcontents \section{TestSectionA} ...
4
votes
2answers
506 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 ...
2
votes
2answers
2k views

Dificult using LTXtable

I have a script in R that build a report in LaTeX. Sometimes, this report has very long and very wide table, so, after some research I decided try ltxtable. My problem is that I didn't get how it ...
6
votes
1answer
876 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} ...
3
votes
1answer
2k views

Fit table in page column also some editing

I want to make the table fit into one column in a two column page. Also, I need it to look like this: Here’s my code \documentclass[twocolumn]{article} \usepackage{adjustbox} \begin{document} ...
1
vote
0answers
172 views

Wide table spanning multiple pages using longtable and landscape packages [duplicate]

I am using the longtable and landscape package in the hope it would allow my very wide table to be read easily across multiple pages without breaks. However, it only spans one page and any extra ...
0
votes
1answer
738 views

How to continue table on multiple pages? [duplicate]

I am writing one table which is very long may occupy 2-3 pages. I need to split this table on multiple pages but with same table header at the beginning of table. I am using long-table which allow ...
4
votes
1answer
234 views

Building chemical “ICE” tables with tabular environment

I am starting to write my chemistry lab reports out in LaTeX, but keep getting stuck on the "ICE" tables (see the LaTeX example below). I can't figure out how to get the + and \rightleftharpoons in ...
4
votes
1answer
283 views

Tabular: messed up margins

Why isn't the table adjusting the text to make line breaks when necessary? Can I make them manually? What could be done to fix these margins? Edit: MWE below: ...
3
votes
2answers
764 views

Multicolumn proofs, align within tabular?

I want to condense my assignment by laying out each solution as a table with a picture on one side and the proof on the other. To make matters worse, I need to be able to include some equation ...
7
votes
1answer
4k views

Align the top of two tables horizontally (side-by-side with minipage)

I'm using \minipage to put two tables side by side. But when the two tables are not of equal length, the shorter of the two is vertically centered with respect to the other. I would like both tables ...
1
vote
1answer
235 views

float a wide ctabular in two columns

I have a very long table (slightly more than 2 pages) and so, am using the ctabular environment of the memoir class. I understand how a float defeats the purpose of a continuous tabular but I would ...
3
votes
2answers
4k views

How to make a table smaller?

I am going make a table smaller in a paper which I am going to submit to a journal. I used \small but it does not make it small enough ?
2
votes
1answer
509 views

table header problems with \multicolumn

I have been trying to produce some aesthetically appealing tables for my MSc thesis. This link has helped me a lot: Professional-looking tables with alternating row colors? A challenge, however, ...
1
vote
1answer
323 views

Aligning Decimal Points in Columns [duplicate]

I simply want to align the decimal points in columns. I know this has been answered already but I can not figure out how to apply it in my table. Forgive me, I am very new to LaTeX. This is the code ...
3
votes
0answers
2k views

Missing vertical line in table [closed]

I'm new to LaTeX and learning quite quickly thanks to this site, among others that teach me quick fixes for my mistakes, but I can't seem to find a fix for this, I'm not able to draw the right border ...
2
votes
1answer
754 views

Top aligned tabular: \cline equivalent of \firsthline

When aligning tabular environments with the [t] option, one can use \firsthline (from the array package) instead of \hline when a line is required at the top of the table. Like so: ...
7
votes
2answers
167 views

rectangle in corner of table

How to draw green rectangles in the following table. ‎\begin{tabular}{|c|c|c|c|c|c|} \hline & $D_1$ & $D_2$ & $D_3$ & $D_4$ & Supply \\ \hline $S_1$ & 19 & 30 & ...