{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
15 views

Numbering of the rows in the table (tabularx) [duplicate]

How to make a numeration of the rows in the table(tabularx) automatically? I have a table, and in the first column I have numbers of the rows, right now I just type this numbers manually, but is ...
10
votes
3answers
554 views

How to produce this table in latex?

I want to produce the first two rows of this 5-column table in LaTeX: As you can see it is a special type of tables where we see: itemized lists inside but inconsistently, ie. column 4 all rows ...
2
votes
0answers
59 views

How to typeset a list of laptop hardware specifications [on hold]

I would like to typeset a nice list of the basic HW specifications (CPU, RAM, HDD, etc.). Some of them (CPU,RAM, HDD) would require a list of nested key-value pairs (like Speed-1.8Ghz). My question ...
3
votes
2answers
45 views

problems with ifthen and tabularx

I have a problem related with ifthen and tabularx packages. Here is a minimal example: \documentclass{beamer} \usepackage[utf8]{inputenc} \usepackage{tabularx,colortbl} \usepackage{xcolor} ...
0
votes
1answer
30 views

Remove specific column from multiple tables

Is there a way to add code in the beginning of a document in latex to ignore the second column for multiple tables?
3
votes
0answers
18 views

Inconsistent spacing of suffix in siunitx formatted table

I want to produce a table with two prices in a row, using siunitx to achieve a pleasant and consistent display of the numbers. Trying not to repeat the currency symbol in the data rows, I insert it as ...
0
votes
0answers
11 views

dplyr Tables latex problem

Can you explain why the caption of the table is not appearing in the example below. All works fine except the caption \begin{center} <<echo = FALSE>>= library(dplyr) myTable <- ...
2
votes
1answer
31 views

using tag inside table

Say I write a table twice, and want the second table to have the same numbering as the first. With equations, I know how to do it. However, with tables this does not work. The following is what I ...
1
vote
3answers
39 views

How to set the width of my table?

I've some trouble to set the right width for my table. As you can see in the code below, I use the diagbox package to format my tables header. \begin{table} \centering \begin{tabular*}{\textwidth}{| ...
2
votes
0answers
44 views

Table title and notes not appearing in PNAS

I'm trying to prepare a manuscript for PNAS and am running into issues with a table. As in this question/answer, the table is placed after the \end{article}. However, when compiling the document, the ...
70
votes
2answers
107k views

Changing the font size in a table

What's the recommend way of changing the font size in a particular table? Is there a better way than enclosing all values with, for example, the \tiny function.
2
votes
3answers
32 views

ltablex caption text formatting issue

I'm using the ltablex package for creating long tables over multiple pages. For my other small tables I use the tabularx package and I noticed a formatting mistake or maybe a bug? The table caption ...
0
votes
2answers
80 views

paragraph over 2 columns in an article document

I have a two column format for an article and a small paragraph which i want to split in those 2 columns(hard break). I dont want to use \vfill, as I am intending to display a table after the ...
0
votes
1answer
106 views

Tablespecification and complex column

Based on 2 former questions I have found another problem, I am not aware about that this could be a problem. Question 1: Conditional complex column type Question 2: Generic table definitions But I ...
4
votes
1answer
42 views

How can I insert vertical text spanning multiple rows into a table?

I would like to add a column to my table that looks like the right most column in the included picture. As of now, I am using tabularx to create the table \begin{tabularx}{\textwidth}{|X|c|} ...
5
votes
4answers
252 views

bullet in table not aligned

I created the following table. however, the bullets are not aligned. What can I do to get them aligned? \documentclass{beamer} \usepackage{booktabs}% http://ctan.org/pkg/booktabs ...
2
votes
2answers
53 views

how to center cell-content vertically?

I really like to center the content of the cells vertically, but I do not know how to do it. Is there maybe someone who can help me? Thank you! \documentclass[a4paper, fontsize=11pt]{scrartcl} ...
2
votes
1answer
65 views

type of tally-marks and want to remove verticle line from table

Question: 1 Go through following mwe, I want fifth line like \ instead of /. \documentclass{article} \usepackage[misc]{ifsym} \newcount\tallycount \newcommand{\dotally}{% ...
3
votes
2answers
103 views

Straight Table Borders

I was just wondering whether there was a simple way to make the borders of a table straight? My code currently is: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{setspace} ...
0
votes
0answers
27 views

Table don't care about section

I'm trying to make a lab report and will begin my results with a table. The problem is that the table, even though it's written after, ends up BEFORE the section. Can anyone tell me what I'm doing ...
0
votes
1answer
44 views

need to Adjust latex table horizontally or vertically (landscape) on multiple pages

Latex tables in ladscape or portarait format has been widly discussed here. I have almost tried all solutions presented here. However, I still face one issues. I have a table with more than 40 rows ...
1
vote
1answer
30 views

Synthetic division without polynom package

I have been working with some of my students on synthetic division, and I like how the book represents it in terms of keeping track of everything and the like. It made me wonder how best to reproduce ...
1
vote
2answers
55 views

tabularx with dynamic columns and much text ends up in under- and overfull boxes

I wrote two tabulars which faces kind of the same problem. They end up in a mess of under- and overfull boxes. I noticed many under- and overfull boxes threads here, but I wasn able to fix it yet. ...
1
vote
1answer
23 views

Table with iterated multicolumn

I am having trouble creating multicolumn table, which again has multicolumn. I want to again a two column under case even and odd and then again two columns. But I am not able to do this. I need ...
1
vote
2answers
57 views

dash line between rows in a table

Why there is no dash-line between the rows s12 and s1n like between the columns s22 and s2m? Normally there should be one. What I did wrong? Thank you!! \documentclass[a4paper, ...
0
votes
0answers
36 views

multirow with dash line [duplicate]

I would like to have a dash line between the rows s11 and s1n like I do have it between the columns s22 and s2m. May someone help me? I do not get it. I have seen something quite similar, but there ...
4
votes
1answer
70 views

Framing EMPTY cells in a table

This question is based on a previous question: Framing cells vertically in a table I'd like to frame cells just like that and the answer to the previous question works beautifully – except when the ...
4
votes
1answer
54 views

How to display full table contents

I'm trying to fill a table with equations, but some of the equations are so long that the table is cut off completely on the right side. I just started working with latex yesterday so my knowledge is ...
4
votes
2answers
62 views

Problem with too large table

I'm trying to make a large table with latex, but I have a problem with text inside it, it depasses, the page. here the code : \begin{table*} \centering ...
2
votes
1answer
356 views

Global caption issue with table when using subcaption package

Firstly I apologize if this had been answered before. I have tried looking for it anywhere but I couldn't find any solution. Anyway, I have a trouble with the caption of my table when I included the ...
0
votes
0answers
44 views

How to increase table and figure numbers' font size? [on hold]

I am trying to make the figure/table number in same sized font with the caption of the figure/table. the code is here: \begin{figure}[!htbp] \centering ...
3
votes
1answer
51 views

tabularx automatic line break and aligned over several tables

I found here a solution to the problem of having an automatic line break: \documentclass{article} \usepackage{tabularx} \usepackage{listliketab} \usepackage{lipsum} % only for this example ...
1
vote
0answers
18 views

Why is this table floating up above the section header? [duplicate]

\section{Main section} \subsection{Some subsection} \begin{table}[] \centering \caption{My caption} \label{my-label} \begin{tabular}{lllll} x & y & z & a & \\ 0 & 0 & 0 ...
2
votes
1answer
28 views

Footnotes in table with savenotes

After considering options for getting my footnotes to work (Footnotes in tables?), I settled on the savenotes environment. Sadly it seems to work randomly, based on the position in the table. I have ...
1
vote
0answers
35 views

Section, figure, table numbers are in smaller font size

I have used \include{resultsanddiscussion} to import certain chapter results and discussion. I have used \fontsize{16pt}{18pt}\selectfont to determine heading size 16 pt and spacing 18 pt. the code of ...
3
votes
2answers
58 views

Width of column after multicolumn header

When multicolumn headers in tables use more horizontal space than the columns they are 'heading', then the additional width is entirely allocated to the rightmost column. The following MWE: ...
2
votes
1answer
29 views

Problem with sideways table

I have this sideways tables, but the text doesn't wrap properly inside the cells, here's my code \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
1
vote
0answers
33 views

Centering code listings in tabular

I'm inserting code listings using mint into a tabular, but the text and listings in corresponding columns aren't centered. How do I center them? Here's my table code: \begin{center} ...
4
votes
2answers
78 views

Connoisseur of tables: better header alignment across columns?

Many of you may feel the need to make tables look beautiful, as do I. However, I am having trouble with formatting. Is there a good way to format column headings across multiple columns? First, as ...
0
votes
1answer
40 views

vertical align multicolumn heading

I created a table using this code: \newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}} \begin{document} \begin{table*} \centering\ra{1.3} \begin{tabular}{@{}rcccccc@{}} \toprule & ...
1
vote
1answer
56 views

Space between sectioning header and tabular environment

I have this situation on Latex. How can I eliminate this space between the \section{PESTA} and the tabular? \subsection{PEST+A} \begin{tabular}{ |p{5cm}|p{10cm}| } \hline ...
7
votes
1answer
55 views

How can update this code for print number with different colors?

I have this code for highlight the diagonal, the first row and the first column with different colours! (This code has been build from egreg on this community :-D in a past question) ...
2
votes
2answers
48 views

Modify Table to match image

I wanted to get the table generated from the code below to be like: with the spacing between the lines and also have the colored boxes. This table is extracted from the book Pll Performance, ...
2
votes
1answer
622 views

Aligning Table Notes in Three Part Table

I am using the threeparttable environment to make tables. The table notes are always indented. How can I get the notes to start flush with the table? \documentclass[a4paper,12pt]{article} ...
2
votes
2answers
53 views

How to tell a column to span half the width of the table

Hi I am making a table with multicolumn and multirows. But I want the next line to have 2 columns that are exactly half the width of the table. Meaning if the width of the table changes when I add ...
2
votes
1answer
23 views

Use arithmetic of counters inside \cline

I have a custom counter \myCounter set to, say 3. I need to produce such a table: The following code does not work: \documentclass{article} \newcounter{myCounter} \setcounter{myCounter}{3} ...
0
votes
1answer
19 views

biblatex \fullcite in table

I am receiving an error when I try to use \fullcite{} in a table. Here is a code showing what I would like to accomplish: \documentclass[11pt,a4paper]{article} \usepackage[american]{babel} ...
1
vote
1answer
34 views

How to left-align captions when table is centred?

I found here on stack exchange some ideas how to do this. However, there is something wrong with my approach. I did the following: \usepackage{caption} ...
0
votes
1answer
27 views

Borders playing up [duplicate]

Would anyone know why my borders are not appearing properly: I'm using the following code: \begin{table}[htp] \centering \resizebox{\textwidth}{!}{% \begin{tabular}{@{}|c|c|c|@{}} ...
1
vote
2answers
58 views

\toprule and p{} in tabular

In my table, in order to have texts centered in each cell, I am using \newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}} and instead of a simple p{1.5cm}, I am using ...