{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)

2
votes
2answers
610 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
165 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
133 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
155 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
129 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
146 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
114 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
185 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
268 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: ...
2
votes
2answers
455 views

Including HTML code side by side in Latex [duplicate]

I want to write HTML codes of two pages side by side in LaTeX like as follows: <html> <html> <head> <head> </head> </head> <body> <body> ... ...
2
votes
1answer
3k views

Error on tabular latex

I'm getting an error on latex and don't understand why ... The purpose was to create some tables on latex, but it is getting me some error which i don't really understand ... Any hint for me please ? ...
2
votes
2answers
161 views

Add vertical line margin-aligned from a given point through subsequent pages

Using the memoir package, I would like to have a vertical line on my margin like this: Some leading content ... vertical space ... ---------------------------------- XYZ | Content A | ...
2
votes
1answer
123 views

Last cell in complex table not behaving

I am having a hard time figuring out why the text in the last cell on each row of this complex table I am creating is not positioning correctly. As you can see from my code, the issue only occurs when ...
2
votes
1answer
221 views

Make a list with uniform spacing regardless of the characters and number of text lines, possibly with minipages or a table

I am trying to make a list with two columns, where I can used different font sizes and have single- or multi-row columns, while adhering to the page margins and aligning the text properly regardless ...
2
votes
1answer
183 views

Can the siunitx table alignment feature, S, align ratios?

I'd like to align a list of ratios in a column of a table by the colon. Is this possible using siunitx? For instance ratios like the following. 1:0.9 1:1.0125 1:0.99
2
votes
1answer
495 views

Transparent table captions when using onslide with overprint and setbeamercovered{invisible}

The following works correctly in that the right table is shown at the right time, and all alignment works as expected. The only issue is that while the table body is shown as normal, the table ...
2
votes
2answers
552 views

Table out of margin

I created this table using siunitx package since values must to be represented in scientific notation. Unfortunately the table goes out of margin. How can I fix the issue? ...
2
votes
1answer
247 views

table inside a main table

I want to have a table which contains many tables. I want its caption also. MTab1 and 2 are single col and row matrix. length of Mtab1 and 2 should be equal to T1 and T2.It means Row of MTab1 = 7 ...
2
votes
1answer
127 views

Text gets out beyond the table

I use WinEdit and try to make a table. The problem is that I can not move the text in a multirow to the second line. There are the packages I use: \documentclass[12pt, a4paper]{article} ...
2
votes
1answer
326 views

Adding a knitr table from R into a \pgfplotstableread statement

I'm trying to get a table from R into a pgfplotstable to edit for printing. the r code is \documentclass{article} \usepackage{pgfplotstable} \begin{document} \pgfplotstableread[format=inline,row ...
2
votes
1answer
97 views

Enumerated column in tabular

How can I have a column in a tabular environment so that the first column is automatically produced? Something like this: \begin{table} \begin{tabular}{lc} Step & Comments \\ 1st & a \\ 2nd ...
2
votes
2answers
204 views

How to arrange / align / place pictures and text, to form a given headline?

I tried to solve this with tables, but the alignment didn't turn out good. And because I am very confused, if I should even use a table aproach or a minipage or a tabspace, I wondered, if someone ...
2
votes
1answer
264 views

Automatically change the text width for all table environments using memoir

I'd like to redefine the table environment in a document I'm writing so that the tables and captions are wider than the text block. I'm using the memoir class, and an example given in the manual is ...
2
votes
1answer
296 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 ...
2
votes
1answer
160 views

building a table of images

I seem to have run into an impassable issue that I need help solving, and I am 100% aware that this is impossible just pure LaTeX but I wish it was. So onto the question at hand. I am wanting to ...
2
votes
2answers
132 views

Reserve the place for further overlays

I have 3 parts in a tabular, I want onslide1- to be always displayed. After 1 clic, I want only2 to be shown; after another clic, at the position of only2, I want only3- to replace only2 forever; ...
2
votes
2answers
185 views

