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

Mixing m and X in tabularx

I have a problem with tables containing m and X columns. I need one column which should be vertically centered and another one which should fill the available horizontal space. My problem is that the ...
2
votes
1answer
45 views

Space to the right of the table

Not really sure why there is a space at the right hand side of the following table. Also the numbers inside the table should be shifted a bit to the left. \documentclass[12pt,a4paper]{article} ...
2
votes
1answer
55 views

Troubles for fit this floating table to the page

Sorry for the question but I have the following MWE: \documentclass[fontsize=10pt,paper=letter,headings=big,bibliography=totoc,DIV=9,headsepline=true,]{scrbook} ...
2
votes
1answer
266 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
219 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
453 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
87 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
167 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
670 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
1k 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
1k 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
28 views

tabularx/siunitx table: column of integers not properly aligned

I have adapted a table format recently suggested on t.SE, which works well except for two issues. MWE is below. \usepackage{array} \usepackage{dcolumn} \usepackage{tabularx} ...
2
votes
2answers
58 views

center alignment of headers in table

I have the following part table: \begin{table}[!h] \centering \begin{adjustbox}{width=1\textwidth} \small \begin{tabular}{|l||l|} \hline \textbf{Element Name} & \textbf{Description} \\ \hline ...
2
votes
1answer
27 views

Multicolumn and multirow (tabularx)

I have a table, and it should be also border betwen C and D in the second row and border between 12 and 13. How to do that? \documentclass{article} \usepackage[utf8]{inputenc} ...
2
votes
1answer
55 views

Vertical/Horizontal Rules in TabularX

I am trying to help kids identify whole numbers vs mixed numbers vs proper fractions vs improper fractions. I am having them practice using this table which needs two fixes. Vertical rules between ...
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
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
1answer
63 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 ...
2
votes
2answers
53 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 ...
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 ...
2
votes
1answer
61 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
85 views

How to align text vertically and horizontally in table cells of the same column?

I want to top align and right justify the text in all tabularx cells of a certain column. So far, I tried: \documentclass[a4paper,10pt]{article} ...
2
votes
1answer
87 views

Text alignment in tabularx header only works for the first column

\begin{tabularx}{.96\textwidth}{@{\extracolsep{\fill}}|c|c|c| } \hline \textbf{Xxx1} & \textbf{Xxx2} & \textbf{Xxx3} \\ \hline & & \\ \hline \end{tabularx} Why ...
2
votes
2answers
259 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
94 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
97 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
500 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
115 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
187 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
2answers
134 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
373 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
4k 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
154 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
398 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
394 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
30 views

Programmatic Table Building Error

I am trying to build a variable size table programmatically. All the logic works separate from the table commands, and the table commands work separate from the programmatic logic, but somehow when I ...
2
votes
1answer
45 views

table layout inside a newcommand

I wonder if I can define something similar to the \newcommand that places the values inside a pre-defined table (tabular) template. If you see the table above, imagine you would duplicate that many ...
2
votes
1answer
40 views

Text alignment in the table

I have increased the height of the rows in the table, and now I have a question how to make the text (УТВЕРЖДЕНО, РАЗРАБОТАНО, СОГЛАСОВАНО) in these rows in the center of the rows? ...
2
votes
1answer
31 views

Inexplicable table error — 'extra alignment tab' but I definitely have the right # columns; also overfull hbox

I'm having an issue where LaTeX won't accept the main heading row of my table (the third row of code below). When I comment out that line, it works. Here's the beginning of my tabular- ...
2
votes
1answer
47 views

Numbering of the rows in the table (tabularx) [duplicate]

How to make a numeration of the rows in the table(tabularx) automatically? I have a table, and in the first column I have numbers of the rows, right now I just type this numbers manually, but is ...
2
votes
1answer
31 views

Tabularx printing regex incorrectly

When printing regex in a tabularx environment, spaces get inserted after each character class. Is there any way to fix this? MWE: \usepackage{tabularx} Outside table: \verb~/\d+/~ ...
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} ...
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 ...
2
votes
1answer
35 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
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
1answer
84 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
71 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 ...
2
votes
1answer
85 views

TabularX Vertical Border Missing

Why is my table missing a little bit of its vertical rule near the top/right (just below where it says "Sets")? Context: I'm making fractions worksheets for students, many of whom will have diverse ...
2
votes
1answer
58 views

Various table formatting problems

I've been trying to format a table for my thesis for two days and it just doesn't work. I've already searched everywhere for answers but couldn't find them and/or understand them. Here's what I want ...
2
votes
1answer
53 views

I can't display complete a table made with ltablex

As you have seen in my last questions recently asked here, I'm working with tables. Usually with tabularx is enough for me to satisfy the needs that I have with my tables. But one of them, even when ...