{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

1
vote
1answer
49 views

Custom align specific part of tabularx

I have a tabularx environment with 3 columns and 5 rows. How can I align first row and first column right to left, while the rest of the table are aligned left to right? P.S. that currently my ...
0
votes
1answer
39 views

aligning header in table without affecting decimal alignment in the corresponding column

I have problems aligning the headers to their corresponding column without affecting the alignment of the decimals. How can I do this more automatically? \begin{table}[h!] \centering ...
1
vote
2answers
70 views

Problems with TikZ overlay in table with varios subfigures

I am trying to overlay a TikZpicture over my table and would like it to look like this: My code is the following \documentclass{scrreprt} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
0
votes
1answer
92 views

Nice tables in beamer presentation

I liked the approach shown here. beautiful tables in latex. But when I use it in beamer class, tabularx conflicts with xcolor. What is the solution?
2
votes
1answer
53 views

Image position related to table position

How can it be that an image and a table, that are places incide of the same mdframe are positioned differently? And how can it be resolved. This screen dump shows the problem: I would have expected ...
1
vote
1answer
37 views

Strange output with tabularx

This code is part of a larger file: \documentclass[11pt,BCOR8mm,final,linktocpage,twoside,open=right,headsepline,a4paper]{scrbook} \usepackage[ngerman]{babel} \usepackage[latin1]{inputenc} ...
0
votes
0answers
15 views

Get two tables without extra caption with different row length in one line [duplicate]

Code procuding "problem" (tables not in one line): .... \usepackage{tabularx} \newcolumntype{R}{>{\raggedleft\arraybackslash}X} .... \begin{document} .... \begin{table}[htb] \begin{flushleft} ...
2
votes
2answers
54 views

Get two tables with different row length in one line

Code: \begin{table}[htb] \begin{flushleft} \begin{minipage}{.55\textwidth} {\tiny{table1}\newline\newline} \input{"/path/to/table1.txt"} \end{minipage} \hfill \begin{minipage}{.4\textwidth} ...
3
votes
2answers
69 views

tabularx: use empty space between X and r

Want to use the empty space between X and r: \begin{tabularx}{\textwidth}{Xrrrr} \hline & X1 & X2 & X3 & X4 \\ \hline A & 1\% & 2\% & 2\% & 2.0\% \\ B & ...
2
votes
1answer
61 views

Can I insert a table when I'm using overpic?

I want to do something like this: \begin{figure}[H] \centering{ \begin{overpic}[scale=0.3,grid,tics=5]{???}\label{???} \tiny{ \put(80,55){\begin{table} \centering ...
0
votes
0answers
14 views

Is there an example using tabularx, longtable and spreadtab together? [duplicate]

I can't manage to get a working table with: multi page support / page breaks using the whole page width provide a sum at the bottom of the table / last row Is there a simple example on how to do ...
0
votes
0answers
17 views

Remove / delete column of tabularx [duplicate]

I'd like to remove one column of a table created with tabularx (I can not use tabular). With tabular you can do that by adding a r instead e.g. a l. Table: \begin{table}[htb] ...
3
votes
1answer
91 views

How to force newpage on tabularx

I wanted to make a table, but needed to force a couple of rows go to the next page. However, I got a strange error. How can I force a newpage using tabularx? \documentclass{article} ...
2
votes
1answer
43 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
119 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
133 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
127 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
55 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
48 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
469 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
64 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
87 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
62 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
34 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
43 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
228 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
33 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
108 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
257 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
32 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
108 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
65 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
72 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
71 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
45 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
97 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
62 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
30 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
69 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
75 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
197 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
37 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
52 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
32 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
87 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
33 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}{% ...