{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

18
votes
3answers
10k views

Aligning Decimal Points in Table

I want to align two numbers in two different rows the decimal point. I do see a link for that here: Aligning numbers by decimal points in table columns However, I don't understand how to ...
16
votes
1answer
4k views

Preventing itemize environment to insert initial vertical space

I'm using itemize and tables like the following \begin{tabularx}{\textwidth}{>{\ttfamily}llX} \toprule \textbf{\rmfamily Operator} & \textbf{Typen} & \textbf{Regel} \\ \midrule = & ...
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 ...
14
votes
3answers
5k 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}
12
votes
3answers
2k views

How to use siunitx and tabularx together?

I'm using the tabular features of siunitx (for what it is worth: v1.3 since I'm on TexLive 2009) to align numbers in tables, eg. \begin{tabular}{ p{1.5cm} S S S } bla & 1.23 & 4.5 & 67.89 ...
12
votes
1answer
380 views

Are subcaption and tabularx incompatible?

I know that tex.sx isn't the forum for bug-reporting, but I have a bit of a problem and I'm looking for a technical workaround. The following MWE produces odd labels: \documentclass{article} ...
11
votes
3answers
830 views

Horrible table layout

I have a table which gives an overview of some theory. It includes a lot of words or combination of words. The layout is horrible and not LaTeX quality. Some guidance as to how to improve would be ...
11
votes
3answers
385 views

How do I use the ampersand (&) inside a foreach or conditional (or other group/environment) when building tables?

I am trying to build a table, and inside the tabularx environment I would like to have a loop, something like (here is a MWE): \documentclass[10pt,a4paper]{article} \usepackage{tabularx} ...
11
votes
2answers
16k 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   ...
11
votes
2answers
6k views

Whole page table with tabularx

I am trying to make a full page table using tabularx. As far as I can understand, the second parameter specifies the entire size and the "X" columns self-stretch to fill it up. What I run into is a ...
11
votes
2answers
9k views

Automatically stretch table to evenly fill horizontal space?

I want to have my tables fill the entire width of the page (i.e., \textwidth). So far, the only thing I've managed to come up with is: \renewcommand{\tabcolsep}{4.4pt} By manually trying different ...
11
votes
1answer
653 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 ...
10
votes
3answers
1k views

How to create vertical and horizontal dotted lines in a matrix?

Similar to this question, I am trying to output a similar matrix with dotted line instead of dashed line. Is there anyway to do this? I also try to use these three packages: ...
10
votes
3answers
450 views

Move tabular entry to bottom of row

How do I get the last column text to be at the bottom of the row? That is I want the XXX to be aligned with the line containing the arrow. I tried playing around with \multirow{3}{-3ex}{XXX}, but ...
10
votes
2answers
3k views

tabularx inside a \newenvironment

There's something wrong with this code: \newenvironment{Tbl} {\begin{tabularx}{\textwidth}{|l|X|} \hline} {\end{tabularx}} but this is fine: \newenvironment{Tbl} {\begin{tabular}{|l|l|} \hline} ...
9
votes
2answers
218 views

Framing cells vertically in a table

I want to add a box in a tabularx table that would frame several cells vertically. There is this post that shows how to frame cells horizontally (Framing cells in a table), but I cannot figure out how ...
9
votes
2answers
195 views

easylist in tabular

I'd like to build this table: As I have a very long list to itemize, I'd like to use easylist. Obviously the easylist-group causes problems in the tabularx-environment. That's what I coded so far: ...
9
votes
2answers
1k views

How to include tabularx/y in a new environment?

I am looking for a way to define a customizable environment for tables in my latex documents. This means: caption and label width of table customized column format (tabular preamble) While this ...
8
votes
2answers
874 views

Combine column types defined in dcolumn with tabularx

I'm looking for a way to define a column type which "mixes" the 'D' column defined in the dcolumnpackage and the 'X' column defined by the tabularx package. In other words, I want a column type that ...
8
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 ...
8
votes
4answers
159 views

specific table layout

I want to draw a table like this: with the table width being a portion of the line width, like e.g. 0.8 * linewidth. But I cant figure out how to do it. Anyone? edit: MWE: ...
8
votes
4answers
221 views

How to merge two tabulars into a single table the width of the column?

I am asking for advice on achieving two separate effects in the table environment. (1) I have two tables with a different number of columns. I need to merge them into a single table. I have this ...
8
votes
1answer
4k views

Wrapping column text using multicolumn and tabularx

I have two tables I am typesetting above each other as follows. \documentclass[a4paper,11pt]{article} \usepackage{tabularx} \usepackage[left=2cm, right=2cm, bmargin=1.5cm]{geometry} \begin{document} ...
7
votes
3answers
381 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} ...
7
votes
4answers
8k 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 ...
7
votes
1answer
132 views

using tabularx 2.09 in a \newenvironment produces errors

The tabularx package with new version 2014/04/22 v2.09 produces errors with the following code which compiled without errors before: \documentclass{article} \usepackage{array} \usepackage{tabularx} ...
7
votes
1answer
570 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 ...
7
votes
2answers
633 views

