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

3
votes
1answer
56 views

When using the 'longtable' package, how can I have the table title on the second page indicate that it's a continuation from the previous page?

\documentclass[letterpaper]{article} \usepackage{longtable} % Longtable package \usepackage[margin=1in]{geometry} % Margins \usepackage{booktabs} % Nicer horizontal lines ...
2
votes
1answer
80 views

Blank space above centered text in tabularx

I have a problem in my report with tabularx and center... I try to center the content of some columns but I don't know why, is there a blank space above the centered text... Here is my code ...
6
votes
1answer
156 views

No horizontal bar in table for space between column

I'm trying to create a table with underlined column groupings. I have an extra space between the groupings using @{\hskip 1cm}, but I don't want the underlining to extend over this extra space. Is ...
6
votes
3answers
176 views

Table heading too low if on the top of the page

Consider the following MWE: \documentclass{article} \usepackage{lipsum} \usepackage{booktabs} \begin{document} \lipsum[1] \clearpage \begin{table}[htbp]% \centering% \caption{Test ...
12
votes
1answer
2k views

How to right align columns but center align header row using pgfplotstable?

I am a newbie with pgfplotstable: I would like to right align the columns of the table containing my data, but keep the headers center-aligned. Here is the code for the tables - does anyone know how ...
3
votes
3answers
239 views

Free cell alignment in a table

I want to use the package tabu which I've heard is the latest and greatest package for creating tables to generate a table that looks like this: ------------------------------------- |A | ...
1
vote
1answer
389 views

Problem with side by side figures and captions

I want to have 4 figures side by side and centered in my paper. I am using this code. The problem is that captions and figures are not aligned. It seems captions are in correct position, but figures ...
11
votes
2answers
167 views

Table without counting ampersands

I want a command like \mytable{4}{ a & b & c & d & e & f} would be the same as \begin{tabular}{cccc} a & b & c & d\\ e & f\\ \end{tabular} and \mytable{2}{ ...
2
votes
0answers
345 views

Defining the position of a tabularx environment [closed]

In my report, I use a tabularx environment within a mdframed environment. I don't know why but I have to delete the table environment surrouding my tabularx environment when I want a table in my ...
8
votes
1answer
392 views

Remove footnote marks from \listoftables

I'm using footnote marks in my table captions like this: \caption{This is title\protect\footnotemark with a foot note} and then I just use a \footnotetext{Closer explanation...} . This works just ...
4
votes
1answer
880 views

Table and \hlines too short or wide

Here is a MWE of what I am trying to do. \documentclass[a4paper]{article} \usepackage{tabularx,booktabs} \usepackage{color,colortbl} \begin{document} \begin{table}[htb] \centering ...
5
votes
0answers
348 views

Making LaTeX tabular environment behave well under copy/paste [closed]

Whenever I copy a table created with the LaTeX tabular environment from the output .pdf file and paste it into a word processor, all the entries go to different lines. Worse, the first column is ...
4
votes
1answer
214 views

Pgfplotstable converting zeros to — in a knitr inline table

how do I change each 0.0 to -- without having to reference each as string type or making the whole table string type? The actual table is quite long and it would take too long to do it manually. For ...
3
votes
1answer
823 views

What's wrong with this table code in beamer?

I've been struggling for a long while with this code trying to solve the problem there apparently is. I basically copied the code from this page http://en.wikibooks.org/wiki/LaTeX/Tables in the ...
12
votes
1answer
313 views

Render rfc4180 compilant CSV as table

Is there a LaTeX package, which would import data from csv and honour the quotation escaping? To be exact I mean one using the rules 1. - 7. of http://tools.ietf.org/html/rfc4180#section-2 Neither ...
5
votes
1answer
168 views

How can I insert a table within a figure's caption?

I have a small table that I would like included in the caption below a tikzpicture enclosed within a figure. Is this possible?
3
votes
1answer
124 views

Spacing between LaTeX Tables

I generated two separate tables in chapter of the appendix of all tables. Of course, LaTeX fit the two tables in the page in order to use the whole page. Instead, since they are the last two I'd like ...
1
vote
0answers
97 views

What's the correct way to place theorems and pictures side by side? [duplicate]

Okay so I have a definition using the amsthm theorem environments, and a tikzpicture which I want to see side by side. The material inside the definition is not too big, so I expect the final height ...
9
votes
1answer
406 views

LaTeX's datatool package together with siunitx

I want to use the datatool package to read csv files and parse them to LaTeX tables. Furthermore I want to use siunitx to format the numbers from the csv file. Have a look at the following example: ...
5
votes
2answers
3k views

place footnote under table above caption

I would like to place a footnote under a table and above the caption. Since I am using the floatrow package I went with \floatfoot, however there is no option to position floatfoot below the table and ...
0
votes
1answer
223 views

hyphenation of chemical names

i use the datatool package to read a csv table which contains names of chemical compounds in one column. Those names are very long and have to be hyphenated. The problem is that these names contain -. ...
1
vote
1answer
334 views

threeparttable - appending commands to \TPTnoteSettings does not work if package called with flushleft option

In the tablenotes environment defined by the threeparttable package, I wanted to resize my notes globally throughout my document. I have found this answer to a question somebody posted in regards to ...
2
votes
2answers
158 views

How to *disable* Lua's Microtype for a given tabular column?

I'm looking for a way to disable Lua's Microtype (note the capital M - to distinguish from the lower case microtype package) in the first tabular column of the MWE given below: ...
2
votes
2answers
649 views

Table row height, text vertical center and color

So I have the table in the following working example. I used the solution at Column padding in tables but still the text inside each cell is not centered vertically … Besides, I wanted to give it a ...
2
votes
1answer
783 views

How can I split a column into multiple rows?

How can I get [1, 2, 3] in the table below to each appear in a separate row within the same column (with a line between each)? THANKS. \documentclass[11pt,a4paper]{book} \setcounter{secnumdepth}{4} ...
4
votes
1answer
201 views

List of definitions

I have a plain-text document that I would convert to LaTeX. The document is not a typical text document but a list of definitions including some short prefaces and optionally "post-faces". Example ...
5
votes
2answers
80 views

Forcing case in table

I was wondering if it was possible to force the case for a specific column in a table? Let's say the 3rd column of the following table to be lowercase. \documentclass[10pt,a4paper]{article} ...
4
votes
2answers
97 views

Add header to the table

I want to create the table as follows in latex. Note, the table below is created using excel. So, far I have created something like this: Observed-modeled |observed-modeled| Observed-modeled ...
1
vote
1answer
96 views

LaTeX: How to get the following output in table?

I am writing a research document in which I need to merge two columns, I did the code for it but not getting desired output, Can anyone please tell me ? what's wrong in my code.... here is my latex ...
19
votes
3answers
20k views

How to rotate landscape table page in PDF?

Currently I am using \usepackage{rotating} \begin{sidewaystable} \begin{tabular}...\end{tabular} \end{sidewaystable} to typeset landscape tables, which works great. But I want to rotate that page ...
1
vote
2answers
6k views

Indentation after '\tabular' environments

I was filling some tables for my progress report and noticed something were odd. The following text/tables are indented. MWE: \documentclass[12pt, oneside]{book} \usepackage[ngerman]{babel} ...
2
votes
1answer
190 views

Long table with tiny sized for columns gives misaligned headers

This code gives me misaligned headers. Any idea how to fix it? \documentclass{article} \usepackage{longtable} \usepackage{array} \begin{document} \begin{center} ...
4
votes
2answers
333 views

How to color my (custom) lines/rules in a table contained by mdframed?

As a follow up to my recent question: Now I'd like to put some color on to that line/rule. In the MWE below, \arrayrulecolor{blue}\mycline{1-1} throws an error (undefined control sequence with respect ...
12
votes
1answer
316 views

Diagram with stacks

So this is what I would like to have (please don't mind my awful paint skills): And this is what I got out of tikz: Using this code: \documentclass{article} \usepackage[english]{babel} ...
5
votes
1answer
522 views

split a horizontal line into serveral lines in a table

I know \cline{i-j} to span a line from column i to j. But if in one line, I want a line only spanning from {1-1} and then {3-3} for example, how can I make it? | a | b | c | -- -- |d | e | f | ...
2
votes
4answers
229 views

Problem with custom vertical-alignment and/or length of lines/rules in tabular environment

As a follow-up to my previous question: In my table / tabular, \cline{1-1} gives me the correct vertical position but not the right horizontal length . In contrast, \rule{\mycustomlength}{0.4pt} ...
7
votes
2answers
1k views

How thick a rule does \hline produce?

How thick a rule does \hline produce (in a bog-standard tabular environment) ?
6
votes
1answer
1k views

Floating LaTeX longtabu table

I have a table that takes multiple pages, so I use longtabu. However, if I embed longtabu in table environment, the table won't break into pages. How do I create a mult-page table that support ...
2
votes
1answer
393 views

xstring StrSubstitute and table

I got a problem with xstring \StrSubstitute in combination with a table. I would like to replace newline (\\) in a variable with the \newline command to generate a second line in a paragraphed table ...
6
votes
1answer
363 views

Command for the table Ruffini-Horner algorithm

I am trying to code a command in LaTeX to type the tables used in the computation of the Ruffini-Horner algorithm. You can see in the Wikipedia link above that these are rather simple tables. There is ...
1
vote
0answers
148 views

Footnotes in tables and shaded environment [closed]

I have a problem with having my footnotes on the same page with the footnotemark. What I use to have them inserted into the table or a shaded box is \footnotemark and \footnotetext pair. But the text ...
4
votes
1answer
113 views

\hline initialises first cell

\hline initialises the first cell with being empty. This results in having the vertical lines being draw. \documentclass[12pt]{report} \usepackage{graphicx} %Used for importing grapics ...
4
votes
2answers
125 views

Adding a 'bridge' or link between two rows in a table

I'm making a report and I've been asked to do something which I have no idea is even possible or not. I have this table: \begin{table} \begin{center} \caption{Cryostat-In Pin Outs and Resistances} ...
0
votes
1answer
321 views

Automatic table width doesn't work anymore

I got an odd problem since yesterday. I'm writing my thesis with Lyx. I'm using a template based on the KOMA-Script. Well, yesterday I've deleted a number of tables from my document. After compiling ...
1
vote
0answers
16 views

Text appears at the bottom of row when image is image inserted in the next column [duplicate]

I want to use latex to make PDF for all figures. Please see the code. The image is inserted but "100" on the left column appears at the bottom of the row. How do I align that to top or center of the ...
1
vote
1answer
934 views

vertical alignment using tabularx / arraystretch

I am using the tabularx package to customize my tables. I changed the definition of tabularxcolumn to vertically center the text. As I am using arraystretch, the bold 'titles' of my table are aligned ...
5
votes
1answer
4k views

How to add vertical and horizontal dashed lines in array and tabular enviroments?

I want to present big matrices using concatenation of rows and columns with dashed lines. Also, I need to do the same for some tables. Is there any way to insert dashed lines in arrays and tabulars, ...
2
votes
1answer
999 views

Chapter title and rotated table (with subtables) on the same page

My problem is quite similar to the one described in Problems with landscape mode and Title on the same page. The hvfloats solution suggested there does not work for me, however, because I use multiple ...
6
votes
2answers
129 views

What is a short command for bold face and emph at the same time in a table cell?

I need a short command to replace \textbf{\emph{...}}. Especially, in entering tables in the text editor, this would help me to keep the structure of table uniform and easy to edit. Thanks.
3
votes
1answer
163 views

Starred tabular environment and centered text

How to make the starred tabular to center text: \documentclass[varwidth]{standalone} \begin{document} \begin{tabular*}{\linewidth}{@{}c@{\extracolsep{\fill}}} \hline Text to ...