aboutsummaryrefslogtreecommitdiff
path: root/test/command/tabularx.md
blob: 9e6069542c849d7be3a51334ed35c1affaa7579d (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
```
% pandoc -f latex -t native --quiet
\begin{tabularx}{\linewidth}{|c|c|c|}
\hline
  Column Heading 1
  & Column Heading 2
  & Column Heading 3 \\
\hline
  Cell 1.1 
  & Cell 1.2
  & Cell 1.3 \\
\hline
  Cell 2.1 
  & Cell 2.2
  & Cell 2.3 \\
\hline
  Cell 3.1 
  & Cell 3.2
  & Cell 3.3 \\
\hline
\end{tabularx}
^D
[Table [] [AlignCenter,AlignCenter,AlignCenter] [0.0,0.0,0.0]
 [[Plain [Str "Column",Space,Str "Heading",Space,Str "1"]]
 ,[Plain [Str "Column",Space,Str "Heading",Space,Str "2"]]
 ,[Plain [Str "Column",Space,Str "Heading",Space,Str "3"]]]
 [[[Plain [Str "Cell",Space,Str "1.1"]]
  ,[Plain [Str "Cell",Space,Str "1.2"]]
  ,[Plain [Str "Cell",Space,Str "1.3"]]]
 ,[[Plain [Str "Cell",Space,Str "2.1"]]
  ,[Plain [Str "Cell",Space,Str "2.2"]]
  ,[Plain [Str "Cell",Space,Str "2.3"]]]
 ,[[Plain [Str "Cell",Space,Str "3.1"]]
  ,[Plain [Str "Cell",Space,Str "3.2"]]
  ,[Plain [Str "Cell",Space,Str "3.3"]]]]]
```

```
% pandoc -f latex -t native --quiet
\begin{tabularx}{\linewidth}{|X|c|p{0.25\linewidth}|}
\hline
  Column Heading 1
  & Column Heading 2
  & Column Heading 3 \\
\hline
  Cell 1.1 
  & Cell 1.2
  & Cell 1.3 \\
\hline
  Cell 2.1 
  & Cell 2.2
  & Cell 2.3 \\
\hline
  Cell 3.1 
  & Cell 3.2
  & Cell 3.3 \\
\hline
\end{tabularx}
^D
[Table [] [AlignLeft,AlignCenter,AlignLeft] [0.0,0.0,0.0]
 [[Plain [Str "Column",Space,Str "Heading",Space,Str "1"]]
 ,[Plain [Str "Column",Space,Str "Heading",Space,Str "2"]]
 ,[Plain [Str "Column",Space,Str "Heading",Space,Str "3"]]]
 [[[Plain [Str "Cell",Space,Str "1.1"]]
  ,[Plain [Str "Cell",Space,Str "1.2"]]
  ,[Plain [Str "Cell",Space,Str "1.3"]]]
 ,[[Plain [Str "Cell",Space,Str "2.1"]]
  ,[Plain [Str "Cell",Space,Str "2.2"]]
  ,[Plain [Str "Cell",Space,Str "2.3"]]]
 ,[[Plain [Str "Cell",Space,Str "3.1"]]
  ,[Plain [Str "Cell",Space,Str "3.2"]]
  ,[Plain [Str "Cell",Space,Str "3.3"]]]]]
```

```
% pandoc -f latex -t native --quiet
\begin{tabularx}{\linewidth}{|b{0.25\linewidth}|c|m{0.25\linewidth}|}
\hline
  Column Heading 1
  & Column Heading 2
  & Column Heading 3 \\
\hline
  Cell 1.1 
  & Cell 1.2
  & Cell 1.3 \\
\hline
  Cell 2.1 
  & Cell 2.2
  & Cell 2.3 \\
\hline
  Cell 3.1 
  & Cell 3.2
  & Cell 3.3 \\
\hline
\end{tabularx}
^D
[Table [] [AlignLeft,AlignCenter,AlignLeft] [0.0,0.0,0.0]
 [[Plain [Str "Column",Space,Str "Heading",Space,Str "1"]]
 ,[Plain [Str "Column",Space,Str "Heading",Space,Str "2"]]
 ,[Plain [Str "Column",Space,Str "Heading",Space,Str "3"]]]
 [[[Plain [Str "Cell",Space,Str "1.1"]]
  ,[Plain [Str "Cell",Space,Str "1.2"]]
  ,[Plain [Str "Cell",Space,Str "1.3"]]]
 ,[[Plain [Str "Cell",Space,Str "2.1"]]
  ,[Plain [Str "Cell",Space,Str "2.2"]]
  ,[Plain [Str "Cell",Space,Str "2.3"]]]
 ,[[Plain [Str "Cell",Space,Str "3.1"]]
  ,[Plain [Str "Cell",Space,Str "3.2"]]
  ,[Plain [Str "Cell",Space,Str "3.3"]]]]]
```