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

Use of # header level 1 as notebook title ? #1901

Open
t-fourcade-isp opened this issue Nov 4, 2022 · 2 comments
Open

Use of # header level 1 as notebook title ? #1901

t-fourcade-isp opened this issue Nov 4, 2022 · 2 comments

Comments

@t-fourcade-isp
Copy link

Hi,

In order to have pdf that have proper title, I currently set it manualy in the notebooks metatada but it is a little bit cumbersome and then the notebook doesn't have a proper name when looking at it in jupyter.

IMO, it would be great if it was possible to use markdown cell # header 1 level as title when exporting notebook into latex/pdf. This way both the pdf and jupyter app would like great.

Does anybody know if there is a simple way to do so?

@leodarrigade
Copy link

I agree this would be a useful feature.

There is a pandoc argument --shift-heading-level-by=-1 that would seems to fit exactly that need. See this response on an issue raised on pandoc repo. However, I don't know how to pass this argument to nbconvert.

@t-fourcade-isp
Copy link
Author

Thank you for the tip, I will look into it.

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

2 participants