Tagged Questions

{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

1
vote
1answer
38 views

Problems for coloring tables using booktabs and xcolor

Well, recently I posted a question related here. Thanks to the solution suggested by Harish Kumar I could fix the two tables posted at first. Later I tried to apply the solution to a new third table. ...
3
votes
1answer
57 views

Problems with \rowcolors and booktabs

I'vegot few tables created with few packages included booktabs where I use the command \rowcolors from the xcolor package. But in the last I notice that the colour is wider that the lines of the same ...
2
votes
1answer
27 views

Align numeric values from knitr command \Sexpr{} by decimal in table created with booktabs and tabularx

I am writing my thesis as dynamic document using .Rnw, knitr and R. I ran my statistical analyses in an external R-script, which I sourced into my main .Rnw-file. I also want to create some tables ...
2
votes
1answer
67 views

Decimal alignment in tables with tabularx and multicolumn

in my masterthesis I want to create regression tables the numbers in the table are aligned by the decimal point. Here is a MWE to get an impression what I'm talking about: ...
1
vote
1answer
29 views

Table formatting problem with multiple multi-rows

I am trying to complete the formatting of this table. I cannot get the text in the final column to wrap and remain in the cell. The "stuff stuff stuff" text just keeps going off the edge of the ...
3
votes
1answer
110 views

How to draw some lines between figures in LaTex

I want to draw the following figure. How do I do this? Some lines between figures, and Can you give me this lines some color? Some color lines in figure, as following:
0
votes
0answers
25 views

Error in tabularx+listings example with TexLive 2014, which compiles in TexLive 2011 (! Missing { inserted)

Consider this MWE: \documentclass{article} \usepackage{trace} \usepackage{tabularx} \usepackage{booktabs} % \toprule etc; \let\botrule\bottomrule % temp hack \newcommand{\tn}{\tabularnewline} % for ...
4
votes
1answer
43 views

aligned-environment in tabularx - fail to align vertically

I try to have a simple tabularx-table in which the cell content is vertically aligned to the top. While this works as expected for text, two aligned-environments in adjacent cells are vertically ...
4
votes
3answers
87 views

Enlarge table/tabular without using tabularx

I have the following table and I want to enlarge this. The width of the table has not to be big as the \textwidth but it should be a little bit larger as it usually is: \documentclass{article} ...
2
votes
1answer
35 views

Tabularx + multicolumn + 1 fixed column size

I made a table with tabularx which has a multicolumn row first followed by 2 rows, which have 2 columns, the first column should have a fixed size (p{7mm}) the second should be X. If I set the size of ...
2
votes
1answer
41 views

Set column width to point

I currently have a tabularx table with four columns. I initialize the environment like this: \begin{tabularx}{\linewidth}{l p{0.4\linewidth} | l X l X} How could I change this so that the second ...
0
votes
1answer
46 views

Multirow: column borders missing

I'm not getting column borders correctly in the following table. I'm using multirow package. Also, I want the '123' in the big cell to be centered, but it is misaligned. I'm not sure how to fix this. ...
3
votes
3answers
144 views

What does mean the code in this table?

After see the Andrew Swann solution to my previous question: How to fit this table in a page? I tried to fit it to another table: \documentclass[11pt]{book} \usepackage[utf8]{inputenc} ...
5
votes
3answers
55 views

Align text at the bottom of the table cell

I need to create table of content in a table format with text wrapping in the subject titles. The page number is currently at the top of each cell. In the rows where the title is wrapped, I need the ...
4
votes
1answer
54 views

Tabularx: columns with different widths

My code can be found below. \documentclass[fleqn,10pt]{SelfArx} % Document font size and equations flushed left \usepackage[font=small]{caption} % New commands ...
0
votes
1answer
32 views

Two tables side by side placed ; need to to align vertical top

I've two table placed next to each other as mentioned HERE Brief copy of code is mentioned below: \parbox{.2\textwidth}{ \begin{tabular}{|c|c|c|c|c|} \hline $\textbf{Q\#}$&$ ...
2
votes
0answers
60 views

Are tabls and tabularx not compatible?

The following MWE does not compile: \documentclass{article} \usepackage{tabularx,tabls} \begin{document} \begin{tabular}{ccc>{arraybackslash}c} 1&2&3&4\\ 1&2&3&4\\ ...
4
votes
1answer
43 views

table (\tabular + \shortstack) gives weird result

I am using a template from this journal. When I am placing table in covering 2 columns (textwidth) using table* I get the following error. MWE: \documentclass[USenglish,twocolumn]{article} ...
2
votes
1answer
53 views

\newenvironment behaviour with \begin{landscape}

I would like to use landscape mode for a \newenvironment{lessonPlanner} in which I have a table. but I get an error when I embed \begin{landscape} and \end{landscape} in the begin and end statments of ...
2
votes
3answers
335 views

How to make a table look nicer

I am currently working on my master thesis and my tables which are used as a type of matrix simply look awful. How can i make them look much better? \begin{table}[H] \centering ...
1
vote
1answer
52 views

Vertical aligment of dinglist inside table cell with `parskip`

Why is the list text so close to the top line of the cell in some lists? I know it's a problem with the parskip package. I can solve this by adding this strut in every cell before the text ...
2
votes
2answers
52 views

Table used to place text and symbols

I want to place some text and a line created with rule. It should look like the example you can see as image. The table shall be textwidth. \documentclass[a4paper, 11pt]{memoir} ...
4
votes
3answers
83 views

What is the correct way to stretch the cell keeping it vertically centred in tabularX

I have this table, in which the text is touching the horizontal lines above and below, I tried some of the solutions to stretch the cells I found in the web. I managed to stretch the cell but I can't ...
3
votes
1answer
70 views

Need help starting long, text-heavy table

I am new to LaTex and trying to teach myself. Currently I am trying to write a unit plan for graduate school (MA in Math Ed), which would look something like that provided image. One question, one ...
4
votes
1answer
26 views

Erroneous vertical spacing in tabular in combination with makeindex

I'm having some trouble with vertical whitespace appearing in a tabularx environment where I really don't expect it to. Consider the following MWE: \documentclass{article} \usepackage{tabularx} ...
6
votes
1answer
71 views

Dynamically calculated Row height in Tables

I am trying to dynamically allocate the height of rows in a table based upon a number, specifically the number of minutes that are devoted to a specific activity in a class lesson. The table ...
5
votes
3answers
93 views

Long list of tabular figures inside minipage goes off page

Using the follow MWE, I'm able to create a beautiful lists of photos on the left and a caption on the right (similarly, I could also use the sidecaption package or floats directly). MWE [LuaLaTeX]: ...
1
vote
1answer
45 views

Wrap word in table cell

I have such table: \begin{tabularx}{\textwidth}{ |p{0.5cm}|X|p{1cm}|p{0.8cm}|p{1.1cm}|p{0.9cm}|p{0.9cm}|p{1.2cm}|p{0.9cm}|p{0.9cm}|p{1.5cm}| } ...
3
votes
1answer
50 views

hdashline with tabularx together with custom row height is not working

I tried to set up a table with different custom row height and a dashed line. I'm using tabularx for the table and arydshln for the dashed line. When I import arydshline before tabularx it starts ...
4
votes
2answers
88 views

Tabular cells with exact same width and multicolumn

I tried to design a table with some very specific preferences: The table should span across the whole width Each cell can have a different alignment Each cell has exactly the same width Some cells ...
2
votes
2answers
411 views

Overfull \hbox (15.0pt too wide)

I have multiple tables which look like this: \begin{tabularx}{\textwidth}{|l|X|l|} \hline \textbf{ID} & \textbf{Description} \\ \hline 336858 & The description \\ \hline \end{tabularx} and ...
6
votes
0answers
48 views

tex4ht removes spaces in array column when including a package even if the package is not used

In the following cases, Tex4ht generates an HTML file with no spaces between the columns of the matrix if some package is included, even if the package is not used. Removing the package, the space ...
4
votes
2answers
44 views

ltablex inside environment throws \end -error

I wanted to use a tabularx (ltablex package) inside an environment, but there is an error (but it still builds okay). I'm using ltablex, because I want a longtable spanning several pages with the ...
1
vote
1answer
102 views

tabularx “Missing number, treated as zero” error

error: ! Missing number, treated as zero. } l.16 \begin{tabularx}{\textwidth} {x x x x} MWE: \documentclass[12pt,a4paper,fleqn]{book} % ...
6
votes
1answer
74 views

Unwanted padding in tabular columns when cells contain multiple rows

Whenever I need to create a cell with multiple rows in a tabular environment, I usually create enclose the contents of the cell within a tabular environment within the cell. This has been a great fix ...
5
votes
1answer
112 views

Automatic cell colouring using cellcolor: Undefined Control Sequence

I am trying to produce a table, using tabularx, where the cells are coloured automatically depending upon their value. I want to use the \cellcolor command as it will fill the whole cell, rather than ...
5
votes
2answers
83 views

Problem with subcaptions in subtables

I am trying to implement a table with several subtables, but working with subcaption does not work neither when I try tabularx. This subtables have different number of columns. with the following code ...
5
votes
2answers
76 views

Redefinition of tabularx column not applying to all columns

I obeserve a strange behaviour when trying to get text vertically centered in tabularx cells. According to a suggestion, I tried \renewcommand{\tabularxcolumn}[1]{m{#1}} which works so far as it goes. ...
3
votes
2answers
125 views

table with many columns

I have some questions about the below table: If I omit the margins, the table will completely get disordered. I want to have the two 4 columns in the middle to have a slight distance with each other ...
0
votes
1answer
59 views

Creating special table [duplicate]

How can I create a table such as following: I do not know how can I have A and B in the middle of four rows ?
3
votes
4answers
98 views

Alignment in tabularx environment

I want to generate a table that looks approximately as follows: I want to use tabularx to have equidistant cells for the cells that are below the second row and right of the first column. Here is ...
5
votes
2answers
84 views

Table with multiple rows and columns

I just want to create a table with multiple rows and columns, here is a very suitable solution:Table rowspan and colspan, but can anyone help me to get a variable column width rather than the equal ...
4
votes
3answers
103 views

How do I fix this table?

The table is big in length and width, hence top and bottom of the table are chopped off from the table generated in a pdf file. Here goes the latex code. \documentclass{article} ...
1
vote
1answer
82 views

tabularx vs ltablex

I have been working with tables spanned over multiple pages as well as I want "x" functionality as well. I have been successfully working with tabularx (along with threeparttable) for now. It seems to ...
0
votes
1answer
42 views

Tabular table wordbreak

I've got the following table (generated by pandoc html => tex): \begin{longtable}[c]{@{}lll@{}} \toprule\addlinespace \begin{minipage}[b]{0.23\columnwidth}\raggedright Naam \end{minipage} & ...
1
vote
1answer
45 views

Whats the problem with the following code?

\begin{table} \caption{Description of the data sets} \newcolumntype{R}{>{\raggedright \arraybackslash} X} \newcolumntype{S}{>{\centering \arraybackslash} X} ...
1
vote
1answer
179 views

Table spreaded over multiple pages . Tabularx [duplicate]

To spread the table over multiple pages I know the utility islongtable But it seems that it doesn't work for tabularx . what is the solution. there may be duplication of question but couldn't find ...
2
votes
2answers
89 views

Align the word input of algorithm2e with a tabularx table

I'm referring to this post. I like the idea from 'a different ben' of the tabularx table inside the \Input command. But I would like to have the word Input: at the top, on the same line as the first ...
2
votes
1answer
66 views

tabularx table and the indentation from the addmargin environment

I have a problem with the indentation done by the addmargin environment of the koma script and the use of tabularx table. Clearly the \textwidth uses the original width of the text and not the smaller ...
4
votes
1answer
79 views

tabularx: underfull \hbox (badness 10000) in alignment

I'd like to have table of 15cm with fixed-width cells. I use tabularx package. For some reason, the following code gives underfull \hbox (badness 10000) in alignment . What causes this warning? How ...