Tagged Questions

{tables} is about the tabular environment and related packages such as {array}, {booktabs}, {tabularx} 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
2answers
84 views

Adding table with restricted horizontal line

I am new to LaTeX and having a hard time trying to figure out a way to draw a table like the one in the image below. To be precise, how do I get the horizontal line only above the texts "Ruin" and ...
7
votes
4answers
119 views

Proper alignment of three boxes

I want two text boxes to appear next to a photo which is 5cm wide. The combined height of the boxes may be greater than or less than the height of the photo. If the combined height is less than the ...
2
votes
0answers
85 views

Emulate tabular vertical spacing with parskip package

I would like to emulate the vertical spacing of tabular without using tabular. When the \parskip package is used, using \par leaves too much vertical space, so I thought I'd emulate it with use of a ...
4
votes
1answer
160 views

Diagonal tabular cell questions

My MWE is adapted from How to diagonally divide a table cell … properly?. Two questions: I add an empiric rule of 0.71\baselineskip, but why 0.71? Why c=... is not centered as the text below is? ...
6
votes
2answers
550 views

Tables: Missing $ inserted

I'm trying to learn how to use Latex so I've got a little bit of problems in understanding what is the mistake that I've made. In this case I'm compiling a Table containing multiple datas about ...
3
votes
1answer
84 views

How can I merge a few rows in one column of a Tikz table?

I wonder how to merge three consecutive rows of the first column in a table. I also need help in aligning the headers of the table. \documentclass[preview]{standalone} ...
0
votes
2answers
147 views

Lower case in Table caption

I want to write $N_{\textrm{act}}$ in Table Caption. However, I get act as small caps ACT. I want act as lowercase in text $N_{\textrm{act}}$.
1
vote
2answers
133 views

About the horizontal adjustment of \makebox[\textwidth][c] or [l] or [r]

I have been benefits from the post Center figure that is wider than \textwidth and the post Flushright or left of a long Table . I try to use this \makebox[\textwidth][c] or \makebox[\textwidth][l] ...
2
votes
1answer
48 views

Redefine table caption

I'm writing a paper in IEEEtran twocolumn format. When putting pictures in my paper I prefer to use the Table environment over the Figure environment. I feel that the Table environment does a better ...
2
votes
1answer
82 views

Height of a tabular cell & bounding boxes

Is it possible to calculate the height of a tabular cell to be reused as a value for vertical offset of the bounding box, similarly to how Hy@raisedlink takes you one line above of where the actual ...
2
votes
1answer
54 views

Using \\[<dim>] in tabular environment

In a tabular environment what does \\[<dim>] do? Does that set the font size for the following line or for the current line? See example below? \begin{tabular}{| c | c |} words & more words ...
1
vote
1answer
72 views

longtabu newenvironment caption error [duplicate]

I want to make an environment for my tables. See the following example: \documentclass[a4paper,10pt]{scrartcl} \usepackage{longtable} \usepackage{booktabs} % \toprule, \bottomrule ...
3
votes
1answer
143 views

Column width in tabular environment created in tikz

I wonder how to wrap the column header in last column by specifying the column width in the tabular environment created in tikz. Any help will be highly appreciated. Thanks ...
5
votes
2answers
158 views

Are there an easy way to coloring tables depending on the value in each cell?

I viewed in this post Conditional format for correlation table a solution to my question, but... Are there any easier way (or alternative) to do this using colors? Thank you. ------------------ ...
2
votes
0answers
44 views

Splitting tabular across rows

I'm aware of the cline command within tabular to only draw a line between two columns. Is there an (easy) equivalent for vertical lines? (across rows?) I am aware of the multirow package, but I ...
6
votes
2answers
198 views

Formatting table with siunitx: problem with parentheses and signs

I basically need to create a regression table with coefficients on one line, and t-statistics in brackets on the second line. However, I have a problem when the t-statistics are negative. When I ...
1
vote
0answers
40 views

Table referencing same footnote more than once

I am using packages \usepackage{scrextend} and \usepackage{hyperref} as described in this forum to reference the same footnote inside a table more than once. Multiple references to the same footnote ...
0
votes
3answers
76 views

