{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
28 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
29 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} \usepackage{...
7
votes
3answers
79 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
57 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
40 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} \usepackage{...
3
votes
2answers
41 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}} \begin{...
0
votes
1answer
42 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
57 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 \documentclass{...
1
vote
2answers
28 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
51 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
45 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
46 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
43 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
181 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
90 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
48 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: \documentclass[paper=a4,fontsize=12pt]{...
2
votes
2answers
69 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!] \begin{tabularx}{0.45\...
3
votes
1answer
34 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
43 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: \begin{tabularx}{\linewidth}{...
2
votes
1answer
52 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
21 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
2answers
76 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
41 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? \documentclass{...
2
votes
1answer
33 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- \begin{tabular}...
3
votes
2answers
86 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
27 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} & (b\includegraphics[scale=0.3]{B.jpg}...
0
votes
1answer
26 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
79 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. However,...
2
votes
3answers
115 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
124 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 pre-...
3
votes
1answer
76 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
67 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
92 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} \newcolumntype{G}{@{}>{\begin{lrbox}{\mybox}}l<{\...
6
votes
1answer
70 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
81 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. \documentclass[...
0
votes
1answer
30 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
32 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 ...
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} \...
4
votes
2answers
41 views

calc package and global lengths problem in tabularx

The output of the following code is affected whether calc package is included or not: \documentclass{article} \usepackage{tabularx} % \usepackage{calc} \newsavebox{\testbox} \newlength{\testlen} \...
4
votes
1answer
39 views

New document environment and the tabularx package

I am trying to create a new environment but it gives me some trouble. The compiler keeps telling me that I am missing a } but I don't see where it could be. Here is a code sample. Thanks for your help....
4
votes
2answers
171 views

SWOT-Strategy based on SWOT-Matrix

I found this post with an awesome solution to create a SWOT-analysis using a table: SWOT Table - how to convert to an article? This is the code snippet from the other post I used: \documentclass[...
0
votes
0answers
26 views

Modify your code to get a different table

Does any one know How I can change my code below to get table like this in pic? Or any other way to get a table like this please. \begin{table}[h!] \centering \begin{tabular}{ |p{3cm}||p{3cm}|p{3cm}|...
3
votes
1answer
60 views

tabularx adding half column

tabularx with a \newcolumntype and \multicolumn adds another incomplete column to the right side \documentclass{article} \usepackage{tabularx} \newcolumntype{s}{>{\hsize=0.5\hsize} X} \begin{...
1
vote
0answers
30 views

tabularx shifted farer than margin

I have a custom papersize and margins set with geometry package. Now I want a table to reach over the complete page (not the margins) \begin{tabularx}{\textwidth}{ |X|X|X|X| } \hline label 1 &...
4
votes
2answers
49 views

Layout Problems with tabularx and mathmode

I have a problem with a specific tabularx I'm using in my master thesis. I produced this code: \documentclass[headsepline,titlepage,oneside,12pt]{report} \usepackage{amsfonts} \usepackage{amssymb} \...
2
votes
1answer
64 views

Multicolumn and thead problem in tabularx

I am trying to implement a code using tabularx and multicolumn along with head, but I keep on getting an error. The code is as follows: \begindocumnet{article} \usepackage{tabularx} \usepackage{...