{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

2
votes
2answers
14 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
25 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 ...
3
votes
1answer
56 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 ...
4
votes
2answers
51 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
15 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
101 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
2answers
16 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
83 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 ...
1
vote
1answer
36 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 ...
18
votes
2answers
24k 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
39 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
33 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
44 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 ...
1
vote
3answers
56 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
35 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
169 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 ...
3
votes
1answer
60 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
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
73 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
29 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
47 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
26 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
41 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
30 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
17 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
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
56 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
23 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
23 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
40 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
23 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
105 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
119 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
48 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 ...
4
votes
2answers
156 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: ...
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
60 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
77 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} ...
4
votes
1answer
50 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. ...
6
votes
1answer
62 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 ...
0
votes
1answer
26 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
29 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 ...
3
votes
2answers
31 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
31 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 ...
0
votes
0answers
24 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}{ ...
3
votes
1answer
47 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} ...
1
vote
0answers
25 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
45 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
27 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} ...