Skip to content

No table caption when exporting to LaTeX #143

@TripleT1985

Description

@TripleT1985

Bug Report

Describe the bug

Hi Guys,
I encountered a problem exporting table caption from jupyter notebooks to LaTeX. For figures everything works as expected Eeither for a caption in the metadata cells or for a caption in a separate markdown cell. Unfortunately the export of the table caption doesn't work at all.

To Reproduce

  1. Create an arbitrary table in a markdown cell.
  2. Add label and caption meta tags into the cell meta data
  3. Convert to LaTeX using:
    nbpublish -f latex_ipypublish_main -pdf xxx.ipynb

Minimal Notebook Example

See TestTable.txt attached.

Expected Behaviour

The table caption should be included in the pdf below or above the table in the same way, as it is done for figures. This is expected, since the table captions are also not present in the tex file.

Runtime Information

  • IPyPublish: 0.10.12
  • Python: 3.6.9
  • OS: Ubuntu 18.04.4 LTS
  • Pandoc: 1.19.2.4
  • texlive: 3.1415926
  • latexmk: 4.41

Logging

TestTable.nbpub.log
TestTable.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions