Skip to content

Caption placed above and below cell #130

@Benfeitas

Description

@Benfeitas

I am specifying captions as suggested in the docs: In a markdown cell I write down the caption, and edit its medata to show

{
  "ipub": {
    "caption": "fig:mylabel"
  }
}

Then I specify the metadata of the figure cell as

{
  "ipub": {
    "figure": {
      "width": 0.6,
      "widefigure": false,
      "caption": "",
      "label": "fig:mylabel",
      "placement": "H",
      "height": 0.4
    }
  }
}

I then convert the nb to html through:

nbpublish -lb -f html_ipypublish_main mynb.ipynb --pdf-debug --clear-files

however the caption appears above and below the figure once rendered to html. Any way to solve this?
edit: interestingly, this only seems to happen with figures and not with tables.
edit2: specifying the caption only in the metadata of the figure cell still shows caption both above and below the cell.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions