summaryrefslogtreecommitdiff
path: root/info/examples/tabulars-e/06-00-37.ltx2
blob: ed114b3e6640e5cdd1249720c58defccc55755f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
%% 
%%  A DANTE-Edition example
%% 
%%  Example 06-00-37 on page 201.
%% 
%%  Copyright (C) 2010 Herbert Voss
%% 
%%  It may be distributed and/or modified under the conditions
%%  of the LaTeX Project Public License, either version 1.3
%%  of this license or (at your option) any later version.
%% 
%%  See http://www.latex-project.org/lppl.txt for details.
%% 
%% 
%% ==== 
% Show page(s) 1
%% 
\documentclass[twoside,12pt]{article}
\pagestyle{empty}
\setlength\textwidth{201.70511pt}
\setlength\parindent{0pt}
\usepackage[utf8]{inputenc}
\usepackage[paper=a5,pagesize,DIV14]{typearea}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage[english]{babel}
\usepackage{blindtext}

\usepackage{array,tabularx,booktabs,rotating,units,caption}
\newcolumntype{N}{>{\scriptsize}l}
\newsavebox\TBox

\begin{document}
\savebox\TBox{\parbox{\linewidth}{%
\captionof{table}{The following table was rotated with \texttt{rotatebox}.}
\begin{tabular}{@{}NN*{5}{l}@{}}\toprule
capacity  & $\unit{cm^3}$ & 1288 & 1488 & 1688 & 1985 & 2274 \\\midrule
power & \unit{kW}     &   37 &   44 &   55 &   66 &   80 \\\midrule
acceleration \unitfrac[0]{km}{h} to \unitfrac[100]{km}{h}
         & \unit{s}      & 22,7 & 18,8 & 13,7 & 11,7 &  9,8 \\\midrule
\textbf{maximum speed} & \textbf{\unitfrac{km}{h}} & \textbf{133}
  & \textbf{140} & \textbf{155} & \textbf{165} & \textbf{178} \\\midrule
fuel consumption per \unit[100]{km}
         & \unit{l} & 8,6 & 8,7 & 9,4 (super)& 9,9 (super)& 10,1 (super) \\\bottomrule
\end{tabular}}}
\begin{tabularx}\linewidth{@{} l X @{}}
\raisebox{-1.3\height}{\rotatebox{90}{\usebox\TBox}} & \blindtext
\end{tabularx}
\end{document}