{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

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 ...
5
votes
2answers
101 views

Problem with subcaptions in subtables

I am trying to implement a table with several subtables, but working with subcaption does not work neither when I try tabularx. This subtables have different number of columns. with the following code ...
5
votes
2answers
98 views

Table with multiple rows and columns

I just want to create a table with multiple rows and columns, here is a very suitable solution:Table rowspan and colspan, but can anyone help me to get a variable column width rather than the equal ...
5
votes
1answer
87 views

What is the right way to set predetermined column widths with tabularx?

I was just wondering about this, because I went over the tabularx documentation and I couldn't find an answer. So, there are several questions going on here: Is it better to use a proportion of the ...
5
votes
1answer
404 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 ...
5
votes
1answer
230 views

Table counter increasing by 2 for every table

I'm having some issues when using tabularx within a table environment. The most annoying of these issues is that the table counter seems to be increasing by 2 for every table. So instead of having ...
4
votes
2answers
69 views

Newline linespacing problems within a table cell

I have problems with the linespace inside a longtable environment when forcing a linebreak. Following code should illustrate the problem. ...
4
votes
1answer
86 views

Are tabls and tabularx not compatible?

The following MWE does not compile: \documentclass{article} \usepackage{tabularx,tabls} \begin{document} \begin{tabular}{ccc>{arraybackslash}c} 1&2&3&4\\ 1&2&3&4\\ ...
4
votes
1answer
117 views

table badly too wide

I got a bad problem with the width of my table. I can't get the point why its so wide. I'm using latexmk. Here's my code: \documentclass[final,12pt,abstracton,oneside,a4paper, ...
4
votes
2answers
119 views

Anchoring Table (Tabularx) from the Bottom of Table

Can you anchor a table at the bottom, inline with text? I have another question posted which I seemed to have solved myself - List Numbering Through Multiple Tables - but I have since found my way ...
4
votes
1answer
4k views

Vertically center text in tabularx table [duplicate]

How to center text vertically in this table? \begin{center} \begin{tabularx}{\linewidth}{ | c | X | X | } \hline \textbf{Date} & \textbf{Name} & \textbf{Sign} \\ \hline ...
4
votes
1answer
211 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 ...
3
votes
1answer
96 views

Problems with \rowcolors and booktabs

I'vegot few tables created with few packages included booktabs where I use the command \rowcolors from the xcolor package. But in the last I notice that the colour is wider that the lines of the same ...
3
votes
3answers
681 views

Wrap text in table column header AND fit table width to pagewidth

How do I get a table where the header in column 2 is wrapped, while keeping the width of the table = textwidth? As you can see from the attached figure, I have a long title for the 2nd column, which ...
3
votes
1answer
101 views

List Numbering Through Multiple Tables

I am seeking to create a math workbook that looks similar to the picture below. I have included a selection of code I am attempting to get working - marked as MWE. My issue is that I want to continue ...
3
votes
1answer
94 views

caption of the wide table not wide

I am using this code to produce a wide table, but the caption in top is still in two column format.I used \caption package but it affects all of my figures captions and never solve the problem. ...
3
votes
1answer
158 views

Using tabu/tabularx inside xparse NewDocumentEnvironment

My question seems very similar to this, but with tabu instead of tabular*. In fact, switching the options in that example causes the failure I see here. \NewDocumentEnvironment {trace} {} {% ...
3
votes
1answer
929 views

How to create a dashed line in tabularx environment

I've been looking into this, and I have encountered two main "solutions": \usepackage{arydshln} As decribed here. And this one: \usepackage{dashrule} As described in this other post. However, ...
3
votes
2answers
459 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 ...
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 ...
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: ...
3
votes
2answers
2k views

how to vertically align text in multirow cell with tabularx with renewcommand?

Here I come again, Following the indications on this url I managed to get almost exactly what I want. However the problem is that the first multirow cell (with text "5 and 6") is not vertically ...
2
votes
1answer
54 views

Align numeric values from knitr command \Sexpr{} by decimal in table created with booktabs and tabularx

I am writing my thesis as dynamic document using .Rnw, knitr and R. I ran my statistical analyses in an external R-script, which I sourced into my main .Rnw-file. I also want to create some tables ...
2
votes
1answer
133 views

Last cell in complex table not behaving

I am having a hard time figuring out why the text in the last cell on each row of this complex table I am creating is not positioning correctly. As you can see from my code, the issue only occurs when ...
2
votes
1answer
164 views

extra alignment tab error

I just started using LaTeX last night, and I was trying to copy a general format I found on wikibooks. I wrote a python script to get 30 different stocks and their quotes, and I made it generate this ...
1
vote
1answer
197 views

tabularx “Missing number, treated as zero” error

error: ! Missing number, treated as zero. } l.16 \begin{tabularx}{\textwidth} {x x x x} MWE: \documentclass[12pt,a4paper,fleqn]{book} % ...
1
vote
2answers
240 views

Why won't my \otoprule command work in table formatting?

Primer: I'm very new to LaTeX. I am creating a table with the following code. Here is part of the table: \usepackage{tabularx, multirow, booktabs} \begin{table}[tp] \caption{Rain garden site ...
1
vote
1answer
296 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 ...
1
vote
1answer
1k views

tabular tabularx automatic linebreak (p/m/b doesn't work as expected)

The following snipped should break at the end of the column \begin{table}[hb] \begin{tabular}{|l|p{.5\textwidth}|} \hline \bfseries Col 1 & \bfseries Col 2\\\hline \hline Line ...
1
vote
1answer
670 views

ltablex + \caption[]{…} = error or bug?

I'm writing my thesis with the document class scrbook from koma-script and want to use the package ltablex (= longtable + tabularx) for setting long tables with automatic page break calculation. Now, ...