{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
2answers
2k 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 ...
2
votes
1answer
8k 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} ...
2
votes
2answers
150 views

Aligning the tops of two tabularx environments

I have used the following to place two tabularx environments next to each other \begin{table} \begin{center} \begin{tabularx}{190pt}{l} \toprule ... Content ... \bottomrule \end{tabularx} \quad ...
2
votes
1answer
2k views

How to apply \raggedright to my table headings?

Can somebody show me how to apply \raggedright to my table headings in this example? \documentclass[a4paper,12pt]{article} \usepackage{tabularx} \usepackage{booktabs} \usepackage{siunitx} ...
2
votes
2answers
171 views

Table example made in Google Docs - how to make (would one make) this in LaTeX?

edit -> the emphasis on Google Docs might be a bit much, basically it's just a little table thing, it's not something unique to Google Docs thats just what I happened to use to make this. I made ...
2
votes
2answers
93 views

Vertical spacing options in tables built under the tabularx package

Goals: Add a space above and below the text line containing the Table 1's column headers. Add a space below the second hline. Add a space above the third hline. The code below contains the ...
2
votes
2answers
2k views

Overfull \hbox (15.0pt too wide)

I have multiple tables which look like this: \begin{tabularx}{\textwidth}{|l|X|l|} \hline \textbf{ID} & \textbf{Description} \\ \hline 336858 & The description \\ \hline \end{tabularx} and ...
2
votes
2answers
149 views

Align the word input of algorithm2e with a tabularx table

I'm referring to this post. I like the idea from 'a different ben' of the tabularx table inside the \Input command. But I would like to have the word Input: at the top, on the same line as the first ...
2
votes
1answer
250 views

Long tabularx doesn't break rows

My long tabularx doesn't break rows when it runs to a second page. Are there any ways I can break long table? (But doesn't tabularx break long table automatically?) In this case, I'd like Par. 1 in ...
2
votes
2answers
250 views

Align equations inside tabular

How can I align equations inside tabular? I want to place few lines of equation by side of the picture. But it turns out that I cannot use \& in order to shift equals signs to be one under ...
2
votes
2answers
951 views

Align position of decimal point within tabularx

I have made a table with 5 columns, of which I'd like the last 4 to be of the same width. Therefore I was told I should use tabluarx. Using this package my output looks fine, but I have also numbers ...
2
votes
2answers
188 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} ...
2
votes
1answer
182 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 ...
2
votes
2answers
46 views

When using colortbl, column is still white. What am I doing wrong?

It is probably apparent I'm trying to color the last column green, but for me, it shows up as white still. Also, if I understand correctly '>' is just used by tabularx for demarcating formatting ...
2
votes
1answer
74 views

Performance question - Tabularx or manual column width calculation?

I'm using the tabularx package and the provided X column type to get dynamic column widths. Since the pdflatex run takes longer and longer, I'm wondering whether it would be faster to use an ...
2
votes
2answers
154 views

How to *disable* Lua's Microtype for a given tabular column?

I'm looking for a way to disable Lua's Microtype (note the capital M - to distinguish from the lower case microtype package) in the first tabular column of the MWE given below: ...
2
votes
1answer
154 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 ...
2
votes
1answer
73 views

Long (two-page) table in twocolumn document

I'm trying to include a not too lengthy table of mathematical notation definitions in a paper I'm writing. The paper is in twocolumn mode, the definition table has to span both columns, because ...
2
votes
1answer
97 views

Align numeric values from knitr command \Sexpr{} by decimal in table created with booktabs and tabularx

I am writing my thesis as dynamic document using .Rnw, knitr and R. I ran my statistical analyses in an external R-script, which I sourced into my main .Rnw-file. I also want to create some tables ...
2
votes
1answer
160 views

tabularx table and the indentation from the addmargin environment

I have a problem with the indentation done by the addmargin environment of the koma script and the use of tabularx table. Clearly the \textwidth uses the original width of the text and not the smaller ...
2
votes
1answer
79 views

My Table Adds Page Breaks

I am making a table and have two problems. Here is the start of the TeX file: \documentclass[12pt]{article} \usepackage{tabularx} \usepackage{afterpage} \usepackage{pdflscape} \usepackage{amsmath} ...
2
votes
2answers
140 views

Need help with long and wide table; tried longtabu, longtable, sidewaystable and nothing seems to fit!

I've literally been spending hours, trying to fit this long and wide table with a series of packages: tabu, longtabu, tabularx, sidewaystable, but nothing seems to fit. This is for a thesis so I ...
2
votes
1answer
507 views

TabularX vertical alignment

