{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

2
votes
0answers
184 views

Defining the position of a tabularx environment [closed]

In my report, I use a tabularx environment within a mdframed environment. I don't know why but I have to delete the table environment surrouding my tabularx environment when I want a table in my ...
4
votes
1answer
385 views

Table and \hlines too short or wide

Here is a MWE of what I am trying to do. \documentclass[a4paper]{article} \usepackage{tabularx,booktabs} \usepackage{color,colortbl} \begin{document} \begin{table}[htb] \centering ...
4
votes
1answer
642 views

Whitespaces in tabularx added after \extracolsep

I'm quite new to Tex, but I did some tutorials and I'm stuck now, after googling didn't help anymore. My code: \bgroup \def\arraystretch{1.75} \begin{tabularx}{\textwidth}{ | l | ...
4
votes
1answer
160 views

List of definitions

I have a plain-text document that I would convert to LaTeX. The document is not a typical text document but a list of definitions including some short prefaces and optionally "post-faces". Example ...
2
votes
2answers
143 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: ...
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 ...
0
votes
0answers
22 views

Tabularx textwidth tables jump to last page [duplicate]

I am using tabularx to get a table that automatically stretches to the full width of the paper. However, my tables seem to be put at the last page when I apply this code (see below). How can I avoid ...
0
votes
1answer
213 views

Automatic table width doesn't work anymore

I got an odd problem since yesterday. I'm writing my thesis with Lyx. I'm using a template based on the KOMA-Script. Well, yesterday I've deleted a number of tables from my document. After compiling ...
1
vote
1answer
323 views

vertical alignment using tabularx / arraystretch

I am using the tabularx package to customize my tables. I changed the definition of tabularxcolumn to vertically center the text. As I am using arraystretch, the bold 'titles' of my table are aligned ...
2
votes
1answer
314 views

TabularX vertical alignment

Since the enumiten Package (and therefore leftmargin=*) doesnt work in custom environments, I was trying to trick a bit, doing the items in a table like this (don't ask..) : ...
2
votes
1answer
108 views

Non-Uniform Inter-Row Spacing in tabularx with p Cells

Take a look at the following picture: The Namespace column is typeset using a p cell. The page layout is in landscape mode. I've set the inter-row spacing explicitly to 20pt. However, since the p ...
2
votes
1answer
82 views

Problem with aligning using compactlist in tabularx

I've created a table with the tabularx package. Within the cells I use compactitem to create a list. First I had a problem with the leftmargin. To solve this I've used \setlength{\leftmargini}{0pt}. ...
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}|} ...
1
vote
0answers
99 views

Removing overfull and underfull box warnings [closed]

Always when I want to prepare a document with LaTeX I receive different warnings including underfull and overfull but I don't know how I can handle these warnings. As you can see here I have two ...
2
votes
1answer
116 views

Multicolumn cells in tabularx overfill into margin

I have this table in my MWE. In the 2nd table, the cell colors seem to bleed over into the margin. I have tried to set various parameters with the tabularx and in the multicol to reduce this but it ...
3
votes
1answer
192 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 ...
2
votes
1answer
996 views

multicolumn command with tabularx environment

Apologies if I am posting to the wrong thread - I'm not a regular user of boards and I know you guys can get pretty annoyed when the answer to my question is already out there. I've been searching ...
1
vote
2answers
152 views

Oversize table with nested tabularx->minipage->tabular* has columns that are too narrow (Memoir)

I am trying to lay out a table heading that looks something like this: TITLE --------------------- subtitle Name Value description Name A value of Name Value ...
7
votes
2answers
491 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} ...
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} ...
6
votes
1answer
273 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
1answer
229 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 ...
5
votes
2answers
105 views

Use a nested enumeration as a column of a table

I am creating a list of requirements in a table in which the first column should be an enumeration, such that each requirement is identified by a unique number. Some requirements also have sub ...
1
vote
2answers
3k views

