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

Error while setting column width in Latex: Package array Error: Illegal pream-token (3cm): `c' used

This is my code to build a simple table. \begin{table} \small \centering \begin{tabular}{ l{3cm}|l|l|l} .... \hline \end{tabular} \end{table} But, I am getting the error Package array Error: ...
0
votes
0answers
19 views

Footnote missing when used with table, tabularx

I'm using fithesis3 class and I'm unable to get to work table + tabularx + footnotes + footnote references. I have tried \tablefootnote - http://tex.stackexchange.com/a/35328 \scrextend (\footref) ...
1
vote
1answer
21 views

Table formation using Multirow, tabularx

I am preparing an article having a table, for a Springer journal. I am using tabularx, multirow. My table code is attached. I am not able to bring the lines 'xxxxxxxxxx xxxxxxxxxxx xxxxxxxxxxxx' and ...
0
votes
0answers
26 views

Missing table borders when using tabularx

I'm using tabularx with this solution: http://tex.stackexchange.com/a/12712 to achieve right alignment in a variable column width based on content size with linebreaks. I would like the result to ...
1
vote
1answer
21 views

Include three images, so that the first one spans over two rows

So I would like to have 3 images; the first image spanning across the two other images (the first one is taller than the other two). Example: [1]|[2] [1]|[3] Here is the code I currently use, keep ...
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
2answers
168 views

How to fit 3 equations in the page with number 2a, 2b and 2C?

I have the following issue. I am trying to fit 3 equations in one line with the label of 2a, 2b and 2c. Up to now (I am using tabularx)I am only able to get the 3 equations on the same line with ...
7
votes
1answer
47 views

How can I generate precisely one warning within a tabularx environment?

I realise this is an unholy mix of expl3 and LaTeX-2e, but most of my code is like this at the moment, unfortunately. I want to be warned when I fail to set a particular variable. More specifically, ...
0
votes
1answer
21 views

Table going beyond the page width

Why this table expands beyond the page? \begin{table} \caption{Class distribution in the succeeding partitions from $ A_{1} $ and $ A_{2} $} \label{table:ClassDistribution} ...
3
votes
1answer
27 views

Slightly mispositioned hyperlink to start of tabularx environment

I'm writing a document where I have to put a lot of similar tables (and I have to keep them "similar"). So I'm writing some macros to generate and partially fill the tables automatically. (I generate ...
3
votes
2answers
22 views

Problem with multicolumn

I'm working on a new environment based on tabularx and using some luatex functions. Actually, I have the following code. \documentclass[10pt,oneside]{article} \usepackage{luatextra} ...
7
votes
3answers
75 views

How to handle input strings in tables, when the input string has line breaks in it?

I have a document template I've written that has worked well until now. It includes input to define things like the name of the document, doc control numbers, etc. Unfortunately, I have a case of ...
3
votes
1answer
40 views

Creating a Requirements Traceability Matrix

I am having some trouble creating a traceability matrix similar to the image shown below. How would I be able to create: Rotated column headings Heading row height different to the other rows any ...
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} ...
3
votes
2answers
29 views

misalignment of column values in a tabular* / dcolumn table

I am using the following code to create a table for a paper I am writing in Overleaf. \usepackage{array} \usepackage{dcolumn} \usepackage{booktabs} \newcolumntype{d}[1]{D{.}{.}{#1}} ...
0
votes
1answer
28 views

Tabularx and decimal alignment with dcolumn

I am trying to implement decimal alignment on a regression table using tabularx. I am using the dcolumn package to do it, but there are two problems: (i) only two out of three columns are decimally ...
4
votes
2answers
52 views

How do I centre a tabularx table?

I have a pretty big data table for an organic chemistry lab and trying to make it look nice as possible. However, not all headers are centred. % Organic Chemistry II Lab Template ...
1
vote
2answers
24 views

Column alignment and spacing in tabularx

I have a problem with my tables and I am not sure why. I made this table format a long time ago and wanted to use the same style again. Though I cannot seem to get the leftmost column to behave. I ...
1
vote
1answer
37 views

Mysterious summing: when calculator 's \ADD macro adds too much inside a table

Background: In my previous question, Robert Fuster taught me how to define a global variable using calculator package. I want to define a "counter" that also works with non-integers. I thus defined ...
3
votes
3answers
46 views

Gather equations and tables side-by-side

How can I make both the table and the gather be on the same level. Is there a better way than tabularx? \begin{tabularx}{\linewidth}{X|X} {\begin{gather*} C_{g|in} =C_{gn}+C_{gp}\\ ...
1
vote
0answers
37 views

Tabular Columns with Different Vertical Alignment

I'm trying to arrange a poem with one word followed by a block of text followed by one word aligned with the bottom. I keep getting stuck \documentclass[11pt]{article} \usepackage{tabularx} ...
1
vote
1answer
45 views

How I merge the cells?

I put this code in LaTeX: \begin{table}[H] \begin{tabularx}{\linewidth}{l*{4}{>{\centering\arraybackslash}X}} \toprule Ensaio & Medi\c{c}\~{o}es do comprimento do fio (cm) & Incerteza ...
0
votes
1answer
40 views

How to make the table fit in a page?

I have the following table and it doesn't fit in the page. I already tried looking for the threads which were relevant, tried all suggestions but no success. Here is my code: \usepackage{array} ...
5
votes
3answers
173 views

Undesired table lines

I have created following table And I have a left vertical line that starts to early. Also it looks like the column with heading SE are wider (true??). I can't find anything in my code explaining ...
1
vote
0answers
13 views

How to let table stay in example environment? [duplicate]

My table is choosing not to stay in the example environment I created for it, however the text I placed in there are included. I notice that when I remove the table environment and let tabular remain, ...
3
votes
2answers
82 views

Table size and multirow problems

I'm beginner and have some problems with a table. The table is to wide and I tried to solve it with multirows. But I don't get how to have the line break in the first column or if there is a easier ...
1
vote
1answer
38 views

Problem with tabularx's vertical spacing

I have a problem with the way tabularx (or is it booktabs?) is handling vertical spacing between horizontal lines and the cell content / background color. MWE: ...
2
votes
2answers
56 views

How to set latex table columns from the rightmost margin?

I want to display a table in latex. Currently I have the following situation. \usepackage{array} \newcolumntype{P}[1]{>{\raggedright\arraybackslash}p{#1}} \begin{table}[h!] ...
3
votes
1answer
28 views

How to change the colour of the all lines in tabularx?

I have a LaTeX document, where I have a tabularx environment, and I need to change all lines in the table to grey. I have tried this command \arrayrulecolor{grey}\hline, but it changed just the colour ...
3
votes
1answer
33 views

How to remove indentation and vertical spaces in list in a table?

I am trying to make a CV and there is a section where I want to list the projects I have done with bullets, so I use itemize list inside a tabularx environment like this: ...
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 ...
1
vote
1answer
19 views

hbox badness with line breaking in tables and use of \raggedright

I am hunting for hbox badnesses in my document at the moment and have some problems in resolving issues with a table using tabularx. As suggested in this thread I am using \raggedright to relax the ...
3
votes
1answer
63 views

How to place footnotes in the caption of a table?

Problem: Question title says it all, although it can be misunderstood, what I am trying to achieve is through a command (hoping for footnote) to be able to place a footnote mark anywhere in the table ...
2
votes
1answer
39 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
30 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- ...
3
votes
2answers
64 views

vertical align matrix in table

I am trying to vertical align a matrix to the content of the other cells in a table, and im pretty much stuck. Here is a quick mockup of whats my problem. In fig2 at least the content is aligned ...
0
votes
1answer
25 views

Error message: Extra alignment tab has been changed to \cr

Hello I am getting this error with a table of images. \begin{figure}[h] \centering \begin{tabular}{c c c c c} (a\includegraphics[scale=0.3]{A.jpg} & ...
0
votes
1answer
25 views

Single column Tabularx

I would like to create a fixed width, single column tabularx with centered text which is entirely enclosed. For some reason the width of the cell does not take the table with. How can I archieve this ...
1
vote
1answer
50 views

Alignment half of text cutting off in second row

I have a question about fixing a formatting issue of my table. Currently, I like the way its organized, but the problem is some words are being hyphenated, so that only half of the word appears in the ...
1
vote
0answers
24 views

How To Centralise Multicolumn with Specific Column Width

Is there a way to force a multicolumn with column width specifiers to centre the context? For example, if I specify a new column type with a specific width, my column can still be centralised. ...
2
votes
3answers
109 views

Tabularx environment problem

I am running into a problem while using the following code and I have tried every means to diagnose the problem (ie: commenting the contents out), but I have not been successful at finding the bug. ...
0
votes
1answer
75 views

Dot-aligned table column with defined width

I am trying to specify a custom column command, taking a width parameter and aligning the column by the decimal point of the content. I am using the tabularx package to use columns with a ...
3
votes
1answer
69 views

Overfull \hbox warning in tabular

I have the following table: \documentclass[border=3mm]{standalone} \usepackage{graphicx} \usepackage{booktabs,multirow} \usepackage{siunitx} \usepackage{stackengine} \begin{document} ...
1
vote
1answer
16 views

Typesetting equations but results in error in tabularx

I am using tabularx as follows with the following code: \documentclass{article} \usepackage{tabularx} \usepackage{booktabs} \usepackage{multirow} \usepackage{ragged2e} \newcolumntype{L}{ ...
1
vote
0answers
62 views

how to fit merged columns/rows content to the appropriate cell width (tabularx)?

This is a follow-up question to how to fit merged columns/rows content to the appropriate cell width? I am looking to make the same table but using the environment tabularx rather than tabular. the ...
2
votes
2answers
82 views

Advice for making this tabularx look nicer on a beamer frame

I have the following slide: With the following code: \documentclass{beamer} \usepackage{tabularx} \usepackage{booktabs} \usepackage{array} ...
6
votes
1answer
64 views

Why is the start row of \rowcolors ignored in tabularx?

Seems like \rowcolors when used for a {tabluarx} doesn’t work properly: The specific number of the first row to be colored is ignored. This si not the case for a normal {tabluar}. In both tables ...
4
votes
1answer
63 views

Table cell with unwanted black background

I'm trying to create the following table, but the first cell has a black background. How can I get rid of it? I need alternate colors and multiple rows feature provided by tabularx. ...
0
votes
1answer
27 views

Tabularx In beamer is not fitting in frame

I am having a problem with the tabularx environment in beamer which is that my columns are being squished together. I am a bit new to using beamer so would someone please provide some advice ? The ...
1
vote
1answer
30 views

Tabularx Misplaced \noalign but used to work before?

My table used to work before and all of a sudden I am having an error that says I misplaced \noalign when I changed some inputs into my tables. Would someone please help me take a look at the code ...