Since the enumiten Package (and therefore leftmargin=*) doesnt work in custom environments, I was trying to trick a bit, doing the items in a table like this (don't ask..) : ...
2
votes
1answer
721 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 ...
2
votes
1answer
580 views

How do I typeset a table with a caption within a tabularx within another table with a caption?

Unfortunately, it keeps bugging me with forgotten \endgroup, float(s) lost, not in outer par mode and so on. In other words, why can't I do something like this (the actual table is significantly more ...
2
votes
1answer
37 views

How to I use a longtabu inside \newenvironment?

I have the following newenvironment defined using tabularx \newenvironment{factlist}{% \newdimen\unbaseline \unbaseline=\dimexpr-\baselinestretch\baselineskip\relax ...
2
votes
1answer
36 views

Centered columns with fixed width using tabularx

How do I center the last seven columns in the attached text without dropping the fixed table width or the fixed column width? \documentclass[a4paper,12pt,oneside]{article} ...
2
votes
1answer
152 views

Decimal alignment in tables with tabularx and multicolumn

in my masterthesis I want to create regression tables the numbers in the table are aligned by the decimal point. Here is a MWE to get an impression what I'm talking about: ...
2
votes
1answer
72 views

\newenvironment behaviour with \begin{landscape}

I would like to use landscape mode for a \newenvironment{lessonPlanner} in which I have a table. but I get an error when I embed \begin{landscape} and \end{landscape} in the begin and end statments of ...
2
votes
2answers
81 views

Tabularx and short caption causes error

I'm trying to construct a multi-page, landscape table with variable column widths. It was working until I started to get a problem with the caption. If I try to include a short caption I get the error ...
2
votes
1answer
217 views

Force Kile to create tables that are inside the page width

I am using the Tabular Wizard on Kile to create a \tabularx environment for one of my tables, and I want it to fit inside a page. Currently this is my setup: {% ...
2
votes
2answers
201 views

How to make width of an inner table use full column width of an outer table?

When making tabularx one need to give a table width. For the outermost table, one can use \textwidth. When making one or more inner table(s) inside outer table(s), the inner table(s) also need a ...
2
votes
2answers
2k views

Big Table in latex

Could you please helping me to draw a nice big tables like this one , I don't know how to mange the big table in LateX Many thanks
2
votes
1answer
135 views

Multicolumn cells in tabularx overfill into margin

I have this table in my MWE. In the 2nd table, the cell colors seem to bleed over into the margin. I have tried to set various parameters with the tabularx and in the multicol to reduce this but it ...
2
votes
1answer
274 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
269 views

How to obtain the width of a column within the APA document class?

I am using the APA document class. My document has some tables: \documentclass[jou]{apa} \usepackage{tabularx} \title{This is the title} \author{This is the author} \begin{document} \maketitle ...
2
votes
2answers
56 views

Draw vertical line on top of horizontal table lines

I'm using two \hline for horizontal line and \begin{tabular}{c | c c c c c} option for vertical line. This is some part of my table: I want vertical line on top of double horizontal lines. How can ...
2
votes
1answer
43 views

Tabularx ou Tabulary environement populated by csvsimple information

I am currently using csvsimple to import table data. Some of the cells information is too long and I would like to dynamically manage the column width. I have been trying to add the tabularx or ...
2
votes
2answers
34 views

tabular array error in the width

I would like to create a matrix with index (left and top position) and a sum columns and rows (bottom and rigth position). I have tried that : \documentclass{article} \usepackage{amsmath} ...
2
votes
1answer
37 views

Remove top indent of itemize without using minipage in tabular(x)

I am using minipage in my tabularx because it was the only way I found to remove the top space of the itemize environment. However, since minipage cannot break at when the page does, I have a very ...
2
votes
1answer
72 views

Place circuit figures side by side in tabularx environment

My MWE, \documentclass[a4paper,11pt]{book} \usepackage{tabularx} \usepackage{tikz} \begin{document} \begin{enumerate} \newcommand{\OOO}[4]{% \begin{tabularx}{\linewidth}{@{}X@{}l@{}} \textbf{A)} #1 ...
2
votes
1answer
44 views

Extra horizontal lines in tabularx package

When I use the tabularx package to generate a table, this happens: \documentclass [12pt]{book} \usepackage{tabularx} % for stretching tables to page width \usepackage{multirow} % for multiple ...
2
votes
1answer
47 views

Finding the width of \bf text for sizing a paragraph in a table

I have this structure, which builds a table exactly the width of the text, split into two columns. I want the left column to be exactly the width of the longest words in the column, but to still be a ...
2
votes
2answers
62 views

Table used to place text and symbols

I want to place some text and a line created with rule. It should look like the example you can see as image. The table shall be textwidth. \documentclass[a4paper, 11pt]{memoir} ...
2
votes
1answer
42 views

How can I place dot2tex graphs next to each other?

I have two dot2tex graphs that have a relatively large height and small width. The combined width of the graphs is considerably smaller than the text width. For example: ...
2
votes
2answers
112 views

vertically center text in a table

I've got the following table: \documentclass[11pt]{article} \usepackage{rotating} \usepackage[ lmargin=1.0in, rmargin=1.0in, tmargin=2.0cm, bmargin=2.0cm ]{geometry} ...
2
votes
1answer
553 views

Tabularx, Caption and Footnotes

I need to have some tables with the following requirements: The need to be of width \textwidth; The caption has to be on top of the table even at automatic page breaks; The tables should not float; ...
2
votes
1answer
264 views

Justified text and multicolumn size in tabularx

I'd like to create table with (a lot of) justified text and some multicolumns. My example is below. It works more or less... but I get lots of underfull \hbox notices, which I think it's because ...
2
votes
1answer
127 views

Beamer: tabular out of the boder

I am writing slides under beamer. A tabular is out of the boder of the slides. What shoud I do? Resize? \begin{tabular}{ccc} $\hat{\tmmathbf{v}}^1 = \frac{1}{\sqrt{N}} \left(\begin{array}{c} ...
2
votes
1answer
34 views

\the\thislevelcount is available inside a ForEachX loop, but \thislevelitem is not (the forarray package)

I'm trying to loop though a comma delimited list and print out the elements in a table. Here is the code that works half-way for doing this: \documentclass[10pt,a4paper]{article} % ...