{tables} is about the tabular environment and related packages such as {array}, {booktabs}, {tabularx}, {tabu} and {longtable}. For questions about the table environment (i.e., about floating or positioning), use {floats} instead.

learn more… | top users | synonyms (2)

3
votes
1answer
197 views

Extra alignment tab has been changed to \cr end template?

I get the error mentioned in the title of the question. \begin{table*}[!ht] \centering \caption{\textit{first scenario : heuristic methods}} \label{Table2} \resizebox{2\columnwidth}{!}{% ...
3
votes
1answer
111 views

Use of underline and siunitx in a table

I have a table of numbers that are aligned using the 'S' format of siunitx (so they are aligned by the decimal point). I need to mark the statistically significant numbers somehow, and using bold font ...
3
votes
1answer
179 views

Table numbering and listing in table of appendices instead of TOC

I am using a list of appendices based on this thread: Appendix in scrreprt - Separate table of appendices but mentioned in original TOC This works perfectly fine. But I realized I don't intend to ...
3
votes
1answer
193 views

Custom table caption (Updated)

I'd like to achieve a custom table (figure) format with Table numbering and title (this is usually the title also used in the list of tables but does not have to be) in boldface, and the (longer) ...
3
votes
1answer
82 views

Vertical space only after every second row in a table

I have several tables in the following custom format, to which I would like to add vertical space (e.g. 6 pt) after every second row. I know this can be done manually. I am only wondering, if there is ...
3
votes
1answer
163 views

Optimizing size (font AND width) of tables produced with dcolumn/siunitx

I have a couple of tables in my document, and it's time to finalize them. This means I want to optimize: 1) the size of the font (if possible obtain \normalsize as in the rest of the document, or at ...
3
votes
1answer
6k views

Underfull \hbox (badness 10000) in paragraph for table

I got a "bad box" warning said `!h' Underfull \hbox (badness 10000) in paragraph Underfull \hbox (badness 10000) in paragraph Underfull \hbox (badness 10000) in paragraph Underfull \hbox (badness ...
3
votes
1answer
478 views

Three fixed width columns for cv entry

I'm in the process of writting my cv in LaTeX. I need to display the information in such a way that for each entry I have 3 left aligned items. The first being the date period, the second the ...
3
votes
1answer
95 views

How to make multicolumn width the total of the declared width of each column?

For example I have this table: \begin{longtable}[c]{ p{1.0in} p{1.5in} p{2.0in} p{2.5in} } \multicolumn{3}{l}{ Partner } & \hfill Total \\ \end{longtable} But the result is that the ...
3
votes
1answer
456 views

Plot with Min/Max bar and two average points

I am trying to stop using Excel charts in my academic papers and rather use something more LaTeX integrated such as Tikz. My current Excel chart looks like that: As can be seen, any combination from ...
3
votes
1answer
331 views

How to get horizontal black line when coloring cells?

I have the following table with an arrow showing the missing black horizontal black line: Here is the relevant code, I am wondering how do I get a black horizontal line where there is one missing? ...
3
votes
1answer
182 views

How to color the font of a single row in a table, while using a paragraph column?

I tried to color the text of the headers of my tables. Sadly it doesn't work properly as soon as you use it with paragraph columns. Below is my MWE presented. The header in the first table is as I ...
3
votes
1answer
4k views

Table cell color overlaps cell border

As the graphic and MWE below show, some of colored my table cells are obscured the cell colors. I'd appreciate help fixing this. \documentclass[english]{article} \usepackage[T1]{fontenc} ...
3
votes
1answer
123 views

Vertically center numbers in table

Consider the following example: \documentclass{article} \usepackage{booktabs,dcolumn,ragged2e} \newcolumntype{d}[1]{D{.}{,}{#1}} \newcommand*\mc[1]{\multicolumn{1}{c}{#1}} \begin{document} ...
3
votes
1answer
444 views

LyX: Removing indentation from a table

I want to make a table that has terms on the left side with .25\textwidth and descriptions on the right side with .75\textwidth Like Name: asdjoia Position: ...
3
votes
1answer
60 views

Table with non-standard multicolumns

I want to typeset this table: As you see, it's hard to use multicolumn here. I tried 2 consecutive tables: \documentclass{article} \usepackage[a5paper]{geometry} \usepackage{tabularx} ...
3
votes
1answer
1k views

\hline with \only (or \onslide) in Beamer

In a table in beamer, I would like to remove \hline after X number of slides using \only<1>{\hline} But this always results in an error message: Misplaced \noalign What can I do to ...
3
votes
3answers
218 views

Know the cell width with tabular* or include a paragraph box without specifying its width

I wrote the following table using tabular* inside a \newenvironment. Worked fine but I prefer to have text wrapping on one column. The table uses "phantom" cells to achive what I want that is having ...
3
votes
1answer
232 views

Automatic arrangement of equations with comments

This question led to a new package: conteq I am writing a paper with multiple chains of equations or inequalities, with optional explanations. Depending on the size of the equations, I use one ...
3
votes
1answer
149 views

How to wrap web address in table?

All of my text in my table wraps except for line 13, which I have copied below. The website runs off to the side of the page. I'd like it to wrap the web address. Can anyone help? ...
3
votes
1answer
934 views

How to create a dashed line in tabularx environment

I've been looking into this, and I have encountered two main "solutions": \usepackage{arydshln} As decribed here. And this one: \usepackage{dashrule} As described in this other post. However, ...
3
votes
3answers
243 views

aligning numbers with brackets in tables

I am attempting to use Latex to present financial statements. The majority of the work involves the tabular environment with numbers presented in columns which I have set as ragged right. My problem ...
3
votes
1answer
1k views

siunitx S column does not align numbers without dot

I have a table that uses the S column type provided by siunitx. Unfortunately, if a number does not have a . it is not aligned properly. Yes, i could write number. but then the table will list the ...
3
votes
1answer
2k views

How to make the table fit into the column?

Hi I have a two columns table with ACM SIG Proceedings template http://www.acm.org/sigs/publications/proceedings-templates Here is my latex: \documentclass{sig-alternate} \usepackage{ctable} ...
3
votes
1answer
273 views

Pgfplotstable adding a growth column without column names and then offsetting it

I'm trying to create a new column in a pgfsplotstable which shows the compound growth over the preceding columns. The columns don't have names, and I want to shift the column a little to the right to ...
3
votes
1answer
323 views

Stretched columns when trying to color individual cells

I'm trying to make a time plan for a project using tables in LaTeX but I've run into a small problem. The table below will look fine until I try to colour individual cells by adding ...
3
votes
2answers
2k views

table with tabularx and multirow

While using tabularx and multirow I tried to import this table (made with Word) in LaTeX: but it's not really working. It seems as if there isn't enough space for the text, but shouldn't taburlarx ...
3
votes
1answer
382 views

Misalignment of table columns when using multirow

I have a LaTeX document in which I am using custom environment and commands to make everything a bit easier. However, when I use the multirow command in one of my custom environments, the alignment of ...
3
votes
1answer
1k views

Altering the position of bullet given by \item

I am working on my resume and for that I am using one of the following construct: \documentclass[letterpaper,9pt]{article} \newlength{\outerbordwidth} \usepackage[empty]{fullpage} \usepackage{color} ...
3
votes
1answer
279 views

Center align 2 column tables between columns

I currently have a table which has 2 columns: the left one is right-justified and the right one is left-justified. I'd like to center the table relative to between the two columns: that is, have the ...
3
votes
2answers
296 views

List spacing inside a table

Please take a look on the following example: \documentclass[a4paper]{article} \begin{document} \begin{tabular}{ |p{ \textwidth}| } \hline \begin{enumerate} \item Item in a list \end{enumerate} ...
3
votes
2answers
2k views

how to vertically align text in multirow cell with tabularx with renewcommand?

Here I come again, Following the indications on this url I managed to get almost exactly what I want. However the problem is that the first multirow cell (with text "5 and 6") is not vertically ...
3
votes
2answers
4k views

How to put two tables in one landscape page

I have two consecutive tables and since they are wide I want to have them in a landscape page. But it doesn't show both of them in one page. here is the code I'm using: \begin{landscape} ...
3
votes
3answers
4k views

Line break in rotatebox in table?

I use \rotatebox to create a table with vertical headers, like so: \documentclass{article} \usepackage{rotating} \begin{document} \begin{table} \begin{tabular}{|l|l|l|} \hline ...
3
votes
1answer
1k views

Wrapping table column headings in -turn- environment?

I'm trying to wrap the text in table column headings in the turn environment (from the package -rotating-). Is there a way to perform this using turn or do have to embed a minipage (e.g., ...& ...
3
votes
2answers
181 views

How do I put “complex” multiline things as 1 cell in a table?

Trying to group up different multi line formulas and text that I have to make space on the page, my first thought was to place them as a cell in a table, but trying to do that naively does not work ...
3
votes
1answer
4k views

tabular - \cline not working

I have this table \begin{tabular}{ | p{2cm} | p{4cm} | p{4cm} | p{4cm} | } \hline Název & \multicolumn{3}{ l }{vypsatZapojeniResiteluDoProjektu} \vline\\ \hline Popis & \multicolumn{3}{ l ...
3
votes
1answer
302 views

subequation in tabular

I am trying to number two equations at the same line as subequation. My problem seems to be due to case environment, since if i comment the case environment, the problem disappears. Here is a short ...
3
votes
2answers
855 views

Using \columncolor outside column definition

I'm trying to create a command, which calls on an environment, which defines a custom column definition with one argument using \newcolumntype, and defines a second command, containing parameters for ...
3
votes
3answers
2k views

Enumeration of footnotes wrong

I have a small table, where I need a footnote and after it a text with another footnote. So I researched for it and found out, that I shall use \footnotemark in combination with \footnotetext in the ...
3
votes
1answer
419 views

multicolumn-command which automatically uses all columns of the table?

Is it possible to define a multicolumn{}{}{}-command, which automatically spans all columns of a table? For my longtables I want to use a command defined in the preamble, which typesets at the right ...
3
votes
1answer
3k views

Vertical centering of text within a table

I have a table defined as: \begin{table} \begin{center} \setlength{\extrarowheight}{3.0pt} \begin{tabular}{ | c | p{12.5cm} |} \hline \textbf{Item 1} & ...
3
votes
1answer
193 views

Please help me to run this code in LateX!

\documentclass{article} \usepackage{array} \begin{document} \begin{tabular}{| >{\centering}p{2.5cm} | >{\centering}p{0.5cm} | >{\centering}p{2.5cm} |>{\centering}p{2.5cm} ...
3
votes
2answers
2k views

table overflows the page

I use \documentclass[a4paper,14pt]{report} and the longtable package. Also I have \usepackage[left=3cm,right=1cm,top=2cm,bottom=2cm,bindingoffset=0cm]{geometry} in the preamble. I have some ...
3
votes
1answer
1k views

Start new paragraph inside a table cell

Look out for the \par below (on the row starting with "MSA" and notice it does not achieve the desired new paragraph. How to achieve the desired effect? Thanks. \documentclass{article} ...
3
votes
2answers
8k views

How can I create a LaTeX table with merged cells in 2nd column or later

I wish to generate a LaTeX table with merged cells in the 2nd column. Any examples I have seen so far have merged cells in the 1st column. The text also needs to wrap with in the cell. (couldn't ...
3
votes
2answers
2k views

How combine make diagonal column heads in table with multicolumn headers

I want to fit this table on a portrait format page and make the columns that show numbers to be of equal width however, type 3 has a longer name than the others, hence setting the column heads ...
3
votes
1answer
363 views

paper edition of my university facebook

I'm trying to make the paper edition of the face-book of my university. I got some constraints; for example, I have to do very small margins. \documentclass[a5paper,twoside]{book} ...
2
votes
1answer
51 views

Flexible inclusion of floating environments from external files

I'm interested in using the approach described in the following exchange: Move figures around in a document with a simple command In a nutshell, the idea is to store labeled figure and table ...
2
votes
2answers
30 views

Numbering tables sequentially [duplicate]

I would like to number my table so that I have, e.g. Theorem 1.3 Table 1.4 Lemma 1.5 How can I achieve this result? I am also using cleveref, so ideally \cref{ThatTable} would produce a linked ...