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.

2
votes
0answers
15 views

Horizontal line has excess length in tabularx environment [on hold]

I am using tabularx environment to build a table, but I am getting excess horizontal line length in the right hand side as below: My latex code looks like below: \documentclass[12pt]{article} \...
1
vote
2answers
19 views

Adding equal space after rows of varying heights in a table

I would like to make a table where I can add 1em of space after many (but not all) rows. The rows vary in height (because they contain content of varying lengths). I am attempting to add the extra ...
2
votes
2answers
45 views

How to rotate text in table?

How to rotate text in columns? \documentclass{article} \usepackage{rotating} \usepackage{colortbl} \usepackage{multirow} \usepackage[table]{xcolor} \begin{document} \begin{table}[h] \centering ...
2
votes
1answer
26 views

Comparative table with vertical text in first row and column

I'm quite new to LaTeX and I would like to create a comparative table where the first row AND the first column of the table are written vertically. I tried several solutions I found on stackexchange ...
2
votes
1answer
27 views

Text positioning in multi-column tables

I have a word document containing tables. The columns have different column width. Attached here. I want to translate the word table into LaTex. The new table in LaTeX looks quite bad. The alignment ...
1
vote
1answer
30 views

Can we only change the font size for numeric values in a latex table

How can we change the font size of only numbers in a latex table? mwe: \begin{center} \begin{tabular}{||c c c c||} \hline Col1 & Col2 & Col2 & Col3 \\ [0.5ex] \hline\hline 1 & ...
1
vote
2answers
22 views

How to make table wrap to other column in multicols environment

I'm making an equation sheet for an upcoming final, and in this includes a massive table of terms. But since I'm making this in a two column environment, I would ideally have the table be split ...
0
votes
1answer
59 views

Improvement of table [on hold]

