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

10
votes
1answer
1k views

white text on black background in entire table

I am looking for a way have white text on black background in the PDF output of PDFLaTeX applied to a document containing a basic table with dividing lines and some colored links. Using ...
6
votes
1answer
647 views

How to place two ctables side by side

ctable, not a regular table/tabular. How can I get two narrow ctables to go side by side? I want them to be subtables of a larger table, just two independent tables side by side. I've tried using a ...
9
votes
4answers
2k views

Caption and footnote width with ctable

I am using ctable and I have a table with footnotes. Since the table is narrow, the caption text is squeezed in the table width, which looks odd. I can use mincapwidth to specify a minimum width for ...
10
votes
3answers
2k views

Centering table column titles above comma-aligned numbers

I am trying to make the following table look nice. With that I want the title to be centered horizontally, and the numbers to be alligned at comma. Here is how it looks now: And my code. ...
2
votes
1answer
287 views

Recreate efficiently this figure

I am writing a technical document, and I need to explain several steps of a construction which use matrices and linear equations. I was puzzled how I would create my figures and one paper I reference ...
4
votes
1answer
2k views

Full page table template

I am making a manual with LaTeX and at the end of the manual I want to insert a full-page blank table where I can have people sign to acknowledge that they have read the manual. Currently I am doing ...
4
votes
1answer
668 views

Table Spanning the Textwidth

I am trying to create a very simple, one row table that spans the linewidth. When I use the following command: \begin{tabular*}{\linewidth}{l@{\extracolsep{\fill}}r} Entry 1 & Entry 2 ...
1
vote
1answer
453 views

Horizontal and vertical alignment of a picture in a table

I want to align a picture in a cell of a table. Following works as I want for the text in the top left cell and the picture is already vertically aligned, but not horizontally: ...
9
votes
2answers
6k views

Footnotes tabularx-environment LaTeX

I've been trying to find a satisfying solution to the footnotes-in-tables-problem for hours now. Nothing I come across seems to work the way it should. Still, in the tabularx package documentation it ...
2
votes
1answer
332 views

Vertical justification and getting rid of extra line segments (in the first cell)

I am working on a table. My problem is that the text in the column "Type" for instance is not vertical justified. In addition I have an extra line segment at the bottom of the very first cell. ...
17
votes
1answer
1k views

Retrieve the color definition in HTML

