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

3
votes
3answers
144 views

Bad vertical alignment in latex \tabular

I've got a little question about my tabular vertical aligment. I've a two-column tabular with letter and text : \begin{tabular}{p{0.1\textwidth} p{0.8\textwidth} } Hypothèse & Description\\ ...
7
votes
1answer
987 views

How to create a table with merged columns and rows, and wrapped text, like in MS Word?

The above can easily be created in MS word, but how can I create something like this in latex? Basically changing the columns for specific cells, merging a bunch of cells together, wrapping text in ...
4
votes
1answer
317 views

wrapping a rotated table

I have a rather wide table that doesn't fit to page width, so I rotated it. The fit is nice, but my idea was to have text wrapped around this rotated table. So far I found two choices that are ...
7
votes
2answers
107 views

Setting an “attribute” for Theorem to be accessed later

I am writing a math paper with a large number of theorems. I'm looking to have a table summarizing my results, and I'd love it if the table could be generated automatically from my paper. I' looking ...
7
votes
3answers
161 views

tabular environment that is similar to html

How can I simulate a HTML table? That is: I want to give the table a maximum width (for example \textwidth) and the table should automatically distribute the necessary space according to the contents ...
4
votes
1answer
224 views

pgfplotstable: Why does `postproc cell content` not work properly when used within a style?

I use pgfplotstable and want to post-format a specific column. Among other things I need to duplicate its content. My problem is that postproc cell content works fine as a direct parameter to ...
10
votes
3answers
7k views

Fill space with dots within table

I would like the whitespace between two items within a table to be filled with dots. Please consider the following picture to get the idea. So far I tried to achieve this output with the following ...
2
votes
1answer
153 views

How can I stop my description text from going beyond the margin

The text is going over my page. How can i fix that? \documentclass[DIV=15, paper=a4, paper=portrait, pagesize=auto]{scrartcl} \usepackage[inline]{enumitem} \usepackage[table]{xcolor} ...
1
vote
0answers
42 views

How to set foreground (text) color in xcolor table? [duplicate]

How do I pick the foreground (text) color in xcolor table for the whole row? such that the letters appear white with blue background in this table (instead of black which is bad for constrast): ...
1
vote
3answers
2k views

Center-align text in columns in tabular environment in multicol environment

I need the text in the second two columns to be center-aligned. I also need someone to please help me clean up this table. It looks ugly. Notice it is inside a multicolumn (2-column) environment, ...
5
votes
3answers
650 views

How to span over variable number of cells?

I'm looking for a macro to span all cells in a tabu environment to get category headers in tables. This example does what I need for two columns. \begin{tabu} {XX} abc & def \\ ...
9
votes
1answer
913 views

Making a nice table

I have made following table which is not looking elegant. Could anybody help me in making it more better. Following is the tex code that I have used. \documentclass[12pt]{article} ...
3
votes
1answer
47 views

How can one adjust each text to the center for each box of the table?

Here is the example: \begin{tabularx}{\textwidth}{ |X|X|X|X|X| } \hline Equation & 2 & 3 & 5 & 7 \\ \hline $y_0 = b^{t}$ & -483061 & 1 & -174089 & 793599 \\ \hline ...
6
votes
2answers
249 views

Why doesn't LaTeX vertically center contents of table cells by default?

Or perhaps provides an easier way to do so? Most tables rendered (that I have witnessed) seem to require vertical centering of content in table cells, purely for aesthetics. So what is the reason that ...
3
votes
1answer
412 views

Automated table for excercise points in tikz

I'm a computer science student. And I write most of my excercises in LaTeX. So I often have to create a table for excercise points, with different numbers of excercises and different amounts of points ...
4
votes
1answer
2k views

pgfplotstableread fails to read the input file

I am trying to typeset two different tables in a moderately large document. The data for the tables are written as comma-separated values in two different .csv files. I am including the different ...
3
votes
1answer
291 views

Postprocess row with pgfplotstable

