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
1answer
28 views

Table with vertical aligned header text [tabularx]

In LuaTeX with document class memoir and use of tabularx, how do I go about making a table (linewidth) layout similar to: Note: Table head is center bottom align Table body is right align A group of ...
0
votes
2answers
36 views

3 columns with top-align and bottom-align [tabularx]

I'm trying to put together a three column table (in tabularx) that have the following layout (in full line width): Section Description Page 1-5 text text text ...... 7 5-12 ...
1
vote
1answer
30 views

Align text at the bottom + right of the table cell

How do I do this with the extra twist of getting the text (i.e. my custom page numbering) right aligned? The end results should look something like this (full width): Text ......... 1-2 Text ........
0
votes
2answers
42 views

problem with centering vertically multirow

can you please help me with this table. I tried many times to center vertically the last column but it doesn't work and even the space it's not good at all. I used the X (tabularx) but it seems not ...
0
votes
1answer
37 views

\verb with % in tabularx

Is there any way of typesetting the % symbol in \verb within a tabularx-cell? \documentclass[]{article} \usepackage[utf8]{inputenc} \usepackage{tabularx} \begin{document} \verb|b%a| \begin{...
1
vote
2answers
31 views

Broken vertical line in tabularx

\begin{table}[H] \begin{center} \begin{tabularx}{\textwidth}{|Y|Y|l|} \hline Name&Frequency Range&Interpretation and Appearance\\ \hline\hline Delta \delta&0.1 - 3.5 Hz&Deep sleep or ...
1
vote
1answer
31 views

Whats wrong with this tabularx?

I'm trying to create a table with tabularx, with different column widths: \documentclass{scrbook} \usepackage{tabularx} \newcolumntype{b}{X} \newcolumntype{s}{>{\hsize=.5\hsize}X} \begin{...
0
votes
1answer
19 views

! File ended while scanning use of \TX@get@body

I have an issue when compiling the following code snippet : \begin{table}[h!] \caption{Synth\`se des FoM dans le cas (GC$_{\text{phot}}$ + WL) versus XC dans les cas (Y1,Y10) et (Flat,Non-Flat).} \...
0
votes
1answer
23 views

Specific-length vertical padding in table (with text wrapping, alternating row colors, and specified widths)

I'm trying to create fixed-width (i.e. spanning the whole \textwidth) tables, with alternating row colors and arbitrary alignments (horizontal and vertical), that have evenly-spaced specific-length (i....
5
votes
3answers
110 views

Fitting large table to single page

I am trying to ensure that the below table fits into one page. I am fine if the font is smaller. I have already tried changing the font, but it didn't work well. Here is what I have so far: \...
3
votes
2answers
50 views

too much vertical space after tabularx with equations

I am attempting to use tabularx to put multiple numbered equations on the same line, as suggested in this answer. MWE 1: \documentclass{article} \usepackage{tabularx} \begin{document} blah blah text ...
3
votes
1answer
38 views

Table overflows page horizontally

my table is overflowing my page horizontally. I need it to stay within my defined margin for the document and still be displayed completely. I already tried the following links, but I did not succeed:...
1
vote
1answer
26 views

Adding text above vertical and horizontal column lines

I currently made the following table; Which corresponds to this code: \begin{table}[] \begin{tabular}{lll} & & \\ & \multicolumn{1}{l|}{...
3
votes
0answers
52 views

Doing iterative arithmetic inside of an iterative tabularx

I'm trying to create a matrix table that will iteratively fill in the cells based on inputs that I can change. I originally tried the solution shown here, but I wasn't able to get Latex to properly ...
11
votes
3answers
454 views

Layout of complex table

The MWE \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{tabularx} \usepackage{colortbl} \usepackage{multirow} \usepackage{ragged2e} \...
0
votes
0answers
29 views

Undefined control sequence in table

I'm trying to build a table using tabularx but I'm get the following error: ! Undefined control sequence. <template> ...centering \arraybackslash \compress ...
0
votes
0answers
24 views

Landscape & Float & Text & minipage

Writing a landscape manual with subsection on the top, with images on the left using figures. On the right is the list of text. I have issues trying to have them on the same page when I use the ...
15
votes
4answers
2k views

Improve appearance of the table in Latex

I created a table in Latex to show some comparison data about some frameworks. How can I improve its appearance? \begin{table}[ht] \rowcolors{1}{gray!25}{white} \centering \begin{tabular}{|p{20mm}|p{...
1
vote
1answer
28 views

Long Table that Horizontal Line doesn't span some column

I am creating a table to record the sponsorship list regarding to the event hosting. \documentclass[12pt, a4paper]{article} \usepackage[margin=2.5cm, left=2.4cm, right=1.7cm]{geometry} \usepackage{...
1
vote
0answers
27 views

How do you define a row macro inside a table? [closed]

I am trying to make a macro for the rows in my table, just to make it look a bit more elegant. However, the document fails to compile when I use more than one row. Here's the code I'm trying to ...
1
vote
1answer
21 views

tabular(x): How to get top-alignment, if a picture is put in?

How can I get this instead of this \documentclass[paper=a5]{scrreprt} \usepackage{graphicx} \usepackage{tabularx} \begin{document} \begin{tabularx}{\linewidth}{l X} Laptop & \rule{2cm}{3cm} \\ ...
2
votes
2answers
51 views

Table: shift entry to center and make whitespace even

I have this table below. How do I make the white spacing even and also put the 0s center? \begin{table}\centering \scriptsize \begin{tabularx}{\linewidth}{@{}l *{1}{>{\centering\arraybackslash}X} ...
3
votes
1answer
26 views

Table numbering and descriptions

I am trying to add a Table number, Table caption, Table description to the following table (which was constructed with helpful inputs by @leandriis and @Dynamite) \documentclass[final,3p,times,12pt]{...
2
votes
2answers
33 views

Simple table formatting

I am trying to format the below code so that the table looks as follows: I have tried adding toprule and midrule, but I couldn't achieve my goal. Here is the code I have so far. \documentclass[...
2
votes
2answers
43 views

Column width as necessary in tcolorbox tables

I am trying to make nice looking table with some data. Everything is fine except the width of column is fixed. I have tried many solutions but nothing works. How can the width of the column is change ...
1
vote
2answers
36 views

How can I align the text with an image in a tabularx?

So I have this table with an image and a table \cleardoublepage \thispagestyle{empty} \bgroup \noindent\begin{tabularx}{\textwidth}{@{}c@{}X} \includegraphics[width=1.02in]{img/uaqlogo.eps} &...
5
votes
2answers
72 views

Please help me with the correction in table column width and the errors. You can give your suggestions according to your own

\documentclass[a4paper, 12pt]{report} \usepackage{array} \usepackage{tabularx,booktabs} \newcolumntype{Y}{>{\centering\arraybackslash}X} \begin{document} \noindent \begin{minipage}{1\linewidth} \...
4
votes
2answers
96 views

color rows on table (Tabu package)

I am writing a table with colored rows using the tabupackage (2.10). For example \documentclass[12pt]{article} \usepackage{tabu} \usepackage[table]{xcolor} \begin{document} \begin{table} \...
0
votes
0answers
37 views

How to design this table? [duplicate]

I have this table \begin{table} \begin{tabular}{@{} l *{5}c @{}} \toprule \multicolumn{1}{c}{Method} & 0s & 1s & 2s & 3s & 4s \\ \midrule A & 52.7 & 76.9 & 56.5 &...
3
votes
2answers
61 views

Trouble with table layout

Hello fellows and folks! I need to get what's on the picture: I'm not very good when it comes to multirows. This is what I have tried so far: \documentclass{article} \usepackage{caption} \...
2
votes
3answers
59 views

Latex: How to fit 3 large double tables next to each other in the first row of the page and 3 again in the second row of the page?

For awhile now I have been trying to line up tables. They are pretty large tables, but I'm trying to fit approximately 3 tables in one line. One table consists of two tabular environments in each ...
1
vote
1answer
51 views

Toggle row numbers & dotfills in table

I'm trying to add automatic row numbers and dotfills to a table, with a toggle that disables them for certain rows, however it doesn't work as expected. In the MWE below, the toggle is working for row ...
1
vote
1answer
30 views

Table with 2 panels is causing the table numbers to skip

I created a table with 2 panels using 2 tabularx's. That caused the following table to have the table number skipped, meaning the table number went from Table 2 for the table with 2 panels to Table 4 ...
0
votes
0answers
15 views

Math mode in tabularx [duplicate]

I would like to write a sum in my tabularx environment. Usually I would go into the full math mode with $$\sum_i ...$$ and the "i" would be right below the sigma symbol. However, this doesn't work ...
2
votes
2answers
62 views

Misaligned rotated cell

I'm trying to rotate some cells in my table, but they seem to be right aligned for no specific reason. They also expand the cells somehow. \documentclass[a4paper, 11pt]{article} \usepackage[utf8]{...
1
vote
2answers
44 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
47 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
32 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 ...
-1
votes
1answer
71 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[...
7
votes
3answers
160 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
143 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
72 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
144 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
50 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
40 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
35 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
51 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
27 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
104 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
223 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 ...