Stack Exchange Network

Stack Exchange network consists of 174 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
0answers
26 views

How to do the side of a Food Package

So, this is my attempt of making the side of a food packet with the nutritional label. I know a professional would use Adobe Illustrator, but I find latex easier to comprehend. Today I used a ...
3
votes
0answers
18 views

Tabular with conditional rows based on content

I would like to define appropriate column types which suppress an entire row of a table if all of the columns (besides the title column, ie the first column) are empty. That is, with the tabular ...
2
votes
1answer
17 views

Using collcell package with tabularx X columntype

I would like to use the X column type from the tabularx with the collcell package. In the MWE below, I define: \newcolumntype{R}{>{\collectcell\TitleColumn}{r}<{\endcollectcell}}% works \...
0
votes
0answers
16 views

Scaling multiple subtables while keeping overall design of table

I have two tables that should be placed one under the other. For this I used \subtable and \bigskip. Since they both are quite long the total space that the table would use slightly exceeds the ...
1
vote
1answer
24 views

table overflow page

I created a table with https://www.tablesgenerator.com/latex_tables I tried to limit the column width with |l| p{1cm} |p{2cm} |p{1cm} |p{1cm} |p{2cm} |p{1cm} |p{1cm}| But it doesn't see to have any ...
0
votes
0answers
23 views

