aboutsummaryrefslogtreecommitdiff
path: root/test/command/figures-jats.md
blob: bc13bcb5bce11dda8cef7dd92bc360ea61f7aeb6 (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
Figure float with caption at the figure level.

```
% pandoc -f native -t jats
[Figure ("fig-id",[],[]) (Caption Nothing [Para [Str "Caption"]]) [Para [Str "Text"],
Para [Image ("fig-id-2",[],[]) [] ("foo.png", "fig:")]]]

^D
<fig id="fig-id">
  <caption><p>Caption</p></caption>
  <p>Text</p>
  <graphic id="fig-id-2" mimetype="image" mime-subtype="png" xlink:href="foo.png" xlink:title="fig:" />
</fig>
```

Figure float with caption and alt text.

```
% pandoc -f native -t jats
[Figure ("fig-id",[],[]) (Caption Nothing [Para [Str "Caption"]]) [Para [Str "Text"],
Para [Image ("fig-id-2",[],[]) [Str "alt"] ("foo.png", "fig:")]]]

^D
<fig id="fig-id">
  <caption><p>Caption</p></caption>
  <p>Text</p>
  <graphic id="fig-id-2" mimetype="image" mime-subtype="png" xlink:href="foo.png" xlink:title="fig:">
    <alt-text>alt</alt-text>
  </graphic>
</fig>
```