{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

4
votes
0answers
195 views

Vertical positioning of content on page [closed]

I've got a document I'm going to generate from some input which basically is a tabularx for each page: \begin{tabularx}{\textwidth}{lXlll} \hline \\[3ex] \commandOne \\ \hline \\[3ex] \commandTwo \\ ...
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 ...
3
votes
3answers
4k views

Table row with white text on black background

I am trying to reproduce a table like those in this picture So far I have \noindent \begin{tabularx}{\textwidth}{| l | X | l | l | } \hline & Does the proposed research involve processing of ...
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} ...
3
votes
3answers
674 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
3answers
148 views

What does mean the code in this table?

After see the Andrew Swann solution to my previous question: How to fit this table in a page? I tried to fit it to another table: \documentclass[11pt]{book} \usepackage[utf8]{inputenc} ...
3
votes
2answers
118 views

Remove vertical lines in the table unsuccessfully

I have created this Table: via the LaTex source code: \documentclass[onecolumn,amsmath,amssymb,nofootinbib,superscriptaddress,floatfix]{revtex4} \begin{document} \begin{table}[!h] ...
3
votes
1answer
698 views

Create environment inside another environment?

Why can't I define an environment, that encloses another tabularx environment inside it? For example, why can't I do this: \newenvironment{customTabular}{ % This is the begin code ...
3
votes
2answers
114 views

tabularx doesn't break rows correctly

I've got some problems with tabularx. I need a table with 4 columns and the last one should contain a lot of text so I need it to break rows automaticly. And from my reasearch I thought that it should ...
3
votes
1answer
235 views

tabularx \hline introduces blank line above

I am using tabularx and I successfully created some tables with it so far (not too nice ones, but thats another problem). One Table freaks me out, as the "header" is separated from the next lines not ...
3
votes
2answers
241 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 ...
3
votes
2answers
456 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

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 ...
3
votes
1answer
95 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
1answer
128 views

How to draw some lines between figures in LaTex

I want to draw the following figure. How do I do this? Some lines between figures, and Can you give me this lines some color? Some color lines in figure, as following:
3
votes
2answers
127 views

table with many columns

I have some questions about the below table: If I omit the margins, the table will completely get disordered. I want to have the two 4 columns in the middle to have a slight distance with each other ...
3
votes
4answers
113 views

Alignment in tabularx environment

I want to generate a table that looks approximately as follows: I want to use tabularx to have equidistant cells for the cells that are below the second row and right of the first column. Here is ...
3
votes
2answers
190 views

How to have columns of different sizes using tabularx and make table respect page height?

I am using Kile and I am trying to learn how to use tabularx to have tables that fit within the width of my pages. However, I have two big problems: I have to use X for column size and therefore ...
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
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 ...
3
votes
1answer
976 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
40 views

itemize within tabularx does not work when ltablex is loaded

I need this code to be compilable without errors: \documentclass{article} \usepackage{tabularx} \usepackage{amsmath, mathdots, paralist} \usepackage{ltablex} % uncommenting this line will work ...
3
votes
1answer
97 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
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
265 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
925 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
127 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
780 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
175 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
177 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
155 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
151 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
72 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
267 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
446 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
159 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
172 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
1k 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
771 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
3answers
1k 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} ...
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
2answers
78 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
89 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
55 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
1k 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
268 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
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
626 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
81 views

Need help starting long, text-heavy table

I am new to LaTex and trying to teach myself. Currently I am trying to write a unit plan for graduate school (MA in Math Ed), which would look something like that provided image. One question, one ...