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
1 answer
16 views

Centering text in Table

I have created tables, which as far as I know have worked fine before. But now I changed some things, added a row and changed the values, and after this one of the columns are not aligned with the ...
1 vote
2 answers
29 views

Numbering cells in a table

In the output below, I would like to put my red square at a better place (this is to explain how a table has been filled). The space from the red box to the vertical rule should be the same as the ...
  • 11.9k
0 votes
1 answer
17 views

How to adjust the tabale width to match the page width

The table generator creates the below latex format from the website, and I input this information into the latex; then the table is wider than the page width: Therefore, I try to set out the column ...
0 votes
1 answer
28 views

Table / tabular enviroment doesn't build the pdf

i was trying to create a table of with 3 columns \begin{tabular} but once i had completed it, Latex can't manage to build the .pdf. I've made already some tables that had no problem with it, and i ...
1 vote
0 answers
29 views

Column in Tabularx is too wide

Please consider my minimal example. In my Tabularx table, the second column is wider than the rest of the columns. How can I solve this problem? \documentclass[12pt,addpoints]{exam} \usepackage{...
  • 347
2 votes
1 answer
39 views

LaTex table column center align along upper column using tabular

I want to center align val and test along upper columns which are something long and temp \begin{table*} \centering \begin{tabular}{l c c c c} \hline \toprule \multirow{2}{4em}{\textbf{temp}} & \...
0 votes
1 answer
31 views

How to split header of some columns on their two subcolumns for a table?

let us consider my table I want to reorganize the header in this way: for column 3, I want to delete the dash and split the words "id." and "PDes" on two subcolumns. For the ...
  • 711
0 votes
1 answer
20 views

How to fill in blank columns left by a figure, in IEEE double column format?

In IEEE Systems Journal format; i am trying to insert a table/figure that is quite wide, so it will take up a whole column. \documentclass[lettersize,journal]{IEEEtran} \usepackage{tabularx} \...
0 votes
0 answers
17 views

a table displayed a few lines after where it should be [duplicate]

Here is what I typed in the tex file: This is some text that should appear just before the table. \begin{table} Table \end{table} This is some text that should appear just after the table. This is ...
  • 253
0 votes
1 answer
33 views

Allow cell content to overflow to next columns

I want to recreate such a format in latex: so far, I've came up with this \begin{tabularx}{\linewidth}{ @{} p{.2\textwidth} @{} X @{} {\raggedleft\arraybackslash} p{.1\textwidth} @{} } \small{Sep ...
  • 111
1 vote
0 answers
27 views

Aligning mantissa-less numbers in tables with siunitx

Tabular content can be nicely aligned, but I can't get numbers without mantissa (in scientific notation) aligned with the rest: \documentclass{article} \usepackage{booktabs,siunitx} \sisetup{print-...
  • 3,111
2 votes
1 answer
28 views

Aligning table in one page pushing into right margins

Due to rules set by my research paper guidelines, I need to align certain text and tables related to it on one page. My problem is that fitting the table with its vales and content push it to the ...
  • 47
0 votes
2 answers
32 views

Center vertical alignment inside tabulary when the column must not wrapped

I have a column, the first two of them is short and must not be wrapped (I use l and r), whereas the other three has very long column name that must be wrapped (C|C|C). \begin{table} ...
0 votes
0 answers
18 views

Align hyperref forms in table environment

Based on my previous question here I was able to place several TextFields in a table with the fieldnames above the fields. However, I still get issues when using multicolumn or multirow. I would like ...
  • 409
0 votes
1 answer
41 views

How to set a longtable to fit in the page width?

I have a longtable that doesn't want to fit in the widht of the page. I already tried some methods like \resizebox\textwidth and \setlength but nothing seems to work. Do you have any ideas of how to ...
1 vote
1 answer
35 views

Numbering of tables and figures misplaced with Hungarian and Greek Babel

When loading Hungarian and Greek (with provide+=*) with babel, I encounter the effect that in the caption the position of the table numbering and the label are reverted, i.e. it is no longer "...
0 votes
0 answers
24 views

Using adjustbox withouth changing fontsize

I am trying to adjust the table to the \textwidth but it changes the size of the font and becomes too big. Is there any way to fix the width of the table to the margins (1\textwidth) without changing ...
  • 1
0 votes
0 answers
13 views

LaTeX table formatter extension in VSCode

Is there any latex extension similar to the Markdown Table extension for VSCode that can automagically format your tex tables in a nice way? For example, \begin{tabular}{lrr} 12 & 21412 & ...
  • 1
0 votes
1 answer
31 views

aligning table header with nicetabular

I would like to center the header in the table below: \documentclass[10pt]{article} \usepackage{nicematrix} \begin{document} \begin{NiceTabular}{l|Wr{2cm}|Wr{2cm}} % \RowStyle{\centering} & column ...
2 votes
1 answer
27 views

Table with rotated column label

I am trying to make a table where the column label is rotated 90 degrees, I found some code online (see below) and almost got where I wanted. However the lines are not running up completely so column ...
1 vote
1 answer
58 views

One column is wider than the rest using multicolumn

I want the all the 3 columns under метод Ньютона and метод секущих to have the same width. Right now, the third coulumn is wider than the first and second columns It is funny because the table was ...
0 votes
1 answer
41 views

Something wrong with my Latex table, can anybody help me?

There is something wrong with my Latex table, the first left vertical line is too long. Besides, how could I make the capability in the middle of the column? \documentclass{article} \usepackage{...
  • 73
1 vote
1 answer
32 views

How to fix the caption spacing in tblr and talltblr environments from the tabularray package?

The spacing between the text and the table legend is different between the tblr and talltblr environments. In MWE this difference can be observed. \documentclass[12pt,a4paper]{article} \usepackage[...
1 vote
0 answers
16 views

Error when Importing External tex Table

everyone I'm trying to import an external table into my main tex file, but got the error 'Invalid UTF-8 byte sequence' when I tried to Compile my document. My main.tex looks like this: \...
  • 11
0 votes
0 answers
23 views

Patching \\ in tabular [duplicate]

I'm trying to patch \\ in tabular enviros using \@tabularcr as I've read that it uses it internally, and I'd like to simply add \midrule on each row (my real-life use is a bit more complex, but ...
2 votes
3 answers
77 views

How improve vertical spacing between rows of table?

I built the following table through the help of this webtool but I'm not satisfied about the vertical spacing between the rows. Can you show how to improve it and reduce a little bit the size of the ...
  • 711
4 votes
3 answers
140 views

How to merge two rows in table

My code is like this \documentclass{article} \usepackage{tabularx} \begin{document} \begin{table}[!ht] \centering \caption{Main concept classes } \small \begin{tabular} {m{3cm}<{\centering}m{...
  • 73
0 votes
0 answers
18 views

splitting 3-column long table into 2 3-column shorter tables automatically

I have a 3-column 40-row table and would like to split it into 2 3-column 20-row tables. I could have just done it manually but I wonder if there is an automatic solution. mwe before splitting. \...
2 votes
2 answers
95 views

Justifying cells in table

In the following table, I want to place the Name in the center of the cell while the next row aaaaa-bbbbbb and ddddd in the left of the cell. How can I fix the following figure? \begin{table} \...
  • 3,211
1 vote
1 answer
49 views

How to break a tabular and centering the text in it

can you give me a hand? I need to put this table in my file, but it doesn't break and it causes the formulas to touch the edges of the cells. I would like the formulas centered in the cell (and the ...
3 votes
2 answers
48 views

Problem with vertical centering and Lines within tabular in tabularx environment

I am new to latex and have some troubles with a table... I want to vertically center column A and B to the table. I use a command to vertically center all cells. But when I include another tabular in ...
  • 35
0 votes
0 answers
28 views

\section inside table

I am trying to rework a .docx document into latex. The beginning of the document looks like the picture below. My plan was creating a table, then putting \section inside the cell. But it does not work....
0 votes
1 answer
16 views

Error with tabular/siunitx environment

I am trying the following table that I found online, but there is an error in the specific lines: \begin{tabular}{% >{\begin{math}}c<{\end{math}} I don't know what is causing the latex ...
  • 101
1 vote
0 answers
33 views

How to modify single elements of PGFPlotsTable?

I want to create a table with some values. Afterwards I want to replace one element of the table and display a plot. The nearest I get, you can see below in the minimum example. So there are two basic ...
  • 11
1 vote
2 answers
64 views

The width of the table is too big for the page. How do i solve this?

I have made a table in Overleaf (Latex). The problem, however, is that the table goes outside the paper. Like this: I think the problem is with Notes, because when I remove Notes, the problem is ...
3 votes
1 answer
53 views

How to set the width of my table in tabularray?

I am very new to LaTeX, so please forgive me if my question is noobish. I am trying to make a simple table with tabularray. The main components need to be: Controllable border thickness Controllable ...
0 votes
0 answers
23 views

How can I make this fit in portrait?

Ideally, I would like to wrap the text in the first column in order for the last remaining columns to be visible even if the font has to be a bit smaller.. \setlength{\tabcolsep}{0.8pt} \...
  • 21
0 votes
0 answers
21 views

Got a none style table when convert latex to html with latex2html

I want set my table head in light grey, it is normal display in pdf. but when I convert it to html, I got lightgray a b c d I have tried cellcollor got [HTML]9B9B9Ba [HTML]9B9B9Bb ...
0 votes
0 answers
44 views

I'm adding pictures directly (not as floats) in the tabular environment, I get a very odd space above [duplicate]

I'm working on inserting pictures alongside an enumeration. I add them directly, not as float, I don't need a caption. Now, I get a very odd space before the table/picture. Now, I worked with \vspace{...
  • 1
1 vote
0 answers
33 views

is there a way to hide a table column? [duplicate]

Is there a way to designate a specific column in a tabular environment as "hidden" so it is not printed, or not included? Here is a MWE. \documentclass{article} \begin{document} By ...
  • 23
0 votes
1 answer
43 views

How to split a large text in a cell table in multiple pages

I have this code: \begin{tabular}{l} \textbf{Descrição:} \parbox[t]{13cm}{TESTE TESTE TESTE TESTE TESTE TESTETESTE TESTE TESTE TESTE TESTE TESTETESTE TESTE TESTE TESTE TESTE TESTETESTE TESTE TESTE ...
  • 111
0 votes
1 answer
48 views

What is wrong in the following code?

I get this error message on the penultimate line (closing brace) of the following table: Missing $ inserted . } However, the file compiles and the PDF displays correctly. Nevertheless, the presence of ...
1 vote
1 answer
23 views

Defining a macro to automate putting Minted environments into tabular

I want to make a macro, \mintedInOutTable, that puts some code into a minted environment and then puts that in a tabular (for example, to show input and output to a REPL). For this code, \...
  • 203
1 vote
2 answers
45 views

Aligning two latex tables together

new to latex here. I am trying to align two tables at the same level next to each other, but adding more columns in the second table pushed it below the first. \documentclass{article} \begin{document} ...
  • 47
0 votes
1 answer
34 views

How to properly split a long table on two pages with `longtable` package?

I want to split my table on two pages by using the longtable package and I want also to print Continued on next page at the bottom of first part and continued from previous page at the top of the ...
  • 711
2 votes
1 answer
83 views

Format interview transcript

I have the following format from an interview transcript : Bob: 00:00:07.000 –> 00:00:17.000 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi fermentum bibendum orci quis faucibus. ...
1 vote
1 answer
48 views

How to connect the broken double line?

I have the following table \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}|ccccccc|} \hline \multicolumn{1}{|c|}{} & \multicolumn{3}{c|}{} & \multicolumn{3}{c|}{} \\ \hline \...
  • 113
0 votes
0 answers
32 views

latex/tabular - How to have all \parboxes coming from p-columns in the same table-row having same height/depth?

I try to understand p-column-type. You can specify width of \parboxes coming from p-columns by the argument of the column-specifier p. Seems each of these boxes has its own height and depth. Otherwise ...
0 votes
1 answer
28 views

Table with separate boxes

I am trying to create a table similar to this one. (I took it from my college notes) Where there are separated boxes with vertical lines that do not span the whole table. I've managed to replicate the ...
  • 11
0 votes
1 answer
32 views

How can I make this table fit in landscape orientation?

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{pdflscape} \usepackage{geometry} \usepackage{threeparttable} \begin{document} \begin{center} \begin{landscape} \renewcommand{\...
  • 21

1
2 3 4 5
334