{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

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 = & ...
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
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
3answers
369 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} ...
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 ...
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}
10
votes
3answers
948 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: ...
6
votes
1answer
79 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 ...
1
vote
1answer
1k views

bottomrule not working in a self-made environment

I have this environment for consistent tables in my LaTeX documents: \newenvironment{defaultTable}[2] { \@float{table}[h] \noindent \tabularx{\textwidth}{#1} \specialrule{0.5pt}{10pt}{0pt} ...
10
votes
3answers
434 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 ...
5
votes
3answers
206 views

Creating a special table with different row lengths in latex

How can I have a table like the following picture in latex?
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 ...
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 ...
11
votes
1answer
642 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 ...
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 ...
6
votes
2answers
571 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 ...
4
votes
3answers
915 views

Extra line of vertical separator using itemize in tabular

I'm creating a resume based off of the example tutorial HERE. It's fairly simple, actually -- just a two columned table with dates on the left and job on the right. I prefer bullets vs. a paragraph ...
18
votes
3answers
9k 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 ...
9
votes
2answers
207 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 ...
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 ...
4
votes
1answer
2k views

How to get column alignment in tabularx? [duplicate]

When I put X in column specifier, how can I define column formatting? How can I get center alignment? Currently I am putting \centering, but that is not a proper solution. This is my code: ...
3
votes
1answer
413 views

Annotating Tables With Tikz; Adding Arrows

I'd like to be able to draw an arrow with some text on top connecting two arbitrary (i.e. possibly non-right-/left-most, possibly nonadjacent) cells of a table with a left-looking arrow. In ...
2
votes
2answers
154 views

Align equations inside tabular

How can I align equations inside tabular? I want to place few lines of equation by side of the picture. But it turns out that I cannot use \& in order to shift equals signs to be one under ...
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 ...
5
votes
3answers
241 views

How to make a table on more then one page by using the table environment

EDIT [Like some comments below are remarking the table environment doesn't allow tables over more then on page. However the solution works fine] I need to make a table over more then one pages. The ...
5
votes
3answers
215 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, ...
5
votes
3answers
921 views

\phantom inside tabularx

I tried to improve the alignment in the following table using a \hphantom: \documentclass{article} \usepackage{tabularx} \begin{document} \begin{tabularx}{\linewidth}{p{2.8cm} X} 1/00\,--\,2/00 ...
5
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} ...
2
votes
2answers
2k views

How to create a table that spans over multiple pages, breaking single rows

With the longtable package one can create a table that spans over multiple pages. The problem is that it will never break a row in two: either it stays entirely in the current page or it is moved ...
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 ...
5
votes
3answers
950 views

Table with arrows between cells

I want to create a table with arrows between some cells, for which I've used tabularx and TkiZ. I have the following problems: Text in cells aligned vertically to the center and at the same heigh ...
6
votes
1answer
323 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 ...
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 ...
6
votes
2answers
825 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 ...
12
votes
1answer
379 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} ...
10
votes
2answers
15k 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   ...
8
votes
2answers
801 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 ...
6
votes
2answers
3k 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
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
2answers
369 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 ...
5
votes
2answers
5k views

How to center text in tabularx? [duplicate]

Possible Duplicate: Centering in tabularx and X columns I was using \begin{tabular} to insert a table in my article. The titles for columns were long which caused the table to extend out ...
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 ...
4
votes
1answer
328 views

Fancy colored array in LaTeX?

I would like to reproduce these kinds of arrays in Latex (probably with tcolorbox) but I have no idea how to achieve this. So is there a way to make these kinds of tables ? Note : I would like the ...
4
votes
3answers
601 views

Reproducing a tabular form

I am trying to reproduce the following tabular form layout: Fig. 1: Desired output (found on the internet). First question: I can merge multiple cells into a single one both horizontally and ...
3
votes
1answer
950 views

Table cell overflow

Consider this document example: \documentclass[a4paper,draft]{article} \usepackage{calc} \usepackage[demo]{graphicx} \usepackage{tabularx,multirow} \usepackage{geometry} \geometry{hmargin=0cm} ...
3
votes
2answers
2k views

Listing inside tabularx?

I have a tabularx environment where I want to put an lstlisting into. But Latex fails to compile it. Testcase: \documentclass[a4paper,12pt]{scrreprt} \usepackage[utf8x]{inputenc} ...
2
votes
2answers
145 views

How to *disable* Lua's Microtype for a given tabular column?

I'm looking for a way to disable Lua's Microtype (note the capital M - to distinguish from the lower case microtype package) in the first tabular column of the MWE given below: ...
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
377 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} ...
6
votes
2answers
119 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 ...