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

mdbook-pdf theme #5

Closed
seanmrnda opened this issue Dec 29, 2022 · 7 comments
Closed

mdbook-pdf theme #5

seanmrnda opened this issue Dec 29, 2022 · 7 comments

Comments

@seanmrnda
Copy link

Does it have themes that we can use for the output pdf?

@HollowMan6
Copy link
Owner

Hi! mdbook-pdf is highly dependent on the generated html, so you can set default-theme in [output.html] to change the output pdf theme.

https://rust-lang.github.io/mdBook/format/configuration/renderers.html#html-renderer-options

@seanmrnda
Copy link
Author

Thanks!

@seanmrnda
Copy link
Author

Hi! mdbook-pdf is highly dependent on the generated html, so you can set default-theme in [output.html] to change the output pdf theme.

https://rust-lang.github.io/mdBook/format/configuration/renderers.html#html-renderer-options

There seems to be a problem with it. It doesn't show the correct theme upon generating a pdf.

@HollowMan6
Copy link
Owner

There shouldn't be any problem. You can check the generated print.html to check if you have set the correct theme.

Also, if you mean changing the background, remember to set print-background = true in [output.pdf] https://github.com/HollowMan6/mdbook-pdf/blob/main/test_doc/book.toml#L23

Hi! mdbook-pdf is highly dependent on the generated html, so you can set default-theme in [output.html] to change the output pdf theme.
https://rust-lang.github.io/mdBook/format/configuration/renderers.html#html-renderer-options

There seems to be a problem with it. It doesn't show the correct theme upon generating a pdf.

@seanmrnda
Copy link
Author

There shouldn't be any problem. You can check the generated print.html to check if you have set the correct theme.

Also, if you mean changing the background, remember to set print-background = true in [output.pdf] https://github.com/HollowMan6/mdbook-pdf/blob/main/test_doc/book.toml#L23

Hi! mdbook-pdf is highly dependent on the generated html, so you can set default-theme in [output.html] to change the output pdf theme.
https://rust-lang.github.io/mdBook/format/configuration/renderers.html#html-renderer-options

There seems to be a problem with it. It doesn't show the correct theme upon generating a pdf.

Oh I missed that, lemme try it real quick. Thanks!

@HollowMan6
Copy link
Owner

Hi! Just released a new version so that we can separate the html theme with the pdf one. https://github.com/HollowMan6/mdbook-pdf/releases/tag/v0.1.4

@HollowMan6
Copy link
Owner

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