{tabularx} is a package that defines an environment tabularx, an extension of tabular which has an additional column designator, X, which creates a paragraph-like column whose width automatically expands so that the declared width of the environment is filled.

learn more… | top users | synonyms

12
votes
3answers
4k views

Centering in tabularx and X columns

How can I center the column when using X in tabularx environment like in this example? \begin{tabularx}{\textwidth}{@{}lXXXXX@{}} 1 & 2 & 3 & 4 & 5 \\ \end{tabularx}
1
vote
1answer
619 views

Visual editor for multi-column table layout [duplicate]

Possible Duplicate: Comprehensive list of tools that simplify the generation of LaTeX tables Is there a visual tool which can generate tex code for more complex tables as shown? The idea is ...
3
votes
2answers
1k views

Using tabularx, multirow, and parbox for line-wrapping

I am using a multirow inside a tabularx, but because the multirow doesn't wrap, I am putting the multirow's text inside a parbox environment: \begin{tabularx}{\textwidth}{@{}XX@{}} \toprule blah ...
2
votes
1answer
423 views

How do I typeset a table with a caption within a tabularx within another table with a caption?

Unfortunately, it keeps bugging me with forgotten \endgroup, float(s) lost, not in outer par mode and so on. In other words, why can't I do something like this (the actual table is significantly more ...
7
votes
3answers
373 views

Is it possible to make an underfull tabulary spread out?

With this MWE \documentclass{article} \usepackage{tabulary} \begin{document} \hrule \begin{center} \begin{tabulary}{\textwidth}{|L|L|L|} foo&bar&baz \end{tabulary} \end{center} ...
3
votes
2answers
231 views

How to align table properly using tabularx

\subsection{Computed Results} To prove the accuracy of the implementation there was a need to show that the answers that the application provides are within an acceptable range for the results. For ...
0
votes
1answer
84 views

Text misalign when using resizebox

I have the following code: \documentclass[a4paper,landscape,12pt,oneside]{scrbook} \usepackage[english]{babel} % Quotes won't work without babel \usepackage[utf8]{inputenc} % This is very ...
10
votes
2answers
14k views

Table layout with tabularx (column widths: 50%|25%|25%)

This code produces a table with three centered column: \begin{table}[htbp] \centering \begin{tabularx}{\textwidth}{| c | c | c |} \hline Alpha     & Beta     & Gamma   ...
0
votes
1answer
80 views

Creating custom tabularx

I am trying to create a new environment in order to change the layout for tabularx, since the original is not looking like it should. I want the picture to be on the right side wrapped by the text. My ...
1
vote
1answer
6k views

Missing number, treated as zero. What is wrong in here? [closed]

\documentclass[a4paper,12pt]{article} \usepackage[dutch]{babel} % Quotes won't work without babel \usepackage[utf8]{inputenc} % This is very important! \usepackage[T1]{fontenc} \usepackage{graphicx} ...
5
votes
3answers
5k views

Formatting table border and text alignment in LaTeX table

