File: array.tex

package info (click to toggle)
latexml 0.8.8-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 31,920 kB
  • sloc: xml: 109,048; perl: 30,224; sh: 179; javascript: 28; makefile: 13
file content (72 lines) | stat: -rw-r--r-- 1,401 bytes parent folder | download | duplicates (4)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
\documentclass{article}
\usepackage{array}
\newcolumntype{C}{>{$}c<{$}}
\newcolumntype{L}{>{$}l<{$}}
\newcolumntype{R}{>{$}r<{$}}

\begin{document}

\section{New Column types}
\begin{tabular}{|p{1in}|m{1in}|b{1in}|}\hline
Lorem ipsum dolor sit amet, consectetur adipisicing elit &
Lorem ipsum dolor sit amet, consectetur adipisicing elit &
Lorem ipsum dolor sit amet, consectetur adipisicing elit \\\hline
Lorem ipsum dolor sit amet, consectetur adipisicing elit &
Lorem ipsum dolor sit amet, consectetur adipisicing elit &
Lorem ipsum dolor sit amet, consectetur adipisicing elit \\
\hline
\end{tabular}

\begin{tabular}{|>{[}l<{]}|>{[}c<{]}|>{[}r<{]}|}
left & center & right\\
\end{tabular}

\begin{tabular}{l!{--}l}
  a & b \\
  c & d \\
\end{tabular}

\section{Math columns}
\begin{tabular}{cC}
word & a+b \\
word & a+b \\
\end{tabular}

\begin{equation}
z=
\begin{array}{Cc}
word & a+b \\
word & a+b \\
\end{array}
\end{equation}

And trickness of embedded verbatim
\begin{tabular}{cC}
\verb|\word| & a+b \\
word & \verb|a_x|+\verb|b_y| \\
\end{tabular}

\section{Special variations of hline}
Tables
\begin{tabular}[t]{l}
with no\\ hline \\ commands \\ used
\end{tabular} versus

tables
\begin{tabular}[t]{|l|}
\hline
with\\ hline \\ commands \\ 
\hline
\end{tabular} used.


tables
\begin{tabular}[t]{|l|}
\firsthline
with\\ hline \\ commands \\ 
\lasthline
\end{tabular} used.



\end{document}