Skip to content

Doubt: Is it possible to add a Short and a Long Caption for a jupyter notebook cell metadata? Is it possible to convert to latex instead of pdf? #149

@DTKx

Description

@DTKx

Hello,

I was testing the library to see if I could add:

  • A short and long caption of a figure in a cell markdown.
  • Also tested if I could pass a reference to be read to the caption

Initially I tested the following metadata:

{
  "ipub": {
    "figure": {
      "caption": "[Short Caption](Looooooooooooong Caption. Source \cite{Jankaukas2019})",
      "label": "fig:label1",
      "placement": "H",
      "height": 0.4,
      "widefigure": false
    }
  }
}

Then it prompted:WARNING: Could not save invalid JSON.
So I have tried escaping the caption:

      "caption": "\[Short Caption\]\(Looooooooooooong Caption. Source \\cite\{Jankaukas2019\}\)",

Still no success, is there any other alternative?

Thanks :)

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