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
|
# Figure with one image, caption and label
```
% pandoc -f latex -t native
\begin{document}
\begin{figure}
\includegraphics{../../media/rId25.jpg}
\caption{CAP}
\label{LAB}
\end{figure}
\end{document}
^D
[ Figure
( "LAB" , [] , [] )
(Caption Nothing [ Plain [ Str "CAP" ] ])
[ Plain
[ Image ( "" , [] , [] ) [] ( "../../media/rId25.jpg" , "" )
]
]
]
```
# Nested figures
```
% pandoc -f latex -t native
\begin{figure}
\begin{subfigure}[b]{0.5\textwidth}
\begin{subfigure}[b]{0.5\textwidth}
\centering
\includegraphics{test/media/rId25.jpg}
\caption{CAP1.1}
\end{subfigure}
\begin{subfigure}[b]{0.5\textwidth}
\centering
\includegraphics{test/media/rId25.jpg}
\caption{CAP1.2}
\end{subfigure}
\caption{CAP1}
\label{fig:inner1}
\end{subfigure}
\begin{subfigure}[b]{0.5\textwidth}
\includegraphics{test/media/rId25.jpg}
\caption{CAP2}
\label{fig:inner2}
\end{subfigure}
\caption{CAP}
\label{fig:outer}
\end{figure}
^D
[ Figure
( "fig:outer" , [] , [] )
(Caption Nothing [ Plain [ Str "CAP" ] ])
[ Figure
( "fig:inner1" , [] , [] )
(Caption Nothing [ Plain [ Str "CAP1" ] ])
[ Figure
( "" , [] , [] )
(Caption Nothing [ Plain [ Str "CAP1.1" ] ])
[ Plain
[ Image
( "" , [] , [] ) [] ( "test/media/rId25.jpg" , "" )
]
]
, Figure
( "" , [] , [] )
(Caption Nothing [ Plain [ Str "CAP1.2" ] ])
[ Plain
[ Image
( "" , [] , [] ) [] ( "test/media/rId25.jpg" , "" )
]
]
]
, Figure
( "fig:inner2" , [] , [] )
(Caption Nothing [ Plain [ Str "CAP2" ] ])
[ Plain
[ Image ( "" , [] , [] ) [] ( "test/media/rId25.jpg" , "" )
]
]
]
]
```
|