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

6
votes
1answer
164 views

Align table data by decimal points

I have tried for about an hour and a half now to get my table data to align by the decimal places and I am beginning to lose my mind a bit. I am aware of the siunitx and dcolumn packages but cannot ...
2
votes
1answer
53 views

Combined Tables Not Centering Correctly with ACM

I'm trying to put two tables together, so that they sit immediately, with ACM's template and I'm having a problem. The tables will sit next to once another, but the first table will be too far to the ...
3
votes
1answer
76 views

How do I put align elements into fixed columns?

I want an "align" equation in one column and a text table in the other column. In LaTeX, it seems that "tables" and "columns" are separate but overlapping mechanisms. In LaTeX, "columns" seem to be ...
0
votes
2answers
164 views

Whats best to arrange several tables on a page?

i have several tables, all of those have a caption, the same number of columns, but differ in the number of rows. Those tables take about 1/3rd of the page (very similar width, mostly the same, even), ...
4
votes
1answer
150 views

Centering a wide table

I can't seem to center this table. Here's the code I have. I've tried using \centering too. There is a big indent and the table goes all the way to the right edge of the page. \documentclass{article} ...
1
vote
1answer
47 views

How to make tables in which the text appears vertically? [duplicate]

I want my table to appear as shown in the figure. Is it possible in Latex, and if it is how can it be done?
2
votes
1answer
97 views

Animation with LaTeX Tables [duplicate]

I am trying to create an image in LaTeX that shows a table auto-filling itself, such as the four tables shown below. I've seen some posts about animating pictures, but I haven't seen anything about ...
1
vote
0answers
16 views

Merging rows in different columns [duplicate]