How to delete vertical line except the second one (like on the picture) and center all text in head in vertical and horizontal direction? Thank you \documentclass{article} \usepackage[a4paper,margin=...
3
votes
1answer
65 views

Fixing a problem with `tabular'

I facing problem with the following codes \documentclass[a4paper,10pt]{article} \usepackage[T1]{fontenc} \usepackage{geometry} \geometry{left=2cm,right=2cm,top=1.5cm,bottom=1.5cm} \usepackage{...
1
vote
1answer
26 views

How to create a horizontal line above and below an entire table environment?

I have several tables in a document and I would like to add a horizontal line across the page above and below the entire table environment. I can get the desired output with \hrule and some extra ...
0
votes
2answers
34 views

Tables and Picture inside a main table

Is it possible to achieve something like this in Latex? My knowledge on tables is kind of limited. I can create the two columns, but how can I add the two tables inside the first column, and the ...
0
votes
1answer
23 views

Thick vertical lines in tabularhtx (or any other fit-the-page table)?

I am trying to layout a table filling the whole page (so far I am working with tabularhtx): \documentclass{article} \usepackage{tabularx} \usepackage[vlines]{tabularht} \begin{document} \begin{...
5
votes
1answer
87 views

How can I solve this problem with latex table?

I want to make a table like this: So I tried with this Latex code: \begin{table}[h!] \begin{center} \begin{tabular}{|l|c|c|} \hline \multirow{2}{3cm}{Filter Type} & \...
3
votes
2answers
89 views

Head of table - combination of cells

How to make head of table like in the picture? Thank you \documentclass{article} \usepackage{array} \usepackage{makecell, multirow, booktabs} \usepackage{caption} \begin{document} \begin{table}[h]...
1
vote
1answer
26 views

Center a table and figure on a page on the same line

So I am trying to make a page of a Latex document which has an image next to a table below another image. I was trying to use the subfigure command to center them, but due to the subfigure command ...
1
vote
1answer
38 views

Misplaced \omit in table and {} at the end of a command

The following LaTeX document does not compile. \documentclass{article} \usepackage{booktabs} \usepackage{ltablex} \usepackage[]{multirow} \usepackage{lipsum} \begin{document} \noindent{} \begin{...
1
vote
1answer
12 views

Fontsize within tables and theads

Assuming the case that I would like to change the font-size of the table given below with adding \Large to the beginning of the table. Somehow this doesn't apply to the theads and so the font size ...
1
vote
1answer
34 views

Weird alignment in Table

For the code: \begin{tabular}{@{}cccc@{}} Type: & A 1 & B 2 & C 3\\ \multicolumn{4}{c}{Long Sentence, verryyyyy long} \end{tabular} result is: Why A1, B2 so close and C3 left ...
0
votes
0answers
38 views

Latex table width not fitting

I'm new to latex so pardon me. My table width is not fitting. It's extending beyond the screen Here is my code: \begin{table}[H] \begin{tabular}{|l|l|} \hline some randome text. \\ \hline \end{...
1
vote
1answer
31 views

How to make a new environment based on a given table

I want to make an environment obj (numbered by chapter) such that the command \begin{obj}{Text 1} Text 2 \end{obj} generates the following (assuming that this is the first obj environment in ...
3
votes
1answer
65 views

Table with different column numbers - full width

I'm trying to generate a table in beamer like the one in the picture below The problem is that In the last part of the table, there are lesser columns. I tried to overcome this issue with a ...
4
votes
1answer
196 views

How to have table with 4 rows and 3 columns, with dotted lines

Given this dotted line functionality: \newcommand{\adot}[1]{\tikz[baseline=(todotted.base)]{\node[inner sep=0pt,outer sep=0pt] (todotted) {#1};\draw[dotted, thick,inner sep=0pt,transform canvas={...
0
votes
1answer
26 views

Tabularx fit tex width page

I have been trying to solve this for a while and i could't. I have two questions for you: How can I set the table to float on the page? I mean, why is not in the top of it? there is a lot of space ...
2
votes
3answers
85 views

Improve formatting of table: something similar to the visual effect of cases environment

I have this long table with a lot of similar entries repeated. I've tried to improve the visual result with some space between rows and grouping the common part of each entry. i.e. the first four ...
0
votes
0answers
17 views

How to repeat text that is not in a header or footer on every page along with a long table

I am creating a sign-in sheet for a class with many students and would like to repeat certain text on every page. This is my code so far: \usepackage{longtable} \begin{document} \begin{center} \...
1
vote
2answers
42 views

Problem with setting up vertical lines in booktabs tables

As pointed out here it is important to use \multicolumn{3}{|l|}{} in the following line of multicolumn. Nevertheless I am struggling around with the same issue (unconnected vertical lines) and ...
3
votes
1answer
43 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 ...
-2
votes
0answers
32 views

MCQs answer sheet

How to create Multiple choice question sheet in latex plz send me latex file
2
votes
1answer
57 views

Fancy vertical timeline

I'd like to have a timeline as similar as possible to this with the addition of being able to add a logo at the left of each textbullet, but I've got no clue at all: Thanks very much in advance for ...
0
votes
1answer
42 views

Draw Horizontal line between rows in latex table

i want to draw horizontal lines between rows in the table. I have tried like this so far, \begin{tabular}{|c|c|} \hline attribute& Art. 16.1.b\&c Aggregated generation per type\\ ...
0
votes
1answer
43 views

Table with multiple rows and columns, column issue

I am trying to replicate the following table in LaTeX I have tried the following but I'm a beginner in making these more complicated tables, so I got stuck: \documentclass[12pt,fleqn]{article} \...
1
vote
1answer
16 views

Problem with `tabular`

With the following codes \documentclass[12pt,a4paper]{report} \begin{document} \section*{Work Experience} \begin{tabular}{r|p{13cm}} \textsc{Sebt.2011-Now} & Teaching Assistant, Department ...
0
votes
0answers
22 views

Can define the entries of table separate from the table?

So, basically I want to create a table with two columns "Paper Number" and "Description" and they are text based entries as in heavily text based. So, can I define a format such that when I write ...
1
vote
2answers
33 views

latex table equations doesn't work

I want to make a table like this However, I can only get Here is my code. \documentclass{beamer} \usepackage{booktabs} \usepackage{siunitx} \begin{document} \begin{frame} \frametitle{...
0
votes
0answers
24 views

Merge “tabularx” and “longtable” with small patch instead of additional package just as for “tabulary”

In this other question from 2012, a concise and functional solution has been suggested that merges tabulary and longtable into a new ltabulary. Is there any way to adjust this patch to work for ...
-1
votes
0answers
36 views

Table on the top of page [closed]

How to set table on the top of page. There is nothing else on this page. Thank you. \begin{table}[ht] \begin{adjustwidth}{}{} \end{adjustwidth} \end{table}
5
votes
1answer
51 views

Hangindent and justfied multiline text in single cell of table

I have quite a lot of text that I want to format in a readable manner in a single cell of a table, so I want to use hangindents. But in addition to that I want to make the text justified, but this is ...
6
votes
2answers
306 views

Unexpected space in table

I try to create a table in latex, however, the space between some columns is very unexpected. Here is my working example: \begin{table}[H] \centering \begin{tabular}{c c c c c c} \hline ...
1
vote
2answers
48 views

How to position text in the top of all columns in the upper row of a table [diagbox]

How can I get '1', '2', '3', '4', and 'Supply' (i.e. the entries in the first row (but in different columns)) on the same height (vertical position) as 'Destination' (i.e. at the top of the columns ...
3
votes
3answers
171 views

Coloring a sub-table

I want modify the following example to obtain a colored sub-table (only the border) as in the present picture. \documentclass{article} \usepackage{array} \begin{document} \begin{tabular}{|c|c|c|c|...
1
vote
2answers
32 views

Complex tables with multiple rows and columns and text in vertical

I am having difficulties with making this table, as it has multiple columns and rows and some text in vertical. Does anybody know what commands should I use? Thank you
1
vote
0answers
40 views

Tabular (height spacing) for \lstinputlisting and picture

I have a lstlisting environment in one column and an included picture in the other. according to the MWE, the following is printed: MWE: \documentclass[10pt]{article} \usepackage[margin=0.75in, top=...
1
vote
2answers
31 views

Can anyone help me how to move this table in overleaf? [duplicate]

Can anyone help me move this table to the middle in overleaf? I've tried to look every where online but I can't seem to find the answer. Here is the code to my table if it help: \begin{table}[h!] \...
2
votes
1answer
28 views

horizontal line Specific Row [duplicate]

How can I remove a hline in a specific column? I wish the first line did not have the hline \begin{table}[h!] \resizebox{\columnwidth}{!}{% \centering \begin{tabular} {|c|c|c|c|c|c|c|c|c|c|c|c|c|} ...
3
votes
2answers
76 views

Alignment with a LaTeX hbox

Can someone please explain if it is possible to obtain centered text or right justified text within a TeX hbox? I am attempting to utilize some code I found here in order to transpose a LaTeX table. ...
1
vote
1answer
16 views

Cases inside tabular environment with left aligned column

I want to have equations in a column of a table, using the amsmath cases option, but where the column is left aligned. The MWE below shows an example of the equations that I need in the column, with ...
3
votes
1answer
42 views

Remove line between table and footnotes

I am trying to remove the line above the footnotes. I have tried following advice from similar questions here with no success. Hope someone can assist. \documentclass[xcdraw, svgnames, table, a4paper,...
0
votes
0answers
37 views

How import org-mode file as a latex formatted?

I need to solve a recent problem importing item by item in the center of PDF that is imported by org-mode. Here is my test.org file: * Test 1. Item1 - Test1 - Test2 2. Item2 - Test1 ** ...
1
vote
1answer
60 views

How to create half-height borders ?

I am a noob when it comes to latex, I googled around but couldn't find something similar to what i'm looking for. So, Basically, I'm trying to create a table with horizontal and vertical separators ...
6
votes
1answer
29 views

Numbers disappears with \rowcolor in siunitx table with tableformat=x.0

Following the siunitx documentation in regards to '7.13 Creating a column with numbers and units' and '7.14 Tables with heading rows' I have tried to make a table a table with currency as unit. The ...