{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
1answer
113 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
168 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
318 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
151 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
82 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
620 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
164 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
163 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
338 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
277 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
191 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
130 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
710 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
256 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
164 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
106 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
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 ...
3
votes
1answer
933 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
846 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
785 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
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 ...
0
votes
1answer
484 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
636 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
128 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 ...
2
votes
1answer
210 views

Border alignment issue using tabularx in LaTeX

I'm writing a program to parse wikimarkup to LaTeX, and I've run into a bit of an issue when it comes to creating tables. For some reason, the right vertical edge of the table is getting pushed way ...
2
votes
1answer
172 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 ...
4
votes
3answers
3k views

Top alignment of cell content in tabularx

I would like to align the content of each cell (of the first column) to the top. The approaches presented here did not apply. Maybe it has something to do with die tabular-environment inside the ...
6
votes
2answers
357 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 ...
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 ...
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} ...
5
votes
1answer
647 views

How to 'shorten' \cline so that multiple groups in a table become visible?

I would like to construct a table which looks like a booktabs table (but without using the package booktabs). Instead of \cmidrule, I used \cline, which comes pretty close (see below), but the lines ...
4
votes
1answer
197 views

Inlining aligned tabular material in block of text

Edit. Some comments might be outdated. I would like to do the following: The blue parts should be treated as normal paragraph text, with normal automatic hyphenation. The green part is what you ...
2
votes
1answer
527 views

newenvironment tabularx and begin center

I try to create a custom env, based on a tabular. I try to make a \begin{center} before my tabular to remove identation at the beginning of the tabular, but he tells me "File ended while scanning ...
5
votes
1answer
202 views

Vertically aligning text after baseline changed

\documentclass{article} \usepackage{tabularx} \usepackage{tikz} \begin{document} \begin{tabularx}{\linewidth}{c|X} \begin{tikzpicture}[ scale=.6, every node/.style={scale=.6} ] ...
1
vote
1answer
169 views

classic table footnote with a twist

\documentclass{article} \usepackage{hyperref} \usepackage{tabularx} \usepackage{footnote} \makesavenoteenv{table} \begin{document} \begin{table}[htbp] \begin{tabularx}{\textwidth}{XX} \hline ...
4
votes
1answer
1k views

Using tabularx in a custom environment - “misplaced \noalign”

Question Currently, I'm trying to shorten the creation of small tabularx-tables with pre-defined headers, but somehow, trying to use the tabularx-environment, even though I used the \tabularx and ...
2
votes
0answers
208 views

Table does not fit [closed]

I created a table that does not fit the page. It's not because it's too big, it's because the table starts from the middle of the page when I export it to PDF. So even though I have half the page ...
6
votes
1answer
708 views

\hfill in in table cells

There are tables in my document. The baselines between the last row of each table and the following text is usually circa 16,25p (see below). Now I wanted to add right-aligned text to some selected ...
2
votes
1answer
556 views

How to reduce distance between two columns?

I have 5 columns in my table. So I want to reduce distance between two columns to make it look good. In the following figure, I want to reduce distance between column 1 and 2. I tried ...
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: ...
1
vote
1answer
545 views

how to split the table heading in booktabs?

how to split the column headings? How do I get newline after some word? When I put \\, it changes the alignment badly. This is my code: \documentclass{article} \usepackage{pgfplots} ...
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
1answer
608 views

How to left align footnotes under tabularx in a minipage

I am new to LaTeX, trying to create a table using a tabularx in a two column format. I am creating the table in a minipage so that footnotes can appear at the bottom. Everything works out fine, but ...
3
votes
1answer
121 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 ...
4
votes
1answer
231 views

Is there a conflict between the package tabularx and epstopdf?

I am trying to use epstopdf to convert EPS files to PDF on the fly, yet I can't get it to work with the tabularx package. In summary, can anyone tell my why the following example works? ...
2
votes
1answer
156 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 ...
2
votes
2answers
168 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} ...
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 ...