How to use Pandoc image alignment to align two images in the same row?

LittleSweet picture LittleSweet · Mar 12, 2013 · Viewed 11.6k times · Source

From the pandoc documentation I know how to insert an image

http://johnmacfarlane.net/pandoc/README.html#images

Now I want to align two images in the same row, how can I do that? My desired output format is pdf.

Answer

John MacFarlane picture John MacFarlane · Apr 2, 2013

You can try something like this:

![](tests/lalune.jpg)\ ![](tests/lalune.jpg)

This will give you two side-by-side images. You won't have a caption, though; pandoc only treats an image as a captioned figure if it is by itself in a paragraph.