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
This site is currently in read-only mode; we'll return with full functionality soon. Follow @StackStatus or visit our status blog for more info.

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.

5
votes
2answers
1k views

Command for the table Ruffini-Horner algorithm

I am trying to code a command in LaTeX to type the tables used in the computation of the Ruffini-Horner algorithm. You can see in the Wikipedia link above that these are rather simple tables. There is ...
2
votes
3answers
31 views

Resize font size in Latex table when using \resizebox{\textwidth}{!}

I am trying to increase the font size of the text in this Latex table to make it easier to read, while also fitting it to the page using \resizebox. How do I proceed? Here is what I have already ...
2
votes
1answer
121 views

Adding table in Moderncv

I'm trying to add a table in the "Experience" section in the moderncv template, but get the following error message: "You have used a \ or \newline command where LaTeX was not expecting one. Make ...
3
votes
2answers
38 views

Change font size in Table

How do I change the font size in my table? I have tried the \normalsize and \small commands, but it doesnt make any difference. I needed to specify column length to get the design I wanted, does ...
0
votes
1answer
292 views

Formatting options for large stargazer table

I am new to latex and I am trying to get a standard albeit large stargazer table into my paper. My goal is that the table is still centered but a bit larger then the text size. I want to maximize ...
2
votes
3answers
120 views

Help Recreating a Table

