Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tabularx]

{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.

1
vote
1answer
27 views

Again tabular. What is the best way to color a cell or a table? What is the problem?

Hi again (I´m sorry by English mistakes). I've learned a lot here. This week I learned several ways to create a table joining cells, and also how to put colors in it. However for some reason, two ...
2
votes
1answer
39 views

align rows with columns of different widths

I've been failing to make a proper table where text width changes and have different sizes. Here is the table when I use tabulary environment. I want to have the columns have the same size and ...
3
votes
3answers
28 views

Centering a batch of columns with respect to larger multicolumn cell above them

In the table above, the three columns below the multicolumn are smaller and are aligned to the left. However, I want them to be vertically centered with respect to the largest multicolumn above them ...
0
votes
1answer
34 views

Undefined Control Sequence with tabularx

I have created two tables and I get for both the error "undefined control sequence". I don't know, what else I could check . Here is the code of the two tables: \documentclass{article} \usepackage[...
6
votes
3answers
145 views

New to LaTeX and need help with a table for my Lesson Plan

I am new to LaTeX and I decided to use it for my Lesson Plans. I have created a table for my lesson planning. But I am struggling to have it aligned properly and to have it fill the whole page in ...
4
votes
1answer
127 views

How to remove unwanted horizontal line from diagbox

I'm using \diagbox in a table, but for some reason the horizontal line is still there. The table ends up looking like this: And on another note, the vertical lines don't completely join to the top ...
2
votes
1answer
28 views

Actual split cell in tabular

Look at these questions and their answers: Splitting a row to two rows in LaTeX split a table cell in two lines and columns They present similar issues and, similar accepted answers. However, the ...
7
votes
3answers
131 views

Different problems with tabularx

I have some problems with tabularx, please see the picture. 1: Why is there a space in the second row of the of the first column but not in the third row? 2 and 3: Why are there some gaps on the ...
2
votes
3answers
46 views

Linebreak in multicolumn cell using tabularx environment

I have the following sidewaystable, in which the headers and the last cell need to be across two columns with line breaks, else the table is not readable. The "specs" columns are just necessary in the ...
1
vote
2answers
33 views

Multicolumn problems with tabularx and lists

I am trying to get \multicolumn to work with lists inside tabularx, but the text itself does not occupy all of the space available. The answers to similar questions I found do not seem to work in this ...
0
votes
1answer
26 views

Defining a custom environment with tabularx

I use this code: \begin{tabularx}{\textwidth}{c|X} \emph{17:49} & Very long text... \end{tabularx} to get this (I want to use LaTeX to keep a personal diary and notes should look like that): ...
3
votes
2answers
49 views

When does tabularx decide to break the cell entry instead of reducing the columns separation?

For the following, why did tabularx decide to break the second column cell entry instead of reducing the separation of the columns? Additionally, how can I make \rowstyle{\bfseries} work to bold any ...
0
votes
1answer
24 views

Multirow and Multicolumn Horizontally Positioned Side By Side

I am trying to make a table that has multirow then multicolumn horizontally positioned side by side. I have found a lot of posts that show how to use both in the same table, but none discuss using ...
3
votes
2answers
101 views

How do I write a simple if-elseif protocol in Latex?

I've tried using algorithm, algorithmic, etc.. but I can't seem to find what I need. I want something similar to this: This is the closest I got using tcolorbox and align: \begin{tcolorbox}[...
3
votes
4answers
184 views

Error message with tabularx

I am very very very new to LaTeX, like I just started understanding what is does yesterday. I am using Stata 15 and wanted to make nice tables. There is a problem with the code below. I keep getting ...
0
votes
1answer
43 views

Horizontal and vertical arrow over table (tabularx) environment

I have a simple table, see attached pic, and I would like a horizontal arrow over the first row, from left to right. Another arrow next to the first column, vertical. For both these arrow I would ...
3
votes
1answer
34 views

ltablex caption causing errors

This code seems to work without \caption \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{booktabs} \usepackage{ltablex} \usepackage{caption} \newcolumntype{Y}[1]{>{\hsize=#1\...
4
votes
3answers
102 views

tabularx column has extra padding at right?

\documentclass[]{article} \usepackage{tabularx} \newcolumntype{h}{>{\hsize=.5\hsize}X} % half width of X \begin{document} \begin{table} \begin{tabularx}{\linewidth}{ h | X | X } \...
2
votes
3answers
71 views

Centre cell vertically in tabularx across multiple multiline rows

Consider this example: \documentclass{report} \usepackage{tabularx} \usepackage{lipsum} \usepackage{multirow} \renewcommand{\tabularxcolumn}[1]{m{#1}} \begin{document} \begin{tabularx}{0.5\linewidth}{...
3
votes
2answers
137 views

Centre cell vertically in tabularx [duplicate]

Consider this example: \documentclass{report} \usepackage{tabularx} \usepackage{lipsum} \begin{document} \begin{tabularx}{0.5\linewidth}{lX} A & \lipsum[1][1-2] \\ \end{...
5
votes
4answers
333 views

Table formatting with tabularx?

I am trying to format the table to obtain the one in the picture. However, the result is less than satisfactory, could you please help me with tabularx enviroment? \begin{table}[] \centering ...
0
votes
2answers
27 views

Reduce padding in cell with lists in tabularx [duplicate]

So I have a table that includes lists written with tabularx, however the lists have rather excess padding at the top and on the left. Is there a way to reduce this only for the space of this table? ...
2
votes
1answer
31 views

Horizontally centre a table

any idea on how to horizontally center this Table within the page? Thank you very much. Regards. \setlength\tabcolsep{4pt} \setlength\extrarowheight{5pt} \begin{table}[] \centering \caption{...
0
votes
1answer
37 views

itemize inside multicolumn and tabularx

How can I make the itemize fill the entire multicolumn as seen in the picture below? I know my code might not be the most elegant solution, but I finished my entire document already and I'm very ...
0
votes
0answers
26 views

Justifying text in table

Could you kindly help me to justify text in the table? \documentclass{article} \usepackage{geometry} \usepackage{ragged2e} \usepackage{booktabs, makecell, multirow, tabularx} \renewcommand\theadfont{\...
0
votes
1answer
22 views

Alignement of Table in TabularX

Could somebody please help me with the poor alignment and extra-spaces in the third row of this table? \begin{table}[ht!] \centering \begin{tabularx}{\textwidth}{@{}XXc@{}} \toprule ...
2
votes
3answers
56 views

\ifthenelse do nothing

I want to define a table as command. Some lines schould only be printed, if there is a value for it. Because of that I am using the \ifthenelse command. Example: \begin{tabularx}{\linewidth}{|l|X|} ...
1
vote
1answer
19 views

A table with `\hline`s in a tikzposter block

I would like to have a table with \hlines fit inside of a tikzposter block, but the lines stretch outside of the block, as shown in the following image: \documentclass[25pt, a0paper, portrait]{...
1
vote
2answers
40 views

How to use \thead with left align locally instead of globally?

How to align the contents of the \thead cell to the right? \documentclass[12pt]{memoir} \usepackage{tabularx} \usepackage{makecell} \begin{document} \begin{tabular}{|c|} \thead{Content \\ ...
1
vote
1answer
21 views

Center vertically elements inside table of defined size [duplicate]

I want to center vertically elements in my two columns table just in my left column, which I want it to be 30% of the line width and the second one to be left aligned and 70% of the line width. I have ...
0
votes
0answers
29 views

Table and text over footer

When i try to put a table on the code below, text or the table gets over footer. And the text below that code does not appear on the next page. Does anyone knows how to correct it? Text before ...
0
votes
1answer
54 views

Removing quotes in csvsimple

Before someone marks this as a duplicate question, I have read this answer, and it has not helped. I have a csv file: "headline","similarity" "Tesco directors in scandal","" "Tesco suspends three ...
1
vote
0answers
32 views

Package “threeparttable”: What advantages does it provide? [closed]

In the past I have been using tabularx, caption and parnotes packages to design my tables. Now the user John Kormylo has mentioned the package threeparttable: What advantages does threeparttable ...
1
vote
1answer
50 views

Need to reduce width of table

Sorry maybe this question already answered. In latex i want to generate table and i'm new in table. I found some cool online tool https://www.tablesgenerator.com/latex_tables i draw my table now i ...
1
vote
2answers
38 views

Table - alignment

I am struggling to align the content of this table. Please, could you kindly provide some help? \begin{table}[] \centering \caption{\textcolor{red}{Laminates devised for in-plane (tension ...
2
votes
1answer
52 views

Adjustwidth not working for shifting ltablex table to the left

I want to shift my table slightly to the left of the page (exceeding left text width boundary). After many googles I however keep having trouble and can't manage to get ˙\adjustwidth` to work: \...
1
vote
1answer
30 views

multicolumn tabularx extending page width

I have used multicolumn and tabularx for the table I intend to write in LaTex. But the resultant table is going out of the page width. I also added the textwidth in tabularx but it is not working as ...
1
vote
1answer
32 views

How to reduce space between two columns under a multicolumn header [duplicate]

I want to make the number and percentage in the last column well aligned to the right in every row. Separating them into two columns is the solution that worked for me because the number and ...
1
vote
1answer
33 views

How to put tabularx inside tabularx with different column length

I am trying to nest a tabularx table into a cell of another tabularx table. I did it according to the Question here. Now my problem is, that they use the \newcolumntype{Y}{>{\centering\...
1
vote
1answer
34 views

How to make tikz macro work with two arguments in this MWE?

I want to generate a table from a csv file using the very helpful tool datatool and insert a round photo of each person surrounded by a circle, the color of which should be taken from the provided csv ...
0
votes
0answers
45 views

How to embed a multiple subplots inside another subfigure using grouplots

Could somebody please give me a hint of how can I do this using grouplots and tikz. I have done it using subfigure and \includegraphics, however, I am facing problems to arrange the borders of the ...
0
votes
0answers
31 views

tabularx fill on certain column

I have a reaccuring table which I want to be the same. Currently the width would be different depending how wide the text is in the "Titel" column. How should I do it so it looks the same every time I ...
1
vote
1answer
16 views

Centering table data under right-aligned tabularx header

I'm trying to align the following table so that the "21" is centered under its header. \begin{table}[h] \centering \begin{tabularx}{1.09\textwidth}{|cll>{\raggedleft\arraybackslash}X|} \hline \...
0
votes
1answer
30 views

How to align table contents by decimal point?

I've searched online and on this forum. I haven't found an appropriate solution to my issue. I am trying to align the numbers in my table with their decimal point. I'm not exactly sure how to go about ...
1
vote
1answer
49 views

Baum Welch algorithm description

I am trying to replicate this table, on the Baum Welch algorithm, for Hidden Markov Models. I can not put expressions in the center, I'm trying with \ begin {align *} ... \ end {align *}, but the ...
1
vote
1answer
21 views

How to align horizontally the rows between X type columns?

I have a table with short and long headings. I'm using tha column type X from the tabularx package. The headings are aligned to the top, how can I align the headings horizontally in the middle? \...
1
vote
3answers
33 views

Uneven margins when vertical centering in multiline tabularx-cells

I've read a lot about vertical centering in tabularx-tables and found a general solution. However, when having multiple lines in cells, the margins seem to be off. Your can see that in the right-most ...
1
vote
2answers
40 views

How can I get a table to exceed left and right margin equally without changing its font size?

When I use adjustbox to modify the width of a table, even the font size changes. How can I increase the table width but let it exceed both margins equally? My MWE \documentclass{elsarticle} \...
4
votes
4answers
269 views

How to fix my table, centering of columns

I've been trying to produce a table in which the first two columns has rows merged, the next three columns has columns merged, with three sub-columns, within the same height as the merged rows of cols ...
2
votes
1answer
45 views

Missing vertical line when insert column width in tabularx

This question is a sequel to this question. After column width added (Y{2cm}|Y{5cm}|), vertical line is missing. \documentclass{article} \usepackage[usenames,dvipsnames]{xcolor} \usepackage[skins,...