2022 Developer Survey is open! Take survey.

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Certain characters not showing up in monospaced tabularx columns [closed]

\documentclass{article} \usepackage{tabularx} \newcolumntype{T}{>{\tt}X} \begin{document} \begin{tabularx}{0.5\textwidth}{|c|T T T T|} \hline Alice & + & + & x & X \\ \...
user avatar
0 votes
1 answer
19 views

How to adjust the vertical space before and after an xltabular, so it is the same as with tabularx

I had to replace some tabularx-tables by xltabular-tables, because some tables got too long to fit on one page. Unfortunately the xltabular introduced additional vertical space before and after each ...
user avatar
  • 103
0 votes
1 answer
30 views

Table of file names with special characters

For my thesis, I want to create a list/table with the file paths of all data I show in my figures. What I came up so far is a combination of tabularx and longtable (via ltxtable), and putting the path ...
user avatar
  • 279
1 vote
1 answer
21 views

How to have a top vertical alignment in tabularx when including images?

I would like to include previews in a table and force the text to either be centered or top aligned. How can I achieve this without redefining the X column for the whole document? Here my MRE: \...
user avatar
  • 1,059
0 votes
2 answers
72 views

Tabularx multicolumn

Hello this is my table: \documentclass[12pt, oneside,titlepage]{book} % add a4paper \usepackage[italian]{babel} \usepackage{geometry} %\geometry{a4paper, top = 2cm, right = 2cm, left = 2cm, bottom = ...
user avatar
  • 3
2 votes
2 answers
131 views

Why is the third column so wide?

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tabularx} \usepackage{caption} \begin{document} \begin{center} \begin{tabularx}{100pt}{c|c|c|} \multicolumn{1}{c}{ } &\multicolumn{...
user avatar
  • 91
0 votes
0 answers
16 views

Optimize size of graphs & Reduce horizontal space between graphs

I want to put two graphs in pdf format next to each other in one row and the graphs next to each other in the row below. I have managed to reduce the vertical space between the two rows but I do not ...
user avatar
  • 1
-1 votes
1 answer
66 views

Table not compiling?

Can someone compile the following code so I can use it as a photo in my document. I had a problem which I asked in a different question but it still doesn't compile for me: How to draw a vertical line ...
user avatar
  • 523
1 vote
1 answer
29 views

Tables goes unwantedly on next page using IEEE journal

I have made a table with two subtables, that go in to the margin on the sides. For some reason the table always go on the next page even though using [h] or [!b]. An example: \documentclass[journal]{...
user avatar
-1 votes
1 answer
36 views

How to produce this kind of long table using overleaf?

How to produce this kind of long table using overleaf?
user avatar
2 votes
2 answers
79 views

Centering middle line in 2x2 table

I am having trouble centering the middle line in the table. \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{fancyhdr} \usepackage[margin=1in]{...
user avatar
  • 123
0 votes
1 answer
44 views

Using seqsplit and truncate together

I have a table in tabularx, and I need to put an url into one of the columns. The best and probably easiest solution for me would be to use: \truncate{200pt}{url} from the truncate package, which ...
user avatar
  • 1
0 votes
0 answers
30 views

Using multicolumn in tabularx

I am trying to fit a wide table in my document. I am using the tabularx option for the table. Could someone help me out on how I can fit this wide table. The code for my table is \begin{table}[H] \...
user avatar
  • 1
0 votes
1 answer
18 views

float table misalignment, table crosses the page width

I am using the IEEEtran template. I am trying to build a table that is a single column as the text in the second column is wide. I used table* for float tables but the text in the second column is ...
user avatar
4 votes
1 answer
48 views

Unknown spacing after using command in optional argument

Context I am trying to paste multiple images in one row within a tabularx environment. Using optional commands with the \NewDocumentCommand from the xparse package I tried to implement this. It ...
user avatar
  • 137
1 vote
1 answer
61 views

unexpected black box at the left top corner of a table

I have tried to implement compact table that has different row colors (gray and white). I have following piece of code that puts unexpected black box at the left top corner on the seconds table, I ...
user avatar
  • 402
0 votes
3 answers
78 views

Displaying table with equations

How can I display this table with an equation? I tried many times but i can't find any solution to display the table \documentclass{article} \usepackage[margin=25mm]{geometry} \usepackage{...
user avatar
  • 113
0 votes
0 answers
34 views

How can I make tabular as compact as possible in width alignment

How can I make table compact as possible to remove space in between columns? I have following example table: \begin{document} \begin{singlespace} \begin{table}[H] \centering \begin{...
user avatar
  • 402
1 vote
2 answers
73 views

The width of a table not well with "tabularx" in LaTeX

I wanted to make a table's width as text width. So I did so: \documentclass{article} \usepackage{tabularx} \usepackage{threeparttable} \usepackage{siunitx} \usepackage{booktabs} \usepackage{multirow} \...
user avatar
  • 449
0 votes
3 answers
63 views

Unwanted different parskip length around tabularx

I tried to use the tabularx environment to align my long thesis title at the colon like it is shown in the picture below. Between every entry I wish to have the vertical spacing of one parskip like it ...
user avatar
0 votes
2 answers
80 views

How to make table continue in next page?

This is my working example: \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} \section{table of model and predictions} \begin{table}[h] \begin{tabular}{lllll} %\begin{longtable}{...
user avatar
  • 1,248
0 votes
0 answers
31 views

siunitx: Adding brackets to numbers breaks last column

When putting round brackets around the numbers in all odd columns, in the very last column a weird horizontal space is included: Here is the MWE: \documentclass[10pt,a4paper]{article} \usepackage[...
user avatar
  • 279
0 votes
2 answers
38 views

Table error causing excessive runtime

I tried to write a table, but I cannot find what is wrong with it as it is preventing my file from compiling: \documentclass[10pt,a4paper,twoside]{report} \usepackage[version=4]{mhchem} \usepackage{...
user avatar
1 vote
2 answers
41 views

Center text in "X" columns in Tabularx and center the table itself

I would like to center the text in the middle of the respective cells for the "X" columns I have defined (last six columns). I would also like to center the table itself. This is my first ...
user avatar
-1 votes
1 answer
28 views

How to place a table at the top of page in Appendix (IEEE bare conf template)

I am using the IEEE bare_conf template. I have couple of tables in my document. One is a two column table which is going to a separate page. But, the table is showing at the middle of the page. Note ...
user avatar
3 votes
1 answer
72 views

vertical alignment of different units with siunitx

I am trying to align the comma, but I am not able to. I have already looked for the solutions on the forum but I just can not find a working solution. There must be something I am overlooking. Also ...
user avatar
  • 249
1 vote
3 answers
136 views

Line breaks in booktabs?

How do I fit such a table on a page (so that it's not too wide)? I guess I'd like to have a line break in the name of every column and also line breaks in each cell of the entire first column. How do ...
user avatar
2 votes
1 answer
28 views

Using underbrace for long formulas

I am trying to use the \underbrace function to define some variables, but the problem here is that the formulas are super long, thus the whole thing cannot be displayed on a single line. I think a ...
user avatar
2 votes
2 answers
50 views

Multiple alignments in a tabularx table

I'd like to build a 2-column table, where the first column is horizontally and vertically centered while the second one is only aligned to the left. I came up with the following code but it doesn't ...
user avatar
0 votes
1 answer
30 views

Multirow Header with tabularx

i am new here. i am writing my thesis and i would like to make a table like this: I am using the template "classicthesis" for my thesis. My code for the table so far looks like this: \begin{...
user avatar
  • 3
0 votes
2 answers
34 views

Problem with size of table

I tried to create a table of [Row,Column]=[8,6], and wide titles in each row. The result that I had in Pdfviewer is shown in the following picture. I would like to know how to make table fits the a4 ...
user avatar
0 votes
3 answers
49 views

tabularx to go over two pages and with wrapped lines in table

I have a simple example of the use of tabularx as follows. \documentclass{article} \usepackage{tabularx,lipsum} \begin{document} \lipsum[1-2] \begin{tabularx}{\linewidth}{lX} 2001 &...
user avatar
0 votes
0 answers
27 views

How can add special property to a column of table without defining a new column type

How can I add special property to a column of table, without defining a new column type? Because, maybe I use that one time in all of my book, for example, I want to change color of column 1 of a ...
user avatar
  • 343
1 vote
1 answer
56 views

Table with tcolorbox doesn't work correctly

I define mytables using tcolorbox, but doesn't work. \documentclass{book} \usepackage{array,tabularx} \usepackage[table]{xcolor} \usepackage{amsmath,amsfonts,amssymb,amsthm} \usepackage{tcolorbox} \...
user avatar
  • 343
2 votes
1 answer
74 views

Difficulty in using multicolumn or multirow in tabularx

I just started learning latex and needed a kind of table like what the uploaded picture shows. The code was generated by Excel2LaTex. I have tried some ways but cannot make it. Several cells in the ...
user avatar
0 votes
0 answers
18 views

Populating a table skeleton using data in different tex files

Throughout my thesis, I use the following table format: \documentclass[11pt]{article} \usepackage{blindtext} \usepackage{geometry} \geometry{left=1.0in,right=1.0in,top=1.0in,bottom=1.0in} \usepackage{...
user avatar
1 vote
1 answer
40 views

How to center table on page?. Center and centering not working

I am trying to center the following table. I have tried using \center and \centering after \begin{table} but it do not work. This is my code: \documentclass{article} \usepackage[utf8]{inputenc} \...
user avatar
  • 1,248
0 votes
0 answers
19 views

Tabular in middle of the document when I try to add table tag

Hello I have a table that takes an entire page for itself whenever I try to add this : \begin{table}[H] ... \end{table} I wrapped this tabular in that table just to add caption : \begin{tabular}{ | p{...
user avatar
0 votes
2 answers
42 views

How to spread the table along whole page in 2-column setup?

There are plenty of questions here which covers this problem, out of which none solves my problem. I don’t know why even going thorough many websites, documentations. I am working on this table in one ...
user avatar
  • 25
2 votes
2 answers
55 views

How to top-align tabular data

I have this tabular data and I want the data aligned to the top, not centered as presented here. %#% \begin{frame}{frame 1} \begin{tabular}[t]{l | l | l} \parbox{0.3\textwidth}{ \...
user avatar
  • 219
0 votes
0 answers
36 views

Multirow multicolumn table problem

I am trying to make a table like this one But having problems with the vertical text. Can anyone please help me to create the table? Thank you in advance. My attempt \usepackage{makecell} \usepackage{...
user avatar
2 votes
1 answer
90 views

How I can add color arrows in a table cell?

I would like to replace each + and - with green and red arrows, respectively, in my table like table below: My table code: \begin{center} \begin{tabular}{ |c|c|c| } \hline 50 & 30.5 & +19....
user avatar
  • 231
0 votes
1 answer
39 views

Why is xcolor changing the spacing of my table and how can I fix it?

I am creating a table and the following produces the spacing that I am looking for. \documentclass{article} \usepackage{tabularx} %%% \usepackage[table]{xcolor} \begin{document} %%% \rowcolors{2}{...
user avatar
1 vote
1 answer
29 views

Why does tabularx give a trailing column - and how can I get rid of that?

So, I am trying to create a table using; \begin{tabularx}{\textwidth}{|c|c|c|} \hline col1 & col2 & col3 \\ \hline item 11 & item 12 & item 13 \\ \hline item 21 & item 22 & ...
user avatar
1 vote
2 answers
55 views

How to create a multicolumn inside a table?

my teacher give us a assignmnet, I already finish the most but it still differs from the example. The example is this: But what i made is this: Here is my code: \documentclass{article} \usepackage[...
user avatar
  • 11
0 votes
0 answers
31 views

tabularx package compatibility for question 408900 (Protocol)

In the question How can make a protocol in latex? there is an interesting solution given by Werner. The problem is that if you try to insert it in a document using one (just one) of the following ...
user avatar
  • 834
3 votes
1 answer
52 views

Controlling vertical padding in tabularx for itemize

I am having a small challenge in controlling the vertical spacing in tabularx. As you can see below, the top and bottom padding appear to be more only when using itemize (perhaps with other \begin{} \...
user avatar
  • 45
1 vote
1 answer
37 views

itemize doesn't work with multicolumn in tabularx

I am learning Tex. I am trying to span an unordered list across 2 columns, but it doesn't work, and I can't figure out the problem. It works fine for a regular string of text. Here is the sample code ...
user avatar
  • 45
2 votes
2 answers
100 views

Add one column in one table

I have the following table with the following code: \documentclass{cta-author} \usepackage{mystyle} \usepackage{caption} \usepackage{myrq} \usepackage[toc,page]{appendix} \usepackage{longtable} \...
user avatar
  • 105
1 vote
0 answers
62 views

Which one is better, longtable package or xltabular package?

Which one is better, longtable package and xltabular package? And if I use longtable package, should I use longtable for all tables or use just table package for not long table and use longtable ...
user avatar

1
2 3 4 5
41