{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

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?
3
votes
1answer
845 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
1answer
82 views

Citations in tabularx cause all bibliography entries to not have a number

If I invoke \cite within a tabularx environment and biblatex is loaded with defernumbers=true and sorting=none, references do not get a number. I get these warnings: LaTeX Warning: There were ...
3
votes
1answer
71 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
247 views

Editing Table in LateX

Below is a table I want it to appear it the top page of a two column page. But its not looking good so if anyone could please assist me. \begin{table*}[t] ...
3
votes
1answer
530 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
1answer
117 views

glossaries: fail to expand in tabularx

When I use an acronym (glossaries or acronym package) for the first time in tabularx, then it fails to expand, and even breaks down the table structure. The problem is already mentioned here, but ...
3
votes
1answer
711 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} ...
3
votes
2answers
68 views

Itemize in tabular // minipage resulting in `Missing \endcsname inserted` error

The minipage solution of this accepted answer is also what I'm looking for, that is, this one :-) not this one :-( The commented-out part of the MWE below tries to implement that minipage ...
3
votes
2answers
63 views

How to avoid overfull \hbox warning when using tabularx with \textwidth?

Question How do I avoid the warning Overfull \hbox (10.95003pt too wide) in paragraph at lines [...] produced by the following document? \documentclass[parskip=half]{scrartcl} ...
3
votes
1answer
77 views

Left-alignment of table caption. Forced to center

I am trying to get the table caption left aligned (as the first table labeled "parameter estimates" using tabularx), but in tabular* environment (also happens to my tabularx in the original document) ...
3
votes
1answer
75 views

Missing number, treated as zero in tabularx

I'm using a program to generate LaTeX code utilize the tabular package. It creates an error that reads ! Missing number, treated as zero. <to be read again> ## l.17 ...
3
votes
1answer
59 views

Alignment of a tabular with respect to text outside of the tabular

In the picture I am wondering if it is possible to align the first row of the table with the word "Ciphertext" instead of having the table vertically centered? ...
3
votes
1answer
214 views

How to create a table where one cell spans all the columns and the text wraps properly?

I need to create a table like this: table with two columns and width equal to width of the page; border around whole table; first row spanning two columns; with background color, bold font and ...
3
votes
1answer
350 views

how to use fancyvrb Verbatim in tabularx?

When using tabular and p it is possible to insert Verbatim block in a table using minipage \documentclass[]{article}% \usepackage{fancyvrb} \begin{document} \begin{tabular}{|p{2in}|p{3in}|} ...
3
votes
1answer
141 views

Extra space between columns (fixed/predefined width and X) in tabularx

This is a follow-up question of: What is the right way to set predetermined column widths with tabularx? As seen in the code below, \begin{landscape} \renewcommand*{\arraystretch}{2} ...
3
votes
3answers
150 views

Reduce tab spacing

How can I reduce the spacing after I have used & in tabular? \documentclass{article} \usepackage{tabularx} \begin{document} \begin{tabularx}{\textwidth}{X X} \textbf{Greetings} & Refer to ...
3
votes
1answer
788 views

Break multicolumn text at document margin with tabularx

I'm using tabularx to break the content of a column at the document margin (cf. Linebreak in table cell at document margin). But when I use \multicolumn in such a table, the instruction to break the ...
3
votes
1answer
622 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 ...
3
votes
2answers
63 views

How to fix to force text to split in table?

I have a simple table in LibreOffice calc and I tried to convert it to latex using the Calc2Latex macro. Then using Latex I tried to improve it. However I cannot get the text correctly ! This is ...
3
votes
1answer
77 views

Long landscaped table

I've created a table with http://www.tablesgenerator.com/ and wrapped it with \afterpage{ \begin{landscape} \begin{longtabu}{X} to rotate the table and fit it to as many pages it needs. My code ...
3
votes
1answer
50 views

Height of tabularx containing a multicol

I would like to have a vertical label to the left of a multicolumn block of text. The easiest way to do this I have found is using a multicol environment as one of the cells in a tabularx table. The ...
3
votes
1answer
230 views

Package minted: \mint Command Not Working Inside tabularx Environment

The question, How to embed a minted environment inside a tabular environment?, addresses a similar issue, but I am using: the tabularx package, and the inline \mint command Is there a workaround ...
3
votes
1answer
46 views

How can one adjust each text to the center for each box of the table?

Here is the example: \begin{tabularx}{\textwidth}{ |X|X|X|X|X| } \hline Equation & 2 & 3 & 5 & 7 \\ \hline $y_0 = b^{t}$ & -483061 & 1 & -174089 & 793599 \\ \hline ...
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
599 views