I need to build a table of this type: STUFF | COLOR | PICTURE | COLOR DEFINITION To retrieve the color definition, I tried to use \extractcolorspecs expecting that the third argument { color-cmd ...
3
votes
1answer
541 views

Horizontal Filling with LaTeX Tabular

So, this is a case of "It's LaTeX, surely there's a better way of doing this." I've tried using tabular*, tabularx, and a few other things, but I don't quite get what I'm doing wrong with any of ...
2
votes
2answers
761 views

Using ctable package with apa6 class

I'm trying to use ctable since it's much easier to work with than threeparttable and all of its additional packages but I get an error stating that "Command \tnote already defined". I think it's ...
7
votes
1answer
25k views

how to fix the width of the columns in the latex table?

I have a table with long heading names. I want to fix the the width of the columns. When I do so the text flows out if the column. Any suggestion about fixing it. Here is the example ...
1
vote
1answer
1k views

Problem with htlatex and tables

Please consider the following minimal working example, let's call it mintab.tex (based on the example in here) \documentclass{article} \makeatletter \def\toprule{\noalign{\ifnum0=`}\fi \hrule ...
0
votes
1answer
681 views

Why doesn't the first column wrap text to its width?

I have the following code \documentclass[a4paper, 11pt]{article} \usepackage{multirow} \begin{document} \begin{tabular}{|p{2cm}|p{6cm}|p{1cm}|p{1cm}|p{1cm}|} \hline \multicolumn{2}{|c|}{} & ...
10
votes
2answers
210 views

Execute non-expandable code inside a tabular environment

As there is no Expandable version of \InputIfFileExists or \IfFileExists, the question arises whether it is possible to execute non-expandable code in a tabular environment after all: File main.tex: ...
15
votes
3answers
2k views

Expandable version of \InputIfFileExists or \IfFileExists

From this question: Cannot use \toprule when doing \input inside tabular -- why? I know that everything inside the tabular environment should better be expandable. The MWE below suggests that ...
4
votes
2answers
530 views

ConTeXt center tabular

In ConTeXt, a tabular environment evidently does not behave a centered context. e.g.: \startalignment[center] \starttabular \NC item one \NC item two \NC\NR \NC item three \NC ...
1
vote
2answers
936 views

Error in tabular code generated from Excel2LaTeX

I used Excel2LaTeX to create a table in LaTeX and here is the code that gives me an error. % Table generated by Excel2LaTeX from sheet 'Sheet1' \begin{table}[htbp] \centering \caption{Add ...
10
votes
3answers
11k views

Are there any tools that convert a table from MS Word to LaTeX tabular format?

I have a really big table in MS Word and would like to convert it to tabular format automatically. I'm using Texmaker and their quick tabular wizard is good but it doesn't let you copy paste data ...
8
votes
2answers
2k views

Cannot use \toprule when doing \input inside tabular — why?

Using \input inside a tabular environment does not seem to work in all cases, but I don't see why. The MWE below gives the following error message: ! Misplaced \noalign. \toprule ->\noalign ...
1
vote
2answers
3k views

Rotate table with caption: “Not in outer par mode. \begin{table}[h]”

I would like to rotate one table with caption however it returns me an error Missing \endgroup inserted ...omparação de Gerenciadores de Documento} Undefined control sequence \end{sideways} ...
6
votes
1answer
6k views

Adjust size and position of a PGFplots plot

I created a 2x2 array where each box contains a subfigure. For three subplots I use \addplot3 from PGFplots with colorbar and in the other, a \addplot. Due to the use of colorbar, the symmetry of the ...
6
votes
2answers
664 views

Hebrew vs. German/English translation side-by-side

I am having the following problem: I have Hebrew texts and want to put translations (and other information) right next to it in a nice way. (Previously I used the old Nisus Writer for Mac which for ...
6
votes
1answer
597 views

Add figure, which is a table, to the list of tables

I am converting my thesis from Word to LaTeX, and I saved several huge tables as images. For my thesis I have to compile a list of tables and figures. I am using \listoftables and \listoffigures. ...
3
votes
2answers
321 views

List spacing inside a table

Please take a look on the following example: \documentclass[a4paper]{article} \begin{document} \begin{tabular}{ |p{ \textwidth}| } \hline \begin{enumerate} \item Item in a list \end{enumerate} ...
6
votes
1answer
762 views

How to use table in mdframed?

I am working on report format using mdframed and I need to add table inside mdframed. \documentclass[11pt]{article} \usepackage[table]{xcolor} \usepackage{array,ragged2e} ...
2
votes
1answer
451 views

How can I get two tables side by side in landscape mode?

I'd like to get two tables side by side in landscape mode with an appendix title at the top. Here's what I've been working with: \documentclass{article} \usepackage{pdflscape} \begin{document} ...
2
votes
2answers
3k views

Bold \hlines for longtable

I've searched the topic and found the following two answers. Answer 1. LaTeX tables: How do I make bold horizontal lines (typically \hline)? The best answer suggests to use booktabs. However ...
2
votes
1answer
87 views

Help on a bug of table

I have problem in marking a table. I want to get rid of this line out there. \begin{table} [htp] \begin{center} \caption{AAA} \begin{tabular}{|c|c|c|c|c|c|} \hline ...
4
votes
1answer
210 views

How do I get m or b column specifiers working?

I have quite simple example: \documentclass[9pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[english,russian]{babel} \usepackage{PTSerif} \usepackage{array} \begin{document} ...
4
votes
1answer
368 views

Prevent multiple row header from splitting when using xtabular

Using the xtab package and the xtabular environment, I get my table header split when using several rows. Example: \noindent \begin{center} \small \tablefirsthead{% \hline & ...
10
votes
2answers
2k views

Table with colored rows alternating every n rows

I'd like to create a table where the background color of the rows changes every n>1 rows. I have seen in wikibooks how alternate rows can have different colors and I have looked at one xcolor ...
27
votes
7answers
38k views

Inserting a small vertical space in a table

Is there a way that I can insert a small space in a table? When I use a superscript, the number touches the \hline. \documentclass[9pt,letterpaper]{article} \usepackage{helvet} ...
47
votes
2answers
69k views

color only a cell of a table [duplicate]

Possible Duplicate: Color merged and regular cells in a table individually I tried to color only a cell of my table but I don't know how do it. I found the method to color an entire row.How ...
26
votes
2answers
36k views

Vertical spacing of a table cell

I want to tabulate formulas, but I find that the lines of the table cells are too close together, and this is aesthetically unsatisfactory. Example (formulae copied from wikipedia): ...
8
votes
2answers
412 views

Creating a table which spans verso and recto pages in ConTeXt?

I am preparing a book which contains information which is divided into three columns. The first column (A) occupies the full width of all verso pages. The second (B) and third (C) column share the ...
11
votes
5answers
1k views

problem with using loop inside the tabular environment

I am having trouble with using a loop inside a tabular environment: \newcounter{it} \setcounter{it}{0} \begin{tabular}{ll} \loop\ifnum\theit<4 \addtocounter{it}{1} Q & A\\ \repeat ...
4
votes
2answers
11k views

Changing Table Numbering Scheme to Include Section Number

When I create a table and use \caption, Latex automatically adds "Table 1.1" or something similarly numbered. I'm using the book format, and want the caption numbering to be of the form "Table x.y.z", ...
13
votes
5answers
2k views

What is the proper way to create a horizontal table?

I want to have a horizontal table, like this: However, when using the usual method of creating a table, it quickly becomes a pain having to pre-define the number of columns (especially since I ...
1
vote
1answer
3k views

Allow table to split across pages [duplicate]

Possible Duplicate: How can I make a table that takes up more than a single page? Is there a way to allow tabular environment to split across two pages? I build an environment which uses ...
20
votes
3answers
3k views

How do I create a Shidoku grid?

I can't figure out how to create a Shidoku grid using LaTeX. In other words, I am trying to have a 4x4 grid with a bold line separating the 2x2 subsquares. I have the sudoku package but it won't ...
2
votes
0answers
917 views

sidewaystable will not plot side ways [closed]

I am unable to get a sidewaystable to plot even with simple documents. I've copied this code directly and I can get it to plot as a normal table. It does not work when I change it to sideways. Does ...
7
votes
2answers
14k views

Stop table going off page

I'm aware that my table is too wide as it keeps going off the page on the right. Is there a way to fix this? I'm using lyx as I am a learner.
5
votes
3answers
906 views

siunitx: Alignment Problems with numbers in parenthesis

The example given below gives me a strange offset in 4th decimal place in the parenthesis. Interestingly, this problem arose only after I updated my Miktex 2.8 to Miktex 2.9. I don't know whats ...
0
votes
2answers
765 views

How to create a new command with variable numbers of arguments

I am creating one command to define a functional requirement and many non functional requeriment in a table. I wrote the following code: \newcounter{Number} ...
6
votes
2answers
4k views

How to set equal size of cells in tabular environment when \multicolumn extend the size of above cell?

The code example is shown as follows: \documentclass{article} \usepackage{latexsym} \usepackage{bm} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsmath} \begin{document} \begin{center} ...
2
votes
1answer
615 views

Formatting raggedright in booktabs. Why am I getting a \noalign error?

I have a \sidewaystable that is also a \threeparttable. I'm trying to produce it using booktabs. In the shape columns there are words with more than 8 letters that TeX keeps hyphenating. The column ...
20
votes
4answers
2k views

A table with square cells

A friend is trying to make some auto-generated bingo boards, and LaTeX seems like an obvious choice - nothing fancy, just a 5x5 table with square cells, centered text, and line wrapping if necessary. ...