How do I make a reference to a figure in markdown using pandoc?

前端 未结 6 630
天涯浪人
天涯浪人 2020-12-12 11:08

I\'m currently writing a document in markdown and I\'d like to make a reference to an image from my text.

this is my text, I want a reference to my image1 [h         


        
6条回答
  •  心在旅途
    2020-12-12 11:48

    You can use the pandoc-fignos filter for figure numbering and referencing. It works with any output format -- not just LaTeX.

    Add a label to the image's attributes like this:

     ![Caption.](image.png) {#fig:description}
    

    ... and then reference the figure like this:

     @fig:description
    

    Information on how to install and apply the pandoc-fignos filter is given on its Web page. There is also the pandoc-eqnos filter for doing the same kind of thing with equations.

提交回复
热议问题