Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Draw a table in vertical display instead of horizontal display

Tags:

latex

Can Someone tell me by which command I can draw a table in vertical display in LaTex.

Thanks..

like image 538
anilonwebs Avatar asked May 09 '11 18:05

anilonwebs


People also ask

How do I make a vertical table in HTML?

The trick is to use display: inline-block; on the table rows and white-space: nowrap; on the table body.

How do I draw a vertical line in a table in LaTeX?

The \vline command will draw a vertical line extending the full height and depth of its row. An \hfill command can be used to move the line to the edge of the column. It can also be used in an @-expression.

How do you make a table horizontal in LaTeX?

-3: To create a table in landscape mode, rotating package is included with \usepackage{rotating} command. Then, the table is produced using \begin{sidewaystable}, and \end{sidewaystable}.

What is horizontal on a table?

Horizontal tables display header cells on the side of the table and the corresponding data in rows. By default, the header cells display the names of the dimensions, details, and measures included in the table. The body cells display the corresponding values.


1 Answers

I think you want the lscape package, can be usefully used for this purpose as follows:

\begin{landscape}
\begin{table}
\centering
\begin{tabular}{....}
.......
\end{tabular}
\end{table}
\end{landscape}

EDIT 2nd solution: Another possibility is to use the sideways environment from the rotating package:

\begin{sideways}
\begin{tabular}
...
\end{tabular}
\end{sideways}

And for floating tables sidewaystable.

like image 146
Emiliano Poggi Avatar answered Sep 21 '22 23:09

Emiliano Poggi