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.

Filter by
Sorted by
Tagged with
1
vote
2answers
26 views

Aligned environment effecting tabular environment

I have successfully incorporated an aligned environment in my tabular environment, but now my second column is not aligned with my first. I think that I need to remove the automatic line break after ...
0
votes
1answer
23 views

how to set the width of a custom column type and make the first row / title of a threeparttable fit that particular width

I have the following table I would like : to fix a row to a certain width of the custom \newcolumntype{L}{D{.}{.}{2,5}} (which allows to align the decimal of the item of the column instead of the ...
0
votes
1answer
29 views

Table with vertical aligned header text [tabularx]

In LuaTeX with document class memoir and use of tabularx, how do I go about making a table (linewidth) layout similar to: Note: Table head is center bottom align Table body is right align A group of ...
0
votes
1answer
76 views

Filling the latex table dynamically

I have generated an exercise problem for a function table as \documentclass{article} \usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry} \usepackage{fancyhdr} \usepackage{multicol} \...
2
votes
1answer
72 views

Multiple Arrows in Table

I currently have the following table: Which corresponds to the following code: \begin{table}[h] \scriptsize % \centering \caption{Permutation Importance} \resizebox{\textwidth}{!}{\begin{tabular}...
3
votes
3answers
113 views

How to make the title of a table fit the width of the table

I have the following table with title which is wider than the width of the tabular material. How do I make the title fit the the width of the table? \documentclass{article} \usepackage{caption,...
1
vote
1answer
30 views

Align text at the bottom + right of the table cell

How do I do this with the extra twist of getting the text (i.e. my custom page numbering) right aligned? The end results should look something like this (full width): Text ......... 1-2 Text ........
0
votes
1answer
26 views

how to have a table close to scope plot?

I would like to have a table near by a plot. I know how to have a table but not know having a plot near by the table. I have attached my table code and figure that I want to have. Thanks in advance. ...
0
votes
0answers
16 views

Resizing a table by textheight reduces the width [duplicate]

I have a large table (height does not fit in page) and I use this code in order to fit it in height. \begin{table}[] \resizebox{!}{0.65\textheight}{ \begin{tabular}{lllll} ... \end{tabular}} \end{...
0
votes
0answers
19 views

How to prevent `arydshln` from screwing up formatting inside table

Consider the following minimal working example: \documentclass[a4paper,10pt]{scrbook} \usepackage{longtable} \usepackage{arydshln} \begin{document} \begin{longtable}[mc]{|c|c|cc|} {\...
2
votes
3answers
52 views

how to tabulate this table

I would like to tabulate this table, but I have some problem with codes. How to recode this table in a good way? here my code: \begin{table}[th] \centering \scriptsize \caption{Group A.}\label{...
0
votes
1answer
22 views

How to position (use H to place here) table and figures in elsevier cas latex template?

I am using elsevier cas single column latex template and want to position figures and tables using H option, but I get error "Kernel/Key unknown" and "The module does not have a key called cas/tbl/H ...
2
votes
1answer
29 views

Table environment not working in report document class [on hold]

I am having an unexpected behaviour in a report document class. I have to use the table float: \documentclass[a4paper,12pt]{report} \usepackage{float} \usepackage{caption} \usepackage{subcaption} \...
0
votes
2answers
32 views

Align vertically text in a multicolumn cell of table

I am trying to recreate the last table on page 4 of this document, and it should look something like this: Here is what I have so far: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
2
votes
1answer
24 views

Why this subtable is shown undefined Control sequence

When i want to run this code, i got error about undefined control sequence in \subfloat tag. How can i solve it. \documentclass[preprint,12pt]{elsarticle} \usepackage{graphicx} \usepackage{amssymb} \...
1
vote
2answers
43 views

How to import a big dataframe from R (xtable) into LaTeX to create a PDF/PNG?

I have quite some experience with R, however none with LaTeX. So any help would be appreciated. I have a data frame in R and used this code line to export it into the console: print(xtable(plot_data),...
1
vote
1answer
29 views

highlighting numbers in table with ellipses

I am trying to figure out how to highlight numbers in tabulars with circles (well, ellipses), ideally not with the large overhead of tikz. Something along the following, except that I don't know how ...
0
votes
1answer
46 views

Continuous table numbering problem

I have the following problem: I'm writing an article. I wrote text, then inserted a table. The first table is labeled as Table I with the caption command. I also have, for instance, two other tables ...
0
votes
1answer
27 views

How to hide the \listoftables* if there are no tables in my document?

On this example, the list of tables is being shown, but there are no tables on it to show, then, it should not appear unless there are tables to list. \documentclass[12pt]{memoir} \begin{document} \...
0
votes
0answers
31 views

Can anyone help me find a latex template for this CV

Came across this unique clean design, I guess this is in Photoshop. can anyone help me finding a latex template for this resume? if not can anyone help me with the code for the bullet points and the ...
1
vote
2answers
23 views

Aligned columns (with \dcolumn) have unequal widths under longer text in \multicolumn

I have a regression table that has three columns. One for the names, one for the estimates and one for the standard errors. The two columns that display the estimates and the standard errors are ...
0
votes
1answer
49 views

Remove space between rows of table in latex

I am trying to change the color of rows in a longtable latex. The problem is that, I have merged some rows but when I change the background color of cells there is a space between merged rows which is ...
3
votes
1answer
32 views

ConTeXt: Allow all floating extreme tables to split across pages

Background Using Pandoc to generate tables that are sourced from an R Markdown document. Problem Pandoc does not have a way to override the code generated for a Markdown table. As such, there does ...
0
votes
2answers
31 views

Help Fixing a Table

I am trying to create a table using the code provided here for decimal alignment and the code provided here to have two lines for some headers. Since I'm not sure exactly what each line does, I had ...
2
votes
1answer
64 views

layout of table and title do not agree

I have a longtable and page headers which pick up the first and last item of the table on a page. The solution I achieved with pulling together various pieces of advice from e.g. here Incorrect ...
0
votes
0answers
25 views

A bug to center a tabular …? [duplicate]

Hello I have an XeLaTeX file, and there is inside hundreds and hundreds of tab (with tabular inside). So I wanted these tables and tabular to be center in their page, but when I compile the entire tex ...
2
votes
1answer
55 views

Abstracting out “the font of the table header is bold”

Let's say I want my tables to have the following look: I can do that as follows: \documentclass{memoir} \usepackage[table]{xcolor} \begin{document} \begin{table}[h!] \centering \rowcolors{...
0
votes
0answers
44 views

matrix inside Table [closed]

I am trying to insert a matrix inside a table and looking for a good way to do this. Here is what I have tried and a picture of the table I want to replicate: \documentclass[a4paper, 11pt, oneside]{...
4
votes
2answers
65 views

How to use full width table in LaTeX?

i am trying to use full width table in LaTeX. my latex code looks like this: \documentclass[12pt,journal,compsoc]{IEEEtran} %\usepackage{ifpdf} \usepackage{cite} \ifCLASSINFOpdf \usepackage[...
3
votes
0answers
49 views

hhline drawn over vertical lines in a table

Hi I am quite new to LaTeX and have attempted to put a table together as follows: It is pretty close to what I want but I can't seem to find a way to separate the last three columns with white space. ...
0
votes
0answers
30 views

table error: missing number, treated as zero

I face a question: I modify my table with the template as follow,then it shows that ! Missing number, treated as zero [ The following is my partial code: \documentclass[compress,mathserif,CJK]{...
4
votes
2answers
69 views

Group of tabulars under one table reference

I'm trying to reproduce a structure like this: But all I could come up with was the following code: \begin{table}[!htb] \caption{Global caption} \begin{minipage}{.5\linewidth} \...
1
vote
1answer
21 views

tex4ht - make4ht: How to create fixed width table columns for odt and docx files

I'd like to find out whether tex4ht and make4ht can be customized to allow for very precise table construction in odt files, specifically, manually specified column widths (p{x dim}). This question is ...
6
votes
2answers
87 views

How to automatically calculate the width of a multicolumn in a table based on the combined widths of the columns that are merged

Let's assume that I have a table containing two l type columns that both contain rather short amounts of text. In one of the following rows I want to use a \multicolumn that merges both columns. I ...
1
vote
3answers
51 views

How to center values of an r@{}l column? (r@{}l aligns all column numbers along their decimal points)

Writing \documentclass{article} \begin{document} \begin{table} \begin{tabular}{lr@{}lr@{}l} \hline & \multicolumn{2}{c}{First column} & \multicolumn{2}{c}{...
0
votes
0answers
19 views

How to change list of figures

I am trying to change the list of figures from: Figure 1.1 title ------- 2 into Figure 1 title ------- 2 I used this code to a generate list of figures: {% \let\oldnumberline\numberline%...
2
votes
3answers
349 views

Adjust the Table

I use generating table web https://www.tablesgenerator.com/ but it shows undefined control sequence } after \end{tabular}%. I tried to delete it but resulting a more error. Do you have any ...
0
votes
1answer
69 views

Recreate textlogo

I am trying to recreate the logo beneath to the best of my abilities So far my best results have produced the following image There are a few problems with my solution though Is there a way to make ...
2
votes
1answer
21 views

How to make a multi-column acronym list with acro package, aligned and with short definition in bold?

I want to fix the alignment issue so that the long definitions are all aligned. I've pasted the relevant code I used to generate the example below. I've also got a second attempt where I've got it ...
1
vote
2answers
34 views

Head note in table including equation

Please I want to replicate this table: The only difficulty here is the head note of the table which includes an equation. Any suggestion please ?
1
vote
1answer
32 views

Rotate only caption of a table

Given this table \begin{landscape} \begin{table}[] \begin{tabular}{lllll} Example & A & B & C & D \\ A & 1 & & 1 & \\ B & & 1 & 1 & ...
2
votes
1answer
80 views

After implementing xcolor, simple table becomes buggy

When I am making a table with colored first raw using xcolor for my thesis, vertical line in first raw behaves differently in random (as visible in image "with color"). When I avoid coloring (just ...
0
votes
1answer
46 views

How to set the width of the last column with tabular package? [duplicate]

I want to generate a table with fixed column width. This works for all the columns except for the last column. Working example (fixed column width for all column except the last one) \documentclass{...
1
vote
2answers
40 views

How to make vertically centering of multirow cell in latex?

I want a multirow cell to be vertically centered. This problem is caused by cells that have been forcefully wrapped. \begin{table*}[!h] \caption{Distinguish success rate according to types of ...
3
votes
2answers
88 views

Middle/Vertical alignment doesn't work with table of images

I have a table of pictures with labels beside each row. I'd like to to have those labels be vertically aligned with their corresponding image. Every solution I've found and tried has failed. See MWE ...
1
vote
1answer
26 views

How to color a column starting from a specific row

I want to color a column, but only starting from the row that starts with C1. I have this example output. I want to remove the yellow color from the row before C1. This is how it looks: This is the ...
0
votes
0answers
32 views

How to refer a rotated full size image as table?

I use a big excel generated table screenshoted in my latex document. I need to lable it as table but I always get an error. \begin{sidewaysfigure}[ht] \includegraphics[width=\textwidth]{p1....
3
votes
1answer
73 views

Bottom right align a table

I tried with textpos and tabular but it doesn't make really good thing \documentclass[12pt,draft]{report} \usepackage[utf8]{inputenc} \usepackage[showframe,margin=2.5cm]{geometry} \usepackage{...
2
votes
1answer
22 views

Nest tables in tex4ht as in latex

In the following MWE, which I believe works fine with xelatex, I observe a blank space where I'm trying to insert a nested table. I don't see any warnings or errors in the log file. Are there any ...
1
vote
2answers
31 views

Broken vertical line in tabularx

\begin{table}[H] \begin{center} \begin{tabularx}{\textwidth}{|Y|Y|l|} \hline Name&Frequency Range&Interpretation and Appearance\\ \hline\hline Delta \delta&0.1 - 3.5 Hz&Deep sleep or ...