{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
260 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
2k views

how to prevent cell color to cover table's borders?

When I change the background color of a cell in a table, the color covers the borders, however I want the horizontal lines to remain. I have a simple command \cellcolor[gray]{0.9} in my table. Can ...
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
269 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
272 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
171 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
3k 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
284 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
784 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
391 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
492 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
1k 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
1answer
361 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} ...
3
votes
1answer
876 views

Puzzling error while using sunitx (in a tabular environment)

I've been working on writing a contingency table in LaTeX (I've prepared myself for a long battle to get multi-line and multi-column cells to appear as I need). \usepackage{booktabs} ...
2
votes
1answer
31 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
71 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
106 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
84 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
52 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
42 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
0answers
126 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
277 views

Annotating Tables With Tikz; Adding Arrows

I'd like to be able to draw an arrow with some text on top connecting two arbitrary (i.e. possibly non-right-/left-most, possibly nonadjacent) cells of a table with a left-looking arrow. In ...
2
votes
1answer
55 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
88 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
58 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
545 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
157 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
127 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
151 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: ...
2
votes
0answers
76 views

I have 3 errors running this code with \toprule and \midrule in a table… If include booktabs package in my preamble, I have 9 errors [closed]

\begin{table}[htbp] \centering \caption{Zeros e pesos para quadratura de Gauss-Legendre} \begin{tabular}{cccccc} \toprule \multicolumn{2}{c}{n = 5} & \multicolumn{2}{c}{n = 10} ...
2
votes
1answer
123 views

Table Vertical Alignment not functioning

So I'm creating some tables and trying to use the array package to vertically align the text in some of my columns. Unfortunately whether I use p{xcm}, m{xcm} or d{xcm} the column is always aligned to ...
2
votes
1answer
138 views

Misplaced \noalign error in table, but only when using include{}

I am using xtable() in R to create a LaTeX table that I import into a .rnw file via \input{}. As documented here, I am attempting to highlight rows conditional upon a certain value of one variable. ...
2
votes
2answers
112 views

Aligning items in table cells

I have a table where I want more than one row in some cells. I am using parbox to achieve this but this makes some items in cells left aligned and some not. How can you fix this to make them all ...
2
votes
0answers
45 views

Error “Undefined control sequence” [duplicate]

hi there i need help im building a table but i always get this error here's my code: % Table generated by Excel2LaTeX from sheet 'Sheet1' \documentclass{article} \usepackage{booktabs} ...
2
votes
1answer
109 views

Overriding default column alignment for headings - can you explain this behaviour?

Thanks to various threads on this site I have almost managed to construct a readable table! In particular I have added \newcolumntype to allow me to insert \newline into my tables, and I have ...
2
votes
0answers
52 views

How to automatically set the height of the combined cell when using multirow package

Here is the simplified code to demonstrate my issue: \documentclass[11pt]{article} \usepackage{multirow} \begin{document} \begin{tabular}{|c|c|c|} \hline & & \\ \hline \hline ...
2
votes
1answer
78 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 ...
2
votes
1answer
174 views

How to vertically center a table cell content when using sideways?

I have the following table: \documentclass{article} \usepackage{graphicx} \usepackage{multirow} \usepackage{adjustbox} \usepackage{rotating} \begin{document} \begin{table}[htbp] ...
2
votes
2answers
120 views

Using seqsplit with multicolumn

I want to create a longtable with headers centered, columns left or right aligned. Thanks to my previous question: Right aligning two columns next to each other in longtable and its great answer, I've ...
2
votes
1answer
259 views

Right aligning two columns next to each other in longtable

Reading this other thread, I found how to right align a column in longtable. However if I want to right align two columns that are next to each other: ...