aboutsummaryrefslogtreecommitdiff
path: root/test/command/figures-context.md
blob: 1f93d63ff8117d30f3bc35ddcd670918a25bbcb8 (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
# Figure with one image, caption and label

```
% pandoc -t context -f html
<figure>
  <img src="mandrill.jpg" />
  <figcaption><q>The Mandrill</q>, a photo used in
    image processing tests.</figcaption>
</figure>
^D
\startplacefigure[title={\quotation{The Mandrill}, a photo used in image
processing tests.}]
{\externalfigure[mandrill.jpg]}
\stopplacefigure
```

# Nested figures

```
% pandoc -t context -f html
<figure id="test-images">
  <figure id="mandrill">
    <img src="../testing/mandrill.jpg">
    <figcaption><q>The Mandrill</q> is a commonly used test image.</figcaption>
  </figure>
  <figure id="peppers">
    <img src="../testing/peppers.webp" >
    <figcaption>Another test image. This one is called <q>peppers</q>.</figcaption>
  </figure>
  <figcaption>Signal processing test images.</figcaption>
</figure>
^D
\startplacefigure[reference=test-images,title={Signal processing test
images.}]
\startfloatcombination
\startplacefigure[reference=mandrill,title={\quotation{The Mandrill} is
a commonly used test image.}]
{\externalfigure[../testing/mandrill.jpg]}
\stopplacefigure

\startplacefigure[reference=peppers,title={Another test image. This one
is called \quotation{peppers}.}]
{\externalfigure[../testing/peppers.webp]}
\stopplacefigure

\stopfloatcombination
\stopplacefigure
```