{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.

learn more… | top users | synonyms (2)

2
votes
0answers
65 views

breaking a tabular and aligning tabulars throughout the document

I have two questions. How do you break a tabular so that some of it lies on the previous page while the rest is on the next page. See sample tex file provided below. How do you align the tabular ...
4
votes
1answer
107 views

Improve legibility in a siunitx table

I am a rather basic user of LaTeX, so please be kind. ;) I am using the siunitx package to align numbers on tables, and this is a rather similar question to this one: Centering table column titles ...
3
votes
2answers
122 views

Modify global size of booktabs table

Here is the table I am trying to make: \documentclass{book} \usepackage{tabularx, booktabs} \usepackage{lipsum} \begin{document} \begin{table} \centering \begin{tabularx}{\textwidth}{lll} ...
3
votes
1answer
51 views

Table containing symbols in a fixed-width column results in underfull hbox

As part of a large table I have a column where each row contains a number of variables/symbols. The column should have a fixed width to fit the rest of the table. The problem is that the collection of ...
7
votes
1answer
100 views

\foreignlanguage in tabular environment

\foreignlanguage does not work in tabular. How to switch language in tabular? \documentclass[spanish,russian]{scrbook} \usepackage[T1,T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage{babel} ...
6
votes
1answer
55 views

scaling table vs changing font vs some other approach

subjective, but not opinionated At "normal" font sizes, my tables typically exceed page margins. I am asking for guidelines on how to solve this, having in mind the following: I am an academic and I ...
9
votes
2answers
241 views

Framing cells vertically in a table

I want to add a box in a tabularx table that would frame several cells vertically. There is this post that shows how to frame cells horizontally (Framing cells in a table), but I cannot figure out how ...
18
votes
4answers
665 views

Avoid repeating [hbt] and \centering for every table

In a document I'm writing, I'm using the familiar [hbt] option for my floating tables, and I center them. I'd like to avoid repeating that every time I'm creating a table. I assume it's easy to add ...
5
votes
2answers
162 views

Centering on the decimal separator, figure font selection

I'd like to format a column with numbers with a decimal point. In my body text I use old-style figures for numbers, and lining figures in equations. If I use dcolumn my tables use lining figures, ...
1
vote
1answer
79 views

Unwanted line - problem

I have a problem with the file pdf. The line that I do not know where it came from. I wants to get rid of it but I do not know how to do it. In the file line unwanted have indicated in red. This is ...
6
votes
2answers
253 views

How can I draw an horizontal line of specific width in a tabular environment?

I'm trying to make a table with some numbers and a total result, as follows: Age Female Male Total ---------------------------- Under 10 5 8 13 10-30 57 61 118 30-60 ...
2
votes
1answer
86 views

incomplete horizontal line with many columns

I'm trying to to create a table with many columns, but the horizontal line shows up as incomplete. I also want to have the column width adapt to the content if possible, but I've just been able to ...
2
votes
1answer
50 views

\include'd tables show up on separate pages. How can I fit them on a single page? [duplicate]

When I insert two tables with \include into my main.tex file, each table floats to a separate page. I would like to fit them into one page and mesh with the rest of the document. I can do that when ...
1
vote
1answer
86 views

Manual column spacing in tabular environment and centering

How can I adjust the column spacing in a tabular environment and also center the contents? The code I use is this: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...
1
vote
1answer
117 views

How can I automatically use typewriter font for one column of a tabular?

I'm trying to create a table where everything in one column is in typewriter font. In other words, it should perform like this: \begin{tabular} {| l | p{5cm} |} \hline \multicolumn{2}{|l|}{Sample ...
3
votes
2answers
85 views

trouble with table borders - some are incomplete

I am having trouble with my table borders again. I want to produce something like this: or like this: But I keep getting this: These are my commands: \begin{table}[ht!] ...
1
vote
1answer
72 views

How to make table numbering as table section_number alpha

I would like the numbering of tables in a section to be in the following format: Table section_number alpha: table caption. For examples, tables of section 4.3 should look like: Table 4.3 a: Table ...
1
vote
0answers
63 views

Table-caption rotated wrongly

How can the table-description in tufte-handouts be placed correctly with sideways-tables and xtable? See following minimal reproducible example where the figure-description is corrrect (stolen from ...
1
vote
1answer
324 views

TEXMAKER when compiling gives me error misplaced alignment [duplicate]

! Misplaced alignment tab character &. <argument> ...d/record.url?eid=2-s2.0-78751524824& partnerID=40&md5=4144bdb06... l.76 ...D=40&md5=4144bdb064f723bb3e27d5ff60673d79} I ...
1
vote
2answers
53 views

Producing a Table in the main file from other file containing multiple tables

I want to create a separate file for tables so that the main latex file doesn't get cluttered. I know I can define tables in new file and add the same file in the main file using input{Tables.tex}. ...
6
votes
1answer
6k views

Combining multirow and multicolumn

When combining multirow and multicolumn in the same cell of a table I am getting extra vertical lines: \documentclass[plain]{article} \usepackage{multirow} \pagestyle{empty} \begin{document} ...
1
vote
1answer
53 views

Table error - black band inside the fields on toprule

I need a help with a table attached in the pictures above. I put this table in a document composed of several chapters. When I compile the single chapter that include the table, i have no error ...
2
votes
0answers
179 views

Cleaner Code for a Table design

in this question Showcase of beautiful wine bottle labels made with LaTeX/TikZ and friends I asked for wine bottle labels. Here is my own attempt. I still have to play with fonts. I'm quite happy ...
5
votes
2answers
203 views

Vertical aligment with tikzpicture

I have a problem with vertical alignment in a tabular environment with tikzpicture. My code so far is: \documentclass[12pt,a4paper]{article} \usepackage{tikz} \begin{document} \begin{tabular}{ccccc} ...
0
votes
4answers
122 views

Three columns aligned horizontally and vertically

I'm trying to make a list of three columns where the first column is on the left hand side of the page, the second column runs down the middle and the third column is on the right hand side. A table ...
2
votes
1answer
107 views

Table reference not compiling correctly

I'm hoping for some guidance on why LaTeX isn't properly referencing this table. \begin{table}[ht] \caption*{Table 2 \\ Number and Percentage}\label{tab:table2} \centering \begin{tabular}{rrrrrr} ...
1
vote
2answers
136 views

Need vertically centered text in latex table

I want the text in each cell vertically centered. \documentclass[12pt,a4paper,onesided]{report} \usepackage{array} \usepackage{booktabs} ...
3
votes
1answer
558 views

Annotating Tables With Tikz; Adding Arrows

I'd like to be able to draw an arrow with some text on top connecting two arbitrary (i.e. possibly non-right-/left-most, possibly nonadjacent) cells of a table with a left-looking arrow. In ...
1
vote
2answers
121 views

How can I recreate this two tables in LaTeX?

In this case, the real text is irrelevant; the format and layout is what I'm interesed in. All my tries with it have seen deceptive. I'm impatient to study your ideas!. Thanks in advance.
3
votes
1answer
219 views

Annotating tables

I'm trying to annotate a table by highlighting and annotating the final column, yet once I use the\tabnode together with coloring I get misalignment. Either the content of the cell marked with ...
5
votes
1answer
128 views

Labeling Multiple Equations Per Row of a Table

I am trying to create a table with two columns of independently labelled equations (1-6). Unfortunately, everything I have found so far either has not worked or would number them as sub-equations (1a, ...
6
votes
2answers
104 views

Trouble with table borders

I want my table to look like the one below: But this is what is turning out: Here’s an MWE: \documentclass{article} \usepackage{multirow} \begin{document} \begin{tabular}{|c|c|c|} \cline{1-3} ...
3
votes
2answers
399 views

Bold row in table aligned with dcolumn

I am generating a bunch of TeX-tables (with Stata), in which one particular row has to be highlighted (bold). I can however only modify the first column in there, hence I want to place a command in ...
2
votes
0answers
58 views

align icons to dictionary entries [closed]

I'm trying to typeset a small dictionary. Many of the entries come with a couple of icons that I would like to display in the margin just left of the entry, top-aligned with the beginning of the ...
1
vote
1answer
93 views

Borders of tables

I have been working on my first LateX report, and everything works fine, except tables. It seems that some of the lines appear and other don't (In all my tables). I have tried adding and removing ...
10
votes
3answers
486 views

Move tabular entry to bottom of row

How do I get the last column text to be at the bottom of the row? That is I want the XXX to be aligned with the line containing the arrow. I tried playing around with \multirow{3}{-3ex}{XXX}, but ...
7
votes
2answers
6k views

Automatic line-break in tabular

Sorry if I've missed the answer in another post, but I've literally spent 3+ hours googling this problem now. I'm making a tabular and I'd like to to automatically do a like break rather than going ...
4
votes
1answer
123 views

merge two tables into one

i have two sperate tables with the same number of rows and labels as follows: one: a 12 b 32 c 18 two: a 45 b 98 c 300 how can i combine those two tables into one? as follows: a 12 45 ...
2
votes
2answers
184 views

Table formatting

I want to create a table like this: Here is the code: \begin{table}[h] \begin{threeparttable} \caption{\textit{Sample Selection}} \centering \begin{tabular}{lcccccccc} \toprule\toprule & (I) ...
3
votes
1answer
112 views

How to make background in tabular cell (vertical lines)?

is there any way to make the following two horizontal lines on the background of a cell? Cell should contain either a blue or green horizontal line in the middle. Or the third option is both. Here ...
1
vote
2answers
148 views

Table Formatting - Width

Okay so I am having some trouble with tables in Latex. I tried to find a solution within the already asked questions out there, but I haven't been able to either make sense or get these to work. ...
1
vote
0answers
40 views

how do I ensure that the vertical lines show in the gray cells of my table? [closed]

how do I ensure that the vertical lines show in the gray cells of my table? \begin{table}[ht!] \renewcommand{\arraystretch}{1} \normalsize \doublespacing \centering ...
3
votes
1answer
54 views

Vertical lines going beyond the borders of my table

I am very new to LaTeX so please excuse the amateur question. I am creating a table using the following commands: \begin{table}[ht!] \small \centering \caption{Effect of industry on \emph{Bad Self ...
3
votes
3answers
67 views

automatic list/table rendering

i'm looking for a solution to automatically render data lists. In the current scenario, my input data is a list of strings, which should be displayed in a three column list w/ sequential numbers: ...
7
votes
3answers
186 views

How to horizontally align rotated text in a table?

I am trying to horizontally align text that has been rotated in a table. I want the rotated "Lorem Ipsum" and the rotated "Lorem Ipsum & Lorem Ipsum" text to be horizontally centered in the cell. ...
5
votes
2answers
389 views

\setstretch is reset in \begin{figure}

I use \setstretch{1.3} to increase line spacing. It does increase line spacing in tabular environments as well, which is what I want. But if the tabular is in a figure environment, line spacing is ...
4
votes
3answers
147 views

Alignment of bullets within the itemize environment

I have a question regarding the alignment of bullets within the itemize example, here a short example. Basically I have an \item with an inserted table and I want the bullet to be at the top of the ...
0
votes
1answer
376 views

LATEX: Error when use 'cline' in a table

I use latex to prepare exam sheets. I use the exam.cls package. In the cover page, I created a table to include the question categories and their points: \begin{table}[H] \centering \large ...
6
votes
1answer
142 views

removing extra white space between columns in a multi page, landscaped, longtable

Hi I am trying to make a table that is landscape and takes up multiple pages. I am using a longtable in landscape mode to do this. Everything compiles fine but for some reason there is a large white ...
3
votes
1answer
446 views

Latex errors: undefined control sequence, outer par mode, underfull & overfull hbox

I am attempting to put a Stata regression table in Latex, but my code yields the following errors: Undefined control sequence \estwide{PEAssignment2tabl1.tex}{6}{c} Not in outer par mode. ...