I am trying to surround all elements in a specific table row with square brackets, using postproc cell content in pgfplotstable. As shown in the MWE, it works well for processing a column, but not ...
3
votes
1answer
926 views

How to change font type face only in table environment?

Why doesn't the \ttdefault change the font in the table? I want to change font for a single table only. \begin{table}[h!] \singlespacing \footnotesize \ttdefault \caption{Some caption.} ...
2
votes
1answer
271 views

text grouped style in sidewaystable

I have a problem with my sidewaystable. I have quite a lot text in one of my columns. I have used tabularx so that the text doesn't run out of the page at the right side. Now the text is in grouped ...
4
votes
1answer
2k views

Citing a reference in a table

I was preparing a table in my research paper where I was having a formula in one column and the name of the Mathematician who discovered it in another column. I also want to cite the paper of the ...
3
votes
1answer
309 views

How to create a table like I do in Word

I searched for examples with Google about how to create a table like this with LaTeX but nothing can help me, so I just make the question here.
0
votes
1answer
693 views

LaTeX \bar in table [duplicate]

I'm very new to Latex. So i want to put a \bar W in a table but the bar is covered by the horizontal line of table.So it becomes invisible. I tried adding \noalign{\smallskip} after \hline but it cuts ...
7
votes
6answers
8k views

Aligning paragraph inside a tabular

Consider the following code: \documentclass{article} \begin{document} \begin{tabular}{|p{5cm}|} \hline \textbf{item 1:} These are some texts to just fill in the first line. \tabularnewline ...
6
votes
1answer
353 views

Multirow in multirow

I am trying to get this to work. It is supposed to have a cell (that was already created with multirow) with three rows but I do not know how to get it to work. I am using shortstack to get it, but ...
3
votes
2answers
298 views

Table column spacing: right most column has too much space, should be shared

I made a table. It has 5 columns, the last 4 centered. Right now, they are not evenly spaced. Namely, the last column is way too far from the others. How do I go about fixing this? Here is the code ...
0
votes
1answer
323 views

Too many errors while trying to create a table

\begin{table}[h] \begin{tabular}{ c c} \hline Hypothesis & Belief & Plausibility \\ \hline Null & 0 & 0 \\ Red & 0.2 & 0.6 \\ Green & 0.15 & 0.6 \\ Blue & ...
10
votes
2answers
14k views

\cellcolor overwrites table lines

I have a table which I want to fill with multiple colors, each cell possibly different from another. Which means, I can't make use of e.g. \columncolor (as in this post). While the table without any ...
0
votes
1answer
194 views

How can i auto resize the column according to content

I use this code: \begin{table}[H] \caption{Offsets 2} \centering \begin{tabular}{*{6}{|c}} \hline\hline \rowcolor{orange} student status & location type & outside region & approved ...
0
votes
1answer
116 views

Add column in a multicolumn table [closed]

This is my code \begin{tabular}{|c|c|} \hline Genre&Prénom\\\hline Humain&Aragorn\\\hline \multirow{4}{*}{Hobbit}&Frodon\\\cline{2-2} &Sam\\\cline{2-2} &Peregrin\\\cline{2-2} ...
9
votes
3answers
608 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) \\ ...
2
votes
1answer
178 views

What packages do I need to learn as developer to learn LaTeX?

I am a web developer and I often have the need to convert the the webpage to pdf. I have just discovered latex and pretty much liked it. But as there are many packages available , I am not into book ...
10
votes
3answers
12k views

Set longtable to fit the page-width

I would like to set a longtable to fit correctly the page-witdh. From now, I've this situation: and the related tex code is: \usepackage{array} \usepackage{multirow} \usepackage{longtable} ...
1
vote
1answer
5k 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
555 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
681 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
2k 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 ...
4
votes
3answers
674 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
996 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{} ...
6
votes
3answers
4k 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
560 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
221 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 ...
5
votes
1answer
106 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
342 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
374 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
317 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] ...
6
votes
1answer
3k 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, ...
3
votes
1answer
132 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 ...