table rescaling and subcaption package

I am placing tables side-by-side using the subcaption package in the following way: \documentclass{article} \usepackage{siunitx} \usepackage{booktabs} \usepackage{subcaption} \usepackage{tabularx} ...
7
votes
1answer
2k views

Is it possible to use tabularx inside a longtable environment?

Is it possible to use tabularx inside a longtable environment? If not, is there any way I can get the "X" funcionality of tabularx with the option of long tables ---In order for me to be able to ...
6
votes
5answers
966 views

How to typeset tabularx with 34 columns? (Error message)

I want/need to typeset a very large table with >30 columns, which I created with Excel2LaTeX. I don't get it to compile, it only works if I really use 20 columns, however when I insert the 21st one, ...
6
votes
2answers
4k views

Automatic line-break in tabular

Sorry if I've missed the answer in another post, but I've literally spent 3+ hours googling this problem now. I'm making a tabular and I'd like to to automatically do a like break rather than going ...
6
votes
2answers
833 views

Conflict between tabu and tabularx, when using siunitx

I have many tables set with {tabularx} but for some of the it seems easier to use {tabu} which works. But if I use both packages and gave the last X column in {longtabu} an S and optional argument it ...
6
votes
2answers
339 views

Fit long sentence into table

I would like the sentence "Why get someone who only pretends to be a doctor when you could get a real one?" to fit into this 430pt table. But the sentence doesn't break after "could" and keeps running ...
6
votes
2answers
375 views

How to vertically align multiline column

I am trying to set up a table with the tabularx package (although the used package does not really matter to me). The table should stretch across the entire line. I am trying to get both columns ...
6
votes
1answer
175 views

Table Configuration

I'm new to LaTeX, and I'm currently struggling with trying to create a table for a lab report. The table has to look like this: I have tried looking at the \tabular, \tabulary and \tabularx ...
6
votes
3answers
116 views

How do I stop a table where the margin falls, rather than using the textwidth command?

I've been having some problems with nesting tables in the tabularx environment. Basically, I would like each table to stop at the margin. Ordinarily, I would achieve this with \textwidth as the width ...
6
votes
2answers
129 views

What is the correct way to calculate \multicolumn size when using tabularx?

What is the correct way to determine the correct size for use with p{} needed by \multicolumn to get the size correct? The problem is this: I want to use tabularx and also use \multicolumn. To do ...
6
votes
1answer
4k views

Vertical line only in one part of a table

I need some help on putting a vertical line in the second part of the table, I don't know how to do it since the tabularx I declared does need to have that only in the second part. The code I used ...
6
votes
1answer
67 views

Create linewidth spaced three columned table with column alignment

I'm writing a two columned article: \documentclass[10pt, aps, prb, twocolumn]{revtex4-1} I would like to include a table which is as long as 1.\linewidth. The table should consist of three columns, ...
6
votes
1answer
336 views

\bfseries and alignment in table

I'm trying to highlight some decimal-point aligned entries in two large tables which are arranged in two columns. I'm using \bfseries to do this and unfortunately this seems to be affecting the ...
6
votes
2answers
1k views

Custom glossary style: Make glossary as wide as \textwidth

WARNING: This is a follow-up question to Display long form (first-use like) entries of none acronyme type entries. As mafp suggested in the other post I went ahead and defined my own glossary-styles ...
6
votes
1answer
769 views

\hfill in in table cells

There are tables in my document. The baselines between the last row of each table and the following text is usually circa 16,25p (see below). Now I wanted to add right-aligned text to some selected ...
6
votes
1answer
4k views

Producing a column with rotated text in all cells

I would like to set the first and the second column of the shown tabularx table to automatically rotate any text inside a single cell of one row or a single cell consisting of cells joined by ...
6
votes
1answer
134 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 ...
6
votes
1answer
84 views

Unwanted padding in tabular columns when cells contain multiple rows

Whenever I need to create a cell with multiple rows in a tabular environment, I usually create enclose the contents of the cell within a tabular environment within the cell. This has been a great fix ...
6
votes
1answer
115 views

Column alignment in ltablex

I tried to apply the method proposed in How to get column alignment in tabularx? to right align cells in a ltablex. However I have a problem when the size of the table is just enough for my columns: ...
6
votes
2answers
579 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
84 views

Dynamically calculated Row height in Tables

I am trying to dynamically allocate the height of rows in a table based upon a number, specifically the number of minutes that are devoted to a specific activity in a class lesson. The table ...
6
votes
0answers
53 views

tex4ht removes spaces in array column when including a package even if the package is not used

In the following cases, Tex4ht generates an HTML file with no spaces between the columns of the matrix if some package is included, even if the package is not used. Removing the package, the space ...
5
votes
3answers
216 views

How to tell LaTeX what I write should stay as it is, and not as a mathematical expression

I'm trying to write my thesis on LaTeX and I don't have much experience with it. I try to put an information about some arrays I used as a table one like looks like this: column names: FileName, ...