Tagged Questions

{tables} is about the tabular environment and related packages such as {array}, {booktabs}, {tabularx} and {longtable}. For questions about the table environment (i.e., about floating or positioning), use {floats} instead.

learn more… | top users | synonyms (2)

2
votes
1answer
53 views

row and column specifications in xtable output

Using xtable I am trying to format a table x<- 1:5 y<- 11:15 mytable <- table(x,y) print(xtable(mytable)) Which gives I want to add x and y tag also at the top of the rows and sides
0
votes
1answer
70 views

latex table, divide a column in two columns with multi-row option

I want to create multi-row tables. Here is the baseline table. documentclass[prodmode,acmtecs]{acmsmall} % Aptara syntax \usepackage[ruled]{algorithm2e} \usepackage{multirow} \begin{document} ...
3
votes
2answers
66 views

Split wide table into two but keeping the same caption and table number

I have a wide table that doesn't fit in one page so I split the table in 2. The problem is that I need to keep almost the same caption (the second one has to add the word Continued to the caption) and ...
3
votes
1answer
74 views

I have problems with the alignment of the table on my pages [closed]

Any comment to improve the below code would be a great help. \begin{document} \documentclass[11pt]{book} \usepackage[utf8]{inputenc} \usepackage[spanish,mexico]{babel} \usepackage[T1]{fontenc} ...
2
votes
1answer
69 views

How to draw two lines between text

How to draw two lines between text as shown in this picture. This is my code \documentclass{article} \thispagestyle{empty} \usepackage{lipsum} \begin{document} ...
2
votes
1answer
26 views

Inserting \begin{figure} and \begin{table} enviroments into the \AtBeginDocument{} command

Is it possible to insert either the \begin{figure} ... \end{figure} or the \begin{table} ... \end{table} environments into the \AtBeginDocument{} command? Consider the MWE below: ...
5
votes
2answers
93 views

Decimal point alignment in LaTeX tabular environment but in math mode

The dcolumn package works well for plain numbers but not if these are in math mode eg \begin{tabular}{ld{1}l} \hline \textbf{Species} & \multicolumn{1}{c}{\textbf{Calculated}} & ...
5
votes
0answers
87 views

Is there a dummy package like Lipsum or Blindtext for Tables and Figures?

Lipsum and Blindtext offer paragraphs, lists, and even whole documents of dummy content for testing LaTeX layouts. Is there a package that will generate tables and figures in a similar way?
1
vote
1answer
30 views

Text automatically goes to the top of a table even if text position immediately after the table [duplicate]