Tabular column and line extend to page-height

I've got a table that splits a page with a vertical line. I'd like the table's total height to be that of the page, and in particular have the vertical line down the center extend from the midline to ...
3
votes
1answer
140 views

Annotating tables

I'm trying to annotate a table by highlighting and annotating the final column, yet once I use the\tabnode together with coloring I get misalignment. Either the content of the cell marked with ...
3
votes
2answers
142 views

Table of 2x2 tikzpictures defined by my own macro

As a follow-up question from this post I am trying to find out how to arrange multiple tikspictures in a table, where my diagrams are defined by my own macros. Problem: Showing the diagrams ...
3
votes
1answer
162 views

Align columns, last vertical line bug and add row height

This is my table: I have a few problems: I want both columns to take each 50% of the page width (excl margin), but the second column's text needs to be aligned right. The last vertical line is ...
3
votes
1answer
2k views

Fix column width with tabularx

I want to create a table with 100% width? The first two columns should have a minimum width and the last column should have the rest width. The text in the last column (except the first cell) should ...
3
votes
1answer
141 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
838 views

Question about \multicolumn in Tabularx

I have a table with two columns like this: \begin{tabularx}{\textwidth}{XX} test & test \\ \multicolumn{2}{l}{test} \\ \end{tabularx} However the multicolumn line does not function good ...
3
votes
1answer
163 views

Making rotated adjustbox fit into cell

I tried \rotatebox, but was unable to make the rotated text vertically fit into one cell so I opted for \adjustbox instead. \documentclass{article} \usepackage{float} \usepackage{multirow} ...
3
votes
1answer
172 views

Why does ltablex skip a number in captions?

The below example presents two tables with an tabularx environment (taken from package ltablex) and a caption. After each tabularx-table, the table counter skips one, as if both the caption and the ...
3
votes
1answer
1k views

Fit table in page column also some editing

I want to make the table fit into one column in a two column page. Also, I need it to look like this: Here’s my code \documentclass[twocolumn]{article} \usepackage{adjustbox} \begin{document} ...
3
votes
1answer
2k views

How do I use supertabular with my tabular code?

I'm trying to create a list of notation, but I've been unable to use nomencl as I would like so I'm using a table. I'd like the table to split as it goes over to the second column (the working example ...
3
votes
1answer
4k views

Right-aligned columns using the tabularx environment

I'm trying to typeset a matrix which has entries of differing widths. However, for aesthetic reasons, I would like each of the columns of the matrix to be the same width, and I'd furthermore like ...
3
votes
1answer
83 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
3k views

Expand table to use page width

I normally use the table and tabu environment to create my tables. I am new to LaTeX and after I while I realized tables look nicer when they use the whole page width rather than being just centered. ...
2
votes
2answers
1k views

Dificult using LTXtable

I have a script in R that build a report in LaTeX. Sometimes, this report has very long and very wide table, so, after some research I decided try ltxtable. My problem is that I didn't get how it ...
2
votes
2answers
144 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 ...
2
votes
1answer
2k views

How to apply \raggedright to my table headings?

Can somebody show me how to apply \raggedright to my table headings in this example? \documentclass[a4paper,12pt]{article} \usepackage{tabularx} \usepackage{booktabs} \usepackage{siunitx} ...
2
votes
2answers
58 views

Align the word input of algorithm2e with a tabularx table

I'm referring to this post. I like the idea from 'a different ben' of the tabularx table inside the \Input command. But I would like to have the word Input: at the top, on the same line as the first ...
2
votes
1answer
79 views

Long tabularx doesn't break rows

My long tabularx doesn't break rows when it runs to a second page. Are there any ways I can break long table? (But doesn't tabularx break long table automatically?) In this case, I'd like Par. 1 in ...
2
votes
2answers
266 views

Align position of decimal point within tabularx

I have made a table with 5 columns, of which I'd like the last 4 to be of the same width. Therefore I was told I should use tabluarx. Using this package my output looks fine, but I have also numbers ...
2
votes
2answers
162 views

Tabular unwanted padding

I want my document to be a really long (multiple page) list if definitions. I want to do it in a table format. Here is what I have at the moment: \documentclass{article} \usepackage{fancyhdr} ...
2
votes
2answers
115 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 ...
2
votes
1answer
163 views

How to vertically align the text in table cell?

I am trying to get a table cell with vertical text alignment. My current code is: \begin{tabularx}{\linewidth}{|X|} \hline \cellcolor{gray!20}Hardware\\ \hline \end{tabularx} Is there an easy ...
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 ...