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

4
votes
1answer
199 views

Specify color of the first row in table (in “newenvironment”)

I am using an specific style for my tabulars and I am looking to specify automatically the color of the text in the first row. Currently I must specify manually the color of the text of each cell in ...
14
votes
2answers
427 views

How to set tikzmarks with \noalign at the edge of tabular rows

I'm trying to improve the lines in a tabular with colored rows (lines above a colored row can disappear in the adobe reader at some zoom levels) by redrawing the line above a row after the row itself ...
2
votes
2answers
254 views

Fixed table width with even alignment

I like to use a table layout where the width of the table is fixed to 7cm. I can do this using: \documentclass{book} \usepackage{array,tabularx} \newcolumntype{+}{>{\global\let\currentrowstyle\...
8
votes
3answers
275 views

Simple Key Events table

Consider the simple time-line table shown in the image below (extracted from a book). and the MWE below defining it as an environment, \documentclass[twocolumn,10pt]{article} \usepackage{mathpazo,...
2
votes
0answers
151 views

pgfplotstabletypeset merged cells in middle of table

I have to convert some *.doc files in LaTex and I have some hard work with converting some tables. I have, for example, tables like this: and is mandatory to import the values from *.csv file. It's ...
2
votes
1answer
187 views

Alignment of text within a table with color

Is it possible to align the numbers in the last column of a table with color? For this column, I would like the numbers (they are actually text) to be in the center of the table, but aligned to the ...
3
votes
1answer
94 views

Longtabu table broken by another float table

I have come across a problem with using longtabu together with tables created in the table environment which makes them float. When a long table is broken across two pages with the longtabu ...
4
votes
2answers
168 views

Keyword command parameters with table (tabular)

I am trying to make a command with named (key-value) parameters to produce a table row. The reason is that table has more than 9 columns (command parameters) that will have position changed, be ...
7
votes
2answers
452 views

How to produce multiplication tables/diagram/list using a script

I am a math teacher and would like to produce a LaTeX document that generates multiplication tables. I would like the output to be like 1x5=5 2x5=10 etc. Can someone help me out?
5
votes
1answer
341 views

Specification of the Layout for Q-A Reference Cards (Flashcards, Visual Cards)

I'm relatively new to LaTeX and I've used Microsoft Word so far for virtually all work with documents. For college, to use own question-and-answer reference cards, I decided once to split a portrait ...
5
votes
2answers
250 views

siunitx and vertical line

I used siunitx so numbers in a table can be aligned. However, a vertical line is lost between two columns. Also, numbers in the last column are not vertically aligned. How can this fixed? Thank you! \...
1
vote
1answer
387 views

\hline not aligned and move table to the left

I used column type to define the width of a table, but it shows an error message of "\hline not aligned". If I just use \begin{tabular}{| l | c | c | c | c |}, the error message goes away but the ...
5
votes
3answers
346 views

How to tell LaTeX what I write should stay as it is, and not as a mathematical expression

I'm trying to write my thesis on LaTeX and I don't have much experience with it. I try to put an information about some arrays I used as a table one like looks like this: column names: FileName, ...
0
votes
1answer
86 views

How to tell latex what i write should stay as it is, and not as a mathematical expression [duplicate]

I'm trying to write my thesis on Latex and I don't have much experience with it. I try to put an information about some arrays i used as a table one like looks like this: column names: FileName, ...
4
votes
1answer
820 views

Underfull \hbox when creating table containing much text

I am completely new to LaTeX and how to create tables in this environment. Currently, I am trying to create a table that contains much text in each cell using tabularx. The output does not look too ...
0
votes
0answers
35 views

Fixing LaTeX errors “Environment table undefined.” [duplicate]

I have written the following TeX program in KWrite editor to make a table. \begin{table}[t] \centering \caption{test table} \begin{tabular}{c c c} \hline one &\ two & \three\[0.5ex] hline 1 &...
3
votes
1answer
1k views

How to change table row heights and center their contents?

How can I decrease(or increase) the row height of a specific row in a table and center its content both horizontally and vertically? A related answer discusses how to decrease the height of a row, ...
0
votes
0answers
22 views

LaTeX, formatting entries in tables [duplicate]

I've seen plenty of problems with making tables in LaTeX formatted the way the programmer would prefer. And some of those have helped me fix my own doument to the point I am not at I am creating a "...
7
votes
1answer
5k views

Losing the vertical line on my table when using multicolumn

I tried to use this for the last part of my table, but I can't get a vertical line at the end. Does anyone know? \begin{tabular}{|CC|C|C|C|C|C|C|C|C|C|C|}\hline \Tab{Method Based on \\\hline ...
5
votes
2answers
3k views

Two sideways tables on one page

I want to put two sideways tables next to eachother. For landscape this is possible by putting the two tabulars in one landscape (How to put two tables in one landscape page). Is something like this ...
1
vote
2answers
412 views

Trying to make a horizontal table puts the table off the page, how should it be used?

I tried landscape, sideways, sidewaystable but they place my table (without turning) outside of the page (see bottom for picture). I'm using sharelatex to make my pdfs, could be a problem with that. ...
3
votes
2answers
265 views

Placing a table next to figure (align table vertically centre)

I would like to place a table and figure side by side in my document. I have achieved this with the following code \documentclass[a4paper,10pt]{article} \usepackage{floatrow} \usepackage{color} \...
17
votes
3answers
1k views

How to align numbers to en-dash in a table?

dcolumn and siunitx packages can be used for aligning numbers to decimal point in a table. How can I align the range values (separated using en-dash --) to en-dash '--', in a table? so they appear ...
8
votes
1answer
5k views

Subtable with multiple tabulars inside does not vertically align properly

The minimal example below yields weird alignment behavior for me (shown in the attached image). I tried a couple of approaches: using minipages instead of subtables didn't work, using xtabs instead of ...
5
votes
1answer
870 views

problem with \hline when creating a table

Hi I am creating a table but am having trouble inserting a horizontal line at the base of my line. My code is: \documentclass[11pt, oneside, a4paper]{book} \usepackage{color} \usepackage{graphicx} \...
8
votes
5answers
722 views

Fixed Sized Grids

I'm trying to create a latex document that is split up into grids that will match up with the dimensions of perforated paper. The dimension of each block is height: 38mm and width: 70mm. This should ...
1
vote
1answer
274 views

tables in lyx that flow with the text

I have been using float:table as my default for tables. I insert a float:table, then in that float I insert a child document (as input) that contains all my latex code for the table. This works fine ...
1
vote
1answer
104 views

Table lines and alignment problem

I'm using sidewaystable environment with the following configuration: \documentclass[a4paper,oneside,12pt,openright,final,oldfontcommands]{memoir} \usepackage{multirow} \usepackage{booktabs} \...
8
votes
2answers
519 views

Put names on top of matrix

I am trying to produce 3 matrices on the same line. And on top of the each matrix, there is a name. I tried using tabular for the names and then I use align for the matrices. However, this creates ...
5
votes
2answers
91 views

I want both table and text at the center of page and table cell resp

I have the following code: \documentclass[a4paper,11pt]{article} \usepackage[left=2.5cm, right=1.5cm, top=2.5cm, bottom=1.5cm]{geometry} \usepackage{graphicx} \usepackage{amsmath} \usepackage{...
3
votes
2answers
968 views

How to make this table fit on a landscape page?

\documentclass[twoside, a4paper, 11pt]{article} \usepackage{ragged2e} \usepackage{booktabs,tabularx} \usepackage{amsfonts} \usepackage{amsthm} \usepackage{mathtools} \usepackage{verbatim} \usepackage{...
1
vote
2answers
297 views

printanswer in table in exam class

In the exam class there is an option to \printanswer. I have no problems with that, but when I work with a table I can not put the answers in the cells. \documentclass[11pt,a4paper,addpoints,twoside]{...
4
votes
1answer
159 views

how to create columns of array

I use the following code to generate this: \begin{center} 2 Iteración\\ Fila $S_{1}$ \end{center} \small \[\begin{array}{crl} \kbordermatrix{\mbox{ }& & & & & & & \\ ...
2
votes
2answers
131 views

Unwanted space around def-generated tabular

I'm using some code I found to generate, from simple input, a nicely formatted list of steps in solving an equation. However, my method is adding unwanted space to the left and at the bottom of the ...
8
votes
4answers
4k views

To draw a chessboard

How to draw a chessboard with house's color unconventional? I can to draw alternately back and white house. But, alternately column black and white I can't
2
votes
1answer
499 views

Missing vertical line in a table, how can I fix it?

Here is my code: \begin{table}[!htb] \centering % used for centring table \begin{tabular}{cccc} \toprule \textbf{Thickness} & \textbf{Applied Voltage} & \textbf{$...
0
votes
1answer
7k views

How to make width of columns in table smaller

So I basically create all my tables in Excel and then transfer to Texnic Center by using the Excel2LaTeX addin for Excel. I am not too familiar with adjusting the outputted code to my own likings. For ...
1
vote
0answers
199 views

Use Xtable to do plus minus

I am using a similar dataset to the following: a= c("Fruits", "Adam","errorA", "steve", "errorS", "apples", 17.1,2.22, 3.2,1.1, "oranges", 3.1,2.55, 18.1,3.2 ) a_table=data.matrix(t(matrix(...
4
votes
2answers
4k views

Subfigure arrangment with no caption with IEEE format

I have a little problem. I am trying to arrange to subfigures side by side (i.e. a graph and its legend) using the IEEE article format and I cannot remove the subcaption. I was using package ...
7
votes
1answer
5k views

Table input from separate .tex file

I am trying to use the \input command to insert a table produced by STATA (statistics software). The problem is that I am unable to adjust the size of the table, I have tried \resizebox and other ...
2
votes
1answer
127 views

Alignment issue with longtabu

I'm using longtabu to create a table. This is the code: {\footnotesize \begin{longtabu} to \textwidth {|l|c|c|l|l|c|c|c|c|} \hline \textbf{Frame} & \textbf{Cam} & \textbf{ID} & \textbf{...
8
votes
1answer
2k views

How to draw slanting arrows between columns of a table?

I'd like to draw some simple slanting arrows between cells in a table. The two cells can be in almost any position in the table. For example given this table: How can I modify it to obtain: ...
6
votes
1answer
231 views

'e+0' notation in columns with S-specifier

I know it sounds silly but I want to have the scientific notation e+0 in a table with S specified columns. Currently it gives me only e0. It just looks better in my table to have the zero with sign, ...
0
votes
1answer
283 views

problem with longtable in landscape orientation in a twocolumn mode document

I have some trouble formatting a long table in landscape orientation using a predefined document class (provided by a journal editor): - the standard page size is shrunk: the height of the page (width ...
1
vote
2answers
514 views

Why won't my \otoprule command work in table formatting?

Primer: I'm very new to LaTeX. I am creating a table with the following code. Here is part of the table: \usepackage{tabularx, multirow, booktabs} \begin{table}[tp] \caption{Rain garden site ...
4
votes
1answer
191 views

Tikz or tabular to build up a table

To build up a table like the one from the picture with this weird shape and different line thickness, would you go with tabular or with tikz?
1
vote
1answer
607 views

latex table border dont appear / to big / to small

still working on that table. Here's my new question reguarding the table borders: It appears, that i do something wrong setting boarders. Here is my code, and a screenshot: \documentclass{article} \...
5
votes
2answers
3k views

How Do I Highlight Table Rows in beamer, Piecewise?

I would like to know how to highlight rows within a table in beamer, piecewise, so that when I present the piece, I can originally have no rows highlighted, and then the first, and then both the first ...
6
votes
1answer
3k views

latex multirow figures with side caption

I need to create figures and caption as follows. How can I do it?
9
votes
2answers
2k views

siunitx and 'e' notation in Tables with S column

I have a problem using \sisetup{output-exponent-marker = \text{e}} in my table. I use the S-columns provided from the siunitx package. It does change to the 'e' notation but it does not delete the \...