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

3
votes
1answer
27 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
62 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
37 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
21 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
70 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
55 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
147 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
35 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
39 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
54 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
24 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
33 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
54 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
88 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
64 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
51 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
90 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
129 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 ...
1
vote
1answer
84 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
30 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
26 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
44 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
191 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
88 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
47 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
20 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 ...
1
vote
1answer
52 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} ...
3
votes
3answers
74 views

How to add notes below tables

I've been trying to add notes below a table but keep on getting error: not in outer par mode. could someone please help me? aobal \begin{table*}[ht] \caption{Table 2 Top 10 Philippine Exports to ...
0
votes
1answer
42 views

How to make one row longer in tabular?

I'm using the tabular environment. I would like for one row (where I describe each subsection) to go horizontally across the table, and not to stay in one column. This is what I currently have: ...
3
votes
2answers
69 views

How to make more-than-9-argument-commands work with tabular?

I have a command that needs more than 9 arguments. I stumbled over this solution: How to define a command that takes more than 9 arguments. This works fine in regular text. But I tried using this ...
0
votes
1answer
53 views

Drawing a line in a table in latex

I am using LaTeX with the following code \begin{tabular}{ | l | l | l | p{5cm} | } \hline Parameter & Equation \\ \hline Compensation \\ Capacitor & $some equation$ \\ \hline ...
3
votes
2answers
29 views

Two tabular aligned on top of each other

I want to have two tabular centered but the bottom one to be aligned with top one I don't want it to look like that still the top should be centered and the bottom aligned \begin{table}[!h] ...
2
votes
1answer
68 views

Numbering appendix tables with endfloat

I would like to produce an article in which tables/figures are on separate pages at the end of the document (using endfloat), each being numbered sequentially from the main sections, and numbered with ...
4
votes
2answers
36 views

mathcal error with multicolumn multirow

I get the error \mathcal allowed only in math mode when I try to compile this MWE: \documentclass[12pt]{article} \usepackage{multirow} \begin{document} \[ \left( \begin{array}{c c c c} ...
0
votes
0answers
70 views

Problem reading csv file with csvsimple

I have a document that roughly looks like \documentclass[12pt, titlepage, twoside]{article} \usepackage{csvsimple} \begin{document} \csvautotabular{a_square.csv} \end{document} a_square.csv exists ...
2
votes
1answer
104 views

Two tables (not hard-coded) side-by-side in LaTeX that will page break

I wrote my original question here: (Two tables side-by-side in LaTeX that will page break). Then, I realized I needed to revise my question, by also including an additional problem that comes with it. ...
0
votes
0answers
19 views

Change name of table in caption and reference

I have multiple tables in my thesis with model results. I want to change these tables' names, meaning it wouldn't say Table 1 but Model 1 (also when referencing them). Also, a special table of content ...
0
votes
4answers
62 views

Creating a table [duplicate]

I am puzzled how to create in LaTeX the following table I have spent much searching internet and books about latex but I cannot find something relevant. My problem is how to include the first row ...
1
vote
1answer
29 views

Unwanted space above pictures in table cells

I'm new to LaTeX and have a question about placing external graphics in table cells and align them correctly. Yes, I did read a similar posts but couldn't find the solution to my problem yet. Here is ...
2
votes
1answer
53 views

Stack three tables sideways

I need to stack three sideway tables. My code makes Latex remove the captions somehow. It reports floatrow error, caption(s) lost. Is there also a way to align all three tables to the bottom of the ...
2
votes
1answer
79 views

Two tables side-by-side in LaTeX that will page break

I am creating a .Rnw file in Rstudio. I then knit it using: knit("code.Rnw","code.tex") I am trying to get two tables side-by-side. In case they are long, I would like them to automatically page ...
1
vote
1answer
20 views

Trouble aligning table on landscape page

I am trying to print a large amount of data onto pdf files using LaTeX. I have tabulated this data (a selection of which is in my example below). In order to fit all these data onto the page I have to ...
1
vote
1answer
31 views

\endhead in tabulary: “Undefined control sequence. \end{tabulary}”

I am using the packages tabulary, booktabs and longtable. However when using \endhead I get the stated error. \begin{tabulary}{\linewidth}{RRRR} \toprule $U$ [kV] & $\lambda$ [$10^{-11}\,$m] ...
1
vote
0answers
57 views

Exclude a line of text in a tabular environment

I have this problem: inside a framebox there is a line of text which should not be a part of the tabular enviromnent because it widens the first tab. Here is the code \documentclass[12pt, ...
2
votes
1answer
34 views

Double backslash or \cr in \newcommand to be used in a table

I have a \newcommand*\mycmd[3]{#1 & #2 & #3 \\} that is used in a tabular environment later, like this \begin{tabular}{ccc} \mycmd{a}{b}{c} \mycmd{d}{e}{f} \end{tabular} But the double ...
1
vote
1answer
52 views

Longtable spacing

I am using longtable and I cannot find a way to adjust its column spacing. I want a table like this: But I am getting this: This is what I am doing for defining table size: ...
3
votes
1answer
50 views

Table with figure using 2 rows?

I need a table with 2 rows and 4 columns. The 1st column should contain an image, which uses both rows (centered). How? The closest I can make is this: \begin{tabular}{ | c | l | r | r |} \hline ...
2
votes
2answers
25 views

How to align column names in the second row?

Here are my example and the code. \begin{table}[H] \begin{tabular}{lrrrr} \toprule \multirow{2}[3]{*}{Method} & \multicolumn{2}{c}{group} & \multicolumn{2}{c}{variable} \\ ...
1
vote
1answer
42 views

Making a multiple column table in this fashion

I want to create a table like this: Title Name Title Name Mr Tom Mr Tim Mrs Eliza Mr Ohm so I want a table with multiple columns, but I don't want ...