{tables} is about the tabular environment and related packages such as {array}, {booktabs}, {tabularx} 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
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
217 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
231 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
148 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
886 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
270 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
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
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
277 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
289 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
178 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
298 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
837 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
413 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
544 views

I had a problem with spacing of tabular columns combined with \multicolumn. I found an inelegant solution. Perhaps someone knows of a better one?

Consider a table with several columns. Three consecutive columns are thin. These three thin columns have a long \multicolumn{c}{3}{??} heading over them. If nothing is done to specify how these should ...
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
36 views

\multirow without extra &s

It is possible to somehow modify \multirow so that it works like this: \documentclass{memoir} \usepackage{multirow} \begin{document} \begin{tabular}{ll} \multirow{3}{*}{Tall cell} & First ...
2
votes
1answer
58 views

Problem with vertical alignment of cells in tabular environment

I'm having a problem with vertical alignment of cells in a somewhat complicated case. Does anyone know how to have a different vertical alignment for two cells in the same column? And also if you use ...
2
votes
2answers
84 views

Error missing \endgroup for table tabulary with bullet list

I'm trying to insert a bullet list in a table of the type tabulary , but it always throws following error! Missing \endgroup inserted. <inserted text> \endgroup ...
2
votes
1answer
46 views

Shortcut to declare alignment of many columns in a table

Suppose I have a table with 20 columns that should all be centered. Is there a way to declare the alignment without literally counting out 20 c's? Something like c{20} might be the syntax. I feel like ...
2
votes
1answer
87 views

Wrapping text around a table in enumeration environment with cutout and parshape

I borrowed the code for my MWE from here. I want to put the table to right side and have difficulty in understanding parshape command. What is the purpose of 15 26pt\linewidth 26pt\linewidth ...
2
votes
1answer
113 views

How to do a table with multiple multirows_

I've just started to work with latex. I'm aware of the post How to get multiple multirows in a table? but still with it I don't manage to do with my table what I'd like. Basically I'd like to get two ...
2
votes
1answer
107 views

How to make a table with subcolumns like this?

I want to add a table in the following format: But don't know what's wrong with my script that doesn't work. \documentclass[9pt]{article} \usepackage[utf8]{inputenc} \usepackage{fontspec} ...
2
votes
1answer
57 views

How do I put a table following the other table in a two-colmuns layout?

my page is of two columns layout and I want to put two tables in consequence on the right column like below: text here Table 1 goes here text here text here Table 2 goes here text here while ...
2
votes
1answer
50 views

Environment for changing citations in tables

I am making citations with non-superscript numbers in square brackets, just as: with code: y de los tres momentos de inercia \cite{Spec}. Para el caso de una In the preamble I have declared: ...
2
votes
3answers
76 views

Two column list with

How can I make a list of two columns with a border and a vertical line separating the two columns as an image? I've tried with tabular and mini page but nothing works properly! Can someone show me how ...
2
votes
2answers
151 views

Insert loop inside table?

1- I want to make a table with n number of rows ? my wrong code \newcommand{\xx}{ \begin{tabular}{|c|c|c|} \hline \newcount\fooo \fooo=10 \loop 11 & 12 & 13\\ \hline \advance \fooo ...
2
votes
0answers
158 views

Cleaner Code for a Table design

in this question Showcase of beautiful wine bottle labels made with LaTeX/TikZ and friends I asked for wine bottle labels. Here is my own attempt. I still have to play with fonts. I'm quite happy ...
2
votes
1answer
68 views

Semantic table markup with environments inside {tabular}

I run into issues trying to markup tables semantically in LaTeX. Background Either standard \hline together with \firsthline and \lasthline from array.sty (I think) or \midrule, \toprule and ...
2
votes
2answers
112 views

\cline is in tables too thin (when using coloured cells)

I'm having an issue where \cline appears to be drawn under the fill for table colours. With \hline With \cline (to remove the line above the cell I want blank) The line is still there, only ...
2
votes
1answer
62 views

Typesetting characters across several rows in a table

You will see in the following example there are curly brackets that span two rows of this table: Is there a way to generate this kind of typesetting in the basic table environment?
2
votes
2answers
974 views

Include data from LibreOffice Calc or MS Excel [duplicate]

I'd like to use LibreOffice Calc or MS Excel to create and edit spreadsheets and include these in LaTeX (LuaLaTeX would be fine, too). It is necessary for me to get calculated values like SUM(C2:C5) ...
2
votes
1answer
186 views

Why do I get this error with pdflatex?

First, apologies for not having an MWE, I know it makes things harder. I am unable to replicate the problem on a small example. I suspect there is some kind of bug with multirow and pdflatex. I keep ...
2
votes
1answer
148 views

Vertical alignment of multiple consecutive tables

The aim is to align multiple (often quite large) consecutive captioned tables within respective chapters, for example: chap 1, table 1.1, table 1.2, table 1.3 --- chap 2, table 2.1, table 2.2... ...
2
votes
2answers
190 views

Double header in longtable

I'm trying to make a longtable and use some R tools for generating them. The problem is that when a long table has more than one columns, it creates double headers, as shown here: ...