I want to make a table like the following. In particularly what does not satisfy me is that I wanted to incorporate \multirow so that `cell1,cell2,cell9,cell10' can be centered in between the ...
2
votes
1answer
115 views

Centering text in a diagonally split table cell

I need help centering a hyphen located in a table cell that has a diagonal slash to split the table cell in two. As can be seen in my photo, the hyphen is positioned at the edge of the cell, I would ...
1
vote
2answers
123 views

How can I show a leading + sign in siunitx S column?

I'm using siunitx's S columntype to align numbers in a table. The numbers are percentage values which should all have a preceding sign (some - and some +). The numbers with a "-" are shown with a ...
0
votes
1answer
108 views

How to make a table of items in resume? [duplicate]

Hi I am writing my resume in Latex. In "Professional service" section, I wish to list journals I refereed papers to. And I wish to do something like the following template. It seems that the names ...
4
votes
2answers
108 views

Compilable custom environment when in the body text becomes uncompilable when defined as a new environment

I attempted to make a table which has gray backgound cells except for the first column and the first row colored blue. The following code successfully generates the desired output (although I do not ...
2
votes
1answer
80 views

How to get alignment finally “right” with tabularx and an image?

Two things I'm struggling with in the following MWE: "looooooooooonger text" doesn't fit: don't want the middle and right column to be equally spaced: the maple may move over a little to the right ...
3
votes
1answer
90 views

tabularx preamble tweaks // column widths

am using this: %%% http://tex.stackexchange.com/a/97188/27721 \usepackage{array} \newcolumntype{Z}{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}X} and would like to use (that is, ...
1
vote
1answer
56 views

While running this table i got errors

\begin{tabular}{|p{0.3in}|p{0.9in}|p{0.2in}|p{0.3in}|p{0.2in}|p{0.2in}|p{0.2in}|p{0.2in}|p{0.2in}|p{0.3in}|p{0.3in}|p{0.2in}|p{0.3in}|p{0.2in}|p{0.3in}|} \hline Sl.No. & Author \& year ...
1
vote
0answers
53 views

Tables going wild when changing font size

I have a document with 3 or 4 wide tables. Using \begin{adjustwidth}{-5in}{-5in} I got them to adjust. However, when I changed the font size (from the default 10 to 13) of the document they went ...
2
votes
0answers
122 views

How to break tablenotes (page break) in longtable with threeparttablex?

How can I break my TableNotes in ThreePartTable (it is a landscape table)? \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[top=2.975cm, bottom=2.975cm, left=2.975cm, ...
2
votes
1answer
367 views

Using “moderncv” package, the \cvitemwithcomment command gives error

I'm trying to create my personal CV using moderncv package but I'm getting an error: in language skills section I'd like to insert a table resuming my skills using the code as follows ...
0
votes
1answer
39 views

Tabular Alignment and Centering around Decimal Point [duplicate]

I'm trying to align numbers by a decimal point in LaTex. I know this has already been answered, but what I can't figure out is how to center justify the labels around the decimal point. ...
0
votes
0answers
95 views

Specify horizontal position of xtable output in LaTeX

I originally posted about this on StackOverflow (http://stackoverflow.com/questions/31359737/table-environment-from-xtable), but it was recommended for me to post it here instead. I am using the ...
4
votes
1answer
152 views

Table layout is wrong when stretched to text width

I am trying to change the width of my table to text width but the layout is bad as shown below .. Any ideas? My Code: \begin{table} \centering \begin{tabularx}{\textwidth}{|l|l|l|l|} \hline ...
4
votes
1answer
70 views

Remove column sep between longtable and a tabular insides

when I created a tabular inside longtable, there is a space between them. How can I remove that space? Thank you. \documentclass[10pt,twoside]{article} \usepackage[a4paper,tmargin=1.75cm, ...
3
votes
1answer
32 views

Bad linebreak with tabulars in loop

I have built arrays (with csnames) containing contact information, and I would like to print out all the contacts in tabular format, using a loop. But when the tabulars overflow the \textwidth, ...
3
votes
1answer
98 views

Suppress Chapter number in Table to display “Table #” instead of “Table Chapter#.#”

This is my first time working in LaTeX; I am working on my dissertation and I need to rename Tables so that they are numbered as Table 1, Table 2 etc. rather than include the Chapter number in them so ...
2
votes
1answer
164 views

Change colors to table lines

I have: \documentclass[11pt]{article} \usepackage[table]{xcolor} \definecolor{orangec}{RGB}{255,158,62} \begin{document} \begin{tabular}{|l|l|} \cline{1-2} ...
1
vote
1answer
29 views

Having a table, add colors

If I have \documentclass[11pt]{article} \begin{document} \begin{tabular}{|l|l|l|l|} \hline text& text &text &text \\ \hline text& text &text &text \\ \hline ...
4
votes
4answers
1k views

Missing vertical line in multirow table

I'm trying to make a table, but some vertical lines are missing. Could someone help me to see the mistake? \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{dsfont} \parindent0em ...
1
vote
3answers
79 views

Align table horizontally - rescale

I would like to align horizontally two tables, if necessary rescaling them, to put them on the same line. Obviously even the caption must be scaled, remaining aligned with the center of the table. ...
4
votes
3answers
192 views

How to type short division?

I am typing elementary arithmetics, is there any one knows how to type this ? I know perhaps there's a package "polynom" could solve this problem, but is there any method that could work without ...
0
votes
0answers
65 views

Predefining placement of figures and tables in custom package

I am trying to define figures in a new custom package using \newenvironment{name}{begin defs}{end defs} and minipage command (code is given below). if i create a \newcommand{\name}{defs} (named as ...
3
votes
1answer
49 views

A command for table entry by columns

This question is in followup to this question; an excellent response there has allowed me to very easily make tables for examples in the grammar book I am working on which have one language on one ...
3
votes
1answer
118 views

Is there an easy way to create a partial \toprule?

Is there a relatively simple equivalent to \cmidrule (a partial horisontal line in a table) but with the characteristics of a \toprule? It seems the booktabs package does not provide a \ctoprule ...
0
votes
1answer
34 views

Split table in 2 or more pages using table* and tabularx

I need to put this large table distributed in more than one page. As she has a lot columns also, I could only do fit all columns on the page using tabularx and resizebox. A part of the table is as ...
1
vote
2answers
134 views

Long text in rotated multirow

I created a minimal example with the bad table in red. \documentclass{article} \usepackage{siunitx} % To align the numbers later on \usepackage{booktabs} ...
2
votes
2answers
70 views

How to change this table so that it fits in the available text block?

I'm trying to insert a table. If I scale the table via \resizbox, the glyphs are not readable as they are too small. How do I fit it so the contents are easily readable? \begin{table}[] ...
4
votes
1answer
119 views

Macro for creating a table

I want to have a macro that creates tables of a specific type which specialize in multiple choices questions. The required command \createtable{#1}{#2}{#3} has three arguments: The total number of ...
3
votes
1answer
122 views

Add an \hline to every \\ using colortbl and/or [table]{xcolor}

I'm creating my own tabular environment to speed up my work and to enable others to quickly use my styles and templates. One of the things I do is force an \hline on every row. I accomplish this ...
2
votes
1answer
79 views

vertically align column in a table with wrapped text

In the following table, I want the first column to be top-aligned and the second column to be vertically-aligned. In contrast, LaTeX is aligning with respect to the baseline of the first line of ...
3
votes
2answers
144 views

Color with Table Environment

Please have a look at the following code: \documentclass[12pt]{report} \usepackage[]{graphicx} \usepackage[]{xcolor} \usepackage{booktabs} \begin{document} \colorbox{yellow!20}{ \begin{table} ...
3
votes
3answers
146 views

How to align items in a table

I am using the following code \begin{figure}[H] \begin{tabular}{|c|c|} \hline Something & Else \\ \hline $(W/L)1$ & $\dfrac{28}{3.6}$ \\ [5ex] \hline \end{tabular} How do I get the ...
2
votes
1answer
792 views

How to set figures and tables captions in APA style (without using APA6 class)

As one can see in the given link, APA style requires a very special format for captions in figures and tables. How can I realize this in standard article format? (I do not want to use the APA6 class ...
3
votes
1answer
33 views

Mixed and specifig aligment for table using tabular(x)

Is it possible to specify the alignment for each single column? I have this table: \begin{table}[H] \begin{tabularx}{\columnwidth}{*{5}{>{\RaggedLeft\arraybackslash}X}} \toprule & ...
2
votes
1answer
32 views

Tables: count occurrences of a value in column

I have a big table made with tabular, in which each cell is either a "YES" or a "NO". I would like to put at the bottom a "totals row", ie: a row that counts how many "YES" there are in each column ...
1
vote
1answer
54 views

Format a enumerate environment like a tabular [duplicate]

NOTE: The point is not to modify the enumerate environment. I need to convert it to the tabular like environment automatically. I would like to format an enumerate environment of 4 items ...
3
votes
3answers
1k views

How can I only make table headers center and bold?

I would like to center and bold the table header. Here are codes. \begin{center} \begin{table} \caption{table decription} \label{t_sim} \begin{tabular}{|l|l|} \hline Key & Value \\ \hline $x$ ...
5
votes
2answers
123 views

Colouring columns of a table which uses booktabs

I'd like to highlight a couple of columns in a table I have. I'm using booktabs in order to access better horizontal rules, however this also has the side effect of introducing extra (uncoloured) ...
2
votes
0answers
56 views

Cutting a table along columns

How do I split a table by its columns? \documentclass[a4paper,10pt]{scrartcl} \usepackage[utf8]{inputenc} \begin{document} \begin{center} \begin{tabular}{llllllllllllllllllll} very long text & ...
1
vote
0answers
23 views

Linenumbering problem

When I am using line numbering I am getting to this problem: Basically the command for line numbering is perfectly working until page 8 from 11 of my document. It seems that from this point the ...
1
vote
0answers
38 views

How can I rotate some pages keeping the same header/footer sequence as the other pages? [duplicate]

Original text Estoy intentando rotar hojas específicas de cuadros o imágenes un poco anchas para lo cual algunas hojas deben estar rotadas para facilitar la lectura. Translation by Gonzalo Medina ...
2
votes
1answer
100 views

Table alignment and text overflow

I have problems with the following code: \documentclass[a4paper,10pt]{article} \usepackage{multirow} \usepackage{multicol} \usepackage{array} \usepackage{booktabs} \begin{document} \pagestyle{empty} ...