{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

4
votes
1answer
41 views

why tcolorbox example on pp. 345 doesn't work

I wish to improve my (very basic) knowledge about tcolorbox .. so I try to compile example in pp. 345 (chapter 18: Library "hooks"). Compiling it I receive warning: ...
4
votes
1answer
88 views

Why Won't m{} Vertically Center My Contents?

I am trying to center ALL the contents of ALL the cells in the table below. It's working horizontally, but not vertically. I definitely don't know how to best vertically center the last column, ...
3
votes
2answers
54 views

Display equations in tabularx

Why the first MWE works and second not? First MWE: \documentclass[12pt,border=3mm,preview]{standalone} \usepackage{mathtools} \usepackage{tabularx,graphicx} ...
1
vote
0answers
30 views

Siunitx S column with line break

I have a table with many S columns of the siunitx package containing mean and errors. The table is to wide for the page width when the mean and error are typed in one line. However breaking a line ...
1
vote
0answers
34 views

Booktabs table with rotated and aligned header, multirows, and tabularx columns

I have a problem with the alignment in a bit complicated table setting (see MWE). I have a table normally stretching the complete width of the paper (for illustrating here the nr of columns is reduced ...
1
vote
1answer
40 views

How to get alignment finally “right” with tabularx and an image?

Two things I'm struggling with in the following MWE: "looooooooooonger text" doesn't fit: don't want the middle and right column to be equally spaced: the maple may move over a little to the right ...
3
votes
1answer
38 views

tabularx preamble tweaks // column widths

am using this: %%% http://tex.stackexchange.com/a/97188/27721 \usepackage{array} \newcolumntype{Z}{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}X} and would like to use (that is, ...
4
votes
3answers
143 views

How to type short division?

I am typing elementary arithmetics, is there any one knows how to type this ? I know perhaps there's a package "polynom" could solve this problem, but is there any method that could work without ...
1
vote
0answers
18 views

Split table in 2 or more pages using table* and tabularx

I need to put this large table distributed in more than one page. As she has a lot columns also, I could only do fit all columns on the page using tabularx and resizebox. A part of the table is as ...
4
votes
1answer
80 views

Macro for creating a table

I want to have a macro that creates tables of a specific type which specialize in multiple choices questions. The required command \createtable{#1}{#2}{#3} has three arguments: The total number of ...
3
votes
2answers
44 views

How can I break lines automatically in tabular in IEEEtran?

I use tabularx to break lines automatically in tabular. Here is my code. \begin{table}[h] \caption{A table} \begin{tabularx}{\textwidth}{|l|X|} \hline \multicolumn{1}{|c|}{\textbf{Term}} & ...
1
vote
0answers
32 views

How can I break lines automatically in tabular to fit to page width? [closed]

I expect to break a long text automatically in tabular. After searching this site, there are several ways: (i). Use p{dimension} in tabular, answered here \begin{table}[h] \begin{tabular}{|l|l|} ...
0
votes
0answers
23 views

Title page with title in a fixed vertical position

I'm making a custom (kind of) title page. Vertically, it contains a tabularx with a set of logos, then comes the title, the author, ... I want to remove the tabularx but keep everything else in the ...
1
vote
1answer
63 views

How to fit a Tikz picture into a tabularx cell?

I am trying to put a Tikz picture into a cell of a tabularx. The problem is that it doesn't fit in my cell. Here is the code : \documentclass[10pt,a4paper]{article} \usepackage[utf8x]{inputenc} ...
1
vote
1answer
37 views

Text alignment in tabularx header only works for the first column

\begin{tabularx}{.96\textwidth}{@{\extracolsep{\fill}}|c|c|c| } \hline \textbf{Xxx1} & \textbf{Xxx2} & \textbf{Xxx3} \\ \hline & & \\ \hline \end{tabularx} Why ...
2
votes
1answer
46 views

Mixing m and X in tabularx

I have a problem with tables containing m and X columns. I need one column which should be vertically centered and another one which should fill the available horizontal space. My problem is that the ...
2
votes
1answer
39 views

Forcing minimum height for tabularx row

I have a tabularx table using multirow and with all columns vertically centered. Here's the table: \usepackage{multirow,tabularx} \newcolumntype{C}[1]{>{\centering\arraybackslash}m{#1}} ...
2
votes
2answers
43 views

fitting text into the tabular and tabular into the page

I've created the following table with help of @Zarko. Now I have some questions about layout. Code: \documentclass[11pt,a4paper]{article} \usepackage[english]{babel} \usepackage[T1]{fontenc} ...
4
votes
3answers
68 views

How is it changing macro in my MWE?

MWE \documentclass[a5paper,12pt]{article} \usepackage{graphicx} \begin{document} \begin{table}[h] \begin{tabular}{|c|c|} \rotatebox[origin=c]{90}{{OZGUR}} & \includegraphics[scale=.25]{o.jpg} ...
0
votes
1answer
35 views

Color midrule in tabularx [duplicate]

I have created a table using tabularx. Can I color the \midrule instead of having it colored black as default?
0
votes
1answer
48 views

Print list in columns

I have a long list. I want to reduce the length this list uses. Can I somehow encapsulate all the entries in an environment which prints all the entries in a "3-column table", making me use more of ...
0
votes
0answers
32 views

landscape multipage table issue with following page

I have a large table which I want to present in landscape with a caption. Everything is working so far, except that I am having a blank page in front of my table. I found out that I should use the ...
0
votes
1answer
21 views

Table columns out of sync in tabularx

I asked a very similar question yesterday that I thought I would be able to abstract into this problem but I can't. Here's an image of the table : Here's the code : \documentclass{article} ...
1
vote
1answer
45 views

Formatting a table to take a paragraph nicely

I am formatting something at the moment and there's a table which is pretty strained. There's a lot of information in it and I think that it would look better in a similar format to the modern CV ...
2
votes
1answer
34 views

Space to the right of the table

Not really sure why there is a space at the right hand side of the following table. Also the numbers inside the table should be shifted a bit to the left. \documentclass[12pt,a4paper]{article} ...
2
votes
3answers
67 views

How to fit a table with long header cells in “S”-type columns?

Well fit tables in LaTeX is hard for me, and I don't know if there is a manual with good practices about it. I need to create a table with S columns contending numbers, but the header of those columns ...
0
votes
1answer
27 views

Wrap long sentences in a table (Table looks awkward): Any help please

\documentclass{arttcle} \begin{document} \usepackage{amsmath} \usepackage{tabularx} \begin{table}[H] \captionsetup{font={footnotesize}} \caption{Reviews} \label{table1} \scriptsize \centering ...
1
vote
1answer
57 views

Putting a \newcommand in a tabularx

I have two command I have created with \newcommand, both work find. One is \mydate{date_variable} the other is \PrintOne{Variable1}{Variable2}. My problem is I can not figure out how I can put them ...
2
votes
1answer
24 views

tabularx right bar half of left bar

So I'm trying to add a table to the header of my document. Basically I'm trying to match the style created in MS Word originally. \usepackage{fancyhdr} \pagestyle{fancy} \renewcommand\headrule{} ...
0
votes
1answer
42 views

Border of table does not fit together

In my latex file I want to create a table. My current code looks like the following: \begin{table}[htbp] \centering \begin{tabularx}{\linewidth}{|l|X|} \hline \multicolumn{1}{c}{{\bf \ul Type of ...
0
votes
2answers
44 views

How to create a table with table of contents like attributes?

Is there a simple way to create a table of contents like table? In detail i want the same layout like the toc, the same width and especially the filling of the white space with dots, but with a ...
3
votes
1answer
35 views

Unexpected vertical gap in a table cell

while I'm trying to make a table, I found an unexpected gap in the leftmost cell in a table. Here is my code. \documentclass{article} \usepackage[a4paper,margin=1in]{geometry} \usepackage{tabularx} ...
2
votes
0answers
27 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
38 views

Table exceeds page width

I'm new to Latex and, in order to make a table, I'm using the CTAN Excel to Latex package. The generated code is as follows: \begin{table}[htbp] \centering \caption{Add caption} ...
2
votes
1answer
58 views

Strategy for listings next to code comments

I'm looking for strategies to produce listings of code with comments on what's happening next to it. I've found other similar questions, but not quite what I'm looking for. See for example: Listing ...
4
votes
1answer
50 views

Tabular size \textwidth and exacly columns dimensions in cm?

I need make table which have /textwidth width and its columns have exactly dimensions in centimeters. Specifically - table width: 24cm and columns (in cm): 4,2 ; 7,6 ; 6,4 ; 3,5 ; 2,3 My document ...
0
votes
2answers
51 views

Vertically centered text in tabularx (again)?

I have seen Table with 100 % width and vertical / horizontal alignment, Vertically center text in tabularx table, Vertical alignment in tabularx X column type - and I'm trying what they suggest, but ...
2
votes
0answers
30 views

Vertical table line is missing (tabularx and multirow)

Can anyone tell me, why my table is missing the vertical line on the right? It has something to do with that \multirow, but i can't find it. \documentclass[11pt, twocolumn, a4paper]{article} ...
2
votes
1answer
35 views

Troubles for fit this floating table to the page

Sorry for the question but I have the following MWE: \documentclass[fontsize=10pt,paper=letter,headings=big,bibliography=totoc,DIV=9,headsepline=true,]{scrbook} ...
3
votes
2answers
56 views

Tabular and equation in a text line

I want to do something like this: in a line with text, not center. Also I can control the left brace but it doesn't seems good. My MWE is: \documentclass{article} \usepackage{amsmath,cancel} ...
0
votes
0answers
25 views

Minted and Tabularx

I've seen lots of questions on using minted with tabular. I'm getting this problem when using minted with tabularx. Code: \begin{tabularx}{|l|X}|} A & B\\ testing & \begin{minted}{c} int ...
2
votes
1answer
33 views

Cannot use multirow with multicol together

I can't use multi-row with multi column, my aim in the following code is to have a two height row with the content A long header vertically centered in two rows, what am I missing here? ...
1
vote
1answer
29 views

Using \\ in environments inside the \begin{tabularx}

I have the following code: \begin{table}[h] \begin{tabularx}{0.75\textwidth}{ m{4cm} X } & \textbf{Derivations} \\ $v=v_0+at$ & line 1\hrule \\ ...
1
vote
3answers
48 views

Vertically aligning content in table cell

I have the following code: \begin{table}[h] \begin{tabularx}{\textwidth}{ m{4cm} X } & Derivations \\ $v=v_0+at$ & test \newline test \newline ...
5
votes
3answers
81 views

Fitting column width to text

I have the following table: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{booktabs,array, caption,fixltx2e} \usepackage[flushleft]{threeparttable} ...
0
votes
1answer
78 views

MinionPro: Tabular Figures in Tables and Proportional Figures in text

I am using TexMaker and MinionPro and I would like to keep proportional both in figures and in the rest of the document. For figures, I use this configuration: \documentclass[english]{article} ...
5
votes
3answers
73 views

Own counter starts at 3 in tabularx environment

the following example shows that the self defined counter in the tabularx environment does not start with "1". Can't figure out how to define the command to always start with "1". Ideas? ...
3
votes
2answers
87 views

Table issues — off page, \newline not working

I'm new to LaTeX and am having problems with this compiling in LaTeX the above, desired table. Here is the code I'm working with: \documentclass{article} \usepackage{amsmath} \title{Latex File} ...
3
votes
1answer
162 views

What options are there to globally format tables also allowing local overrides?

Tables are the final frontier of my documents. So far I have managed to standardized over 20 documents (hundreds of pages) using a single, shared preamble. Issue Abstracting format from content in ...
1
vote
1answer
36 views

Increasing table width and centering word within column using longtable package

Problems: Increasing table width to 100% Centering table header word (i.e. criteria) Repeating table captions on every page Questions: How do I increase table width to 100%? How do I center the ...