{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
83 views

This code do not compile, this is figure environments inside tabular environment, adding captions and labels

This code do not compile, this is figure environments inside tabular environmet, adding captions and labels. I havent found the reason and an effective way to organize my graphs. This is the code Im ...
4
votes
2answers
137 views

Are tabls and tabularx not compatible?

The following MWE does not compile: \documentclass{article} \usepackage{tabularx,tabls} \begin{document} \begin{tabular}{ccc>{arraybackslash}c} 1&2&3&4\\ 1&2&3&4\\ ...
4
votes
1answer
90 views

table (\tabular + \shortstack) gives weird result

I am using a template from this journal. When I am placing table in covering 2 columns (textwidth) using table* I get the following error. MWE: \documentclass[USenglish,twocolumn]{article} ...
4
votes
1answer
29 views

Erroneous vertical spacing in tabular in combination with makeindex

I'm having some trouble with vertical whitespace appearing in a tabularx environment where I really don't expect it to. Consider the following MWE: \documentclass{article} \usepackage{tabularx} ...
4
votes
1answer
71 views

Problem with column widths

I'm trying to create a table that has 2 rows: 25% and 75% of the \textwidth I also want the left column to be bold and right aligned by default. The second column is also right aligned. Now I want ...
4
votes
1answer
145 views

How to reduce font size automatically to prevent new line in cell

I use tabularx environment, where \begin{tabularx}{\linewidth}{XXXXXXXXXXXXXXX}. When I inserted in every tabulars long numbers, cell splits for two lines and my table looks like very ugly. This long ...
4
votes
2answers
392 views

dcolumn and tabularx, part 2

This is a follow-up on another question I asked. I am trying to combine the dcolumn package with tabularx (or tabular*for that matter) so the table spans the width I specify, columns are evenly ...
4
votes
1answer
2k 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
220 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 ...
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 ...
4
votes
1answer
355 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? ...
4
votes
1answer
667 views

Positioning of text in cells/tables

I want LaTeX to place the text of some of the cells in my table (using tabularx) at the bottom of the cell. Right now all the text I write in the cells will be positioned at the top of each cell. Can ...
4
votes
3answers
1k views

How to create equally spaced columns in a table with centered number blocks, which themselves are aligned on the decimal marker?

I've searched around this site and also alot with Google, but did not find exactly a solution to my problem: I want to create a table width equally (and automatically) spaced columns. These columns ...
4
votes
1answer
41 views

Tabular size \textwidth and exacly columns dimensions in cm?

I need make table which have /textwidth width and its columns have exactly dimensions in centimeters. Specifically - table width: 24cm and columns (in cm): 4,2 ; 7,6 ; 6,4 ; 3,5 ; 2,3 My document ...
4
votes
1answer
76 views

aligned-environment in tabularx - fail to align vertically

I try to have a simple tabularx-table in which the cell content is vertically aligned to the top. While this works as expected for text, two aligned-environments in adjacent cells are vertically ...
4
votes
1answer
72 views

tabularx - How to linebreak in the tabularx environment?

How can I add a linebreak between two tabularx environments in a single section ? \documentclass[a4paper, 14pt, oneside]{article} \usepackage{tabularx} % Nicer table style than the default ...
4
votes
1answer
68 views

Multicolumn is only using the width of the first column

I am using the multicolumn command to cover four columns in my table, but for some reason the text within the column is wrapping within a single column width leaving the remainder of the column empty. ...
4
votes
1answer
5k 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 ...
4
votes
2answers
338 views

Insert tokens where TeX would put a linebreak?

Given a TeX paragraph, is there any way to insert tokens at places where TeX would automatically insert line breaks (similar to \everypar?) To give some context, I am writing a LaTeX package for ...
4
votes
1answer
364 views

table in LaTeX giving error

I'm trying to create the table using the below script and its giving this error "! Missing $ inserted.<inserted text> $ l.689 \end{tabularx}" \begin{table*}[t] ...
4
votes
0answers
206 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
2k 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
1answer
9k views

Missing number, treated as zero. What is wrong in here? [closed]

\documentclass[a4paper,12pt]{article} \usepackage[dutch]{babel} % Quotes won't work without babel \usepackage[utf8]{inputenc} % This is very important! \usepackage[T1]{fontenc} \usepackage{graphicx} ...
3
votes
2answers
168 views

how to align tikzpicture and text in a table?

I need to put my tikzpicture and text in the same height. However, I cannot do it. This is my code: \begin{table} \centering \begin{tabularx}{\textwidth}{ |l|X| } \hline \multicolumn{1}{c|}{ ...
3
votes
3answers
1k 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
2answers
118 views

Last column in a table is too wide

I have been trying to create a table detailing the changes in speed over time, and have noticed that the last column (22 seconds) is disproportionately wide. Is there any way I can reduce the size of ...
3
votes
3answers
169 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
3answers
214 views

Long list of tabular figures inside minipage goes off page

Using the follow MWE, I'm able to create a beautiful lists of photos on the left and a caption on the right (similarly, I could also use the sidecaption package or floats directly). MWE [LuaLaTeX]: ...
3
votes
2answers
168 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
809 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
1answer
239 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
2answers
133 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
2answers
288 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
581 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
151 views

What options are there to globally format tables also allowing local overrides?

Tables are the final frontier of my documents. So far I have managed to standardized over 20 documents (hundreds of pages) using a single, shared preamble. Issue Abstracting format from content in ...
3
votes
2answers
126 views

Insert text in-between rows in a table

I'm trying to achieve the following effect: +------------+---------+ | Col1 Col2 | | +------------+---------+ | Value 1 | Value 2 | | Value 3 | Value 4 | Text goes here... | Value 5 ...
3
votes
2answers
51 views

tabularx column width not behaving as expected

I'm trying to reproduce the following tabular design as close as possible: This is what I have right now: \documentclass[12pt,a4paper]{scrartcl} \usepackage[utf8]{inputenc} \usepackage{tabularx} ...
3
votes
2answers
89 views

Unexpected behaviour of multicolumn/minipage in tabularx

Please take the following MWE into account : \documentclass[a4paper]{article} \usepackage{tabularx} \usepackage{array} \usepackage{booktabs} \begin{document} \textbf{Array A :} ...
3
votes
2answers
106 views

Table width bug

I'd like my table to look like it does in the top picture. If I delete either LINE-A, or LINE-B, in the code below, it works. If I leave them both there, however, it results in the wrong width of the ...
3
votes
2answers
110 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
172 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
140 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
262 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
250 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
2answers
2k 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
2answers
2k views

How to create a table that spans over multiple pages, breaking single rows

With the longtable package one can create a table that spans over multiple pages. The problem is that it will never break a row in two: either it stays entirely in the current page or it is moved ...
3
votes
1answer
1k 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} ...