Skip to content

figure numbers in pandoc  #158

Open
Open
@dfolch

Description

@dfolch

My workflow:

  • Pweave to create markdown file
  • pandoc to convert markdown file to Word doc

I want to use https://github.com/tomduck/pandoc-xnos to add figure and table numbers in the final Word doc. This requires the following syntax in the markdown file:

![Awesome Figure Title](figures/awesome_fig.png){#fig:awesome tag="1"}

I can use the caption code chunk option to get the figure title in the correct place. How can I get {#fig:awesome tag="1"} appended to the end of the line?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions