2017-05-23 20:53:04 +02:00
|
|
|
List-table with header-rows and widths options.
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f rst
|
|
|
|
.. list-table:: Frozen Delights!
|
|
|
|
:widths: 15 10 30
|
|
|
|
:header-rows: 1
|
|
|
|
|
|
|
|
* - Treat
|
|
|
|
- Quantity
|
|
|
|
- Description
|
|
|
|
* - Albatross
|
|
|
|
- 2.99
|
|
|
|
- On a stick!
|
|
|
|
* - Crunchy Frog
|
|
|
|
- 1.49
|
|
|
|
- If we took the bones out, it wouldn't be
|
|
|
|
crunchy, now would it?
|
|
|
|
* - Gannet Ripple
|
|
|
|
- 1.99
|
|
|
|
- On a stick!
|
|
|
|
^D
|
|
|
|
<table>
|
|
|
|
<caption>Frozen Delights!</caption>
|
|
|
|
<colgroup>
|
|
|
|
<col style="width: 27%" />
|
|
|
|
<col style="width: 18%" />
|
|
|
|
<col style="width: 54%" />
|
|
|
|
</colgroup>
|
|
|
|
<thead>
|
|
|
|
<tr class="header">
|
|
|
|
<th>Treat</th>
|
|
|
|
<th>Quantity</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="odd">
|
|
|
|
<td>Albatross</td>
|
|
|
|
<td>2.99</td>
|
|
|
|
<td>On a stick!</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="even">
|
|
|
|
<td>Crunchy Frog</td>
|
|
|
|
<td>1.49</td>
|
|
|
|
<td>If we took the bones out, it wouldn't be crunchy, now would it?</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="odd">
|
|
|
|
<td>Gannet Ripple</td>
|
|
|
|
<td>1.99</td>
|
|
|
|
<td>On a stick!</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
```
|
|
|
|
|
|
|
|
List-table whose widths is "auto".
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f rst
|
|
|
|
.. list-table:: Frozen Delights!
|
|
|
|
:header-rows: 1
|
|
|
|
:widths: auto
|
|
|
|
|
|
|
|
* - Treat
|
|
|
|
- Quantity
|
|
|
|
- Description
|
|
|
|
* - Albatross
|
|
|
|
- 2.99
|
|
|
|
- On a stick!
|
|
|
|
* - Crunchy Frog
|
|
|
|
- 1.49
|
|
|
|
- If we took the bones out, it wouldn't be
|
|
|
|
crunchy, now would it?
|
|
|
|
* - Gannet Ripple
|
|
|
|
- 1.99
|
|
|
|
- On a stick!
|
|
|
|
^D
|
|
|
|
<table>
|
|
|
|
<caption>Frozen Delights!</caption>
|
|
|
|
<thead>
|
|
|
|
<tr class="header">
|
|
|
|
<th>Treat</th>
|
|
|
|
<th>Quantity</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="odd">
|
|
|
|
<td>Albatross</td>
|
|
|
|
<td>2.99</td>
|
|
|
|
<td>On a stick!</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="even">
|
|
|
|
<td>Crunchy Frog</td>
|
|
|
|
<td>1.49</td>
|
|
|
|
<td>If we took the bones out, it wouldn't be crunchy, now would it?</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="odd">
|
|
|
|
<td>Gannet Ripple</td>
|
|
|
|
<td>1.99</td>
|
|
|
|
<td>On a stick!</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
List-table with header-rows which is bigger than 1. Only the first row is treated as a header.
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f rst
|
|
|
|
.. list-table:: Frozen Delights!
|
|
|
|
:header-rows: 2
|
|
|
|
|
|
|
|
* - Treat
|
|
|
|
- Quantity
|
|
|
|
- Description
|
|
|
|
* - Albatross
|
|
|
|
- 2.99
|
|
|
|
- On a stick!
|
|
|
|
* - Crunchy Frog
|
|
|
|
- 1.49
|
|
|
|
- If we took the bones out, it wouldn't be
|
|
|
|
crunchy, now would it?
|
|
|
|
* - Gannet Ripple
|
|
|
|
- 1.99
|
|
|
|
- On a stick!
|
|
|
|
^D
|
|
|
|
<table>
|
|
|
|
<caption>Frozen Delights!</caption>
|
|
|
|
<thead>
|
|
|
|
<tr class="header">
|
|
|
|
<th>Treat</th>
|
|
|
|
<th>Quantity</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="odd">
|
|
|
|
<td>Albatross</td>
|
|
|
|
<td>2.99</td>
|
|
|
|
<td>On a stick!</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="even">
|
|
|
|
<td>Crunchy Frog</td>
|
|
|
|
<td>1.49</td>
|
|
|
|
<td>If we took the bones out, it wouldn't be crunchy, now would it?</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="odd">
|
|
|
|
<td>Gannet Ripple</td>
|
|
|
|
<td>1.99</td>
|
|
|
|
<td>On a stick!</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
```
|
|
|
|
|
|
|
|
List-table without header-rows.
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f rst
|
|
|
|
.. list-table:: Frozen Delights!
|
|
|
|
|
|
|
|
* - Albatross
|
|
|
|
- 2.99
|
|
|
|
- On a stick!
|
|
|
|
* - Crunchy Frog
|
|
|
|
- 1.49
|
|
|
|
- If we took the bones out, it wouldn't be
|
|
|
|
crunchy, now would it?
|
|
|
|
* - Gannet Ripple
|
|
|
|
- 1.99
|
|
|
|
- On a stick!
|
|
|
|
^D
|
|
|
|
<table>
|
|
|
|
<caption>Frozen Delights!</caption>
|
|
|
|
<tbody>
|
|
|
|
<tr class="odd">
|
|
|
|
<td>Albatross</td>
|
|
|
|
<td>2.99</td>
|
|
|
|
<td>On a stick!</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="even">
|
|
|
|
<td>Crunchy Frog</td>
|
|
|
|
<td>1.49</td>
|
|
|
|
<td>If we took the bones out, it wouldn't be crunchy, now would it?</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="odd">
|
|
|
|
<td>Gannet Ripple</td>
|
|
|
|
<td>1.99</td>
|
|
|
|
<td>On a stick!</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
```
|
|
|
|
|
2018-07-02 17:51:51 +02:00
|
|
|
List-table with empty cells. You need a space after '-', otherwise the row will disappear. Parser for Bulletlists causes this restriction.
|
2017-05-23 20:53:04 +02:00
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f rst
|
|
|
|
.. list-table:: Frozen Delights!
|
|
|
|
:header-rows: 2
|
|
|
|
|
|
|
|
* - Treat
|
|
|
|
- Quantity
|
|
|
|
- Description
|
|
|
|
* - Albatross
|
|
|
|
- 2.99
|
|
|
|
-
|
|
|
|
* - Crunchy Frog
|
|
|
|
-
|
|
|
|
- If we took the bones out, it wouldn't be
|
|
|
|
crunchy, now would it?
|
|
|
|
* - Gannet Ripple
|
|
|
|
- 1.99
|
|
|
|
- On a stick!
|
|
|
|
^D
|
|
|
|
<table>
|
|
|
|
<caption>Frozen Delights!</caption>
|
|
|
|
<thead>
|
|
|
|
<tr class="header">
|
|
|
|
<th>Treat</th>
|
|
|
|
<th>Quantity</th>
|
|
|
|
<th>Description</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr class="odd">
|
|
|
|
<td>Albatross</td>
|
|
|
|
<td>2.99</td>
|
|
|
|
<td></td>
|
|
|
|
</tr>
|
|
|
|
<tr class="even">
|
|
|
|
<td>Crunchy Frog</td>
|
|
|
|
<td></td>
|
|
|
|
<td>If we took the bones out, it wouldn't be crunchy, now would it?</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="odd">
|
|
|
|
<td>Gannet Ripple</td>
|
|
|
|
<td>1.99</td>
|
|
|
|
<td>On a stick!</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
```
|
|
|
|
|
|
|
|
List-table with a cell having a bulletlist
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f rst
|
|
|
|
.. list-table:: Frozen Delights!
|
|
|
|
|
|
|
|
* - Albatross
|
|
|
|
- 2.99
|
|
|
|
- + On a stick!
|
|
|
|
+ In a cup!
|
|
|
|
* - Crunchy Frog
|
|
|
|
- 1.49
|
|
|
|
- If we took the bones out, it wouldn't be
|
|
|
|
crunchy, now would it?
|
|
|
|
* - Gannet Ripple
|
|
|
|
- 1.99
|
|
|
|
- On a stick!
|
|
|
|
^D
|
|
|
|
<table>
|
|
|
|
<caption>Frozen Delights!</caption>
|
|
|
|
<tbody>
|
|
|
|
<tr class="odd">
|
|
|
|
<td>Albatross</td>
|
|
|
|
<td>2.99</td>
|
|
|
|
<td><ul>
|
|
|
|
<li>On a stick!</li>
|
|
|
|
<li>In a cup!</li>
|
|
|
|
</ul></td>
|
|
|
|
</tr>
|
|
|
|
<tr class="even">
|
|
|
|
<td>Crunchy Frog</td>
|
|
|
|
<td>1.49</td>
|
|
|
|
<td>If we took the bones out, it wouldn't be crunchy, now would it?</td>
|
|
|
|
</tr>
|
|
|
|
<tr class="odd">
|
|
|
|
<td>Gannet Ripple</td>
|
|
|
|
<td>1.99</td>
|
|
|
|
<td>On a stick!</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
```
|