How to doublespace a sidewaystable using setspace?

As a follow-up to a previous question, How to doublespace a table using setspace?, I found that the solution is not compatible with the sidewaystable environment defined in the rotating package. I ...
2
votes
1answer
355 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 ...
2
votes
1answer
353 views

Matching question

Is there a standard package for generating a matching question such as: Match the following states with its capitals: Michigan Raleigh North Carolina Lansing Minnesota ...
2
votes
1answer
526 views

Long table in landscape mode with alternating row colors does not work with \multicolumn

I am trying to put together a longtable in landscape mode over several pages using the longtable package. The idea is simple. I want alternating row colors in the main body of the table. However, ...
2
votes
1answer
221 views

How to use alternate table coloring with wrapping column?

I am working on table in which the last column is wrapped with a command \Addbreakable. I need to color alternate rows as well. But I can do either \Addbrekable or coloring alternate rows. Note: ...
2
votes
1answer
2k views

table doesn't work with baposter

I am making a poster with baposter. When I want to make a talbe (put in \headerbox{}), I got error message: ! LaTeX Error: Not in outer par mode. See the LaTeX manual or LaTeX Companion for ...
2
votes
1answer
342 views

How can I get two tables side by side in landscape mode?

I'd like to get two tables side by side in landscape mode with an appendix title at the top. Here's what I've been working with: \documentclass{article} \usepackage{pdflscape} \begin{document} ...
2
votes
2answers
2k views

Bold \hlines for longtable

I've searched the topic and found the following two answers. Answer 1. LaTeX tables: How do I make bold horizontal lines (typically \hline)? The best answer suggests to use booktabs. However ...
2
votes
2answers
314 views

Centering content in cells adjacent to Sideways Headings

I have a table produced by the following code: \documentclass[a4paper]{article} \usepackage{tabularx} \usepackage{rotating} \begin{document} \begin{table}[ht] \begin{center} ...
2
votes
3answers
560 views

How to align p-values description in the notes of a table?

I am trying to format the p-values description in the notes of a table. The whole table layout is done with Stata (using command esttab) but changing the p-values format seems to be impossible. ...
2
votes
2answers
1k views

Increase space between two tables in minipage and TikZ overlay

Sorry but this is the MWE I could post. I also attached the image. The top image is what I am getting and the bottom one is what I desire. I manage to create nodes but do not know how to connect them. ...
2
votes
1answer
2k views

sidewaystable misplaced in twocolumn document

I need to format an existing document to accord to the guidelines of a paper. The existing document contains a big table, contained in a sidewaystable environment: \begin{sidewaystable}[p] ...
2
votes
2answers
3k views

Moving Table to Left and Adding Space to Columns

In the following table, the numbers take up too much room. I do not want to landscape the table because there are too many rows. So, I'd like to do both of the following: Create more space between ...
2
votes
2answers
539 views

siunitx multicolumn problem

In addition to Right-centered columns in LyX, I have another problem, now with multicolumns. I want to center the number "98" (which spans two columns) above the two other columns. These shall be ...
2
votes
0answers
2k views

How to make a given table line bold

Hi is it possible to make a chosen line of table (created by longtable) bold ?? I saw this question Make first row of table all bold but the answer refers to array package. It is possible to ...
2
votes
1answer
1k views

siunitx, threeparttables and table footnotes

I am trying to use the S option of siunitx for table alignment alongside with threeparttables for table footnotes, but it looks like that the footnote mark is flushed left everytime \tnote{} is used. ...
2
votes
2answers
265 views

Macro behaviour different inside tabular environment

I have a lot of problems lately with macros expanding (or not expanding) at unexpected times, so thought I was having a related problem here. But, in this case, things are working as I want outside of ...
2
votes
1answer
372 views

Problem with side-by-side tables

I've checked out related questions here, and found similar answers via Google, and still can't figure out why the following code does not produce two side-by-side tables. They are narrow enough to fit ...
2
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 ...