I have the following table in the .tex file: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table}[htbp] \centering \caption{Distribution of Number of Injured ...
11
votes
1answer
625 views

Tables in Latex with diagonal first row

I'm trying to create a table with a diagonal first row, like in how-to-draw-diagonal-table-borders-in-latex-like-in-excel I've looked through the documentation for PGF-TiKZ, but am still unsure as to ...
1
vote
1answer
282 views

Color lines tabularx add padding? [duplicate]

Possible Duplicate: Color changes cell height in tabular The following latex table contains two rows. The rows are identical, except for the greeen color in the first cell in the second ...
3
votes
1answer
716 views

Vertical alignment with multirow in tabularx

I have looked around for a solution that allows me to vertically centrally align a multirow row that spans two intermediate rows, which potentially span multiple lines since the tabular environment is ...
7
votes
1answer
519 views

How to change the alignment of a tabularx within an easylist?

I'm probably missing something super obvious, but my searching has turned up nothing. I want to put a table in the middle of an outline that I'm making with the easylist package. The table is coming ...
5
votes
1answer
466 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 ...
4
votes
1answer
228 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
3answers
963 views

How to have an itemize inside a tabularx

I am trying to have an itemize inside one of the columns in a tabularx, but when trying to compile this code: \begin{table} ...
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 ...
5
votes
1answer
399 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, ...
3
votes
2answers
427 views

tabularx and array

I need two things for my tables: text has to be able to wrap. the first row has to be bold For 1, I need the package tabularx. For 2, I need the package array and quite a lot of commands (see Make ...
1
vote
1answer
403 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 ...
1
vote
1answer
182 views

Stacking tables with the geometry package included

I am new to LaTeX. I am trying to stack tables one on top of another but I seem to be having a problem doing that while including the geometry package. I am doing this in order to simulate very ...
4
votes
3answers
179 views

How to create a table with a headline centered and columns centered?

I use the following code to create a table with a centered headline. \begin{tabularx}{\textwidth}{l|X} \multicolumn{2}{c}{Headline centered} \\ \hline Column1 & Column2 which should be ...
6
votes
1answer
131 views

Filling out page with tabular (width and height) with evently

I'm trying to make sticky labels with LaTeX. I thought this would be pretty simple because of LaTeX's nice support of absolute units, but it turned out to be quite difficult. This is the specification ...
4
votes
2answers
3k views

Tabularx can't center some column

I'm trying to create a timetable using tabularx environment, but i can't find a way to center all columns. Using this code: \documentclass[11pt,oneside, landscape]{article} ...
4
votes
1answer
486 views

Positioning of text in cells/tables

I want LaTeX to place the text of some of the cells in my table (using tabularx) at the bottom of the cell. Right now all the text I write in the cells will be positioned at the top of each cell. Can ...
3
votes
2answers
2k views

table with tabularx and multirow

While using tabularx and multirow I tried to import this table (made with Word) in LaTeX: but it's not really working. It seems as if there isn't enough space for the text, but shouldn't taburlarx ...
2
votes
0answers
23 views

How can I create a wrapper environment for a complicated usage of tabularx? [duplicate]

Possible Duplicate: tabularx inside a \newenvironment I know (at least basically) how to create my own environments using \newenvironment, but I recently encountered a problem trying to ...
2
votes
1answer
856 views

Tabularx “auto” width?

I would like to create a table whose width should be the minimum possible (lines don't wrap). I see that tabularx wants a width parameter, is it possible to specify something like "auto", instead, for ...
7
votes
4answers
7k views

Table with foot note

I have a table and some of the number inside has some symbol like * and ** which should be explianed as footer ( at the end of the table not the page) I dont know how to do that and I dont want to ...
15
votes
1answer
2k views

Table looking like a block

The goal is to create a table that has the same style than a block of the used theme in order to have a consequent style trough the document. this can be done by the following two methodes shown in ...
5
votes
1answer
393 views

Table with shaded transitition, rounded corners and shadow (like a block of the theme)

this is my first question here. I want to make my table look like the block to have a consequent style. Questions: How to create that shaded transition from the table headline to the body (like the ...
4
votes
1answer
393 views

How to set the row height to equal to the column width of X in the tabularx environment?

Within the tabularx environment, X is a particular width which allows the table to fit the width of the specified horizontal space. I want to create a table which has square cells. How can I set the ...
2
votes
1answer
227 views

How to obtain the width of a column within the APA document class?

I am using the APA document class. My document has some tables: \documentclass[jou]{apa} \usepackage{tabularx} \title{This is the title} \author{This is the author} \begin{document} \maketitle ...
4
votes
1answer
201 views

How not to repeat info for each tabularx cell in row?

This produces a 2x2 table whose first row is blue with white text and whose second row is white with black text. Although it works fine it does repeat \textcolor{white} in each cell of the row where ...
0
votes
1answer
332 views

How can I get TikZ to work within a \tabularx environment?

I'm putting together a poster for a conference using beamer. In one column, the poster has some text next to which I want to put a neuron diagram-style figure next to some text. Pictures embed in this ...
1
vote
1answer
162 views

lstlisting-environment not available within tabularx-environment

Please consider the following example. Does anyone has an idea why I cannot use the listings-environment within the tabularx-environment? \documentclass{article} \usepackage[ngerman]{babel} ...
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 ...
2
votes
2answers
145 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 ...
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?
5
votes
2answers
178 views

Table align in description environment

Why table doesn't align as a text in description environment? I want it has same left indent and width as text. Is that possible? \documentclass[a4paper,oneside]{book} \usepackage[paper=a4paper, ...
1
vote
2answers
597 views

Center vertically in tabularx with multiple font size and arraystretch

I would like to find a way to make boxes with a colored background, that take the whole width available, with variable text size and variable arraystretch. For the moment, the best solution I've ...
3
votes
1answer
746 views

Align cell height of the tabularx rows

The following latex code prints rows one at a time. However all the cells of the rows don't come out aligned. How can I fix it. \documentclass{beamer} \usepackage{tabularx} \begin{document} ...
2
votes
2answers
1k views

Wrapping a table both rowwise and pagewise

I just discovered the tabularx package which allows me to introduce a table column which has line wrapping, and I also know that packages that allow automatic table splitting across pages do exists ...
7
votes
1answer
7k views

Divide the page into 2 parts

I have text, formulas and an enumeration. I tried to use multicols, but it divides the text where it wants. I used tabular, but it don't allow to have an enumeration or I don't know how to do it. In ...
2
votes
1answer
2k views

Problem with vspace around table environment

I recently decided I wanted a caption for the top table, so I placed it in a table environment. When I did this, the \vspace*{-2.5cm} before the second table seemed to be ignored for some reason. Does ...
4
votes
2answers
836 views

How to define a table in documentclass?

Consider a simple table in the document: \begin{tabular}{ l c r } 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \\ \end{tabular} How we can define this table within the ...
3
votes
1answer
4k views

Multirow and tabularx

I'm trying to make a table that should be pretty straight forward. But somehow, the text in the two first cells seems to "forget" that it's using the X-alignment command in tabularx: ...
0
votes
1answer
481 views

Tabular output from Excel2latex going off the page

I've used excel2Latex to convert a table into tabular format. The code generated is this % Table generated by Excel2LaTeX from sheet 'Sheet1' \begin{table}[htbp] \centering \caption{Add caption} ...