positioning table

I would like to have a table in my latex. If use this code. I am loosing a part of my table. could you please tell me how can I fix this problem? \documentclass[12pt,ngerman]{report} ...
2
votes
3answers
85 views

a large table. To show entire text

How can I proceed with LaTeX code such that to produce a table in which entire text to be showed normally. The photo is: The code for last line is: \hline VOLUMEN & $a^{3}$ & ...
1
vote
0answers
71 views

Weird problem with \TextField in a form

I have the following code defined in a class file I am writing: \newlength{\textfieldlength}\newlength{\labellength}\newlength{\testlength} \newcommand{\textfieldintable}[3]{ ...
5
votes
3answers
117 views

Make no content cells in a table to be full of parallel black lines

I have a table and I want to make two cells of it full of parallel lines to show that there is no content in them. How can I do that? A MWE is the following: \documentclass[12pt]{article} ...
1
vote
1answer
61 views

Merging Various Rows

I am trying to merge the first three rows of the table, but unable to do. Example is given below. \documentclass{article} \usepackage[dvipsnames,table]{xcolor} \usepackage{array} \usepackage{environ} ...
5
votes
1answer
1k views

center a table that uses resizebox

I create a table that I would like centered on the page horizontally. I scale the table size using \resizebox. However, doing so, left aligns the table. How do I center it? Here's a MWE: ...
4
votes
2answers
130 views

Can I change the overall width of the invoice package's table?

I'm using \usepackage{invoice}, and I'm wondering if I can adjust the width of the table? \documentclass{article} \usepackage{invoice} \date{September 1994} \begin{document} \begin{invoice}{USD}{0} ...
5
votes
3answers
269 views

center values in table in latex

I have a problem in the table I created using latex. The problem is that the values in the columns are not centered correctly. THe values with a minus sign in front just are further right than the ...
6
votes
3answers
222 views

A challenge: How to reorganize the horizontal hline in the Table

I have done this table: But I wish to have the left column with labels 1 in the Class, all join together into a single block. And similarly, I wish to have the left column with labels 2 in the ...
0
votes
1answer
49 views

Footnote within the table environment [duplicate]

I was wondering if there was a way of creating a footnote within a table. Right now I have: \documentclass[12pt,letterpaper]{report} \usepackage[masters,4committee,nonsequential]{cuthesis} ...
2
votes
1answer
45 views

How set a table in margin?

\documentclass[12pt]{book}‎‎ \usepackage[top=3.cm,bottom=3cm,left=2.2cm,right=6.2‎cm,marginparwidth=4.5‎cm‎,headsep=10pt,a4paper]{geometry} ‎\usepackage{amsmath,amsfonts,amssymb,amsthm}‎‎ ...
5
votes
3answers
81 views

Table with multiple columns

I want to create a table in this format, but I haven't managed to get it to work. I dont need to have any colour, i would just like to have it shown as a plain table.
13
votes
5answers
474 views

LaTeX Tables: Cell value color based on its sign / conditional cell color

I've a long LaTeX document with many tables. Now I want to show negative values in cell in red color. I wonder how to do globally. My MWE is below: \documentclass{article} \begin{document} ...
1
vote
0answers
21 views

Which macros define spaces around table and float environments? [duplicate]

I am trying to define the length of vertical space between tables and text globally in my document. So far, I have been using \setlength{\intextsep}{0cm} \setlength{\floatsep}{0cm} ...
2
votes
1answer
110 views

Table doesn't fit in a frame when using Beamer [duplicate]

This is my MWE: \documentclass[pdf]{beamer} \begin{document} \begin{frame} \begin{table}[ht] \caption{GLIFT Label Propagation Rules for AND gate} \centering \begin{tabular}{c | c c c c} \hline\hline ...
6
votes
1answer
254 views

Color Background of Rows for better Readibility

I want to add different background colors of the rows of table for better readability. My (not jet minimal working) example is the following: \documentclass{article} ...
2
votes
1answer
68 views

How do I properly center subtables?

I have three similar tables, one within its own figure and two as two subfigures within a second figure. The two subtables are off-center, despite being within the \centering environment. How can I ...
6
votes
0answers
123 views

Doing things to every page of a multi-page table

So, the designers did their job and specified coloured backgrounds and rounded corners for all tables. Like so: As described here, this requires doing nasty things like putting the whole table ...
0
votes
1answer
54 views

How to rectify this error? When I used multirow tag its overlaps the next cell

\begin{tabular}{ p{2.2cm}p{2.2cm}p{2.2cm}p{7cm} } \hline \multicolumn{1}{c}{\bfseries Approach} & \multicolumn{1}{c}{\bfseries Technique Used} & \multicolumn{1}{c}{\bfseries Premise ...
0
votes
1answer
100 views

How can I replicate this table in LateX?

Can anyone help me in making a table shown below? I created it in MS Word, and I'd like to recreate it in LaTeX, but I'm finding that quite difficult to do...
1
vote
1answer
67 views

Flushright or left of a long Table [duplicate]

I have a very long table that cannot be displayed on the page because it is too long and the right hand side of the table has been cutoff. How can I modify the \begin{center} to something else so ...
5
votes
1answer
84 views

Tables: vertical alignment of cell

I have a tabu-table and my default row-style is and has to be p. But I want the head-row (Column 1 and Column 2 in the MWE) to be vertically centered. How can I achieve that? MWE: ...
4
votes
2answers
77 views

\hline does only go half the way I want it to go

If I compile the following code, I get a table that is placed very oddly since LaTeX centers it around the double vertical line between the first and second column. My \hline also goes only to right ...
2
votes
2answers
63 views

How to fit big table automatically?

I have this table: \resizebox{\textwidth}{!}{% \begin{tabular}{ l | l | l | l} \hline Tipus & Pot incloure com a membres: & Permisos & Es pot convertir a: \\ \hline ...
4
votes
1answer
109 views

How to center cells vertically in sideways table?

I'm trying to build a comparison table, I want to center the symbols vertically on the cells and I tried a lot of methods that I found here unsuccessfully. This is the last code: ...
1
vote
2answers
90 views

Thick Lines on table

I've seen the answer someone posted and I implemented it, I would like to keep this configuration as I already based my word using this answer. Now, the question is, how can I make partial horizontal ...
3
votes
1answer
70 views

Combination of multirows and multicolumns table [duplicate]

I need to create similar table using LaTeX: I have tried to use tabular and \multicolumn, but every time I get something wrong. Could someone help me? \documentclass{article} \begin{document} ...
1
vote
0answers
44 views

Losing space with two rotated tables in one page

I'm writing a paper using the IEEEtran style, which uses two column per page. At some point, I had to make some three big tables, so I used \sideways to rotate them. The pages' height fill all ...
1
vote
1answer
160 views

Bold horizontal and vertical lines in tables

I want to be able to make certain horizontal lines and certain vertical lines bold in my table but not all. \begin{table}[h] \begin{center} \begin{tabular}{|c|c|c|c|c|c|c|} \hline ...
2
votes
2answers
118 views

adding notes below the table

I want to add a note below the table. I referred the following link: Add notes under the table. But the code given : \documentclass{article} \usepackage{booktabs,caption,fixltx2e} ...
4
votes
1answer
99 views

Tabular and lines displaying problem with Adobe

Considering the following code (MWE) : \documentclass{article} \usepackage[table]{xcolor}% http://ctan.org/pkg/xcolor \begin{document} \begin{tabular}{|l|c|r|} \hline Some & ...
5
votes
1answer
130 views

Different column widths when using multicolumn in tabular enviroment

I'm trying to recreate this table in latex So far I've managed to get this Using this: \begin{table}[h] \begin{table}[h] \begin{tabular}{|l|l|p{10cm}|} \hline \multicolumn{3}{|c|}{\textbf{Daily ...
2
votes
1answer
84 views

Two rotated tables in one page

I'm writing a paper using the IEEEtran style, which uses two column per page. At some point, I had to make some two big tables, so I used \sideways to rotate them. The pages' height fill all ...