{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
0answers
40 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
42 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
178 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
86 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
42 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
62 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
31 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
37 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
50 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
20 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
67 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
75 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
62 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
112 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
106 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
73 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
64 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
90 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
67 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
71 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
28 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
31 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} \...
3
votes
2answers
35 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
38 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
167 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
57 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
27 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
53 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{...
1
vote
1answer
31 views

Tabularx Column Settings Take Up Space and Text Align Left

The table below creates a 3 column table, when I use the {l | X | X} column settings it creates the last 2 columns of equal width which Is what I want but I also want the text within to align left. ...
1
vote
1answer
36 views

Tabularx alignment error

I have a question with respect to the tabularx environment and the addition of new columns. Currently I have the code for a 2-column table as [![enter image description here][1]][1] However when I ...
3
votes
2answers
89 views

Alignment Problems in Tabularx

I have a problem a with alignment getting and the tabularx environment with a stretched table. Currently, I have the following table: \documentclass{article} \usepackage{tabularx} \usepackage{...
0
votes
0answers
42 views

Different alignment on columns when the 'X' column wraps in tabularx

On 2013 I did ask this question and was answered, but implementing on another code I've new issues not presented before. I have a three column tabularx in which two of them are l, r or c and the ...
4
votes
2answers
83 views

How can I insert complex regular expressions into tabularx cells?

I'm trying to create a table with two columns, in which the second one is representing lots of regular expression with all the character you could imagine. I tried with \verb|text| command, but it ...
2
votes
2answers
69 views

center alignment of headers in table

I have the following part table: \begin{table}[!h] \centering \begin{adjustbox}{width=1\textwidth} \small \begin{tabular}{|l||l|} \hline \textbf{Element Name} & \textbf{Description} \\ \hline ...
1
vote
1answer
134 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
2answers
31 views

How to center the wrapped cells

It might have been asked in certain questions, but none of them worked for me as I would like to center the wrapped columns in latex table and couldn't come with a clean and easy solution. I.e. here ...
3
votes
1answer
41 views

How to avoid border breaks in the table?

I have a table, and in some pages I have border breaks, how to fix that? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} % Включаем пакет для поддержки русского \...
2
votes
2answers
122 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} % Включаем пакет для поддержки русского \...
2
votes
1answer
110 views

Header and text overlapping

How to avoid overlapping of the header and text? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[russian]{babel} \usepackage{multirow,tabularx} \usepackage[a4paper,...