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

2
votes
1answer
23 views

Problem arise displaying table caption

I am facing and issue regarding table caption. The code is the following: \documentclass[12pt]{report} \usepackage[utf8]{inputenc} \usepackage{gensymb} \usepackage[version=3]{mhchem} ...
4
votes
2answers
95 views

Need a Macro for Tables - independent of row and column size

I have created the following macro for Table: \newcommand{\createtable}[7]{ \begin{table}[htbp] \begin{tabular}{|p{8cm}||p{8cm}|} \hline \begin{center}\textbf{\cellcolor{Orchid!25}{#1}}\end{center} ...
0
votes
0answers
10 views

I am having problems with table placement [duplicate]

Hi I am sorry if this is a repeat, I tried to find a similar problem but I could not. I am making Cayley tables and I quite like the ease of the code I am using, but something strange keeps happening. ...
4
votes
1answer
38 views

LaTeX places table outside of page margin

I'm using the KOMA class scrbook with the font Tex Gyre Pagella (11pt) and onehalf-spacing. I am placing a table float with the position options "htb", but both pdflatex and lualatex place the table ...
1
vote
0answers
22 views

Transforming my table in longtable

I've been trying to transform my table into a longtable desperately for the past hours. I looked at numerous examples, checked the documentation but I cannot get it working. So I have a pretty long ...
1
vote
0answers
8 views

Error after inputting frmttable stata table

I am using the Stata user written command frmttable to create journal-like tables and to write them to LaTex. When I use the command \input{... .tex} the table is displayed like I want it, but LaTex ...
3
votes
2answers
110 views

An error in my table

I am trying to write the following entries in a table \begin{table}[h] \begin{center} \begin{tabular}{@{}llllllll@{}} \toprule $c_{ij}$ & 1 & 2 & 3 & 4 & 5 & 6 & 7 ...
0
votes
1answer
25 views

Table not displaying in desired location [duplicate]

I am writing a lab report and I want to display the a table underneath my Results section. This is my code: However, the result looks like this: Why is this the case? Thanks!
5
votes
1answer
36 views

How to change row height without using renewcommand?

I have a very large table and in order to make it fit the page I need to shrink its rows. I managed to obtain the desired effect by using \renewcommand{\arraystretch}{0.9}. However, the journal for ...
4
votes
1answer
21 views

How to place individual tables in the subtable environment each on a separate page?

Complete beginner here. I have two (landscape) tables that belong together (one caption, each table has its own subcaption). I'm using the subtable environment and everything works - apart from one ...
2
votes
2answers
31 views

Align text and image in table

My table looks like this: The left column will contain words, like it is now, and in the right column I want to add these small pictures (some are a bit bigger than this one) in every row. I have ...
1
vote
1answer
33 views

Refer to a table as figure

I have a table where I have put pictures (plots) in each cell. The whole point of making this table is for comparison of the plots. However it does not look good to refer to this set as a table, ...
1
vote
1answer
19 views

table extrude from solution envrionment's frame in exam document

I'm using the exam class, and I have tables in it's solution environment, but I found that a table extrudes from the frame of the solution environment at the bottom of the page, see the image shot ...
4
votes
3answers
56 views

Aligning headers with column better

The columns are slightly offset from the headers. I've tried playing around with a bunch of things (which is why the code is a bit of a mess now). Any suggestions how to fix this? ...
3
votes
3answers
85 views

'Undefined control sequence' error when typesetting table

The error is Undefined control sequence. Here is the code: \begin{table}[htb!!] \center \begin{tabular}{|c|c|c|c|c|c|} \hline \multicolumn{2}{|c|}{Experiment} & Initial tip deflection ...
1
vote
1answer
50 views

Table unnecessarily starting from next page in latex

How can i stop my table in latex to start unnecessarily from next page leaving a huge space in previous page? How can i force to start just after the heading. Please help, here is my code: i am using ...
0
votes
2answers
52 views

Align and format table

I have these two tables: I want that the first table (descarga de recursos) aligned with the second table (ver boletines) I tried to do the tables with online editors like http://truben.no/table/ ...
1
vote
0answers
12 views

How to concatenate expr into the pgfplotstabletypeset?

I have a file with time in seconds and I want to make a expression inside the pgfplotstabletypeset to convert the seconds into 2h35m40s. I only get how to convert to hours, minutes and seconds but ...
2
votes
1answer
31 views

siunitx table with separate-uncertainty is too wide

I'm using a tabular environment with the siunitx type S and the package option separate-uncertainty, like in the example below. In the resulting document, the columns are too wide, and the 3rd column ...
0
votes
0answers
22 views

IEEEtran table formatting doesn't work

I'm totally new to this so any insight would be greatly appreciated. I want to create a document using IEEEtran and despite trying on multiple operating systems and editors I can't seem to get tables ...
1
vote
1answer
34 views

Simple import of data with special characters for table

I'm currently trying to import a set of data from a file (comma or tabbed delimited, doesn't matter) for creating a table. Below is an example of this data (DH parameters in case you're curious): ...
2
votes
2answers
33 views

Two tables in two columns

I have following problem: I have two tables..... Table one: \begin{table}[h] \begin{tabular}{|c|c|} \hline \textbf{A} & \textbf{B} \\ \hline \end{tabular} \end{table} Table two: ...
5
votes
1answer
47 views

centering column headers in siunitx table column

In this table with some big numbers the column headers centered over the decimal point look odd to me. And, too, the columns seem a little too wide. I've puttered a bit with other answers here and ...
9
votes
4answers
418 views

How to recreate this table?

See what I'm trying to do here. The MWE I've managed to come up with is as follows: \documentclass[12pt]{article} \usepackage{makecell} \usepackage{cals} \begin{document} ...
15
votes
4answers
2k views

Tip on how to make a visually good table

I'm using booktabs to make most of the tables in my thesis. However, I'm not sure if that is the best solution for tables with more than 6-7 rows, as it can be difficult to read (there is no line ...
0
votes
0answers
10 views

Coloured cells in Tabular printing over table lines [duplicate]

I'm using Tabular and XColor to color some cells of a table, but some of the coloured cells are "printed above" the lines of the table (see attached image, which shows part of the table). How could I ...
3
votes
1answer
38 views

Vertical lines in LaTeX (tabular vs pgfplotstabletypeset)

Why don't these 2 tables have identical vertical lines? \documentclass{article} \usepackage{array} \usepackage{booktabs} \usepackage{pgfplotstable} \usepackage{pgfplots} \begin{document} ...
0
votes
1answer
19 views

List of tables when dealing with table inside figure

I'm in bit of a problem when dealing with my homework. I'm suppose to create the document with few figures (images) and the tables. Images are properly rendered in the last pages. However, one table ...
0
votes
1answer
40 views

Ignore numbering of some tables

I have a document with two tables. I want my second table to be Table 1 both in List of Tables and caption. \documentclass{article} \usepackage{tabu} \usepackage{longtable} \begin{document} ...
2
votes
3answers
50 views

tabular - changing column separator

Is it possible to change default column separator character (&) for tabular environment ? I find it convenient to edit content of table in LibreOffice Calc and save it as csv file. This csv file I ...
1
vote
3answers
51 views

Multirow and rotated column headers

I want to typeset a table with rotatetd column headers (so far it works) stretching over multiple rows. The problem seems to be that multirow does not adjust the tables row heights, thus I have to do ...
1
vote
2answers
52 views

Input a tex file in my document, but it's not placed well

Recently, I input a .tex file (just name it as table1.tex, which contains a table I needed in my paper) in my main document, but it's not placed well, I want it be in the middle, but it's on the ...
0
votes
1answer
30 views

Drawing double hline with longtabu

I'm trying to draw a double horizontal line with longtabu \begin{longtabu}{|l |l |} \hline 0 & 1\\ \hline \hline 1 & 0\\ \hline \end{longtabu} ... however, all I get is a thick line. When ...
6
votes
3answers
81 views

Aligning equations that also include text

I am trying to align a list of descriptions of various variables used in a statistical analysis. In case it is relevant, the text-width of a single column is 75mm. I have tried various environments ...
3
votes
1answer
27 views

Vertical alignment of tikz matrix and tree

I want to display a table as a tikz matrix next to a tikz tree in the same figure environment. Using the baseline option in every tikzpicture worked to align both pictures on the top for the case with ...
5
votes
4answers
72 views

Tables with centered columns of specific width?

I like it when tables have centered columns (e.g. |c|c|c|). However, I have width restrictions. The most obvious solution to force a table to be within a certain width is to do |p{2.5cm}|p{2.5cm}|, ...
2
votes
2answers
35 views

Increase table row height but not separation from surrounding text

I would like to construct a table environment that accepts an argument that controls the vertical space between rows but does not influence the vertical separation of the table from the surrounding ...
3
votes
0answers
30 views

Table reference does not show the word 'Table' [duplicate]

I'm trying to refer to a table in my report, but the reference wouldn't include the word 'Table' as follows. Any ideas why? :) The LaTeX code is as follows: \documentclass[11pt,a4paper]{article} ...
2
votes
1answer
37 views

IEEEtran Tabular Won't Fit Into 0.7in Margin

Using IEEEtran, I am trying to combine two tabulars in a single double-width table* environment. (This is the only way I could figure out to correctly order the tables in the paper, otherwise LaTeX ...
0
votes
1answer
32 views

Error in caption of table?

Hello I create a table but when add the caption I face the error as in the picture shown. Also I need to have repeat the header of table in each page. please help me. \begin{landscape} ...
4
votes
2answers
31 views

Structured and numbered mathematical notes

I need to create a document for typing mathematical definitions and results in compact form. Ideally, the style should follow the picture below (sorry for morphing it!). * The item of interest is ...
3
votes
2answers
64 views

Table issues — off page, \newline not working

I'm new to LaTeX and am having problems with this compiling in LaTeX the above, desired table. Here is the code I'm working with: \documentclass{article} \usepackage{amsmath} \title{Latex File} ...
1
vote
1answer
49 views

How to merge several columns as one column for a table like this?

How can I edit this table in order to have one column, for example, let's say I have this table: \documentclass[10pt,letterpaper]{article} \usepackage{booktabs} \usepackage{siunitx} ...
1
vote
0answers
52 views

Table dull when transferred from R to word [closed]

I am using latex in R (mostly copied codes) to make beautiful tables. But transferring tables with the help of snipping tool used or saved as jpg from R to word, the table looks dull and not rich ...
1
vote
1answer
14 views

Vertical align table and image

I'm trying to make a table with an image at one side \documentclass{article} \begin{document} \begin{table}[h!] \centering \begin{tabular}{c p{5cm} } \begin{tabular}{c c c | c c } \hline ...
0
votes
0answers
28 views

Latex in R getting error after putting code

I am getting this error in R ...after putting code for latex document Undefined control sequence Overfull\hbox(7.71355pt too wide) in paragraph at lines 16--16 Code is below ...
5
votes
1answer
88 views

How to create a table of authorship

I am trying to create a table of authorship for a report. I want it to look like a table of contents, only with the names of the authors instead of page numbers. I haven't had any luck looking online. ...
5
votes
2answers
49 views

Some modifications for multicolumn and multirow

I'm using this code for creating a table in LaTeX: \documentclass[11pt]{article} \usepackage{threeparttable} \usepackage{multirow} \usepackage{makecell} \usepackage{graphicx} \usepackage{color, ...
2
votes
2answers
36 views

How do I break lines in a multirow setup (and column names)?

I was trying both break lines in the cells of my first column and in some column titles. I've tried the suggestion of using \pbox. But it does not seem to work. I've looked already for some answers ...
2
votes
1answer
46 views

Decreasing size of confusion matrix

I used proposed code in How to construct a confusion matrix in LaTeX? to create a confusion matrix: \documentclass{article} \usepackage{array} \usepackage{graphicx} \usepackage{multirow} ...