Wrapping text in \multicolumn

I would like to wrap (and center) text within \multicolumn. Tabularx and tabilary only wrap the text outside of the \multicolumn{} columns. I would also like to define the column width as defined by ...
4
votes
1answer
103 views

Split a tabularx cell at its diagonal when the X column specification is used?

How do I split a cell diagonally, when I'm using tabularx with X column, i.e. \begin{tabularx}{\textwidth}{X}? I've seen many answers on this topic on TeX.SE, but none of them are applicable to cells ...
4
votes
1answer
148 views

Nested tabularx doesn't work with ltablex

This works: \documentclass{article} \usepackage[a5paper]{geometry} \usepackage{array} \usepackage{tabularx} \setlength{\parindent}{0cm} \begin{document} \begin{tabularx}{\textwidth}{ |X|} \hline ...
4
votes
3answers
287 views

tabularx syntax

First time using tabularx to create tables, my code is below: (which turns out to be very wrong!) \begin{table}[htbp] \caption{\textbf{Description of Regression Variables and Data Sources} \\ This ...
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} ...
5
votes
1answer
79 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 ...
1
vote
1answer
546 views

Footnote in tabularx doesn't work (with hyperref)

Here is the min file: \documentclass{article} \usepackage{tabularx}[1999/01/07] % v2.07 \usepackage{hyperref}% 2012/10/15 v6.83k \listfiles \begin{document} \begin{minipage}[t]{.5\linewidth} ...
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
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 ...
2
votes
1answer
151 views

text grouped style in sidewaystable

I have a problem with my sidewaystable. I have quite a lot text in one of my columns. I have used tabularx so that the text doesn't run out of the page at the right side. Now the text is in grouped ...
4
votes
1answer
313 views

tabularx: bottom alignment on r or l-columns when X column wraps

In tabularx, when the X-column wraps on more than one line, l/r/c-columns remains top aligned: MWE: \begin{tabularx}{5cm}{lXr} 1 & qwer asdf zxcv qwer asdf zxcv qwer asdf zxcv & 1 \\ 2 ...
4
votes
1answer
245 views

tabularx option in tcolorbox

I'd like to use the recently introduced (in version 2.10) tabularx key for the tcolorbox package. The key is documented in the tcolorbox documentation, section 3.6, paragraph /tcb/tabularx, page 28. I ...
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 ...
2
votes
1answer
116 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 ...
4
votes
2answers
606 views

Table with 100 % width and vertical / horizontal alignment

I want to draw the following table in LaTeX. In the first column the text should be left aligned. The text in all other cells should be centered. The first problem occurs with D in the first row. If I ...
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] ...
6
votes
1answer
158 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 ...
1
vote
1answer
103 views

Onslide in tabularx produces vertical space

I have a tabular in a beamer presentation of which I want to uncover its contents using \onslide. In tabularx (or in tabular with a p-column) this produces a peculiar vertical white space in the ...
6
votes
2answers
963 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 ...
3
votes
1answer
787 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 ...
5
votes
3answers
737 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 ...
3
votes
1answer
529 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, ...
7
votes
1answer
1k 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 ...
0
votes
1answer
421 views

Rowcolors and tabularx: Colors not reset in each new table [duplicate]

I'm having an issue with rowcolors from the xcolor package. Whenever I use rowcolors before a table, it seems that the row counter does not reset with each tabularx environment. I read that ...
0
votes
1answer
581 views

Soft midrule in table

3 small questions: 1) I'd like to put a soft \midrule in this table between Care type and the headers, but I'd like it to not quite reach the edge of the table: (at your discretion to mess with the ...
4
votes
1answer
127 views

Why won't putting \input inside a tabularx environment compile?

Putting a tikzpicture normpdf_2d.tex \input{./Figures/chapter6/normpdf_2d.tex} on its own is fine. but, putting it nto a \tabularx environment won't compile. Why? What property does this ...
3
votes
1answer
3k 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 ...