Search code examples
imagealignmentpandoc

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


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.


Solution

  • 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.