Pandoc Markdown to PDF image position

后端 未结 2 1656
时光取名叫无心
时光取名叫无心 2021-01-03 21:23

When converting a Markdown document to PDF with pandoc, my images are not placed in the same position I put them in the source code. I believe this is due to the conversion

2条回答
  •  半阙折子戏
    2021-01-03 21:55

    Did you try to deactivate the implicit_figures as in

    pandoc -f markdown-implicit_figures -t pdf myfile.md
    

    To solve the size problem you could also try to fix the size within the markdown file with an attribute. Something like that can do the trick:

    ![Caption text](/path/to/image){ width=50% }
    

提交回复
热议问题