{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
1answer
41 views

Alternating coloured rows in table - line width of colouring -

I'm creating a table with alternating coloured rows. However, the colour seems to extend the top- bottom rule of the table, which doesn't look quite right. Also, my header row probably should be a ...
2
votes
3answers
109 views

Make a tabularx environment fit inside the text block

My tabularx environment doesn't fit, width-wise, inside the text block. The \hlines do, but the text does not. Excel2latext is used to make the table. Only the 'x' is added to tabular. ...
1
vote
1answer
119 views

\multicolumn in a {tabu} with non-X columns

In a tabu environment (tabu 2.8 package), I use \multicolumn to omit some cells' preamble (and occasionally span multiple columns). Unfortunately this breaks down the width calculations when there are ...
2
votes
2answers
105 views

How to change column width on each row?

I am trying to create a table layout such that my first row has different column spacing than the rest of the table. It's a header (well, part of a pair of headers) for a table of names. The layout ...
3
votes
1answer
51 views

Customize Committee page in Tabular Form

I want to draw following customize table of committee members in latex. How can I draw this in latex? I am trying to use following code but its not working. ...
1
vote
0answers
45 views

I am trying to make these chemical molecules into a nice table

I am writing a organic chemistry report and would like to create a nice table with these two molecules with captions A and B to fit into a lab report ehtyl acetate toluene Here is my code: ...
1
vote
0answers
335 views

Package array Error: Illegal pream-token (3): `c' used. with tabularx

I have a table \begin{table}% \begin{tabularx}{\textwidth}{c *{6}{Y}} \toprule Compare with game & \multicolumn{2}{3}{95\% confidence interval} & p-value\\ \midrule P1 & 0.45 & 0.28 ...
3
votes
1answer
60 views

tabularx automatic line break and aligned over several tables

I found here a solution to the problem of having an automatic line break: \documentclass{article} \usepackage{tabularx} \usepackage{listliketab} \usepackage{lipsum} % only for this example ...
1
vote
1answer
83 views

LaTeX graphical lines for domain results

As usual I have a problem with LaTeX code; this time is to show the results of domains interval for example when I have a rational function and I have to split domains into the Numerator one and the ...
2
votes
1answer
61 views

Listings inside tabularx table?

I'm doing a very long sidewaystable with tabularx. The thing is that I have a lot of text in columns: I did it using minipage and enumerate. The thing is that I was wondering if there's any way I ...
4
votes
1answer
31 views

Framed mini pages with shared inside border?

So I have been trying to get two mini pages, side by side, in one box with a shared center border. The best I have gotten is \documentclass[12pt]{report} \usepackage[paperwidth = 8.5in, ...
1
vote
1answer
42 views

Using tabularx to create custom section headers

Like many LaTeX users, I spend too much time tinkering around rather than writing the actual document. But I am wondering if anyone has attempted this or not. I've been working on getting the first ...
6
votes
3answers
224 views

Two longtables side by side

I'm trying to add two tables side by side they need to be split, cannot be multi column like a & b & & & & c & d \begin{longtable}{cc} \begin{longtable} \hline ...
2
votes
1answer
32 views

How to fix default table number and description separator

I have 2 tables using different packages, but the caption gennerate different: When I use table with tabularx: Table 1 – A simple example When I use longtable: Table 2: A simple example ...
2
votes
1answer
100 views

Align Numbers in tabularx with standard deviation

I'm trying to make this table with numbers and standard deviation, how can I aligns the numbers properly? The spacing between numbers and st.dev is too high and the numbers are not aligned to the ...
3
votes
3answers
245 views

LaTeX Table problem

I would like to build a simple LaTeX table, something like a 3 columns x 4 rows table, as in figure (hand drew). The problem is that I cannot find anywhere a simple explanation about the code to ...
2
votes
1answer
26 views

Tabularx p column broken vertical line with manual linebreak

I have a table that uses tabularx with some p columns and some X columns. In the p columns I manually added line breaks. Everything is fine except the fact that the vertical lines that divide the ...
2
votes
0answers
27 views

colored column in tabularx [duplicate]

In a tabularx, I try to set the text color for a complete column as follows: \documentclass{article} \usepackage[papersize={60mm,60mm},margin=5mm]{geometry} ...
1
vote
2answers
91 views

Table error - Extra alignment tab has been changed to \cr

Where I did wrong? \begin{table} \begin{center} \begin{tabularx}{\textwidth}{YYYYYYY} \toprule \textbf{Style} & \multicolumn{2}{c}{\textbf{Yarn}} & & \multicolumn{2}{c}{\textbf{Count}} ...
1
vote
0answers
58 views

Linewidth of tabular with booktabs varies randomly

The Following MWE produces the output that I want to achieve: \documentclass[11pt, a4paper, twoside, %openright, toc=listof, BCOR=5mm, bibliography=totoc, parskip=half]{scrreprt} ...
3
votes
2answers
66 views

Overfull \hbox when using tabularx

I found a lot of related questions about Overfull \hbox warning and tabularx but none of them have helped me so far. This is a minimal code which reproduces the warning (the real table isn't so ugly ...
1
vote
1answer
65 views

How can I set the width of a column using multirow command with tabularx, sidewaystable and longtable?

I'd like to ask for a very big favor: I need to do a long table (more than 1 page) which needs to be in 90 degrees (sidewaystable) and well, I need to stablish the width of the columns while using ...
1
vote
1answer
29 views

Rows of the same column behaves differently, why?

I have a tabularx with 4 columns and 2 2-3 rows. The problem is that even though the first row behaves as expected, the second one doesn't. I am trying to set the 3rd column right aligned and the 4th ...
2
votes
1answer
42 views

Extra blank lines in tabularx

I have written a macro that uses the functions in xstring: \newcommand{\yyyymmmdd}[1] {\IfSubStr{#1}{-01-}{\StrSubstitute{#1}{-01-}{-Jan-}}{} \IfSubStr{#1}{-02-}{\StrSubstitute{#1}{-02-}{-Feb-}}{} ...
0
votes
0answers
43 views

Horizontal line overlapped by colored cells in table

I am unable to get a horizontal line visible after I have applied color to the cells. Also, the text "After Fault Clearance" doesn't seem to be vertically centered. Below is a sample of my problem: ...
4
votes
1answer
95 views

Running to Form This Table Gives Error

I appreciate any helps on debugging this code below. I am having difficulty making this table (10-columns), where: arrays: (2:end,1)=3*multirow(3); Other arrays are normal. Code: ...
2
votes
1answer
47 views

“Misplaced \noalign” error when compiling table made using \tabularx

Can someone help me fix the problem? \begin{table*}[t] \centering \caption{Message header fields (64-bit total)} \label{table:header} \begin{tabularx}{\textwidth}{|l|l|l|} \hline ...
0
votes
0answers
29 views

set table spacing to be different from whole document

I am writing up my thesis and set \linespread{1.5} at the preamble. But I want my table to be of single spacing, because apparently when the table is of single spacing it fits nicely in 1 page, but ...
2
votes
0answers
67 views

Vertical Center in Tabularx

I know this question has asked many times before, but is there maybe another efficient way to really vertically centre text in a tabularx environment? \documentclass[a4paper,9pt]{extarticle} ...
1
vote
1answer
74 views

Need help for tabularx table

I need some help regarding formatting a table in tabularx (I'm only allowed to use tabularx). I'm encountering some problems and I can't diagnose the issue as this is the first time I am using Latex. ...
5
votes
2answers
182 views

Tabularx option in tcolorbox: how to colored the first row?

I like to have the first row in table make with tcolorbox with tabularx option with different color as it is in the other rows. I try to use \rowcolor{<color>}, but i received error: Misplaced ...
2
votes
2answers
36 views

Lines Between Column Headings not Properly aligned using tabulary?

Using the answer from prosseek here: Making table width fit into text width I was able to shrink my table to the textwidth. Unfortunately when I do this the lines between the column headers are no ...
2
votes
2answers
50 views

Help on converting tabularx to longtable

I have a table written inside a tabularx environment, but now is too large and I need to convert it in a longtable, preserving the same column distribution and width. I don't know how to adjust the ...
1
vote
1answer
31 views

Adjust cell to text in multicolumn

I want to force the columns 2,4 and 6 to fix the width of the content (like column 2) but I can't get the same results for columns 4 and 6. What's the problem? ...
1
vote
2answers
84 views

Multiple columns in table

I have this table below and I have been ever since trying to make the column work, but it just does not appear like this at all. The first and the second column are fine, but when it comes to the ...
2
votes
0answers
44 views

Box height in tabular

I have this macro \code that produces a box. And I want to create a tabular "environment" that acts like enumerate except it puts the items into a grid. \documentclass{article} \usepackage{tabularx} ...
0
votes
0answers
32 views

How can I edit this code so that no numbers display on the right hand side

\usepackage{tabularx} \newcounter{matchleft} \newcounter{matchright} \newenvironment{matchtabular}{% \setcounter{matchleft}{0}% \setcounter{matchright}{0}% \tabularx{\textwidth}{% ...
2
votes
1answer
33 views

Refer to table body in new environment

I'm trying to create a new environment based on tabularx. I'd like it to have a \bottomrule at the end. How do I refer to the table rows on the new environment definition? Right now the bottom line is ...
0
votes
0answers
52 views

Problem “Go to Page”, Footnote in Table

MWE \documentclass[a4paper,11pt]{book} \usepackage{tabularx} \usepackage[svgnames]{xcolor} \usepackage{footnote} \usepackage[colorlinks=true,linkcolor=blue]{hyperref} \makesavenoteenv{tabular} ...
2
votes
1answer
81 views

Vertically center text in tabularx

There are already many answers to this question, but no one seems to have the solution for my case. My table looks, written with the following code, like this: \documentclass[a4paper,9pt]{extarticle} ...
2
votes
1answer
60 views

Vertically Center Last Column of tabularx

How do you vertically center the last column of a tabularx table? I tried to create a custom column, though, TBH, I don't really know what I'm doing. Basically, I'd like the contents of the left and ...
2
votes
1answer
68 views

Subcaption of figures in a table

There are two ways I would like to describe the figures in the table: put sub caption under each figure (preferred) or insert the description directly in the figure. To create a table of figures, I ...
1
vote
1answer
42 views

Can't get table to correct width oder size

I'm aware that here lots of questions regarding table formatting, but I couldn't fight the fitting answer and meanwhile I think it is any global misconfiguration. My goal: fit table on page in ...
1
vote
2answers
76 views

A booktabs question: How to get rid of the blank column?

I tried to make a table like this: But I don't want those black space, how can I get ride of them? (I still want the table to have text width ) I referred to the latex code of ...
4
votes
2answers
117 views

Centering doesn't work for figure with tabularx

I have a figure with 3 images in it, searching TeX I found out that the best way to accomplish that was with a tabularx inside a figure, like this: \begin{figure}[t] \centering ...
3
votes
1answer
67 views

How to fit the content of the cells in this table?

Well, surely this is a duplicate, but I have troubles with the alignment of a huge table. In fact my problem is to determine the width of each column properly, especially when the columns are narrow, ...
2
votes
2answers
50 views

Vertical alignment of text based on image height [duplicate]

Problem: Trying to use tabularx to align text to a number of images. I have opened a similar question regarding tabular but decided to open a new specifically for tabularx since the tabular approach ...
1
vote
0answers
103 views

Long and wide subtables

I'm not a LaTeX expert. I'm using it to write my thesis. Here's my problem. I have a set of tables and subtables, wich are very wide and long, so I'm using \begin{table}[H] ...
0
votes
0answers
64 views

How to use tabularx and siunitx together with siunitx 2.6h / texlive 2015

This is a follow up question of this question: How to use siunitx and tabularx together? Updating to texlive 2015 (with siunitx 2.6h) seems to have broken the accepted answer. So the question is How ...
2
votes
0answers
62 views

Alignment of TikZ Pics in TabularX

What is the easiest way to get that last square aligned the same was as the first two? Do I need to create a \newcolumntype that somehow centers the content both vertically and horizontally? If so, ...