Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tables]

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

0
votes
2answers
18 views

Reduce padding in cell with lists in tabularx [duplicate]

So I have a table that includes lists written with tabularx, however the lists have rather excess padding at the top and on the left. Is there a way to reduce this only for the space of this table? ...
0
votes
1answer
14 views

How to change the typefont of the first row of a table [duplicate]

I would like the first row of a table to have a different typefont. For example, I could have boldfaced Utopia for the first row, and normal Palatino for the rest. How could I do this? Thank you.
0
votes
1answer
12 views

Impose vertical displacement in one column in tabular environment

I have a simple table with three columns, split (by an \hline) into the first two rows and the last two rows. Here is a minimum working example: \documentclass{article} \begin{document} \begin{...
1
vote
1answer
22 views

Widen a landscape table

Any idea on how to make this landscape table wider (i.e. more extended across the width of the page) \begin{landscape} \begin{table}[] \centering \caption{Value of the force local maximums (F\...
4
votes
2answers
85 views

How to write non-numerical content into an S-type column from siunitx package?

What is wrong with this table? I think there is something wrong with $\si{\degree}$. \documentclass[a4paper]{article} \usepackage{amsmath, amsthm, amssymb, mathtools} \usepackage{siunitx} \begin{...
1
vote
2answers
37 views

Vertical spacing in table

I am trying to create a table, but inside has some mathematical fractions which is too wide for the table. Originally I used arraystretch 1.4, the vertical space is too tight. So I wanted to stretch ...
1
vote
0answers
19 views

\tabcolsep equivalent for rows? [duplicate]

I know I can make tabular less cramped by changing \arraystretch, but what I really want is to make sure there are some fixed paddings above and below row contents, like what \tabcolsep does. For ...
0
votes
0answers
21 views

I cannot fit the coefficient, standard error, and p-level on a single page. What do I do? [on hold]

I have a big regression. 3 panels, 5 columns, and about 10 variables. STATA outputs the table with each cell like this: 150.234*** (23.4) The first thing I do is trim the needless sig figs. 150*** (...
1
vote
1answer
27 views

How can I fix the position of tables formatted with `renewenvironment{table}`?

I've used renewenvironment{table} to make all my table rules green. I also want to fix the position of some of them, using the option H of float package, for instance. I've tried a solution like the ...
2
votes
1answer
56 views

How to convert table to longtable

I have the following table with environment threeparttable which can't fit on one page. I was pretty happy with all my LaTeX code and would really appreciate a solution where I don't need to change ...
0
votes
0answers
22 views

Table does not use entire space of page!

My table cannot fit on one page. If I could only split the table up over two pages or maybe make it start in the very top of the page instead of beginning the table in like the middle of the page then ...
0
votes
1answer
31 views

Cell background color longer than midrule (or hline) in table

I have a small problem in my table editing using booktabs and colors. The main problem is the background color of a cell is longer than the midrule, which is not a huge problem but it is quite ...
0
votes
1answer
14 views

Table and picture in a Figure

I am trying to put a table and an image next to each other in one figure. But the image aligns strangely with the table and I can't seem to figure out how to fix it. I tried putting each into an entry ...
1
vote
1answer
22 views

Vertical lines in table only appear on first and last row

Creating a table in LaTex and want the columns separated by a vertical line. \begin{table}[htbp] \centering \caption{TestTable} \begin{tabular}{c | c} Sample & \multicolumn{1}{l}{Data}...
1
vote
2answers
40 views

Aligning content in multirow

I want to write a document, where i group two plots and the two functions corresponding to the plots together. There should be two such groups aligned next to each other. Here is a picture of what i ...
1
vote
1answer
29 views

Summation of matrix elements / table cells

Using the following code \documentclass{beamer} \beamertemplatenavigationsymbolsempty \usepackage{verbatim} \usepackage{tikz} \usetikzlibrary{calc, fit, matrix} \begin{document} %begin matrix autofit ...
1
vote
1answer
38 views

fixing the rotated columns such that they'll take less space

I have a camera ready deadline today. How can I fix the following table such that columns gets fixed and also use less space? It is CVPR 2019 conference. \newcommand{\rb}[1]{\rotatebox{80}{#1}}% \...
0
votes
0answers
17 views

Long table command does not execute in IEEE template [duplicate]

\documentclass[journal]{IEEEtran} \usepackage[classicReIm]{kpfonts} \usepackage{booktabs,tabularx,lipsum} \usepackage{longtable} \usepackage{float} \usepackage{graphicx} \usepackage{subfigure} \...
2
votes
1answer
29 views

How to fit the split table in multiple pages layout in latex?

i want to ask, how to fit the longtable in latex? My table made from latex table generator, and i already put the packgages that is required. I've try many option like using \resizebox or \adjustbox ...
0
votes
1answer
25 views

The following Table code does not execute in IEEE transaction Template. Please help

\documentclass[journal]{IEEEtran} \usepackage[classicReIm]{kpfonts} \usepackage{booktabs,tabularx,lipsum} \usepackage{float} \usepackage{graphicx} \usepackage{subfigure} \begin{document} \begin{table}[...
1
vote
1answer
14 views

Change color of table boundary caption, label and table contents

Please find the code and the corresponding output below \documentclass{article} \usepackage{colortbl} \begin{document} \begin{table*}[] \centering \renewcommand{\arraystretch}{1.2} \caption{\...
0
votes
0answers
23 views

How to make a itembox without vertical lines in the middle

I am interested in making something like an itembox that has no vertical lines in the middle as colored in red in the picture, where \spalignsys(2) should be replaced with the heading of this itembox.
0
votes
1answer
17 views

pgfplots reading XYY File

I am trying to read an external ascii file with multiple y-values per x value, to keep it simple I'll limit myself to xyy as the problem already occurs here. However, I am trying to make several, ...
1
vote
2answers
28 views

Best alternative to toprule outside table environment

Here is a repro for my problem: \documentclass[10pt]{article} \usepackage[ a4paper, top=2.5cm, bottom=2.5cm, left=2.5cm, right=2.5cm ]{geometry} \usepackage{booktabs} \begin{...
4
votes
3answers
225 views

LaTeX gives error undefined control sequence table

\documentclass[journal]{IEEEtran} \hyphenation{Smart Grid} \usepackage[classicReIm]{kpfonts} \usepackage{siunitx,booktabs} \usepackage{subfloat} \usepackage{subcaption} \usepackage{graphicx} \...
0
votes
1answer
24 views

Tabu won't left align

I am having some problems with my table where the entries seem to not be left aligning. I define the table in the following way \begin{table}[h] \scriptsize \caption{Image label frequency} \label{...
2
votes
3answers
42 views

Center align columns in table ignoring minus signs?

I have some tables of numbers, most of which are small (0, 1, -1), but occasionally I have fractions. If I just has 0, 1, -1's I'd right align so the $-$ signs will line up, but the fractions throw ...
3
votes
3answers
70 views

How to assign captions for two tables in LaTeX?

I want to put two tables side by side and my I have included a sample code below. How can we put separate captions for two tables in LaTeX included in one tabular environment? \documentclass{article} ...
2
votes
1answer
18 views

How to control spacing in formulas inside a table?

I have the following table: \documentclass[12pt, twoside]{report} \usepackage[a4paper,width=150mm, top=25mm, bottom=25mm, bindingoffset=6mm]{geometry} \usepackage[backend=biber,style=numeric,hyperref=...
2
votes
1answer
24 views

Overlap table or figure with a note box

If I have a table as such: \begin{table}[h!] \centering \begin{tabular}{|c|c|c|c} \hline cell11 & cell12 & cell13 \\ cell21 & cell22 & cell23 \\ ...
2
votes
1answer
40 views

How do I format the following table?

Here is a MWE: { \textbf{EXACT VALUES OF TRIGONOMETRICAL RATIOS}\\\\ \renewcommand{\arraystretch}{1.5} \setlength{\extrarowheight}{1.5pt} \begin{tabular}{|c|c|c|c|c|} \hline \multicolumn{2}{|...
0
votes
1answer
31 views

Cellcolor - undefined control sequence

What is wrong with this please? I have error ! Undefined control sequence. Fit& 1& 2& 3& 4& 5& 6& 7& 8& 9& \cellcolor Thank you \documentclass[12pt,a4paper]{...
3
votes
1answer
81 views

How to add zeros to reach same number of decimal places in tables?

\documentclass{article} \usepackage[locale=FR]{siunitx} \usepackage{booktabs} \usepackage{geometry} \begin{document} \begin{table} \centering \begin{tabular}{lS[table-format=4.6]S[table-format=...
0
votes
1answer
31 views

Coloring a table row: color goes outside of table?

I just finished up my table, but noticed that the coloring goes a bit too much "outside" of the table, to the left? Is there any fix for this? \begin{table}[] \centering \begin{tabular}{@{}llllll@{}} ...
2
votes
1answer
35 views

Change column specification for single specific cells

Say I have a table with some data, a header row and a summary. The table has specific column specifications, like below \documentclass{article} \setlength\parskip{1em} \begin{document} % ...
3
votes
2answers
59 views

Hiding Certain Lines on Table

I made the following table: \documentclass{article} \usepackage{multirow} \usepackage{multicol} \begin{document} \def\arraystretch{1.5} \begin{tabular}{|c|c|ccc|} \hline & & \...
1
vote
2answers
37 views

LaTeX booktabs table, column shifted

Newbie question here. I am looking for a way to align my last column which is stretched. Looked for an answer at: booktabs with custom column spacing I tried using the online table generator for ...
4
votes
2answers
130 views

Drawing arrows from one table cell reference to another

I use the following code to manually draw arrows from one table cell to another. \documentclass{beamer} \beamertemplatenavigationsymbolsempty \usepackage{verbatim} \usepackage{tikz} \usepackage{...
2
votes
1answer
79 views

Visible interruption effect for a cell into a tabular

Starting from my question Does a symbol for glasses exist? and from the best @Milo's answer, I have created this MWE, using the macro \advice, \documentclass{article} \usepackage[T1]{fontenc} \...
0
votes
0answers
24 views

Add empty cells in table in Latex

I want to put some empty cells in Table so my table has the first row with numbers and the next the first cell only empty. I also used note under the table but there is error that I couldn't resolve. ...
0
votes
2answers
40 views

stretch table completely out to the width of the page

I made a table, but i would like to stretch it completely out to the width of the page. I used following code: I appreciate all your help \documentclass{article} \usepackage{caption} \usepackage{...
0
votes
1answer
17 views

How to specify alignment in specific cell in tables?

I have a table with solutions from statistic tests and I am needed to have numbers such as 1234^{***}. How to align such number with usual one: 1234, that way it is right aligned to its numbers, and ...
0
votes
2answers
50 views

How to improve this table please?

I tried a table that have alighn decimal commas, but this doesn't work. Thank you Original code: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \...
1
vote
1answer
44 views

How to break math formula inside table?

There are some mathematical formulas in the table that don't automatic line break, resulting in poor display and Overfull warning. So, how to fix it? Here is the latex minimal working example: \...
0
votes
2answers
60 views

Linux libertine font cannot be found

I was trying to display IPA symbols using the font Linux Libertine O in xetex. However, the following error occured, Package fontspec Error: The font "Linux Libertine O" cannot be found. How to ...
1
vote
1answer
35 views

IPA symbols not showing in latex

I have some IPA symbols in my table. Now without any IPA package, rectangle box appears instead of IPA symbols. However, after google search, I found a package named tipa. So I added the package and ...
2
votes
1answer
38 views

How to resize columns of a table?

I'm a beginner in Latex and I have used a table in my document. This is a part of the code: \documentclass{article} \usepackage{latexsym} \usepackage{ragged2e, ltablex, booktabs, makecell} \...
0
votes
1answer
20 views

\multicolumn and dashed vertical lines

I'm getting some strange behaviour with \multicolumns and dashed lines. I need a single-column \multicolumn in a document (since I need a partial-height vertical line, and that seems to be how you do ...
0
votes
0answers
23 views

I can't make the table organized and data in centered

I am trying to organize the following table data centered and well-organized. Since I have very few knowledge in latex I am unable to organize the table. Please help. Thank you. \documentclass{...
0
votes
1answer
25 views

footnote for an item in tablenotes

I would like to have a footnote for an item in tablenotes. The following code does not show the footnote (http://example.org) in the bottom of the page and is not received any error. \documentclass{...