{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
2answers
42 views

Create a table with specified column widths and centre spacing in tabularx

I would like to create a table where I can adjust the overall width of the table, hence the tabularx environment. However I am having difficulty in configuring my tables such that I can control: The ...
3
votes
1answer
17 views

when using tabularx and X, how to make the text vertically centered? [duplicate]

\documentclass[a4paper]{article} \usepackage[landscape,hmargin=2cm,top=1.5cm,bottom=1.6cm,headsep=1mm,headheight=3cm] {geometry} \usepackage{multirow} \usepackage{tabularx} \usepackage{microtype} ...
3
votes
2answers
36 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} ...
0
votes
1answer
42 views

mutilrow:how to deal with the text higher than the row height

\documentclass[a4paper]{article} \usepackage[landscape,hmargin=2cm,top=1.5cm,bottom=1.6cm,headsep=1mm,headheight=3cm]{geometry} \usepackage{multirow} \usepackage{tabularx} \begin{document} ...
3
votes
2answers
68 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 ...
4
votes
3answers
56 views

tabular: vertical align minipage in table (top)

I have a poster consisting of two columns. In one of the columns I have placed two figures next to each other. To get a nice tikz-frame around each figure I had to put them into minipages each (I did ...
2
votes
2answers
33 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
32 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 ...
4
votes
3answers
66 views

Tabularx adding unnecessary pages

My document is creating a {blank rest of page + empty page} before a tabularx table. Checked this thread with no dice - I couldn't solve with typical figure/table placement controls. This is my ...
4
votes
1answer
33 views

Colored Cells and Cell Contents Aren't Aligned As Expected

I'm trying to color some cells in a table, with the cell contents being centered vertically as well as horizontally. I can't seem to get the numbers - which seem to align with the header fine - to ...
3
votes
2answers
60 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 :} ...
4
votes
1answer
44 views

LaTeX alignment in tables

I'm trying to create a custom environment that uses tables to align some stuff. I want the first column to be left-aligned, so I used the command \tabularx{\textwidth}{ l X c X }. This produces the ...
3
votes
1answer
42 views

Commands not recognized and missing $ error message

I have an equation and added a legend beneath it to explain the variables (the syntax is copied from another duscussion here somewhere). MWE below: ...
0
votes
1answer
38 views

Pagebreaking in longtable with math column

I'm trying to write some step-by-step math proof of a formula in my electronics notes. The idea is to have two columns (side by side), the 1st has some text explaining the math, the 2nd one has the ...
1
vote
1answer
33 views

Tabularx table with many columns malformatted

In our software we have a module, that generates PDFs via Latex. Some of them contain tables and I want them to span the whole page. Since the number of columns varies, I use tabularx with all X ...
0
votes
0answers
20 views

How to change tabularx 'X' command to raggedRight [duplicate]

I want to use the X command from tabular X to evenly space a tables columns. However, the individual comulns are quite narrow, and this makes the justified spacing look really bad. Is there anyway ...
1
vote
0answers
94 views

Drawing a TiKz Diagram within a Table [closed]

Any ideas on how to draw a TiKz diagram within a table? I made this example of what I need to typeset in Word: I'd love to hear any suggestions, even if it requires reformatting.
3
votes
3answers
47 views

how to use \selectlanguage in ltablex?

