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

4
votes
1answer
418 views

Too long hyperlink can not fit on page

I have a problem with a too long hyperlink. This reference is one word, but it is too long and doesn't set the text width, so some part is pushed beyond the margin: ...
5
votes
1answer
520 views

tabularx and formatting entire column

This is obliquely related to this query, except that I would like to have a tabularx environment where the entire first column is in italics (or some other standard formatting). The following ...
2
votes
1answer
106 views

Enumerated column in tabular

How can I have a column in a tabular environment so that the first column is automatically produced? Something like this: \begin{table} \begin{tabular}{lc} Step & Comments \\ 1st & a \\ 2nd ...
6
votes
1answer
736 views

Size of equations in tables

I'm trying to insert multiple equations in a tabular environment in LaTeX. My problem is simple yet I haven't found any particular solution to it: the equations displayed are too small, and I'd like ...
3
votes
1answer
444 views

pgfplotstable selecting numeric columns or multiple columns by index

Hi two questions in one: I haven't been able to figure out the answer from the manual: I have a table of data with strings in the first column: I'd like to apply some key-values (e.g. fonts by ...
5
votes
1answer
250 views

Who can solve my text positioning problem in my colored tabu header row?

I've a positioning problem in my tabu header. If I define the text color with rowfont, the text in that row will jumping around like a rabbit. \documentclass[]{scrlttr2} \usepackage[utf8]{inputenc} ...
2
votes
1answer
4k views

Subtables, column separate line draws out of table

I am using subtable environment to put two tables side by side. However, the column separate line between the first two columns draws out of the table. Anyone can help with this issue? Sample code ...
9
votes
2answers
269 views

How to put a list and an equation side by side

I'd like to get a list and an equation side by side so that I fill the page width better for aesthetic reasons, I've tried the following but doesn't compile: \begin{tabular}{cc} Known values: ...
2
votes
1answer
323 views

Text running through table cell after forced linebreak

I’m trying to fit some text in a table, but the text keeps running through the table cells. I’ve already specified a fixed column width for the text using the p{} command. Initially, this worked, but ...
6
votes
1answer
660 views

Adjust vertical spacing in tabular containing \href

I seem to be stumped by what seems like a basic tabular spacing issue (when an \href is used). The obvious solution of tweaking arraystretch does not seem to work. What I want is that the output of ...
4
votes
1answer
238 views

How to make tabularx columns using \whiledo?

My question is similar to that discussed in How to programmatically make tabular rows using `\whiledo` ?. The difference is that I want to produce columns rather than rows with using \whiledo. ...
2
votes
1answer
2k views

Colored text in table is floating

Currently I am trying to create a table in which one column contains colored text. However, the color differs per cell. See the example code below, where the last column contains the (possibly) ...
3
votes
2answers
6k views

How to put a formula into a table cell

I need to insert into a table cell a formula that requires the summation sign and I apparently do something wrong and the compiler just throws me back errors and I really don't know how to solve this. ...
1
vote
0answers
708 views

Heatmap Table with Latex and Tikz [duplicate]

Possible Duplicate: Parametrize shading in table through TikZ Drawing heatmaps using TikZ is there a way to generate heatmap like tables in LaTeX, for example with tikz? I have a really ...
4
votes
2answers
355 views

Table with two columns aligned, one not aligned

I'm trying to make a table with three columns, the first two being aligned on a row-by-row basis (the usual way) but with the third column only aligning with the first two at the top. Here's what ...
3
votes
1answer
2k views

how to prevent cell color to cover table's borders?

When I change the background color of a cell in a table, the color covers the borders, however I want the horizontal lines to remain. I have a simple command \cellcolor[gray]{0.9} in my table. Can ...
9
votes
2answers
614 views

Table with partially colored cells

I convinced my girlfriend to write her thesis with Latex, so now whenever she gets stuck I'm the go to guy. Sadly she has requested something of me which I don't know either. She needs a table in ...
6
votes
3answers
2k views

How can I mix itemize and tabular environments?

I have the following list: \begin{itemize} \item És associativa:$\qquad(x+y)+z=x+(y+z)$ \item És commutativa:$\qquad x+y=y+x$ \item Té element neutre:$\qquad\exists 0\in\K : 0+x=x+0=x$ ...
3
votes
1answer
345 views

Table with fixed width centering won't compile

All, I don't think I've ever been this stuck. The following compiles. But if I uncomment the commented line, it does not compile. What am I doing wrong? \documentclass[11pt]{article} ...
2
votes
1answer
243 views

Add image and line break within a table

I want to create a rather mysterious table with both a line brake in a single row and an image. You understand that I cannot use a new row without \hline because I want to add an image at the same ...
5
votes
1answer
434 views

Trouble with nested tables

I am using nested table environments in the following snippet: \begin{document} \noindent \begin{tabularx}{\textwidth}{rX lX} COURSEWORK & Machine Learning, Probabilitistic Learning, ...
0
votes
1answer
240 views

tables from excel to tex [duplicate]

Possible Duplicate: Comprehensive list of tools that simplify the generation of LaTeX tables I have some tables in excel. I use excel2latex to generate the LaTeX code to insert them into ...
6
votes
1answer
166 views

Boxing some cells in tabular enviroment

I would like to make a table in LaTeX, where I box some of the cells within my table. And I would like to be able to nest boxes so that I can have a box in a box. Here I have an example of what I ...
3
votes
2answers
408 views

column separation lines now showing up in table

I have the following code that produces the table that is shown. What I am trying to do is to get the fourth and fifth column titles vertically aligned at the top. Is this possible? ...
7
votes
1answer
7k views

Errors in tables then runaway argument at \begin{document}

I am new to LaTeX and keep having this re-occurring problem. I create a table and notice a mistake (incorrectly specifying the number of columns or something) because the pdf won't compile (I am using ...
3
votes
1answer
1k views

want table to look like this

I use lyx with elsarticle class with two-column document but I made span columns so table will span over the two columns. I tried it with adding the caption package: ...
1
vote
1answer
111 views

Order of `float` and `caption` packages in preamble

I am using float and caption packages in my document, and also packages like tabularx, listings, algorithm... that (as far as I know) define floating elements or elements that have captions ...
6
votes
3answers
2k views

Drawing vertical arrow to a table column

I would like to draw an arrow to the center of a table column as the following. How can I do that?
6
votes
1answer
159 views

Centering in tabular does not work

The following is a minimal example of a table I am defining. The first row ($v_1$ and $v_2$) are not centered, but the subsequent rows are. What am I doing wrong? \documentclass{article} ...
2
votes
2answers
207 views

How to arrange / align / place pictures and text, to form a given headline?

I tried to solve this with tables, but the alignment didn't turn out good. And because I am very confused, if I should even use a table aproach or a minipage or a tabspace, I wondered, if someone ...
2
votes
1answer
3k views

how to \multicolumn in booktabs?

Following is my code: \documentclass[a4paper,10pt]{article} %\documentclass[a4paper,10pt]{scrartcl} \usepackage[utf8x]{inputenc} \usepackage{booktabs} \begin{document} \begin{table}[htbp] ...
2
votes
1answer
109 views

How to continue a piece of text so it is aligned with the last line of an inline multiline box?

Is there a way to have the continuation of a piece of text aligned with the last line of a multiline environment, such as array? For example, I would like to define the command ...
5
votes
1answer
469 views

Generate box with content in header

Halo everyone, I intend to create the one as shown in the attached photo as the header of my document using TeX but I can't seem to get it right. Either my box are distorted or they can't be balance ...
3
votes
1answer
176 views

ConTeXt mkiv: Footnote inside tabulation

I need to include a \footnote inside a tabulation environment. I adapted the example from ConTeXt wiki, but at compiling the content between \starttabulatehead and \stoptabulatehead doesn't show up ...
7
votes
1answer
276 views

Row with invisible cells

Is there any easy way to obtain something like this in LaTeX? My guess was to try to make the first and third cell of the first row invisible, but then I lose the right and left border of the Main ...
4
votes
2answers
2k views

Vertical and horizontal alignment with tabu package

Another question led me to use tabu for the purpose of fitting one column to its content while allowing the others to stretch equally. This is my current code: \documentclass{article} ...
2
votes
1answer
289 views

Automatically change the text width for all table environments using memoir

I'd like to redefine the table environment in a document I'm writing so that the tables and captions are wider than the text block. I'm using the memoir class, and an example given in the manual is ...
3
votes
1answer
238 views

A macro for looping through a pgfplotstable set by cell

Hi following on from the following question on multi-line headers with pgfplotstable, the solution was to set each affected cell individually. I decided to throw together a command to do that but keep ...
17
votes
1answer
617 views

automatically insert data in a complex table

I have a relatively complex table that looks like this: The same table structure is going to be repeated so many times. I already have the tables in MS Word. My question is if there is an easy ...
2
votes
3answers
2k views

Control column width with left alignment in tabular

I want to make a table with a bigger than default column width for the first column. The text in this column should be left aligned. Here is my code. \begin{tabular}{llll|l} Address1 ...
7
votes
1answer
502 views

Lost float in exam class

For some reason, I can't seem to put a figure or a table environment inside a solution environment while using the exam class. It produces a float is lost error. Has anyone found a way to bypass this ...
5
votes
1answer
140 views

Text wrap in multicols

The following LaTex code (credit) features a table within muticols: \usepackage{multicol} ... \begin{multicols}{3} \subsubsection{Another Subsubsection} Lorem ipsum dolor sit amet, consectetur ...
3
votes
1answer
618 views

siunitx align numrange

ave a table with a table in which I use \numrange of the siunitx package. I would like to center align that column at the range-phrase. If I align it left, it sort of works, but if I align it center, ...
2
votes
1answer
290 views

How can I vertically fit a large table to the page?

I am trying to fit my large vertical table into one page... I started with \documentclass[a4paper,12pt]{report} \usepackage[pdftex]{graphicx} \usepackage{booktabs} \begin{document} \rotatebox{90}{ ...
4
votes
1answer
457 views

Multi line header for pgfplotstable

I have a dataset in csv file format that I'm loading into pgfplotstable. I can't change the format of the original csv, and being financial data it has a column of item names and two or three ...
6
votes
1answer
2k views

Tikz inside table

I want to create a two column question with a Tikz shape. The problem here is that I cannot align the text and the shape. Text should have a left-top alignment, shape can have either center-center or ...
2
votes
2answers
3k views

Center table on landscape page

I have a rather wide table for which I have a designated page in landscape mode. The rest of the document is in portrait mode. Currently, the first row of the table begins at the very top of the page ...
1
vote
1answer
423 views

Putting footnotes on same page as table that references them

I've got a \tabularx with two \footnote marks immediately followed by two \footnotetext. I would like them to show up on the same page, but tex is pushing the table to the following page making ...
6
votes
3answers
489 views

Build table with different cells sizes

I have written this code for the table shown bellow on the left but I like to make some modifications so it looks like the table on the right. Can you help me? ...
3
votes
1answer
2k views

Line spacing in wrapped table text

I have a document where the text is set to double spacing. I have some text inside tables, which I use the paragraphy specifier for. It wraps properly, but spacing is set to single. Is it possible to ...