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

1
vote
1answer
26 views

Errors using tabular

I have the following code: \listfiles \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} %\usepackage{amsmath} \usepackage[fixamsmath,disallowspaces]{mathtools} \begin{document} ...
2
votes
1answer
20 views

Fitting a table in the page with no column names broken by hyphenation

I´m trying to fit a table in the page so it has text width and looks fine. In fact, the code below fits the table, but it breaks column names (e.g. "Ditado" becomes "Di-tado"). It´s possible to do ...
4
votes
1answer
80 views

Recreating formatting of an Excel table using simplecsv

I'm trying to recreate a wholesale price list in LaTeX so that the data can be updated automatically from CSV files. I'm able to import data using \csvautolongtable but I'm struggling with the ...
2
votes
1answer
42 views

Call to coordinate for creating a patch gives an error

I'm trying to construct a patch in pgfplots by means of table data. In attempting to do so, I also use the \coordinate command. Minimum working example: \documentclass{standalone} ...
2
votes
1answer
42 views

circle in a tabular [duplicate]

How can I circle some numbers in the following tabular, keeping the dimensions of lines/columns/cells constant, and avoiding crossing between circles and lines of the tabular ? Thanks ! Bruno ...
2
votes
1answer
205 views

Fancy two-column table from scratch

I tried making my own customized two-column table, but got stuck: \documentclass[twocolumn]{article} \begin{document} \begin{figure} \title {table}{Fancy two-column table} \centering ...
0
votes
0answers
29 views

Rotate table in appendix result in a redundant page between the table and the appendix header

I am new user of latex and now writing my thesis with it. I am trying to fit a long table in the appendix. I use \rotatebox to make the table fit like this: \documentclass[12pt,letterpaper]{report} ...
2
votes
1answer
21 views

Caption content dependent on table name

I have a table environment with a set caption. I want the caption to be singular for tables with one row and plural for tables with multiple rows, all using the same environment. Is that achievable ...
3
votes
2answers
76 views

Last column in a table is too wide

I have been trying to create a table detailing the changes in speed over time, and have noticed that the last column (22 seconds) is disproportionately wide. Is there any way I can reduce the size of ...
3
votes
1answer
74 views

How to avoid typesetting any cell if a table is empty

Following How can I define a macro that adds a row to a table that has not yet been printed?, I came up with a macro (\AddToTable) that “builds” a table, i.e. appends its argument as the last row of ...
-1
votes
1answer
54 views

Draw double top/bottom lines with different line width in table

There is a table draw with excel. How to copy it in \LaTeX code? The difficulty is at the top line and bottom line, which are double lines with different line width.
1
vote
2answers
61 views

Displaystyle for “lim” (global) in tabular-environment

I want to use a tabular-environment and within it some math formulas (limits). But I want \lim to be in displaystyle (without using display-function each time or defining a new command). My MWE: ...
4
votes
1answer
51 views

Using Rowstyle with S-column of siunitx

Is it possible to use a rowstyle with S-column provided by sinuitx? When I try the following the S-column does not allign the numbers (they are not even recognized as actual numbers): ...
2
votes
1answer
60 views

Change position of figure in fancytikzposter

I downloaded the source from fancytikzposter and I am trying to insert the figure inside. I met the problem with the figure, I don't know why all of my figures just move to right. I tried to add ...
5
votes
2answers
41 views

\newcolumntype with automatic & insertion

In brief: I want to define a new tabular column type using \newcolumntype from the array package which is designed to be not occuring as the last column in tabular environment but adds an automatic ...
2
votes
1answer
29 views

How to remove List of Figures page generated by package figcaps

I am using the figcaps package to place my Figures and tables at the end of the document. However, I do not want the List of Figures page that appears with figure captions before the actual figures. ...
6
votes
3answers
107 views

How to change width of concrete \hline in table?

How can I change concrete \hline width? Maybe does anything exist like \hline[2mm]? PS: \setlength{\arrayrulewidth}{2mm} is inadequate in my situation because it changes all lines width in a table.
2
votes
1answer
61 views

