{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

3
votes
1answer
24 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
34 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
29 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
19 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
83 views

Drawing a TiKz Diagram within a Table [on hold]

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.
2
votes
2answers
30 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
68 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
67 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 ...
3
votes
1answer
55 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\\ ...
1
vote
1answer
43 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 ...
4
votes
2answers
121 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 ...
0
votes
0answers
42 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
75 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 ...
4
votes
2answers
109 views

Are tabls and tabularx not compatible?

The following MWE does not compile: \documentclass{article} \usepackage{tabularx,tabls} \begin{document} \begin{tabular}{ccc>{arraybackslash}c} 1&2&3&4\\ 1&2&3&4\\ ...
2
votes
2answers
134 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 ...
1
vote
1answer
40 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 ...
0
votes
2answers
70 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
39 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
47 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
28 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 ...
0
votes
1answer
99 views

I need this tikz and tabular sketch at the right of my presentation, and an itemize at left, but too much length

I need this tikz and tabular sketch at the right of my presentation, and some text at left. Unfortunatly the text is at left but in the down part of my frame, I need it at the center and starting ...
2
votes
3answers
100 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
64 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
49 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
2answers
86 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 ...
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
69 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
27 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 ...
4
votes
1answer
48 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
89 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 ...
0
votes
1answer
36 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
83 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
1answer
301 views

\midrule ->\noalign Known Error but can't resolve it for my tables [closed]

I have two tables in the below program. First tables generates error of \midrule -> \noalign etc etc, but second table doesn't. I wonder why, I want the output of first table as like second table. ...
3
votes
2answers
101 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
104 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 ...
3
votes
1answer
43 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
109 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
32 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
62 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 ...
1
vote
1answer
95 views

Serious table problems - something is wrong the text cell (it just continue?)

TWO MORE QUESTIONS: How do I add analyzes to the left side (so the letter turns into the figure and with a underline?)? And how do I remove "Game"-catogory, if I would like that?? It would be a ...
2
votes
1answer
80 views

Vertical aligment of dinglist inside table cell with `parskip`

Why is the list text so close to the top line of the cell in some lists? I know it's a problem with the parskip package. I can solve this by adding this strut in every cell before the text ...
3
votes
1answer
89 views

RTL and LTR columns in ONE table?

Is it possible to set some columns in one table as RTL while other are LTR? I want to do something like this: % !TEX encoding = UTF-8 Unicode % !TEX TS-program = xelatex ...
1
vote
1answer
1k views

tabular tabularx automatic linebreak (p/m/b doesn't work as expected)

The following snipped should break at the end of the column \begin{table}[hb] \begin{tabular}{|l|p{.5\textwidth}|} \hline \bfseries Col 1 & \bfseries Col 2\\\hline \hline Line ...
3
votes
3answers
1k views

How to have an itemize inside a tabularx

I am trying to have an itemize inside one of the columns in a tabularx, but when trying to compile this code: \begin{table} ...
1
vote
0answers
59 views

How to automatically vertically center text in Lyx?

I have the following table in Lyx: Here is how it looks in Lyx: I want the text "My words" to be automatically vertically centered. I also want the text for the items that are rotated to be ...
1
vote
1answer
109 views

array, table, tabular, tabularx, longtable, supertabular, longtabu [closed]

What is the difference between array , table, tabular, tabularx in terms of syntax , typesetting , ease of use, and appearance after compiling. In short, where will you use each of them and what are ...
4
votes
1answer
63 views

This code do not compile, this is figure environments inside tabular environment, adding captions and labels

This code do not compile, this is figure environments inside tabular environmet, adding captions and labels. I havent found the reason and an effective way to organize my graphs. This is the code Im ...
3
votes
2answers
59 views

itemize within tabularx does not work when ltablex is loaded

I need this code to be compilable without errors: \documentclass{article} \usepackage{tabularx} \usepackage{amsmath, mathdots, paralist} \usepackage{ltablex} % uncommenting this line will work ...