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

How to process Raw NBconvert cells using nbpublish -pdf into latex? #118

Open
bdatko opened this issue Nov 24, 2019 · 2 comments
Open

How to process Raw NBconvert cells using nbpublish -pdf into latex? #118

bdatko opened this issue Nov 24, 2019 · 2 comments

Comments

@bdatko
Copy link

bdatko commented Nov 24, 2019

I am trying to add raw latex into the tex document when converting with nbpublish -pdf, but I cannot figure out what metadata I need to add, either in the document or cell level, to get nbpublish to recognize the latex when "cell_type" : "raw". It seems nbpublish ignores the raw cells, as designed in the 'opt in' philosophy. Which I agree with, just want raw latex cells to opt in when needed. =)

I can inject raw latex into the tex document when the cell type is markdown, but having the raw cell_type with the a metadata tag would be good .

@chrisjsewell
Copy link
Owner

chrisjsewell commented Nov 27, 2019

Yep sounds reasonable, I don't think there is currently any metadata to handle this. I can't promise that I will be able to get round to doing this in the near future 😐 But I'd welcome any Pull Requests 😀

@bdatko
Copy link
Author

bdatko commented Nov 27, 2019

No problem @chrisjsewell. I thought about my question, and realize it might a redundant enhancement. Seeing how you envisioned the workflow writing Latex in the markdown cell vs the raw cell is a small difference.

I might take you up on the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants