{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
84 views

How to make a longtable has rounded corners?

I try this, but it does not work \begin{table} \caption{A table with rounded corners} \centering \begin{tikzpicture} \node (table) [inner sep=0pt] { \begin{longtable}{l|l} ...
1
vote
1answer
35 views

\cite in 2 line in the same cell

I am trying to write a tabular in which the second column contains some references (\cite{}). The result obtained is a unique line for each cell, and I would like to fit the reference in 2 line, in ...
2
votes
1answer
25 views

How can I cross reference a column name in a table?

I have quite a big table in my latex document and in the text accompaning the table, I would like to state something like: As presented in column A in Table III, it is ... I know how to cross ...
1
vote
3answers
105 views

How to fit the table?

I'm sorry for my English. I just need to make a table with some long sentences. When I'm doing it I get the following result (see the picture), using the following code: \begin{center} ...
0
votes
2answers
102 views

least complex way to make this table

I don't know either to make one big table and sub each cell or make two tabular beside each other?
3
votes
2answers
57 views

Using \item in the first column of a table

I have a list and a sublist both created with \enumerate, and each item in the sublist consists of two halves (both math). How could I separate the halves so that the first half of each row is ...
1
vote
2answers
41 views

Insert table in document with 2 columns layout?

I need to insert the following table to a document that has a 2 columns layout: \begin{table}[] \centering \caption{Three possible values of the difference in the probability of course completion of ...
0
votes
1answer
33 views

Wrapping text and changing column width in latex table

I recently asked for help in reducing the width of my tables to that of the text for my thesis. The answer worked perfectly for tables with lots of small columns but not ones containing lots of text. ...
3
votes
2answers
118 views

How customize length of rule in tables?

I want to customize the length of the midrule (xy cm) in the first table. The second table should be default. How can that be done? \documentclass{article} \usepackage{booktabs} \begin{document} ...
0
votes
2answers
38 views

Landscape mode makes landscape page too small

I used the instructions from how-to-change-certain-pages-into-landscape-portrait-mode to create a table with plots in landscape mode. The page is turned , but with the left side up, instead of ...
2
votes
2answers
63 views

From table to longtable

I have tried to convert this table to longtable but did not succeed and am hoping that you can help. The longtable-package is loaded already. \documentclass[a4paper,oneside,abstracton]{scrartcl} ...
4
votes
3answers
390 views

How to deal with schemes of curly braces

I'm looking for a package if it exists or options to deal with schemes that use curly braces. In general, how can I do something like this:
0
votes
0answers
19 views

Use of tabular format to insert images [duplicate]

I have used a table to insert images using the suggestion at this SO question. The problem is that I have several images to be placed and hence the images start getting hide behind the bottom of the ...
5
votes
0answers
41 views

Use of \cmidrule in booktabs [duplicate]

I'm using the method from this post to generate booktabs tables with alternating rowcolors (yes I know it's a frowned upon practice but I have to use it). Now I want to use \cmidrule to generate a ...
1
vote
3answers
48 views

Vertically aligning content in table cell

I have the following code: \begin{table}[h] \begin{tabularx}{\textwidth}{ m{4cm} X } & Derivations \\ $v=v_0+at$ & test \newline test \newline ...
1
vote
1answer
37 views

Landscape table doesn't fit in the page

I managed to create a landscape table but the problem it doesn't fit in the text width as shown below. Any idea to solve this problem. My code is provided below. \begin{landscape} ...
2
votes
1answer
41 views

Column in horizontal middle of page

I want to write a table with 3 columns. The second should be in the middle (horizontally) of the page. Thanks, Adrian.
2
votes
2answers
94 views

Creating a table with column headers not having vertical lines between them

I need to create a table where all the cells have vertical spacing between them except the column headers. It is like Please help me out with this. I have multiple tables like this one in my thesis ...
3
votes
2answers
44 views

I want to have more than one footnote in a table. What's the best way to get this to work right?

I want to have more than one footnote in a table. But then the footnote counter has incremented too many times by the time I've gotten to the first \footnotetext. What is the best way to get this to ...
0
votes
0answers
35 views

best way to capture R output into latex table

I am running a bunch of models in R using the caret package. This package is an interface to many modeling techniques and methodologies. There are certain output of each model I'd like to convert to ...
0
votes
1answer
71 views

How can I reproduce this?

How can I reproduce this table?( ignore the text allignment below) ?
1
vote
1answer
26 views

toc-like forward storage for captions

Dear experts: how does one write out the table captions for use later? Think \documentclass{article} \newcommand{\mycaption}[2]{\caption{#2}\label{#1}\savecaptioncontent{#1}{#2}} ...
6
votes
2answers
4k views

Tabular, make a column or a row emphasized

I want to create a table and to make all cells of a column emphasized. Is there a simple way to do it, or do I have to emphasize every single cell?
7
votes
2answers
782 views

Creating an automated table of signs

When solving some inequalities in the context of algebra-precalculus course it is sometimes useful to sketch the behavior of the factors involved using a table. All becomes clear with an example - say ...
2
votes
3answers
34 views

Line break within a cell of a table [duplicate]

I need a line break in one of the column headers. I tried using the suggestions from the earlier posts but since the column header is an equation, I couldn't use them. I need the line break in the ...
2
votes
1answer
42 views

How to write the caption of a english table in Persian when using xepersian package?

I am writing a report using the documentclass{report} and xepersian package. I have some tables in english but I want the caption to be in persian. Since I use the xepersian package, I have to put ...
5
votes
3answers
157 views

bullet in table not aligned

I created the following table. however, the bullets are not aligned. What can I do to get them aligned? \documentclass{beamer} \usepackage{booktabs}% http://ctan.org/pkg/booktabs ...
4
votes
1answer
41 views

xymatrix spacing in lyx

I'm trying to use lyx to make an xymatrix with narrowed spacing between the rows. I found in Peter Gumm's notes http://www.mathematik.uni-marburg.de/~gumm/LyX/xypic/xypic.pdf that I could add to the ...
0
votes
1answer
75 views

Underline text within table

I want to underline a short text and at the same time want the underline to span the width of that column according to the text width. This is what i tried but i have to manually specify the makebox ...
2
votes
1answer
22 views

Table with 2 columns, each further divided into 2 columns

I'm trying to create a table as shown in the attached picture. I declared the first row (or header) as multicolumn to get 2 columns and it works as expected. On the second row, I again declared ...
0
votes
1answer
30 views

centering within a table cell not working in one cell only [duplicate]

I'm trying to create a table using custom columns as explained here. For some reason in the last row of my table the very left column is not centered horizontally and I don't know why. Here is the ...
1
vote
1answer
80 views

Row Padding, Row by Row

Here's my MWE that is almost right... except for the excess padding in the top row which I would like to reduce to 0.2cm. The rest, I'd like to keep at 1.5cm. ...
2
votes
1answer
28 views

centralising the table contents

could anyone help me to centralise the table using this code, please \usepackage {ctable} \begin{tabular}{llr} \toprule \multicolumn{2}{c}{steady-state error} \\ \cmidrule(r){1-2} ...
6
votes
1answer
86 views

How does the \newcolumntype command work?

I'm a StackExchange and LaTeX newb trying to figure out tables and tabularx. Sometimes I copy code but don't actually know what I'm doing or why it works or fails. Can someone explain to me how the ...
2
votes
1answer
57 views

Misaligned vertical lines in table

In my document I use different kinds of tables, as shown below in a simplified way. My problem only affects the first table shown in the output. Strangely, the vertical lines between columns "B" and ...
4
votes
1answer
49 views

Odd incompatibility between multi-line forest nodes and tabular

The following MWE compiles just fine: \documentclass{article} \usepackage{forest} \begin{document} %\begin{tabular}{c} \begin{forest} [x\\y, align=center [z] ] \end{forest} ...
0
votes
1answer
51 views

Defining table location in document

I've created a table in my document with the help from here the table looks exactly as I want except it's location in my document , how can I define the location of the table anywhere in the doc ? ...
4
votes
0answers
35 views

Change footnote number to text using tabu

Problem: Changing footnote default numbering to text using the tabu package. Minimal Working Example (MWE): \documentclass{article} \usepackage{array,booktabs}% http://ctan.org/pkg/{array,booktabs} ...
3
votes
1answer
61 views

How to align horizontally tikz picture and text in a tabular in LaTex?

I have a table as shown below: My code is: \documentclass[12pt,a4paper]{article} \usepackage{amsmath,amsfonts,amssymb,tikz} \usepackage[left=1cm,right=1cm,top=1cm,bottom=0cm]{geometry} ...
2
votes
2answers
47 views

Making several rows in a column

Hi guys I have this really weird table I made in word and want to make it in LaTeX since I am a noob in LaTeX I dont know how to split a column into several rows can some please tell me the coding how ...
0
votes
1answer
21 views

Weird error with memoir sidecaption, subbottom and threepartable package

I have a weird error using threepartable, sidecaption, subbottom and memoir class ! You can't use `\prevdepth' in restricted horizontal mode. \TPTdoTablenotes ->\par \prevdepth ...
1
vote
1answer
22 views

cline issue in drawing horizontal lines in tabular environment

I am trying to draw a horizontal line for cells 2 to 3 and then for cell 5 in a table using \\ \cline{2-3,5}. But it does not work for me. Can anyone tell me how to accomplish this in LaTeX tabular ...
108
votes
7answers
125k views

Column and row padding in tables

How do you guys go about controlling column padding in tables? Update To clarify, I'm looking for a way to control both vertical and horizontal padding. So, if I had a simple table like in the ...
4
votes
2answers
64 views

Changing width of table lines

We know that by adding \setlength\arrayrulewidth{xpt} changes the thickness of all the table lines. If I wanted to change specific table lines, how to do it? \documentclass[11pt]{article} ...
7
votes
1answer
2k views

Listing with line numbers inside a table

I typeset a lot of listings (using the listings package) inside (array-based) tabular environments. This works like a charm, however, breaks when I pass the numbers= option to the listing: ...
1
vote
1answer
46 views

“Paragraph ended before \verbatim@ was complete.” when trying to use verbatim in tabular

I have the following code in my Beamer slide code: \begin{frame} \frametitle{selections} \begin{tabular}{ll} sample 1 & \begin{minipage}{3in} \begin{verbatim} sample 2 \end{verbatim} ...
2
votes
1answer
28 views

How should multiline pieces of code be put into a table?

I have the following two pieces of information that I would like to present side-by-side in a Beamer slide. I think I'd like these two things in two cells of a two-column table. Is there a good way to ...
2
votes
1answer
100 views

How can I align this table with another way?

I tried to align this table. My code \documentclass[border=2]{standalone} \usepackage{amsmath} \begin{document} \begin{tabular}{c c c} 1 & $=$ & 1 \\ $2 + 3 +4$ & $=$ & $1+8$ \\ ...
7
votes
2answers
6k views

LyX table new line

While inside a table, it seems impossible to use Ctrl+Enter in order to start a new line in the same column. So if I have, for example, a column name "veni, vidi, vici" and I don't want it to be so ...
5
votes
1answer
10k views

Regression tables made with esttab in Stata have columns with different widths, using LyX

I am relatively new to LyX and I am trying to output regression results into TeX code, and then insert the resulting tables in a LyX document. The command I use to create the table is: reg y1 x1, ...