Questions tagged [tabularx]

{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.

is a package that defines an environment tabularx, which takes the same arguments as tabular*, but modifies the widths of certain columns, rather than the inter column space, to set a table with the requested total width. The columns that may stretch are marked with the new token X in the preamble argument.

2260 questions
29
votes
2 answers

Vertical line only in one part of a table

I need some help on putting a vertical line in the second part of the table, I don't know how to do it since the tabularx I declared does need to have that only in the second part. The code I used…
17
votes
3 answers

When should the tabularx environment be used or not?

I asked a question here and egreg replied that the tabularx environment was not the right tool. He solved the problem with the tabular environment. Werner didn't use it either. In this question Mico also says that the tabularx environment is not…
AndréC
  • 24,137
12
votes
6 answers

How to draw a table 2*1+3*1 in `tabular`:

How to draw such table in tabular: even in the Word, I can only generate a 6*2 table then merge each column respectively. I prefer use the two table method since it is easy to understand and much compatible with other code. But I happened to a new…
12
votes
3 answers

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 makes the column very wide, resulting in wrapping…
srao
  • 647
10
votes
1 answer

Wrapping column text using multicolumn and tabularx

I have two tables I am typesetting above each other as follows. \documentclass[a4paper,11pt]{article} \usepackage{tabularx} \usepackage[left=2cm, right=2cm, bmargin=1.5cm]{geometry} \begin{document} \begin{tabularx}{\textwidth}{| X | X | l | l | l…
Simd
  • 6,785
9
votes
2 answers

How to get the cellwidth when inside a tabularx environment

When I start a tabularx environment like this: \begin{tabularx}{\textwidth}{lXX} Can I, from inside a cell, get the width of the cell (to be used with includegraphics, minipage or something similar)? Like this: \begin{tabularx}{\textwidth}{lXX} bla…
Nathan
  • 461
9
votes
1 answer

using tabularx 2.09 in a \newenvironment produces errors

The tabularx package with new version 2014/04/22 v2.09 produces errors with the following code which compiled without errors…
6
votes
1 answer

Tabularx remove extra padding before row

I've got a tabularx containing figures that is set to \textwidth but doesn't occupy whole textwdith and leaves a margin on the left. Specifically: \begin{tabularx}{\textwidth}{A B C} %…
hbot
  • 117
6
votes
2 answers

Fit long sentence into table

I would like the sentence "Why get someone who only pretends to be a doctor when you could get a real one?" to fit into this 430pt table. But the sentence doesn't break after "could" and keeps running out of line. Shouldn't long sentences…
pineapple
  • 413
5
votes
2 answers

Dashed vertical colored line with chosen width in tabularx

In the code below, I was able to produce dashed grey vertical lines of a certain width. I want to replace the solid line by a dashed one. I tried to add : using the arydshln package, but it leads to…
Anthony
  • 239
5
votes
4 answers

Table formatting with tabularx?

I am trying to format the table to obtain the one in the picture. However, the result is less than satisfactory, could you please help me with tabularx enviroment? \begin{table}[] \centering \caption{Value of the force local maximums…
Santi
  • 201
5
votes
1 answer

Table spreaded over multiple pages . Tabularx

To spread the table over multiple pages I know the utility islongtable But it seems that it doesn't work for tabularx . what is the solution. there may be duplication of question but couldn't find satisfactory answer.
Hima
  • 161
4
votes
1 answer

How to set the row height to equal to the column width of X in the tabularx environment?

Within the tabularx environment, X is a particular width which allows the table to fit the width of the specified horizontal space. I want to create a table which has square cells. How can I set the height of a particular row within a table to be…
Village
  • 13,603
  • 23
  • 116
  • 219
4
votes
1 answer

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 the cells are to have white text. Is there some…
user1189687
  • 1,953
4
votes
5 answers

Alignment when words are split

I'm using ~ to create indentation in a tabularx table. When space runs LaTeX take two lines which is fine but could be…
snoram
  • 240
1
2 3
10 11