Stack Exchange Network

Stack Exchange network consists of 174 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.

9
votes
1answer
141 views

tabularx inside tcolorbox not centered properly

I am trying to put a tabularx inside a tcolorbox but it's not centered properly, it's shifted slightly to the right. Here is the code I am using. I am using figure environment for the caption. Is ...
0
votes
0answers
18 views

Give column its own row if a cell is longer than a given amount

My document was originally composed with monospace unicode output from a Python terminal. The original layout used blank spaces to align results into columns. I specified the width (in characters) of ...
4
votes
1answer
59 views

Workaround for tabularx inside environment when using csquotes

I need an environment that presents data in a table. The number of right-most columns shall be adjusted at compile-time, and the first column is dynamic width. For this reason I am using \usepackage{...
1
vote
2answers
43 views

Horizontal centering in tabularx cells

This is my current code: \newcolumntype{b}{X} \newcolumntype{m}{>{\hsize=.5\hsize}X} \newcolumntype{s}{>{\hsize=.2\hsize}X} \begin{table} \caption{Summary of the Most Common BCI Control ...
0
votes
1answer
14 views

How do I insert an empty line/space inside tabular environment (with empty columns)?

I have a tabular environment, where I want to separate "paragraphs" with empty lines or spaces. The paragraphs have one major title on the left whereas the column on the right has several lines. Here ...
0
votes
0answers
31 views

Problem with tabularx package: Error message “Illegal pream-token (x): `c' used.”

I have a problem with using \usepackage{tabularx}. Would you have any suggestion to overcome the error message of ! Package array Error: Illegal pream-token (x): `c' used.? Thank you in advance for ...
2
votes
3answers
229 views

Multicolumn (Tables) trouble

I am trying to get my table working for last couple of days. But I couldnt fix the problem. The way I want my table to look like is below (figure 1). With my following code \begin{table}[p] \begin{...
1
vote
1answer
36 views

Text exceeding table limit vertically

I'm writing a table but in some rows the text exceeds vertically the limit. How can I fix it? thanks. That is my code: \documentclass[a4paper,12pt]{article}[12pt] \usepackage{amsbsy} \usepackage{...
2
votes
1answer
74 views

Bibliography with citations in tabularx and defernumbers=true only prints [0]

In my document, I need a lot of citations. However, my bibliography stopped working all of a sudden. All the citations in the document and the bibliography are [0] (instead of the excpected [1], [2], ...
0
votes
2answers
33 views

How to fit a content in a column of LaTeX table?

I am trying to create a table in LaTeX. However content of my column is exceeding the width and intruding in the other column. Please help me to solve this problem. Code is pasted below.Screenshot of ...
15
votes
3answers
557 views

When should the tabularx environment be used or not?

I asked a question here and egreg replied that the tabularx environment was not the right tool. He solved the problem with the tabular environment. Werner didn't use it either. In this question Mico ...
1
vote
3answers
101 views

How to improve this table?

I'm looking for ideas to improve the layout of the following table. Is there a better way to separate ABC Metrics and XYZ Metrics (other than using separate table for each metric)? Should I convert ...
1
vote
2answers
38 views

simple latex table using tabularx--error?

I wanna create a simple LaTeX table. Since I have created a more complex table using tabularx, I decided to just cut and paste the codes. But why the error? Thx for any help^^ \documentclass[]{...
1
vote
1answer
33 views

Caption alignment in tabularx

I want to take the caption of the table to right from left. Is it possible? \documentclass[a4paper]{article} \usepackage{enumitem} \usepackage{array} \usepackage{multirow} \usepackage{ltablex, ...
2
votes
2answers
88 views

How can I wrap this hard-coded image gallery into a new environment?

I'm building a gallery using tabularx and tikz, similar to image-gallery. Here's a snippet: \documentclass{article} \usepackage{tikz} ...
2
votes
1answer
30 views

Form: How to put Form-Fields perfectly into multicolumn-cells?

I have a follow-up question about: Form: How to put Form-Fields perfectly into table cells? If I use a multicolumn, the calculation method breaks down again. What do I have to do differently? \...
5
votes
2answers
83 views

Colour only the text in a tabularx environment

Edit: This question is related to this one: How to change only the color of numbers (and not units) with numprint? I tried the solution given here, but it enlarges the line spacing of the table as ...
1
vote
2answers
32 views

Center a text on one column

How can I center only 'coluna 3'? I tried to create a new column type without success. Thank you \documentclass{report} \usepackage[utf8]{inputenc} \usepackage{array} \usepackage[table,xcdraw]{...
0
votes
1answer
28 views

Multi-line text on multirow [duplicate]

How can I set text to be multi-line on a multirow table? I'm referring to row 5 column 1. Thank you \documentclass{report} \usepackage[margin=0.5in]{geometry} \geometry{margin=1in} \usepackage{...
4
votes
1answer
60 views

Vertical centering in tabularx

I am trying to get a text to center vertically within a tabularx. For centered and bottom text it works, but it fails for top text. What am I missing here? \begin{tabularx}{\textwidth}{ | X | ...
2
votes
1answer
54 views

Change font size to fit text in column width

I'm trying to create a table with equal width for all columns however if some word needs more space the column width will change. Is it possible to autofit "biiggwwoorrdd" reducing the font size? ...
-1
votes
0answers
35 views

“! TeX capacity exceeded, sorry [input stack size=5000]”, csvtools, tabularx

I'm trying to use csvtools to quickly import data form Excel to LaTeX and compile directly. It is mostly about finance, so e.g. for ease of use I create the command \newcommand{\subtotal}{\...
5
votes
1answer
172 views

conflict between tikz (was: todonotes) - tabularx - array - arydshln

There is a conflict between the four packages tikz, tabularx, array and arydshln. The MWE below compiles, if I do not load tikz ( tikz.sty 2015/08/07 v3.0.1a (rcs-revision 1.151)) (load todonotes ...
4
votes
1answer
70 views

0 shows up before a citation in beamer, when it is in a tabularx environment

I followed the solution of Undesired Placement of Footnotes in Blocks to do citations in my Beamer so that they are indeed footnotes and not foot-of-the-block notes. It works wonders however, when I ...
1
vote
0answers
17 views

How to put tablefootnotes on the same page next to each other or in the appendix?

I am using \tablefootnotes and the respective package(s) (\usepackage{tabularx} \usepackage{tablefootnote}) as this is the only way (I know) to put footnotes in a table. It runs perfectly, however, ...
2
votes
0answers
20 views

Horizontal line has excess length in tabularx environment [closed]

I am using tabularx environment to build a table, but I am getting excess horizontal line length in the right hand side as below: My latex code looks like below: \documentclass[12pt]{article} \...
2
votes
1answer
29 views

Align units of equations and units of corresponding legends below each other

I am using this code to align equation units of right the equation and to create nice equation legends. Minimum Working Example: \documentclass{article} \usepackage{amsmath} \usepackage{booktabs} \...
0
votes
1answer
29 views

Tabularx fit tex width page

I have been trying to solve this for a while and i could't. I have two questions for you: How can I set the table to float on the page? I mean, why is not in the top of it? there is a lot of space ...
1
vote
2answers
299 views

How to change margins for a table defined in tabularx environment?

I would like to move my table \documentclass[a4paper, 12pt]{article} \usepackage[top=2.5cm,bottom=2.5cm,left=3.5cm,right=2.5cm]{geometry} \usepackage{ltablex} \begin{document} \begin{tabularx}{\...
0
votes
0answers
25 views

Merge “tabularx” and “longtable” with small patch instead of additional package just as for “tabulary”

In this other question from 2012, a concise and functional solution has been suggested that merges tabulary and longtable into a new ltabulary. Is there any way to adjust this patch to work for ...
7
votes
1answer
123 views

Draw until the end of a box

Is it possible to draw a line from n2 spanning the blah text and \blinditemize without hardcoding the length? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usepackage{...
1
vote
2answers
49 views

Using Tabularx with very simple multirow table, I get text overlap

I have this very simple table code. I initially didnt use tabularx, but then the table would run off the right side of the page. So instead i used tabularx. Now, the text within a box seems to overlap ...
2
votes
1answer
44 views

Centering a table when I don't know the width

I have a general question. I would like to center tables on the page, when I do not know the width. What is more, I am using tabularx and sometimes the width specified may be too small, meaning that ...
0
votes
1answer
46 views

Four figures in two column page

Referring to this link, Placement of images in row using subfigure when I use the same code of the tabular format for my two-column page format, it cross the first column width. I have already used \...
2
votes
1answer
42 views

Referring to same footnote multiple times inside tabular

I have a document with a list of tabular items. Some of the rows of the tables might need to refer to the same footnote, and there can be multiple such footnotes. The following is an MCVE: \...
1
vote
1answer
27 views

My tabularx gives error, “Missing number, treated as zero”

\begin{table*}[h!] \caption{list of unique effects on project plan with their descriptions} \label{tab:defination} \resizebox{\textwidth}{!}{ \centering \begin{tabularx}{...
3
votes
1answer
44 views

Why do I get unnecessary column space when using `\multicolumn` in type `X` columns?

Two of my columns have extra space before them which is not supposed to be there. I think the issue has to do with using \multicolumn inside a table with type X columns. My source code: \...
0
votes
1answer
34 views

Automatically Generate a Table with multiple rows and columns from keys in the .tex file

I would like to loop through a LaTeX document and collect every instance of a key with multiple entries. i.e. \begin{document} \lipsum[1-1] \key{name=Peter, age=50, gender=male} \lipsum[1-1] \key{...
2
votes
1answer
32 views

adapt columns in multicolumn

I would like to change the first column into three columns, such that I can write three numbers in each row instead of only one. Everything else should stay the same. \documentclass{article} \...
0
votes
1answer
22 views

Using a list with much text inside a fixed width table

I want to format interviews which are pretty long. I decided to split each interviews into sections with relevant tags. You can see a screenshot of this idea below. How can I accomplish something ...
0
votes
2answers
39 views

Issue with tabularx and hbox options in tcolorbox

I'm having a problem with formatting a tcolorbox so that it contains a table and its width fits the width of the table. A MWE of my code is as follows: \documentclass{standalone} \usepackage{booktabs}...
3
votes
0answers
29 views

Extending soul underline up to the right side of tabular

I found the \longunderline command at Extending underline up to the right side. However it does not work as expected in an tabular: \documentclass{article} \usepackage{tabularx} \usepackage{soul} \...
2
votes
1answer
57 views

siunitx in tabularx

I have a tabularx-table with a lot of SI values. For this, I wanted to define a new column type u which places the contents of the column into a \SI{XXX}{cm} expression. \newcolumntype{u}{>{\SI\...
3
votes
1answer
56 views

Color fraction of table cell

Is there some way to color only part of a table cell? For example, the top third, or bottom half of a cell? For example: \renewcommand{\arraystretch}{3.0} \begin{tabularx}{10cm}{|X|X|} \hline Row 1 &...
2
votes
1answer
42 views

Is it possible to align content dynamically according to its length?

I was making frontmatter for my thesis. The title page contains something like: Title: some centered text Instructors: somebody ...: ... So I placed them in ...
2
votes
1answer
54 views

How to change line spread of minipage in tabular for a consistent line separation?

Here is the MWE: \documentclass{article} \usepackage{tabularx} \linespread{1.5}\selectfont%\renewcommand{\baselinestretch}{1.62} \begin{document} \begin{tabular}{lc} row 1 & \...
0
votes
2answers
80 views

How to fix differents columns width with tabularx?

I want to create a table with 100% width of the page so i'm using the package tabularx. I need to set the width of the columns, so I decided to separate the table into 20 separate columns. This allows ...
0
votes
1answer
32 views

Centering a newcolumntype on a custom character

I received great help on this question: Table nesting with columnar widths based on uniform parent width, not uniform child width I'm looking to center columns on a character in mathmode. I ...
1
vote
1answer
34 views

Changing the column order breaks tabularx

Why does the following table breaks with TeX saying that ! Extra alignment tab has been changed to \cr. <recently read> \endtemplate l.9 \end{tabularx} ? If I change the column ...
0
votes
1answer
16 views

Only titles in table should be centered, the rest should stay unchanged

I have a table with 2x5 size. I have used the tabular environment to define it. I just want that the titles (the first both cells) should be centered but the rest of the table should be left-justified....