latex - allabouttable
TRANSCRIPT
-
1 1
. tabbing tabular . .
1.1: tabbing tabular
tabbing tabular
. . . . . . . .
1.1 tabbing \= , \> .
\begin{tabbing}
\hspace{2em} \= 2.5 kg \\ \> 5 $\sim$ 60 \textcelsius\\ \> 10 $\sim$ 70 \%\end{tabbing}
2.5 kg 5 60 10 70 %
1.2 tabular \begin{tabular}{ }\end{tabular}
\hline, | . . & .(column) .
-
2 1.
l r c
\begin{tabular}{l|r|c}\hline
& & \\\hline\hline1 & & \\2 & & 1994 \\3 & & 1498 cc \\\hline
\end{tabular}
1 2 19943 1498 cc
1.2.1
array .array . . .
p{} m{} b{}
\begin{tabular}
{|p{1.7cm}|p{1.7cm}|p{.2\linewidth}|}\hline
?& ?& ? \\\hline ?& ?& ? \\\hline\end{tabular}
?
?
?
?
?
?
cm .2\linewidth . .2\linewidth 20% .
\begin{tabular}
{|m{1.7cm}|m{1.7cm}|m{1.7cm}|}\hline
?& ?& ? \\\hline ?& ?& ? \\\hline\end{tabular}
?
?
?
?
?
?
-
1.2 tabular 3
\begin{tabular}
{|b{1.7cm}|b{1.7cm}|b{1.7cm}|}\hline
?& ?& ? \\\hline ?& ?& ? \\\hline\end{tabular}
?
? ?
?
? ?
. \par .
\begin{tabular}
{|p{1.7cm}|p{1.7cm}|p{1.7cm}|}\hline
\par \par ?& \par ?& ? \\\hline ?& ?& ? \\\hline\end{tabular}
?
?
?
?
?
?
>{ } . , \\ \tabularnewline .
\begin{tabular}{|
>{\raggedright}p{1.8cm}|
>{\centering}p{1.8cm}|
>{\raggedleft}p{1.8cm}|}\hline
?& ?& ? \tabularnewline ?& ?& ? \tabularnewline\hline\end{tabular}
?
?
?
?
?
?
1.2.2
tabularx .
-
4 1.
\begin{tabularx}{ }{ }\end{tabularx}
X .
\begin{tabularx}{\linewidth}
{|X|X|X|}\hline
& m & cm \\\hline
SLM-600 & 6.0 & 600 \\
SLM-800 & 8.0 & 800 \\\hline
\end{tabularx}
m cm
SLM-600 6.0 600
SLM-800 8.0 800
.
\newcolumntype{Y}
{>{\raggedleft\arraybackslash}X}
\newcolumntype{Z}
{>{\centering\arraybackslash}X}
\begin{tabularx}{\linewidth}
{|X|Z|Y|}\hline
& m & cm \\\hline
SLM-600 & 6.0 & 600 \\
SLM-800 & 8.0 & 800 \\\hline
\end{tabularx}
m cm
SLM-600 6.0 600
SLM-800 8.0 800
1.2.3
>{} .
\begin{tabular}{|%
>{\slshape}p{1.7cm}|%
>{\bfseries}p{1.7cm}|%
>{\sffamily}p{1.7cm}|}
\hline
.& & \\\hline .& & \\\hline\end{tabular}
.
.
-
1.2 tabular 5
1.2.4
\cline{ - }
\begin{tabular}{|l|l|l|}\hline
& & \\\hline& & \\\cline{2-3} & & \\\cline{2-3}& & \\\hline
\end{tabular}
1.2.5
\multicolumn{ }{ }{}
\begin{tabular}{|l|l|l|}\hline
& & \\\hline& & \\\cline{2-3} & & \\\cline{2-3}& \multicolumn{2}{c|}{ .}
\\\hline\end{tabular}
.
1.2.6
multirow .
\multicolumn{ }{}{}
\begin{tabular}{|l|l|l|l|}\hline
\multirow{4}{1cm}{}& & \multirow{4}{1cm}{}& \\& & & C\\& & & C++\\& & & \\
\hline\end{tabular}
C C++
1.2.7
slashbox .
\slashbox{ }{ }\backslashbox{ }{ }
-
6 1.
\begin{tabular}{|l|l|l|}\hline
\backslashbox{}{}& m & cm \\\hline
SLM-600 & 6.0 & 600 \\
SLM-800 & 8.0 & 800 \\\hline
\end{tabular}
HHHHHHH
m cm
SLM-600 6.0 600
SLM-800 8.0 800
1.2.8
\arrayrulewidth .
\renewcommand{\arrayrulewidth}{1pt}
\begin{tabular}{|l|l|l|}\hline
& m & cm \\\hline
SLM-600 & 6.0 & 600 \\
SLM-800 & 8.0 & 800 \\\hline
\end{tabular}
m cm
SLM-600 6.0 600
SLM-800 8.0 800
.
\makeatletter
\def\hlinewd#1{%
\noalign{\ifnum0=}\fi\hrule \@height #1 \futurelet
\reserved@a\@xhline}
\newcommand{\hthickline}{\hlinewd{.8pt}}
\newcommand{\hthinline}{\hlinewd{.2pt}}
\makeatother
\makeatother \makeatletter .
\begin{tabular}{|l|l|l|}\hline
& m & cm \\\hthickline
SLM-600 & 6.0 & 600 \\
SLM-800 & 8.0 & 800 \\\hthinline
\end{tabular}
m cm
SLM-600 6.0 600
SLM-800 8.0 800
| .
!{\vrule width 1pt}
-
1.2 tabular 7
\begin{tabular}{
!{\vrule width .8pt}l
!{\vrule width 1.2pt}l
!{\vrule width 1.6pt}l
!{\vrule width 2pt}}\hline
& m & cm \\\hline
SLM-600 & 6.0 & 600 \\
SLM-800 & 8.0 & 800 \\\hline
\end{tabular}
m cm
SLM-600 6.0 600
SLM-800 8.0 800
1.2.9
\tabcolsep .
\renewcommand{\tabcolsep}{10pt}
\begin{tabular}{|l|l|l|}\hline
& m & cm \\\hline
SLM-600 & 6.0 & 600 \\
SLM-800 & 8.0 & 800 \\\hline
\end{tabular}
m cm
SLM-600 6.0 600
SLM-800 8.0 800
@{} .
\begin{tabular}{|@{}l|l@{}|@{}l|}\hline
& m & cm \\\hline
SLM-600 & 6.0 & 600 \\
SLM-800 & 8.0 & 800 \\\hline
\end{tabular}
m cm
SLM-600 6.0600
SLM-800 8.0800
1.2.10
\arraystretch .
\renewcommand{\arraystretch}{2}
\begin{tabular}{|l|l|l|}\hline
& m & cm \\\hline
SLM-600 & 6.0 & 600 \\
SLM-800 & 8.0 & 800 \\\hline
\end{tabular}
m cm
SLM-600 6.0 600
SLM-800 8.0 800
-
8 1.
1.2.11
colortbl . color .
\begin{tabular}{|%
>{\columncolor{yellow}}l|
l|l|}\hline
& m & cm \\\hline
SLM-600 & 6.0 & 600 \\
SLM-800 & 8.0 & 800 \\\hline
\end{tabular}
m cm
SLM-600 6.0 600
SLM-800 8.0 800
.
\definecolor{brightgray}{gray}{0.7}
\definecolor{midgray}{gray}{0.5}
\definecolor{darkgray}{gray}{0.3}
\begin{tabular}{|%
>{\columncolor{brightgray}}l|
>{\columncolor{midgray}}l|
>{\columncolor{darkgray}}l|}\hline
& m & cm \\\hline
SLM-600 & 6.0 & 600 \\
SLM-800 & 8.0 & 800 \\\hline
\end{tabular}
m cm
SLM-600 6.0 600
SLM-800 8.0 800
\definecolor{brightgray}{gray}{0.7}
\begin{tabular}{|l|l|l|}\hline
\rowcolor{brightgray} & m & cm \\\hline
SLM-600 & 6.0 & 600 \\
SLM-800 & 8.0 & 800 \\\hline
\end{tabular}
m cm
SLM-600 6.0 600
SLM-800 8.0 800
-
9
\=, 1
\>, 1
array, 2
\arrayrulewidth, 6
\arraystretch, 7
\backslashbox, 5
\cline, 5
color, 8
colortbl, 8
\hline, 1
\multicolumn, 5
multirow, 5
\multirow, 5
slashbox, 5
\slashbox, 5
tabbing, 1
\tabcolsep, 7
tabular, 1
\tabularnewline, 3
tabularx, 3
1 1.1 tabbing 1.2 tabular 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.2.10 1.2.11