This is the top \begin {table} \caption {Table Title} \begin{center} \begin{tabular}{| l | l | l |} \hline Measurement& Uncertainty & Range \\ \hline \hline \end{tabular} \caption*{What is ...
3
votes
4answers
126 views

How to fit this table in a page?

I'm working on a manual that should be finished this week, so I'm in a hurry, sorry if this silly question was done before. My MWE: \documentclass[11pt]{book} \usepackage[utf8]{inputenc} ...
2
votes
1answer
62 views

Insert a Matrix in a Latex Table

How can I include a matrix as a value in a Latex table? For example, in the code provided below, I need C to be written in matrix format with the brackets. @code \begin{table}[h] \begin{tabular}{c c ...
1
vote
1answer
50 views

longtable side by side

I've two longtables and I'd like to place them side by side. Tabular environments work very well, but I think it is not possible to place longtable side by side (why?). It needs to be a longtable or ...
2
votes
3answers
100 views

Set some horizontal border in my table

I have a big table and I want to put something, in order to divide the table in 3 parts. Here is my table: \begin{center} \begin{large} \begin{tabular}{|l|l||l|l|l|l|l|l|l|l|} \hline ...
3
votes
1answer
80 views

How to remove (2) border lines from this table?

Any clues on how to easily remove those lines? I read other articles explaining the use of 'cline' command, but couldn't get it working myself. \begin{table} \scalebox{0.85}{ ...
6
votes
2answers
113 views

Table off the page

I know there is a plenty of resources that deal with tables off the page. And I tried all of them. And they all either do something undesirable, or are not working for me. Please help me position this ...
4
votes
2answers
114 views

How do I write text on the right side of my table?

\documentclass[11pt,a4paper,twoside]{book} \usepackage{multirow} \begin{document} \begin{table}[h!] \centering \begin{tabular}{c|c|cc|c} & & $x_1$ & $x_2$ ...
0
votes
1answer
32 views

Two tables side by side placed ; need to to align vertical top

I've two table placed next to each other as mentioned HERE Brief copy of code is mentioned below: \parbox{.2\textwidth}{ \begin{tabular}{|c|c|c|c|c|} \hline $\textbf{Q\#}$&$ ...
2
votes
1answer
35 views

Table Environment with Surrounding Spaces like Normal Paragraph

Around a tabular environment, LaTeX produces different vertical spaces than a normal paragraph. There are some answers here in LaTeX Stack Exchange that advise setting \intextsep, but I see no ...
3
votes
1answer
28 views

Flushing something towards the bottom of a tabular cell, without affecting the calculations for the height of the tabular

I'm trying to produce lines at the top and at the bottom of two cells of my tabular. The two cells both have some text in them, from which I want to take the larger cell to determine the width of both ...
8
votes
1answer
100 views

What is the correct expression to exactly divide \textheight into n rows?

I want to create a table exactly occupying the whole printed area with no space left. The table consists of 5 rows per page, as follows. \documentclass[table]{article} ...
1
vote
2answers
16 views

How can i change a table column's size and its text justification at the same time in Latex?

I am a newbie in Latex but I know that this command {|>{\small} l | p{2.8cm} | p{2.93cm} | p{2.85 cm} | p{2.58 cm} | } will change first column justification to left and set the size for other ...
4
votes
1answer
53 views

\upbracefill filling entire tabular cell and package colortbl

In my documents, I have found that when I call \upbracefill in a tabular cell, the resulting brace IS NOT taking the entire width of the cell. After creating the smallest example I could that ...
4
votes
1answer
65 views

How to merge two rows of 2 columns into a single row of 4 columns without modifying the data entry?

At the beginning I designed a table with a huge number of rows of acronyms. The table has two columns and occupies \textwidth, as follows. \documentclass{article} ...
2
votes
2answers
49 views

centering a line in table's cell

I'm using two columns style. I would like to modify a table so it can fit with keeping clarity. Two of the cells their texts should be in two lines. The second line should be in the center. ...
2
votes
1answer
81 views

Coloring tables without xcolor, colortbl and tabu while using listings package

currently, I want to color my tables. However, presumably since I'm using the listings package, I can't apply the abovementioned packages, as they totally mess up the default table looks (lines ...
3
votes
1answer
58 views

Table over only part of a page?

I'm currently trying to create a table which has a specific width (table and content itself). After quite a few attempts I found a working solution but my question here is: Is this the way to go or is ...
2
votes
0answers
60 views

Are tabls and tabularx not compatible?

The following MWE does not compile: \documentclass{article} \usepackage{tabularx,tabls} \begin{document} \begin{tabular}{ccc>{arraybackslash}c} 1&2&3&4\\ 1&2&3&4\\ ...
4
votes
2answers
53 views

How to rotate text in a cell and center it vertically and horizontally?

I am creating a table and, after using \multirow, I want to rotate the text of this column and have it centered vertically and horizontally inside its cell. The code I am using would be similar to ...
1
vote
1answer
47 views

column width for text without space

how is it possible to control the column width in a table having a very long text without space. \begin{table} \begin{tabular}{l p{2cm}} datapath & ...
2
votes
1answer
79 views

Centering a header in Deluxe Table

I would like to center the subheader "LightCurve Derived Orbital Parameter" in the deluxetable without affecting the width of the headers of each column. As seen in the image below, the subheader ...
4
votes
1answer
43 views

table (\tabular + \shortstack) gives weird result

I am using a template from this journal. When I am placing table in covering 2 columns (textwidth) using table* I get the following error. MWE: \documentclass[USenglish,twocolumn]{article} ...
4
votes
1answer
57 views

Generate rows in table using \multido (or something similar)

Consider the following example: \documentclass{article} \usepackage{booktabs} \usepackage[locale = DE]{siunitx} %\usepackage{multido} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n \ExplSyntaxOff ...
4
votes
1answer
51 views

consistent spacing using tabular/ minipage/ parbox

Even though I've read numerous threads on how to achieve consistent spacing, I still cannot figure out, why it doesn't work when using any of the macros \testD to \testG in the following example. ...
5
votes
1answer
128 views

How do I build this table?

I tried with \multirowcell with limited success, since I am not sure how to create the long first column without a horizontal line going though it! Here is what I have tied: ...
1
vote
1answer
48 views

Section with multi-column text

I want to create a section in which the text appears in three columns, its similar to a table with three columns and one row, but without any outlines, and multi-line text. How can I do this?
0
votes
1answer
74 views

How to force multiple tables onto a single page?

I am doing the final layouting pass on a book, and while LaTeX does "the right thing" most of the time, and the occassional ugliness can be tweaked with minor touches to the text, there are cases ...
3
votes
1answer
69 views

How can I improve showing several different measures for one sample?

I am displaying 4 bits of data (three of them are of the same type) for a sample shown on the left of it. Is there a way I could improve this? So far I came up with this layout: MWE ...
0
votes
0answers
44 views

Can someone help me please? it is about width of the table [duplicate]

My table is too wide and too long to fit one page. i want to seperate it to 2 pages. i used longtable package to seperate it two pages bu i cant fix the wideness. her is my table code, (it look a ...
3
votes
4answers
255 views

How can I make a long and wide table fit the text width?

My table is too wide and too long to fit in one page. I want to separate it in 2 pages. I used longtable package to separate it in two pages but I can't fix the width. Here is my table code, (it look ...
0
votes
0answers
24 views

How to make table like this in latex? [duplicate]

How to make table in latex like this? I am confused in multirow spanning and multicolumn spanning in this? Any help would be appriciated. My code is : \begin{table} ...
3
votes
2answers
118 views

Latex table with Multirow

I've been struggling with this for a while. 1.) I want the 2.5 and 97.5 to appear distinctly from the "Percentile" label but still in the same cell. 2.) I want the 2.5 to appear centered around the ...
1
vote
0answers
34 views

textual replacement within spreadtab

similar to this question I want to use a function inside of a spreadtab region, but i do not want to use it out of a seperate file but just simplify the usage and readability. Unfortuntely the usage ...
3
votes
2answers
73 views

Reduce cell margins in a table

I have a table as shown below. \documentclass{article} \usepackage{graphicx} \newcommand*\rot{\rotatebox{90}} \begin{document} \begin{table}[!ht] \centering \begin{tabular}{| c | c | c |} ...
4
votes
1answer
63 views

table cell shading overlaps to nearby cells

I have a latex table as follows \documentclass[12pt]{report} \usepackage{colortbl} \begin{document} \begin{table} \centering \begin{tabular}{|@{\,}c@{\,}|@{\,}c@{\,}|@{\,}c@{\,}|@{\,}c@{\,}|} ...
0
votes
1answer
39 views

Need to align text to top of cell in table [duplicate]

this is the code I have now: \begin{tabular}{|l|l|p{8cm}|} \hline NB & Screen & Description\\ \hline \multirow{-40}{*}{1} & \includegraphics[scale=0.4, trim=0 0 0 ...
2
votes
3answers
335 views

How to make a table look nicer

I am currently working on my master thesis and my tables which are used as a type of matrix simply look awful. How can i make them look much better? \begin{table}[H] \centering ...
0
votes
1answer
67 views

the error Missing number, treated as zero in tabular

there is my code \documentclass[a4paper,12 pt,adobefonts]{ctexart} \usepackage{xeCJK} \usepackage{caption} \usepackage{multirow}%跨行表格 \usepackage{bigstrut} \renewcommand{\arraystretch}{1.3} ...
1
vote
1answer
52 views

Vertical aligment of dinglist inside table cell with `parskip`

Why is the list text so close to the top line of the cell in some lists? I know it's a problem with the parskip package. I can solve this by adding this strut in every cell before the text ...
0
votes
0answers
35 views

Aligning tabular inside list environment

Referring to my other unanswered because edited question here (see edit at the end), I have to open this new post. What can be done, to adjust the top of the tabular with the exercise-number at the ...
3
votes
1answer
38 views

Overlap table cells

I use "multicol" to create a page with two columns and in one column I have a table. My problem is that the table is too wide and I get an "Overfull \hbox" warning. Example: \documentclass{scrreprt} ...