Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DTKx opened this issue Jan 16, 2022 · 1 comment

Comments

@DTKx
Copy link

DTKx commented Jan 16, 2022

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 :)

@DTKx DTKx changed the title Doubt: Is it possible to add a Short and a Long Caption for a cell markdown? Doubt: Is it possible to add a Short and a Long Caption for a jupyter notebook cell metadata? Jan 16, 2022
@DTKx
Copy link
Author

DTKx commented Jan 16, 2022

Additionally, I have checked the documentation is it possible to convert it to latex instead of PDF? I have checked the documentation and found here that it can be outputted as latex, however I cannot find an example. Could you please advise how to call nbpublish to convert to latex, I have tested:

nbpublish -latex -lb -f latex_ipypublish_nocode Reproducao_Artigo.ipynb

However this error appears error: unrecognized arguments: -latex
Thanks

@DTKx DTKx changed the title Doubt: Is it possible to add a Short and a Long Caption for a jupyter notebook cell metadata? 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? Jan 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant