Tagged Questions

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

9
votes
3answers
731 views

Multicolumn 3 out of 6 doesn't work

I'm trying to make a multicolumn in a 7 columns tabular. \documentclass{article} \begin{document} \begin{tabular}{|l|l|l|l|l|l|l|} \hline & \multicolumn{6}{c|}{Parameters}\\ \hline We don't care ...
4
votes
2answers
156 views

Insert text line in array

I am looking for a (clean) way to keep text aligned in a situation like the following: thesis under the direction of: [tab] Title [&] Name [&] University with the supervision of: ...
5
votes
1answer
1k views

siunitx: How to get bold, aligned entries and how to align when units differ in length?

I tried my first steps with siunitx, but I have trouble achieving the following in the minimal example below: 1) aligning the entries in the first column with respect to the decimal dot 2) getting a ...
14
votes
1answer
12k views

Change caption font size

I want to change the font size of a single rotated table caption (definitely not all the captions in all my tables/figures) Right now I can wrap the text inside the \caption around a \scriptsize{} ...
4
votes
2answers
508 views

Alignment troubles with tabular, pgfuseimage and multirows

I'm stuck with some alignment problems in tabular: and in draft mode: The point is that the bottom left one should take the whole space without overflooding the bottom (so to speak) The original ...
1
vote
2answers
2k views

Align table caption with left border of longtable

Subj. I cannot use singlelinecheck=off because it aligns it to the left border of the page. And why table is too narrow? \documentclass[12pt,a4paper,oneside]{article} ...
7
votes
3answers
395 views

How to execute command on every table column

I have a table where I have to execute the same command for every entry in the table. For example: \ibibleverse{Matthew}(1:1) & \ibibleverse{Mark}(1:1) & \ibibleverse{Luke}(1:1) \\ ...
3
votes
2answers
594 views

Wrap text in tables in rubber columns

I can use p{}, m{} or r{} but I shall pass a fixed size. Is there a way to do it with rubber columns?
4
votes
1answer
292 views

Can I use \lstinline for table column?

I want to apply \lstinline to one of the columns. I don't like idea to put it in every cell manually. I am trying to do \begin{table} \begin{center} \begin{tabular}{| >{\lstinline}l | ...
11
votes
1answer
364 views

alignment of table numbers

why the numbers indicated from the arrows are not aligned compared to the columns above ? \documentclass[border=10.0mm]{standalone} \usepackage{booktabs,caption} \usepackage{siunitx} \sisetup{% ...
4
votes
1answer
2k views

Beamer table drop shadow

I'm trying to design a good-looking table with Beamer. I'm following the tutorial here. In page 8 of that tutorial, the table is very nice, with alternating colored rows and a pleasant drop-shadow. ...
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 ...
4
votes
2answers
576 views

How to center numbers beneath a \multicolumn row in a table

I am making tables containing a column with number intervals, i.e. two numbers separated with a "--" or a single number preceded with a "<" or a ">". I have tried to center the position of the ...
12
votes
1answer
34k views

horizontally center table

Strangely in this MWE the table is shifted to the left but in my original document I have exactly the same code but the table is centered. Can anyone solve the mystery? \documentclass{article} ...
2
votes
2answers
147 views

Aligning the tops of two tabularx environments

I have used the following to place two tabularx environments next to each other \begin{table} \begin{center} \begin{tabularx}{190pt}{l} \toprule ... Content ... \bottomrule \end{tabularx} \quad ...
2
votes
1answer
340 views

gradient of color in one cell follow up question

So I have a gradient in my cell using TikZ, which is nice. However I still have a few problems: The text itself has its color changed, whereas I would want only the background color to be changed. ...
5
votes
1answer
1k views

Ltablex customize caption

I use ltablex package for creating tables. How can i change the caption name for the continuation of the table, as in the picture?
1
vote
0answers
43 views

Table fixed width [duplicate]

Possible Duplicate: How to obtain width of longtable? I have many tables that I create with longtable or ltablex. How can I make all tables the same width?
11
votes
1answer
1k views

TikZ: how to draw chained tabular material

I am new to TikZ, and this is probably regarded as do-my-homework-for-me question. I'd like to draw a diagram like this: First I need the very basic help on the segments themselves. I have tried ...
6
votes
3answers
2k views

Alternating row color two at a time in tables

How can I achieve alternating row colors in tables for two rows at a time? So two rows should have the same color, then two other rows, and so on. In the following example Bla1 & reference1 \\ ...
1
vote
0answers
81 views

Issue with itemize inside a tabular [duplicate]

Possible Duplicate: Enumerate/itemize without margins in table cell best practice I'm new to LaTeX. I'm trying to create a tabular and I'm facing the following small issue. I have one ...
25
votes
2answers
2k views

Gradient color in one cell of a table

I'm trying to create a tabular and I'm facing the following small issue. I would like to make the background of one cell a gradient color. Is it easy to do that in LaTeX? And if so, how to do it?
1
vote
1answer
157 views

tabular various issues

I'm new to LaTeX. I'm trying to create a tabular and I'm facing various small issues. I would like to create a tabular with two columns, the second one being multiline. I found out I can use p{} to ...
7
votes
1answer
784 views

tables with column width that depends on the width of table entries

Is there an easy way to specify that a table should have columns of a width such that the beginning of a each new column is of a user-specified and column-independent distance to the end of the ...
1
vote
1answer
444 views

captions on animation within tabular

I am trying to make a beamer frame with 4 animations on it. I am currently arranging them in a tabular with 2 col and 2 rows. \begin{tabular}{cc} \animategraphics[...animation arguments ...
7
votes
0answers
217 views

Strange problem with frames (ConTeXt tables) [closed]

Leads to a bug report on the ConTeXt mailing list: [dev-context] bTABLE in header and document give unexpected behavior When using this code I get a problem with the frame around the header on ...
3
votes
1answer
1k views

Differences between tabular and tabularx

What is the difference between the tabular and the tabularx environements? Which one should I use for placing a row of pictures?
4
votes
2answers
1k views

table not fitting

Ciao guys, I need to make the table below have certain properties To fit onto the page. And then making the columns evenly spaced even if it means breaking up the long column label. ...
1
vote
0answers
70 views

Table with horizontal line that doesn't span all columns [duplicate]

Possible Duplicate: How can I draw a horizontal line spanning only some of the table cells? I need to recreate table 12 of this document manually (because unfortunately this automatic ...
5
votes
1answer
626 views

error in table output

I am using stata, a statistical software. It has a program called -tabout-, that generates output (basically tables containing descriptive statistics incl means of variables etc) code for TeX. ...
1
vote
1answer
419 views

How to show column names of table from text file on the top of every page?

I have a table stored in text file. I want to insert the table into LaTeX and keep the column names appearing on the top of every page. I tried the code as below, but it doesn't work. Could anybody ...
8
votes
2answers
377 views

Is there a standard package to create a table like this?

Is there a fast and efficient way to create a table with a vertical arrow like this? A suitable reference or a snippet of LaTeX code would be much appreciated.
0
votes
0answers
40 views

Specific layout when adding nornmal text below a tabular in a table-environment [duplicate]

Possible Duplicate: Align Note below table I have a tabular inside a table-environment and wish to add some explanatory text directly below the tabular within the float. Of course I know ...
4
votes
1answer
881 views

Using \uncover in beamer with a counter

I am using a table in my presentation and it is ordered by date but I want some major dates to be visible on the first slide and all other dates to become visible slide by slide. I thought it would ...
9
votes
1answer
10k views

The space between the table and its caption is very small

I have a table written like this: \begin{table} \centering \begin{tabular}{|l||c|c|} \hline&Column 1&Column 2\\ \hline\hline cell1 & cell2 & cell3 \\ ...
0
votes
1answer
536 views

How to make table with divided column [duplicate]

Possible Duplicate: How to merge columns in a table? How can I make a table of the type above? I am writing a seminar report using the report class.
3
votes
1answer
2k views

Table and Figure Caption Citation Problem

When I build a LaTeX code, the references to figures and tables labels are not recognized, so latex builder prints "?" in the place. And simplifying the entire text I found out that even the simple ...
4
votes
1answer
364 views

Correct longtable \multicolumn exceeding page boundaries/margins

I have problem with some of the longtable tables, as illustrated here: Is there an easy way to make table wrap cell contents multi-line so that it does not exceed page margins?
15
votes
2answers
802 views

Tables: Colouring odd/even mixed up

I have a huge document (around 100 pages) and a lot of tables in it. I used \usepackage[table]{xcolor} \definecolor{lightblue}{rgb}{0.93,0.95,1.0} \rowcolors{1}{white}{lightblue} % odd = white, even ...
11
votes
2answers
209 views

Is there such thing as “p{height}”

I am making a table right now and it's really annoying that items in my cell are getting crunched \begin{center} \begin{tabular}{|c| c | c|} Critical Points $P_0$ & $f(P_0)$ & Conclusion \\ ...
5
votes
1answer
266 views

formatting natural table header with conTeXt

I am struggling with my table formatting a bit and hope there is someone around here that can give me some help. This is the table I have at the moment. \bTABLE \startTABLEhead \bTR \bTD ...
5
votes
1answer
313 views

Auto generating table

In the following scheme, why do I have to hide & in a macro (\samp) before it works? \documentclass{article} \usepackage{catoptions} \makeatletter \cptnewcounts{rowcnt,colcnt,maxrow,maxcol} ...
5
votes
2answers
587 views

Custom environments with multicolumn header

I tried to create an environment that creates a tabular frame around the content of the environment. For instance: \begin{tabular}{|l|l|} \hline \multicolumn{2}{|c|}{Team sheet} \\ \hline ...
7
votes
3answers
988 views

Keep first column on every page of long sideways-table

I have a table with a lot of columns, so I am going to make it landscape.The very first column is a sort of header, so I would like to repeat it on every page. Is there a way to do that?
3
votes
1answer
3k views

Tabbing within a table cell

This is a MWE but it will not work however would give the idea of what I am doing. \documentclass[fleqn,12pt,a4paper]{article} \RequirePackage{myPackage} \begin{longtable}{p{2cm}p{12cm}p{1.5cm}} ...
2
votes
1answer
3k views

Problem with multirow and table cell borders

I'm pulling my hair with the rendering of table cell borders when using multirow and multicol. In the below example, the double-lines in the table's "header" do not extend to the table top, and even ...
22
votes
1answer
1k views

How to enumerate the rows of a table

I want to automatically enumerate the text rows of a table. Is there an option within tabular, or another package? (Of course I do not want the rules to be enumerated.)
1
vote
1answer
413 views

How to top align all rows in table by keeping fixed width?

I am working on a LaTeX table and R, but I am facing some problems concerning column width and alignment. cat("\\centering","\n") cat("\\rowcolors{2}{burlywood1}{white}","\n") ...
2
votes
1answer
3k views

ctable cell vertical align

I have a table like this: \documentclass{article} \usepackage{ctable} \begin{document} \ctable [caption=Sample] {|p{2cm}|c|} {} { \hline some multiline (2 or 3 fields) field & need to ...
4
votes
2answers
6k views

LaTeX table frustratingly too wide

I'm getting really frustrated. I want to enter the following table into my LaTeX document, but the first and third columns refuse to narrow so it is too wide. Can someone please tell me what I am ...