Using ltablex.sty I need a multipage-table with columns in (polutoniko)greek, so I use >{\selectlanguage{greek}}X in the preamble of the column (I tried it with ...
1
vote
1answer
83 views

How to define potential page breaks in a long table?

I have a huge table that covers multiple pages: \documentclass[10pt]{article} \usepackage{ltablex} \usepackage[top=2.5cm, bottom=2.5cm, left=2.5cm, right=2.5cm]{geometry} \usepackage{bibentry} ...
0
votes
0answers
22 views

Include tabular in list of tables [duplicate]

I am currently having issues with a very long tabular which I had to divide across several pages (for my purposes \table did not work) and which I now want to show up in the list of tables. Is there a ...
6
votes
1answer
75 views

Save table using savebox

I want to save a tabularx using a savebox, such that I can define it in one place and print it in another. While the code below worked for a listing, I could not make it work for a table. Is there any ...
0
votes
0answers
52 views

Alias normalbaselineskip to \\ in a tabularx environment

I'm still on my way to my key:value table, and this time, I'm trying to alias [\normalbaselineskip] to \\. I still want to use the standard \\. What I want is to consider \\ as [\normalbaselineskip] ...
6
votes
1answer
77 views

tabularx processes its body multiple times; how do I know which cycle I am in?

Assume that I enjoy setting my tables using an \itemized or list-like coding structure: \begin{mytabular}[.5\textwidth] \item head1 & head2% <-- header row \item abc & def \item ghi ...
5
votes
2answers
139 views

Baselineskip not interpreted in a tabularx keyvalue environment

I'm trying to write a key:value environment which would allow me to create a dual columns tables where the columns are separated by colons. Typically, I've implemented this using parbox in my own ...
1
vote
1answer
55 views

Multipage table using tcolorbox and tabularx

Good day, Sirs and Madams! I am experiencing issues while composing a big table over several pages. I'd like to use tcolorbox in combination with tabularx. Unfortunately, this does not work out as ...
2
votes
2answers
155 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 ...
0
votes
2answers
86 views

How to import CSV files into my own style of tables?

I've been using LaTeX to write lab reports for a year now, which includes manually entering data into tables. However, now I am performing experiments that have way more datapoints that manually ...
0
votes
0answers
54 views

Allow breaking long words in table cell automatically

Is it possible to break long words (note, not lines) in table cell without adding \- or \allowbreak? Current code is: \begin{tabularx}{\textwidth}{|p{3.5cm}|p{3.5cm}|X|p{3cm}|p{3cm}|p{4cm}|} \hline ...
3
votes
1answer
51 views

hline not filling up in tabularx

I created a table with the following code: \begin{tabularx}{14cm}{|X|X|X|X|} \hline \multicolumn{4}{|c|}{\textbf{\cellcolor{gray!20}contentcontent}} \\ \hline ...
0
votes
0answers
9 views

How to have a table span the entire page width [duplicate]

So I'm trying to type up my resume in Latex. I have two addresses I want to list and I would like to have one on the right of the page and one on the left. I'm assuming I can do this with a table but ...
2
votes
1answer
33 views

Last column vertical rule missing

I'm dealing with the powerful tabularx environment. I was able to obtain a nice table, except for the last column. I need seven columns in total, but at the end I got another half column. I can't ...
2
votes
3answers
105 views

Table not looking good tabularx

I'm trying to make a table in Latex but I'm not expert in it and it's not looking good. Below is what I did but the result is not fitted and not looking good so if anyone could please how I can ...
2
votes
1answer
69 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
57 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 ...
1
vote
1answer
22 views

Footnote including \tabularx results vertically wrong alignment of footnote number

Using the \tabularx inside a footnote with the code: \footnote{\label{statistik1}\begin{tabularx}{\textwidth-3em}{lrrrr} \noindent Jahr~& Eheschließungen~& Ehescheidungen~& ...
4
votes
1answer
76 views

Vertically center column separator in tabular

I'd like to vertically center a custom column separator in tabular. I have tried \begin{tabular}{c @{ $\vcenter{\rightarrow}$ } c @{ $\vcenter{\rightarrow}$ } c}...\end{tabular} to no avail. Other ...
1
vote
0answers
33 views

itemize inside tabularx seems to break exam class gradetable

I'm using the exam class. If I use the itemize environment inside a tabularx, LaTeX gives me warnings when I use the gradetable command: LaTeX Warning: Reference `question@1' on page 1 undefined on ...
3
votes
1answer
59 views

Automatic right justify in table - multiple choice question

My code part \newcommand{\iib}[5]{ \begin{center} \begin{tabu} to 0.42\textwidth {@{}|X[l]@{}|X[l]|} \textbf{A)} #1 & \textbf{B)} #2\\ \textbf{C)} #3 & \textbf{D)} #4\\ ...
4
votes
1answer
57 views

Creating table using tabularx and datatool from csv file

I am trying to create a vocabulary list from a csv file containing the vocabulary using tabularx and datatool. This is what I have tried: \documentclass{article} \usepackage{datatool,tabularx} ...
3
votes
2answers
94 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 ...
1
vote
1answer
53 views

tabu and tabularx compatibility - for htlatex, tex4ht and migration between tabu and tabularx

Is it possible to renew the tabularx environment so that it will take the tabularx style parameters? Or the other way around? \begin{tabularx}{\textwidth}{ ... } % ... \end{tabularx} \begin{tabu} to ...
0
votes
1answer
37 views

Vertical lines within cell

I'm trying to replicate the folowing table in LaTeX with booktabs: However, I have trouble making the vertical lines. Here's what I have so far: \begin{tabularx}{\textwidth}{l | c c c c c c c c c ...
3
votes
3answers
88 views

Conflict between areaset and sidewaystable with tabularx

I have a problem with one large table, and I could finally narrow it down by reducing the preamble and commenting out some lines. The Problem: I have a table defined like that (please see the MWE ...
3
votes
2answers
121 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|}{ ...
5
votes
3answers
116 views

Vertically align multirow in tabularx environment

I'am trying to align the first multirow column vertically centered. Unfortunately multirow does not determine the actual height. Instead it aligns the multirow it based on the height of three single ...
2
votes
2answers
90 views

Vertically center tikzpicture in table

I'm tryin to vertically center a tikzpicture in a table. Here's a not-very-minimal example: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} % UFT8 - danske bogstaver og andet godt fra havet ...
3
votes
1answer
47 views

How can I have automatic line breaks in a multirow inside a tabularx?

I want that the table fits the page, but by default the table is too wide. I already tried tabularx, but now the rows that use a multirow aren't high enough. This is my code right now: ...
4
votes
2answers
125 views

Newline linespacing problems within a table cell

I have problems with the linespace inside a longtable environment when forcing a linebreak. Following code should illustrate the problem. ...
2
votes
1answer
33 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
2answers
79 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 ...