{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
1answer
4k views

Multi-column problem

Consider the following table. First I have troubles to get the multicolumn-elements in the first row of the table limited to a maximum width (I tried it here with the command C{0.75} but obviously it ...
5
votes
1answer
482 views

Error showing up when using multicolumn and colors

I have a document that is creating the exact output I'm looking for, yet when I compile it I'm getting two errors. After tooling around for a little bit, I was able to pinpoint their location to the ...
4
votes
1answer
2k views

How can i make a tabular fit the page width with the text centered?

I want to create a table that will be as wide as the page. I used this code : \begin{tabular}{|l@{\hspace{7pt}}|c@{\hspace{50pt}}|c@{\hspace{80pt}}|} \hline Τ1 & Triangle Inequallity & $ ...
6
votes
2answers
566 views

Better vertical space between paragraphs and centered tabular or figure

When I need to place a tabular or figure inside a paragraph (usually in exams or class notes) I use {\par\centering <tabular>/<figure>\par} because center environment uses too much ...
3
votes
1answer
1k views

Wrapping multicolumn in tabu

How do I get the text within a multicolumn to wrap when using tabu? I am hoping that tabu makes it somewhat easier than having to specify p with a manual specification of the width ...
3
votes
3answers
561 views

Dropped column in multicolumn table

In a table with 4 rows and 4 columns I try to merge different cells in every row while preserving the table layout. As there are never more than 3 cells in a row, a table column seems to be dropped. ...
2
votes
2answers
876 views

Tabular content spilling over right column margin

Tabular content spilling over right column margin. What's going on here? How can I fix it? \documentclass[a4paper,12pt]{article} \author{Peter Cao} \date{} ...
5
votes
3answers
3k views

Why are the lines around my multicolumn cell misaligned?

In the following table, why does the double line before the diff column not go through? I guess all the multicolumn{1} are wrong? How can I fix it? \begin{table} \centering ...
3
votes
1answer
465 views

multicolumn-command which automatically uses all columns of the table?

Is it possible to define a multicolumn{}{}{}-command, which automatically spans all columns of a table? For my longtables I want to use a command defined in the preamble, which typesets at the right ...
4
votes
1answer
190 views

Draw a table with bars going across the rows

Is there a way to do this? My hunch is that I can simulate this by creating a table that has 20 columns, no separators, use the | as a manual column separator, and then draw a rectangle that can ...
4
votes
1answer
83 views

Removing boxes in a ytableau

I am attempting to draw a ytableau where I remove the boxes around the outermost part of the table. Basically, what I would like to do is remove the boxes around all of the numbers in the example ...
13
votes
4answers
1k views

Drawing Young tabloids

I would like LaTeX to produce output like the following (without the 2 a so called Young tabloid), ideally by writing \ytabloidshort{123,56} (using one character per cell, ideally allowing ...
4
votes
1answer
234 views

Shift table up after rotating

I am using \rotatebox to rotate a table 90 degrees counter-clockwise on a portrait page. I am able to center the table horizontally, but not vertically. It sits at the bottom of the page below the ...
7
votes
1answer
332 views

Footnotes in tabular environments within multicols

I'm running into a strange inconsistency when I use footnotes in and out of tabular environments within multicols. In particular, I'm declaring a savenotes environment in a style file as follows: ...
1
vote
0answers
73 views

Positioning figures [duplicate]

I want to force a table and a figure to appear in a page with nothing except them. I've tried \clearpage but it makes lots of extra spaces in the document. Also some of the figs appear in the end of ...
7
votes
3answers
256 views

How to change font size of all text in a table?

Hi I am trying the following code but only the first row (the headings) is being changed to the specified font size. How can I make the whole table's font size change? \begin{table}[!htbp] ...
5
votes
1answer
2k views

Problem with fontsize when using longtable

I am using longtable package to make my large table span two pages. However I have set the font size with \fontsize to my table to be quite small. The only problem is that when the table is finished, ...
2
votes
1answer
101 views

Column line overshooting the horizontal line in table

\begin{tabular}{|m{3.5cm}|m{5.5cm}|m{4.5cm}|} \hline \emph{Category of Benefits} & \emph{General Benefit} & \emph{Operational Advantages} \\ \hline \multirow{3}{*}{\pbox{3.5cm}{Robust ...
8
votes
1answer
466 views

Custom macro for multicolumn with & without xparse

The following example has two normal LaTeX \newcommand macros and two xparse \NewDocumentCommand for specifying multicolumn text. The only difference between each pair of commands is one has the ...
10
votes
2answers
337 views

Multicolumn within a newcommand error

I am new to writing packages and am coming across an error that I can't unravel, I would appreciate any help that you can provide. I am writing a few macros which are meant to be used within a tabular ...
3
votes
1answer
241 views

How to increase the vertical space between two “touching” tables?

I skimmed Can't generate vertical space between tables but am looking for sth slightly different: I don't really want to keep the tables together necessarily - I'm happy to let LaTeX (or whoever ...
2
votes
1answer
10k views

How to force a figure and a table to stay on the same page in LaTeX? [duplicate]

I have an image and a table that I want to display on a page. Each eats up little less than half of the space available so there's not much room for any other stuff on that page, but I know there is ...
4
votes
1answer
1k views

Using tabularx in a custom environment - “misplaced \noalign”

Question Currently, I'm trying to shorten the creation of small tabularx-tables with pre-defined headers, but somehow, trying to use the tabularx-environment, even though I used the \tabularx and ...
4
votes
1answer
229 views

Color in multirows

I have a similar problem to that on the post xcolor package; color multirows with the following table. The four-row-cell containing the word 'HHeader' should be completely gray. I have tried to ...
3
votes
1answer
1k views

Multirows, multicolums and vertical centring in the tabu environment

I have a table, using the tabu environment, in which I would like multirow and multicolumn cells. Inside the cells, any content that doesn't vertically fill the cell should be vertically centred. ...
2
votes
1answer
59 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} ...
6
votes
1answer
2k views

xcolor package; color multirows

Consider the following table: \documentclass[a4paper]{report} \usepackage{multirow} \usepackage[table]{xcolor} \begin{document} \begin{table} \rowcolors{1}{gray!15}{gray!15} \centering ...
4
votes
1answer
413 views

tabularx: bottom alignment on r or l-columns when X column wraps

In tabularx, when the X-column wraps on more than one line, l/r/c-columns remains top aligned: MWE: \begin{tabularx}{5cm}{lXr} 1 & qwer asdf zxcv qwer asdf zxcv qwer asdf zxcv & 1 \\ 2 ...
2
votes
1answer
214 views

Align text and numeric values by decimal in table body using dcolumn

How can I align numeric values in the body of my table by decimal point when some of those values are accompanied by character values? For example, say I wanted to report some standard deviations in a ...
1
vote
0answers
59 views

Table caption above, figure caption below [duplicate]

In a LaTeX article, I would like to place table captions above the tables and figure captions below. Is this possible?
2
votes
1answer
138 views

How can I left-align the table in pdfLaTeX in TeX Live?

I have these two TeX files: \documentclass[a3paper,landscape]{article} \usepackage{array} \usepackage{tabularx} \usepackage{longtable} \usepackage{ltxtable} \begin{document} Hello. ...
1
vote
1answer
174 views

How can I autoadjust the table height, width in LaTeX with many pages of text

I am using CentOS and TeX Live. I am new to LaTeX. This is what I am trying \documentclass[landscape, letter]{report} \usepackage{ltxtable} \usepackage[table]{xcolor} \usepackage{colortbl} ...
4
votes
0answers
211 views

Aligning a table (vertically) with a subfigure [closed]

I want to show three pictures and a tabel with explanatory text: --------- --------- | | | | | Pic 1 | | Pic 2 | | | | | --------- --------- ...
4
votes
1answer
267 views

How can I make the document as wide as possible in LaTeX

I am new to LaTeX and don't know much about it. I am generating PDF from the LaTeX source files. My column are very wide and I want that PDF should expand to fit the data. Does not matter how long ...
4
votes
2answers
3k views

Get a table and figure on the same page with captions & labels

Here's what I'm looking for: I need a table and a figure to stay on the same page, while keeping captions & labels fully functional. Both the table and the figure need their own caption and their ...
2
votes
1answer
81 views

Odd behaviour when dashes are add in a table?

Using the following MWE : \documentclass[12pt,a4paper]{report} \usepackage[lmargin=3.81cm,tmargin=2.54cm,rmargin=2.54cm,bmargin=2.52cm]{geometry} \usepackage{booktabs} \usepackage{siunitx} ...
0
votes
1answer
71 views

Overhead image in a table,how to have fixed cell dimension

I have this problem: This is my code,i wanna have a fixed height to fit my image perfectly without scaling too much. \begin{tabular}{|c|c|p{5cm}|} \posizCellaRiga \textbf{Nominativo} & ...
2
votes
1answer
412 views

How to implement this table in LaTeX

I really tried hard to do this on my own, but I keep failing ... Using multi-column and multi-row commands confused me. I know some of you might frown upon such a request but I really need help ...
6
votes
1answer
560 views

Tabulary on a rotated page does not use correct \textwidth

I'm trying to have a tabulary-table on a landscape page in a portrait document. Because I want to have the table use the full width, I tried to set it width to \textwidth, but the width of the table ...
2
votes
1answer
2k views

How to adjust space between columns in longtable environment?

In the regular tabular environment, we can use \setlength{\tabcolsep} to specify the size of the space between the columns, but this doesn't work in longtable. Is there a similar command? ...
17
votes
2answers
930 views

Creating a triangular table

Is there a way to create something that looks like this? I have looked at the \rotatebox command, but that will not get the same "jagged" edges on the bottom, and looked at How to draw a ...
8
votes
1answer
1k views

Animating tabular rows in Beamer without showing the table border

I have a tabular environment with three rows, and I would like to show only the first row on my first slide, then show the next row and finally the third row. I have a solution that almost works but ...
2
votes
2answers
586 views

Table formatting

I use the following table: \documentclass[a4paper, 12pt, bibliography=totoc, index=totoc, abstracton, ...
2
votes
1answer
66 views

Referencing and printing table entries in main body

I have a table with numbers and I would like to reference a specific number in this table by re-producing it in the main body of the text. For example in this table: \begin{table}[h]\caption{Summary ...
5
votes
1answer
680 views

Making advanced tables [duplicate]

I am trying to generate tables like the one above I found in a textbook in LaTeX. In particular I am trying to find a way to make that $\$ slash symbol in the left upper corner. It would also be ...
3
votes
1answer
250 views

Using longtable with \cmidrule: page-breaking issues

Here's a (minimal?) working example that illustrates both the issues I am having: \documentclass{article} \usepackage{longtable,booktabs,lipsum,array} \usepackage{pgfplots} ...
5
votes
1answer
194 views

How to TeX a table contain large bracket

How to Tex a table in the form? I'm not interested in the detail of the matrix content, just interested in the form of the matrix, especially how to put the arrows and labels outside the matrix. ...
4
votes
1answer
94 views

colors in tablecells in LaTeX

I'm making a tabular and I want some of the cells to be colored. So I searched how to make colored cells. I now have the following: \documentclass{article} \usepackage{xcolor,colortbl} ...
4
votes
2answers
390 views

Increasing the length between rows in a table

I have defined a new command to increase the length between rows in a table: \newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}} For example \documentclass[a4paper, 11pt]{article} ...
6
votes
1answer
301 views

Formatting a logical (PD) derivation

I'm trying to format a PD derivation but I'm having trouble getting subderivations to display well. Essentially what I'm trying to accomplish is this: 1 | P Assumption 2 | Q ...