I am trying to recreate this table using LaTeX. I want to additionally align the decimals. I have tried using this code to do so. \begin{frame} \frametitle{Table} \begin{table} \begin{tabular}{l *{4}...
-3
votes
2answers
56 views

How to do it in latex

I am doing my semester thesis, but I have no idea how to do young tableaux in latex.
2
votes
1answer
316 views

Adding an image in every cell of a table

I am trying to insert an image in every row (apart from the first row of each column) but every time I try to insert an image in the last cell of each row it does not work, please see below. \begin{...
2
votes
1answer
20 views

Color a table with toprule and cmidrule [duplicate]

I have created a table in the following way: \documentclass{article} \usepackage[table,xcdraw]{xcolor} %Tables \usepackage{array,multirow} \usepackage{booktabs} \begin{document} \begin{table}\...
0
votes
1answer
37 views

Fitting table into page while not ruining the caption

I have to fit this table into a page. Using adjustcode failed since it made the caption stuck onto first cell of the table instead of spanning on top of table. The paper is double column so I'm ...
0
votes
0answers
40 views

package inputenc error unicode character − (u+200E)

Two tables in TexStudio are having the error: package inputenc error unicode character − (U+200E)not set up for use in LaTeX. Anybody knows what the exact problem is? My first table is and the error ...
1
vote
1answer
14 views

Table wider than screen in Lyx when its width set to 100% of page width

When I change width of table's columns in Lyx (for example: 30, 30 and 40% of page width in the case of table with three columns), I get result that I expected in PDF, but in Lyx editor this table is ...
0
votes
2answers
35 views

fit longtable to textwidth

I am applying How to fit landscape multi-page table to textwidth to fit longtable to textwidth in this example: \documentclass{article} \usepackage{longtable} \usepackage{lipsum} \begin{document} \...
0
votes
0answers
30 views

How to align text in two columns under table or image that is wide as page?

I write two column document. At some point I inserted table that is wide as page. But the text that goes under the table, in two columns are not aligned i.e. text in left column continues one or two ...
0
votes
0answers
25 views

How to prevent additional space after a table?

I have a table and I was not able to remove additional space that exists after the table's caption. \begin{table}[ht] \raggedright \begin{tabular}{l|l} ... \hline \end{tabular} \...
1
vote
1answer
37 views

Centre column head with siunitx

Consider this example \documentclass{report} \usepackage{siunitx} \begin{document} \begin{tabular}{l S} A & {sf}\\ 0 & 9887779.1\\ 0 & 9999.1 \\ \end{tabular} \end{document} In ...
0
votes
0answers
27 views

Adjust column with siunitx

In this example \documentclass{report} \usepackage{siunitx} \begin{document} \begin{tabular}{l S[table-format=12.1]} A & {sf}\\ 0 & 9887779.1\\ 0 & 9999.1 \\ ...
0
votes
1answer
48 views

Inserting a table with photos in each cell

I would like to insert a table in each cell in overleaf, like the following:
2
votes
3answers
64 views

Centre cell vertically in tabularx across multiple multiline rows

Consider this example: \documentclass{report} \usepackage{tabularx} \usepackage{lipsum} \usepackage{multirow} \renewcommand{\tabularxcolumn}[1]{m{#1}} \begin{document} \begin{tabularx}{0.5\linewidth}{...
2
votes
1answer
190 views

How to make table, as the picture show?

How to make table, as the picture show? Help me pls... 13/06 [Update] until now i've got is: \tcbsidebyside[ bicolor, colframe=black, colback=blue!30!white, colbacklower=blue!30!white, center, ...
2
votes
1answer
37 views

How to have desired number of rows in the table

\FPset\rowN{5} This sets the number of rows in the table = 5 and table have 5 rows. If \FPset\rowN{3}, table need to have only 3 rows... How to automatically decide number of rows in a table? ...
0
votes
1answer
28 views

How can I create a two-page spread of a tabular environment?

I want to make a teacher's lesson planning book. (You know the story: I've never found one I liked, so I want to make my own.) To do this, I need a planning grid that spans a two-page spread, with the ...
0
votes
0answers
52 views

Sizing table to page

Apologies for a general question but I need some help strategizing about how to include a fairly large amount of data in an article document. Basically I have several 35x35 matrices that I need to ...
3
votes
2answers
132 views

Centre cell vertically in tabularx [duplicate]

Consider this example: \documentclass{report} \usepackage{tabularx} \usepackage{lipsum} \begin{document} \begin{tabularx}{0.5\linewidth}{lX} A & \lipsum[1][1-2] \\ \end{...
3
votes
3answers
84 views

Centre cell contents vertically

Consider this example: \documentclass{article} ...
3
votes
2answers
72 views

Uneven column widths when using a long multi-column header

I have the following MWE, but I have a problem with the alignment of the last column (under the multicolumn) \documentclass{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{...
1
vote
1answer
11 views

Override table cell horizontal alignment with cellspace

Consider this example: \documentclass{article} \usepackage{makecell} %\usepackage{cellspace} ...
2
votes
1answer
43 views

Tabular environment display very weird

So, to draw a table, I use the following Latex Code: \begin{tabular}{|c|c|} $p$ & $\bar{p}$\\ \hline\\ 1 & 0\\ 0 & 1 \end{tabular} But somehow, this is the outcome Can someone please ...
0
votes
2answers
21 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
15 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{...
0
votes
0answers
16 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.
4
votes
1answer
1k views

How to dynamically set the row height of a table based on another adjacent table?

I have 2 tables side by side. Table 1 is dynamic and while table 2 is static (fixed content). I need to adjust the row height of table 2 which must be equal to total height of table 1 (like multirow) ...
4
votes
2answers
95 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
1answer
25 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\...
1
vote
1answer
180 views

csvreader[] with \multirow

I would like to create this table imported by csv file. My problem is to create some multirows in the table. Like this: This is my code: \documentclass{article} \usepackage{longtable} \usepackage{...
1
vote
2answers
43 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 ...
4
votes
1answer
99 views

Why csvsimple doesn't allow symbols/math in first row?

The package csvsimple is a nice tool to import large tables that were generated externally. However, it fails to interpret files with symbols or math in the header. It does neither work with tabular ...
2
votes
1answer
62 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 ...
1
vote
2answers
43 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
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 ...
7
votes
3answers
1k views

Vertical alignment of graphic and tabular

There are a bunch of related questions here. But I was not yet able to pull this off yet. I have the following code: (where hist.tex is a plot drawing) \fbox{\scalebox{0.40} {\input{hist.tex}}} \...
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
23 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}...
0
votes
1answer
32 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
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
28 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 ...
1
vote
1answer
39 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
25 views

Table does not use entire space of page! [duplicate]

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 ...
3
votes
2answers
96 views

Table: Align single cell without using multicolumn

I would like to center the content of certain cells (actually the whole first row) of my table, while the rest of the table is left-aligned. It works with multicolumn, but when using multicolumn it ...
1
vote
1answer
31 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 ...