git.iko.soy/typeable/pandoc
on rc/2.11.3.1 help sign in
typeable/pandoc/test/tables.latex
119 lines 3.5 kB history raw
1Simple table with caption:
3\begin{longtable}[]{@{}rlcl@{}}
4\caption{Demonstration of simple table syntax.}\tabularnewline
5\toprule
6Right & Left & Center & Default \\ \addlinespace
7\midrule
8\endfirsthead
9\toprule
10Right & Left & Center & Default \\ \addlinespace
11\midrule
12\endhead
1312 & 12 & 12 & 12 \\ \addlinespace
14123 & 123 & 123 & 123 \\ \addlinespace
151 & 1 & 1 & 1 \\ \addlinespace
16\bottomrule
17\end{longtable}
19Simple table without caption:
21\begin{longtable}[]{@{}rlcl@{}}
22\toprule
23Right & Left & Center & Default \\ \addlinespace
24\midrule
25\endhead
2612 & 12 & 12 & 12 \\ \addlinespace
27123 & 123 & 123 & 123 \\ \addlinespace
281 & 1 & 1 & 1 \\ \addlinespace
29\bottomrule
30\end{longtable}
32Simple table indented two spaces:
34\begin{longtable}[]{@{}rlcl@{}}
35\caption{Demonstration of simple table syntax.}\tabularnewline
36\toprule
37Right & Left & Center & Default \\ \addlinespace
38\midrule
39\endfirsthead
40\toprule
41Right & Left & Center & Default \\ \addlinespace
42\midrule
43\endhead
4412 & 12 & 12 & 12 \\ \addlinespace
45123 & 123 & 123 & 123 \\ \addlinespace
461 & 1 & 1 & 1 \\ \addlinespace
47\bottomrule
48\end{longtable}
50Multiline table with caption:
52\begin{longtable}[]{@{}
53 >{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.15}}
54 >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.14}}
55 >{\raggedleft\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.16}}
56 >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.35}}@{}}
57\caption{Here's the caption. It may span multiple lines.}\tabularnewline
58\toprule
59Centered Header & Left Aligned & Right Aligned & Default
60aligned \\ \addlinespace
61\midrule
62\endfirsthead
63\toprule
64Centered Header & Left Aligned & Right Aligned & Default
65aligned \\ \addlinespace
66\midrule
67\endhead
68First & row & 12.0 & Example of a row that spans multiple
69lines. \\ \addlinespace
70Second & row & 5.0 & Here's another one. Note the blank line between
71rows. \\ \addlinespace
72\bottomrule
73\end{longtable}
75Multiline table without caption:
77\begin{longtable}[]{@{}
78 >{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.15}}
79 >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.14}}
80 >{\raggedleft\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.16}}
81 >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.35}}@{}}
82\toprule
83Centered Header & Left Aligned & Right Aligned & Default
84aligned \\ \addlinespace
85\midrule
86\endhead
87First & row & 12.0 & Example of a row that spans multiple
88lines. \\ \addlinespace
89Second & row & 5.0 & Here's another one. Note the blank line between
90rows. \\ \addlinespace
91\bottomrule
92\end{longtable}
94Table without column headers:
96\begin{longtable}[]{@{}rlcr@{}}
97\toprule
98\endhead
9912 & 12 & 12 & 12 \\ \addlinespace
100123 & 123 & 123 & 123 \\ \addlinespace
1011 & 1 & 1 & 1 \\ \addlinespace
102\bottomrule
103\end{longtable}
105Multiline table without column headers:
107\begin{longtable}[]{@{}
108 >{\centering\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.15}}
109 >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.14}}
110 >{\raggedleft\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.16}}
111 >{\raggedright\arraybackslash}p{(\columnwidth - 6\tabcolsep) * \real{0.35}}@{}}
112\toprule
113\endhead
114First & row & 12.0 & Example of a row that spans multiple
115lines. \\ \addlinespace
116Second & row & 5.0 & Here's another one. Note the blank line between
117rows. \\ \addlinespace
118\bottomrule
119\end{longtable}