git.iko.soy/typeable/pandoc
on 1.3 help sign in
typeable/pandoc/tests/tables.latex
139 lines 1.9 kB history raw
1Simple table with caption:
3\begin{table}[h]
4\begin{center}
5\begin{tabular}{rlcl}
6Right
7 & Left
8 & Center
9 & Default
10\\
11\hline
1212
13 & 12
14 & 12
15 & 12
16\\
17123
18 & 123
19 & 123
20 & 123
21\\
23 & 1
24 & 1
25 & 1
26\\
27\end{tabular}
28\end{center}
29\caption{Demonstration of simple table syntax.}
30\end{table}
32Simple table without caption:
34\begin{center}
35\begin{tabular}{rlcl}
36Right
37 & Left
38 & Center
39 & Default
40\\
41\hline
4212
43 & 12
44 & 12
45 & 12
46\\
47123
48 & 123
49 & 123
50 & 123
51\\
53 & 1
54 & 1
55 & 1
56\\
57\end{tabular}
58\end{center}
60Simple table indented two spaces:
62\begin{table}[h]
63\begin{center}
64\begin{tabular}{rlcl}
65Right
66 & Left
67 & Center
68 & Default
69\\
70\hline
7112
72 & 12
73 & 12
74 & 12
75\\
76123
77 & 123
78 & 123
79 & 123
80\\
82 & 1
83 & 1
84 & 1
85\\
86\end{tabular}
87\end{center}
88\caption{Demonstration of simple table syntax.}
89\end{table}
91Multiline table with caption:
93\begin{table}[h]
94\begin{center}
95\begin{tabular}{>{\PBS\centering\hspace{0pt}}p{0.15\columnwidth}>{\PBS\raggedright\hspace{0pt}}p{0.14\columnwidth}>{\PBS\raggedleft\hspace{0pt}}p{0.16\columnwidth}>{\PBS\raggedright\hspace{0pt}}p{0.34\columnwidth}}
96Centered Header
97 & Left Aligned
98 & Right Aligned
99 & Default aligned
100\\
101\hline
102First
103 & row
104 & 12.0
105 & Example of a row that spans multiple lines.
106\\
107Second
108 & row
109 & 5.0
110 & Here's another one. Note the blank line between rows.
111\\
112\end{tabular}
113\end{center}
114\caption{Here's the caption. It may span multiple lines.}
115\end{table}
117Multiline table without caption:
119\begin{center}
120\begin{tabular}{>{\PBS\centering\hspace{0pt}}p{0.15\columnwidth}>{\PBS\raggedright\hspace{0pt}}p{0.14\columnwidth}>{\PBS\raggedleft\hspace{0pt}}p{0.16\columnwidth}>{\PBS\raggedright\hspace{0pt}}p{0.34\columnwidth}}
121Centered Header
122 & Left Aligned
123 & Right Aligned
124 & Default aligned
125\\
126\hline
127First
128 & row
129 & 12.0
130 & Example of a row that spans multiple lines.
131\\
132Second
133 & row
134 & 5.0
135 & Here's another one. Note the blank line between rows.
136\\
137\end{tabular}
138\end{center}