How to remove vertical space before list in table cell?

I want to get very compact lists in table cells, but there is still a vertical space before the first list item (see screenshot below). How can I remove this vertical space? LaTeX code for example ...
5
votes
3answers
112 views

loop and char &

I can't find the problem in this code \documentclass{article} \newcount\mt \newcount\mtt \newcommand{\mttab}[2]{% \mt=0 \loop \advance\mt by 1 \mtt=1 {\loop ...
4
votes
1answer
35 views

Inputenc error with some minus signs on a table

First of all, I'm new to writing in latex. So this might be a dumb question. I'm trying to do the following table: \documentclass[12pt, letterpaper, twoside]{book} \usepackage[utf8]{inputenc} ...
2
votes
1answer
65 views

Problem with table formating

I'm trying to make a table with the cells centered vertically. Any solution I've found is giving me errors or not working. Here is a minimally working version of my code: ...
0
votes
0answers
32 views

how to stop table from going out of the page under LyX?

Here is the table source code: \begin{table}[H] \begin{tabular}{|c||c||c||c||c||c|} \hline & \textbf{Inspiration for new clothes} & \textbf{Purchase clothes/year} & \textbf{Period of ...
4
votes
3answers
66 views

tabular: vertical align minipage in table (top)

I have a poster consisting of two columns. In one of the columns I have placed two figures next to each other. To get a nice tikz-frame around each figure I had to put them into minipages each (I did ...
1
vote
3answers
39 views

Additional space in p-type column swallowed by other cell

I want to add extra vertical space after table rows on a row per row basis. Consider the following MWE: \documentclass{article} \begin{document} \begin{tabular}{p{3cm}p{5cm}} Here... ...
3
votes
2answers
229 views

Super-primitive 2-column table in LaTeX

I would like to build a simple 2-column table that will let me attach, to one of the lines in the table, a marginal note in the right margin, for example: A B CC DDD ...
0
votes
1answer
37 views

text wrapping and vertical alignment of text in a table

http://en.wikibooks.org/wiki/LaTeX/Tables contains an example on how to do text wrapping in tables by using p{5cm}: \begin{center} \begin{tabular}{ | l | l | l | p{5cm} |} \hline Day ...
0
votes
1answer
52 views

draw different type of table

Hello I want to draw this table in the Latex but as I'm new and try for some hours cannot do it correctly.
3
votes
2answers
48 views

Adding horizontal labeled horizontal arrows in multicol environment

I have attached a picture of what I am attempting to create. The issue is, when trying to do this in Latex, I am messing up my spacing. I want to add a bold black arrow between the top two tables and ...
2
votes
2answers
92 views

table is too wide to see in PDF version

i am new in LYx ... my tables seem too wide when i compile my document in PDF version. This is my Source Pane. Kindly help! \documentclass[english]{article} \usepackage[T1]{fontenc} ...
3
votes
3answers
116 views

How to add extra space inside of a table

I wrote a simple table with this commands: \begin{table}[h] \centering \begin{tabular}{| c | c |} \hline\hline \multicolumn{1}{ |c| }{Parametro} & \multicolumn{1}{ c| }{Espressione} \\ \hline ...
2
votes
2answers
34 views

tabular array error in the width

I would like to create a matrix with index (left and top position) and a sum columns and rows (bottom and rigth position). I have tried that : \documentclass{article} \usepackage{amsmath} ...
2
votes
2answers
67 views

tables inside tables in latex

For explaining an example in my paper, I need to have 6 tables and I need to make them as a package. I tried to make a table with small tabled indide in excel and then convert it with a tool to latex ...
3
votes
1answer
39 views

How to change/add column background colors in Lyx? I can easily change/add colors of rows, but not columns

Bear with me, this isn't a duplicate question. I can successfully change the row color in tables using the instructions here: http://wiki.lyx.org/LyX/Tables (A similar question exists here: ...
1
vote
1answer
28 views

IEEE tran resizing the table

How do I get rid of this situation? The code for creating the table is : \documentclass{IEEEtran} \begin{document} \begin{table}[htbp] \centering \caption{LCS Grammar for the Web Portal} ...
2
votes
1answer
32 views

Table- First Column Heading not aligned

In the table below, the heading of the first column is slightly off for some reason. Why is this happening? How do I further make it look better overall? \documentclass{article} ...
0
votes
1answer
65 views

Fixed column width ruins alignment of table row using Lyx

I am having the worst luck with a table I am trying to create. The problem occurs when I want to have multiple lines in a column, I use the trick posted on here (and I think Lyx's wiki) and set a ...
4
votes
2answers
81 views

Misplaced noalign after rowcolor in multicolumn

I want to use row coloring with \multicolumn. The MWE below works, but if I change to the commented, colored line, I receive a "misplaced \noalign". What do I wrong? \documentclass{article} ...
6
votes
2answers
153 views

stacking three tables on top of each other

I generally have problems working within the figure and table environments. For my thesis I am using xtable to output my R data into latex code. I have three matrices that I would like to stack like ...
2
votes
1answer
55 views

Vertical strikethrough in table is too long

So I just started using LateX yesterday and ran into a problem. I'm making a table where a number is circled and the whole row is crossed out. I found different codes on the internet and tried ...
0
votes
1answer
19 views

Tabular: How to reset the {cols} specification

\begin{table} \begin{tabular}{r@{$\pm$}l} % two columns, a \pm between each two 4 & 5 \\ 2 & 3 \\ % ... after n row, I want to have two regular columns WITHOUT \pm ...
5
votes
1answer
96 views

Appending Graphic from Optional CSV Column to PGFPlotsTable Column Content

I have a CSV file containing a list of names, numbers and optionally pictures. This file is to be displayed in a multi-column table, with the name (and optionally appended picture as icon) in one ...
5
votes
1answer
105 views

longtable with booktabs, midrule is pushed to next page

I'd like to make a formal longtable in landscape mode. I use booktabs to make the table formal. Here is an example tex document: \documentclass{article} \usepackage{array} \usepackage{longtable} ...
6
votes
1answer
97 views

Calculate axis limits depending on depicted data

In a pgfplots axis environment, I want to make the axis limits dependent on the depicted data or some other data. Consider the minimum working example \documentclass{standalone} ...
8
votes
2answers
102 views

Setting cells of table to equal width

What is the quickest way to set all the cells (under the multicolumn) to equal width? Here is my table code. \begin{frame}{Applications} \begin{table}[h] \begin{tabular}{|l|l|l|l|l|l|l|l|} \hline ...
1
vote
1answer
66 views

Hiding empty table column when empty

I have tables (tabu, longtable and other) generated with PHP with variable cell content. Sometimes, all cells in column are empty, and in that case i would to hide all column with header. Here we ...
0
votes
1answer
91 views

Table rows ending up on different pages

I have a large table and I have tried other techniques but the rows are ending up on different pages. Below is the code: \begin{center} \begin{longtable}{ |p{2cm} | p{2.6cm} | p{2.4cm} | p{2.1cm} ...
1
vote
1answer
50 views

Column misalignment with multicolumn command

I have the following code that generates a table \begin{tabular}{|c|c|c|c|} \hline \multicolumn{4}{|c|}{A} \\ \hline \multicolumn{2}{|c}{B} & \multicolumn{2}{|c|}{C} \\ \hline D ...
2
votes
1answer
60 views

Selecting font features for tabular data

I am writing my thesis using (among others) the KOMA-script and fontspec packages. I would like to select the default sans serif font (and add some font features) for my tables. I know how to do this ...
1
vote
1answer
45 views

insert \hline in datatool importing .csv

I'm trying make a table with the datatool package and a .csv created from an Excel file. I'd like this code to be as generic as possible since I will have to import a lot of .csv in this document. ...
3
votes
2answers
42 views

Vertical alignment of figure in a tabular. (Automatic width)

I'm trying to align photos and text vertically and horizontally in the middle of each tabular. I've tried the 'array' package but it seems like I need to define the width of the column. I want the ...