{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

0
votes
0answers
18 views

Math mode in table headers (tabularx)

I am editing a document, using a custom class. The author has numbers with a bar over them in a table header, e.g. $0.58\bar3$. However, when I try to compile it I get the following errors: ! Package ...
1
vote
1answer
39 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: ...
1
vote
1answer
32 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
20 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
28 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 ...
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 ...
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
170 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 ...
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 ...
2
votes
1answer
95 views

Using \CorrectChoice (exam package) inside tabularx Environment

For modelling a list of questions with yes/no answers I wanted to define an environment where I can setup a question with a command: \clO for an option that's not applicable and \clX for those that ...
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, ...
1
vote
3answers
65 views

ltablex caption text formatting issue

I'm using the ltablex package for creating long tables over multiple pages. For my other small tables I use the tabularx package and I noticed a formatting mistake or maybe a bug? The table caption ...
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} ...
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} ...
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
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} ...
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
31 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
29 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 ...
0
votes
0answers
16 views

Alignment problem in tabularx that happens when I change it to non-decimal

I have the following code which aligns when I have decimal figures but fails to do so when I type 0 for instance. The code is as follow \documentclass{article} \usepackage{tabularx} ...
2
votes
2answers
117 views

Longtable doesn't fit page size

I have a longtable and it doesn't fit the page size. How to fix it? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} % Включаем пакет для поддержки русского ...
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 ...
21
votes
2answers
25k views

Automatic line-break in tabular

I'm making a tabular and I'd like to automatically do a like break rather than going beyond the page. This is my tabular code: \begin{table}[h] \begin{tabular}{|l|l|l|} Use Case Navn: ...
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 ...
5
votes
3answers
175 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
83 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 ...
2
votes
2answers
58 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 ...
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 ...
3
votes
1answer
34 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: ...
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 ...
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- ...
3
votes
2answers
65 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
53 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. ...
1
vote
1answer
123 views

Table formatting - Best practice to get professional and consistent looking short and long tables

General Understanding Basically, what I'm trying to do is streamline the entire process of creating tables for one or possibly a number of scientif papers. The ultimate objective would be to find ...
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 ...