text wrapover in a tabular in cv template (Michael Decorte's)

In the following, the text wraps over inside a 'body', but not in an 'employer'. Yet, I want to have the text wrap over in 'employer' as well. Any suggestions? The style I am using is res_yy.sty from ...
3
votes
1answer
39 views

How to mix coloring and hatching in the same cell in a tabular environment?

I have read about hatching here and I understand how to color a cell. But I have a hard time getting a cell both colored and hatched at the same time. Here's my MWE: \documentclass{article} \...
0
votes
0answers
22 views

Tabular gives compilation error. Might be an obvious problem but couldn't solve it

I have encountered a problem while compiling the following latex table. Actually, I can compile using texmaker but using the format in my hand and compiling Is there any suggestion to solve the ...
6
votes
1answer
101 views

Why does the result of FPeval disappear after a `&`

I am trying to use the fp package, and the results are deeply confusing to me: \documentclass[a4paper]{article} \usepackage{fp} \begin{document} \begin{tabular}{r|l} \FPeval\testing{2 + 2} a & \...
2
votes
2answers
34 views

I am getting “illegal character in an array arg”

\documentclass{article} \usepackage{amsmath} \usepackage{amssymb} \begin{document} \begin{equation} {S}= \left(\begin{tabular}{1} &\centering\{B_{M,i}\}\\ &\centering.\\ &\centering.\\ &...
2
votes
0answers
64 views

How to change the zero in increasing numbers with dotted zero?

MWE \documentclass[a4paper,11pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \makeatletter \newcommand*{\pmzerodot}{% \nfss@text{% \sbox0{$\vcenter{}$}% math ...
2
votes
1answer
39 views

How to globally change the value of an if (so it can be changed in a tabular)

I'd like to toggle between two values each time a macro is called. I can make it work, unless it's in a tabular. I'd like to make it work in a tabular. I assume this has something to do with scope. ...
0
votes
1answer
23 views

Cross covers entire cell in tabular

How to draw a cross so that it covers the entire cell in tabular environment? \documentclass[12pt,a4paper]{article} \usepackage{amsmath,amsfonts,amssymb} \usepackage{textcomp} \begin{document} \...
1
vote
1answer
40 views

How to generate a PDF with a single table with page borders tight around it?

This is the opposite of commonly asked questions: I don't want a LaTeX table to fit on the page, instead, I want the page to fit tightly around a single table in all 4 directions. In essence, I want ...
1
vote
2answers
27 views

Gradually color table cells in Latex beamer

I have a beamer slide whose code looks similar to the one below: \documentclass{beamer} \begin{document} \begin{frame}{My title} \begin{table}[] \begin{tabular}{lll} 1 & 2 & 3 \\ 4 & 5 &...
0
votes
0answers
25 views

Charts to summarize a great amount of information

Hello. I would like to know a way to get this type of table in LaTeX. I need to learn how to do charts to summarize a great amount of information. I use the beamer package. The table would fit in one ...
0
votes
2answers
33 views

Footnotes in subtables

I am having two tables, that I would like to have as subtables, in which part of the data have footnotes. The code that I found to have properly the captions of the subtables and the global caption is ...
5
votes
2answers
1k views

What does “\!” aka backslash exclamation mark do?

I just came across this ! (backslash exclamation mark) in the code for a table in somebody else's tex and I was wondering what it does. \begin{table}[hbt] \centering \resizebox{\...
0
votes
2answers
33 views

Add list items to a table

I want add a list inside a table. My actual code is the following \documentclass[12pt,a4paper,twoside,openright]{book} \usepackage{booktabs} \usepackage{array} \newcolumntype{L}{>{\centering\...
1
vote
1answer
39 views

Cockburn Use Case Template

I am trying to create a Cockburn use case table and this is what I could do: \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{multirow} \usepackage{...
1
vote
2answers
42 views

Tabular: columnwidth of e.g. 3cm, but numprint column

The numprint package provides some things I need: Rounding after the decimal sign, adding missing zeros, german thousand- and decimalseparator. But I'd like to have a column with numbers formatted ...
0
votes
1answer
32 views

Matrix in a table

I am trying to insert a matrix inside a table, and I am looking for a good way to do this. I attach my tex following. my problem is how can I insert caption ? \begin{tabular}{|*3{>{\centering\...
1
vote
1answer
20 views

Column based layout with cell spanning multi pages

I want create a layout which looks like this (porting a document from Word to LaTeX): I tried to use a table to implement this, but the problem is that the text for 'Attr6' can span multiple pages. ...
2
votes
1answer
28 views

How to numbering this item in a table automatically?

I am new for latex, and I have a question. If a table like can be numbering automatically. Now I'm numbering item in a table by myself, like this: \begin{table}\centering \begin{tabular}{lll} ...
2
votes
2answers
40 views

System of equations returns a warning, and I cannot figure why

I'm trying to make a simple set of equations on Overleaf, with this code: \[ \left \{ \begin{tabular}{l} $w_{ji} \leftarrow w_{li}$ \\ $w_{li} \leftarrow w_{ji}$ \\ $w_{lk} \leftarrow w_{jk}$ \\ $...
0
votes
0answers
33 views

Table not able to compile [closed]

I have the following code but the table cannot compile. \documentclass{article} \begin{document} \begin{table} \centering \begin{tabular}{|c|c|c|} \hline Name & Age & Sex \\ \hline John &...
1
vote
1answer
43 views

Saving all tables in separate file

Is there a way I can save all my tabular formatted tables in a separate a file and call them wherever they are needed. This post discusses it for single table but I need for multiple. Thanks
4
votes
1answer
77 views

Align S-type column headers

I'm very unhappy with the alignment of the headers in the following table. I've even tried using \multicolumn, but it has no effect. (And if someone knows what the table is about... Yes, I'm unhappy ...
0
votes
0answers
17 views

xltabular - repeated reference number

I have this xltabular table which repeat the previous table's reference number. The previous table has the label 5.3 and this xltabular table should have 5.4, but instead it still has 5.3 label. I ...
1
vote
1answer
33 views

Unaligned columns

I am trying to put different verbs conjugated in a table but the first columns is not aligned with the first person etc. \documentclass[xcolor=dvipsnames]{beamer} \usetheme{Berlin} \usepackage[...
0
votes
0answers
15 views

Thick vertical line in table with multicolumn

When I try to compile the following code there is some misalignment with the row for the names of the table and the data below it. The error seems to come from my attempt to generate a thicker ...
2
votes
1answer
32 views

How to make many columns blank in table easily?

\documentclass{article} \usepackage{booktabs} \begin{tabular{@{}ll|r|r|r|r|r|r|r|r|r|r|r|r|r|r|r|@{}} A & B &&&&&&&&&&&&&&&\\%15 ...
0
votes
1answer
41 views

Copy tabularx X column as new vertically centered column

My question is very similar to Vertical alignmnent in tabularx X column type and there seems to be many similar questions so hopefully I haven't missed the answer somewhere. However, I would like to ...
1
vote
1answer
58 views

How do I edit the moderncvtheme{classic} style? Detailed description below

How do I remove the lines to the left of both sections, highlight my name in bold (default LaTeX) font and add a list of attached documents at the very end in italics to the right of the word "Anlagen:...
1
vote
1answer
29 views

LATEX : save the value of a cell in Tabular

This question may seem very simple but I didn't find a solution! I have a table with some values. Among these values, I want to save some of them to re-use them in a table that summarizes few tables. ...
1
vote
1answer
26 views

Arrows between Young tableaux

I am working with some tableaux-like objects (standard and semistandard Young tableaux) and want to illustrate certain mappings on these objects. I would like to do this by drawing arrows between ...
3
votes
3answers
34 views

Vertical centering of matrices inside table

I'm trying to center my table contents both vertically and horizontally. The table contains both Bmatrix and bmatrix elements. Only the first column is completely centered. The second column is only ...
2
votes
1answer
52 views

How to autofit table based on contents?

I have checked all over the web but I'm trying to autofit column in table based on content. From below: to: The code is: \documentclass[conference]{IEEEtran} \IEEEoverridecommandlockouts \...
0
votes
1answer
28 views

Increasing Space Between Two Vertical Tables

I'm trying to increase the spacing between the two vertical tables below. However, when I use the \vspace{5mm} these tables move with respect to each other. \begin{sidewaystable} \centering \begin{...
1
vote
1answer
32 views

I want to fix this table in the middle of the paper. I tried centering and those things but it didn't work

\begin{tabular}{||c||c||c||c||c||} \hline \textbf{n} & $\boldsymbol{s_n}$ & $\boldsymbol{t_n}$ & $\boldsymbol{s_{n+1}-s_n}$ & $\boldsymbol{t_{n+1}-t_n}$ \\ \hline \hline 0& 0&...
4
votes
4answers
230 views

How to correctly format a table with itemize

I have this LaTeX code \documentclass{article} \usepackage{diagbox} \usepackage{amsmath,array,graphicx} \begin{document} \begin{table}[htb] \centering \caption{Classifiaction} ...
1
vote
1answer
14 views

How do I set the style of a column in a table with a command that takes an argument?

I wish to have a column of my table in IPA style, so that the result is like so: \documentclass{article} \usepackage{tipa} \begin{document} \begin{tabular}{c|c} 1 & \textipa{w2n} \\ 2 & \...
0
votes
0answers
17 views

Sticky labels with image and different font sizes

I want to create products labels. For the alignment I am using tabluar. But as soon as I place an image inside the table or change the fonts size everything gets messed up. The image moves out of the ...
0
votes
0answers
15 views

Table with alternating row colors and use of manual column separators/spaces`@{}`: covering part of last cells/white space problem

I wanted to create a table with alternating row colors. The whole row should be filled. It doesn't seem like a big problem, using \rowcolors. But when I customized the table with manual column ...
6
votes
2answers
218 views

siunitx: literal period within a cell

Today I started practicing with siunitx. It is a bit fun, but I arrive at some troubles. I have a stats table where I want to have a literal period, meaning no estimate was obtained, in some cells. ...
1
vote
2answers
60 views

Convert table from landscape to portrait

I am unable to make a table in portrait because I have some large col headings (some with hyphenated words) that don't wrap. The only way I could create this table was by making it in landscape ...
0
votes
2answers
47 views

How to put an image on multiple columns in a table ?

So I want to include the following table into my latex document: I've reproduced to written part of the table in latex, but I wanted to know if there is a way to recreate the last four rows easily ? ...
0
votes
0answers
34 views

Vertical lines missing from either side of the central (multicolum) column headings

Here is my MWE \documentclass{report} \usepackage{booktabs, multirow, pdflscape} \begin{document} \begin{landscape} \begin{table}[t] \caption{This is my table and I hope you can help me improve it. ...
2
votes
2answers
52 views

Horizontal alignment in table with siunitx package

I'm doing some tables but I can't find the right alignment using siunitx. I believe that the first and last column numbers should be more to the left and the second column numbers more to the right. I ...
0
votes
1answer
22 views

How to set longtable width to text width so that the text in cell wraps around automatically?

Hi I usually use tabular to create my table. However I am currently in the process of creating a unavoidable huge multi-page table in landscape more. I am using TeXstudio 2.12.10. However I am having ...