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

pdf output #3

Open
lgatto opened this issue Nov 1, 2023 · 3 comments
Open

pdf output #3

lgatto opened this issue Nov 1, 2023 · 3 comments

Comments

@lgatto
Copy link

lgatto commented Nov 1, 2023

I was wondering of a default pdf output was in the pipeline?

For some of my course books, this seems to have become an important feature.

@js2264
Copy link
Owner

js2264 commented Nov 3, 2023

thanks for the suggestion @lgatto . I have added PDF rendering to the BiocBook template. Note that this can double the build time, as the entire content of the book is rendered twice.

You can make the following changes to your own BiocBook-based books to produce PDF: js2264/BiocBookDemo@074ef2f. The resulting PDF file will be in the main folder of the book artifact obtained in the GitHub Actions tab for the biocbook workflow. Let me know if you need further help to locate if.

Note that I am not generally knowledgeable in latex, and there may be lots of imperfections in the produced PDF file. In particular, it seems that references and bibliography are not properly handled. Plus, I do not particularly like the latex template used by default, but I don't know enough to improve it substantially. If you have any suggestion don't hesitate.

@js2264 js2264 closed this as completed Nov 3, 2023
@lgatto
Copy link
Author

lgatto commented Dec 8, 2023

Thanks. What about adding a link to the html version to download the pdf version?

This specific request comes from discussions with students. While the main/latest/official material is the online version (that typically doesn't change much any more), they do like to take notes in addition to the content during classes.

@js2264 js2264 reopened this Dec 8, 2023
@js2264
Copy link
Owner

js2264 commented Dec 8, 2023

I re-open this issue because the BBS seems to lack some dependencies to render a Quarto book as a PDF. This issue is under investigation.

If/when the BBS is able to render a book as a PDF, I'll update the Welcome page to add a section with a link to the PDF version of the book. Note that when rendered (e.g. for the OHCA book - which is not on Bioconductor yet so still possible to render the PDF by Github), the PDF is downloadable from a button on the top left corner, as shown in this screenshot:

image

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