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 rendering ? #20

Open
sylvaticus opened this issue May 21, 2024 · 5 comments
Open

PDF rendering ? #20

sylvaticus opened this issue May 21, 2024 · 5 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@sylvaticus
Copy link

Ok, I may look a dinosaur, but sometimes a PDF is useful :-)
Is it possible to render the book as a single PDF ?

@juliohm
Copy link
Member

juliohm commented May 21, 2024

Never tried, but you should be able to render to PDF with quarto render --to pdf as explained in the Quarto docs:

https://quarto.org/docs/books

Can you give it a try?

@juliohm juliohm added the question Further information is requested label May 21, 2024
@juliohm
Copy link
Member

juliohm commented May 22, 2024

I believe it is possible as explained in the link above. Closing the issue.

@juliohm juliohm closed this as completed May 22, 2024
@sylvaticus
Copy link
Author

hmmm... not straightforward.... running it I got the following error in the final step latex -> PDF conversion, apparently concerning the sole gif image of the book :

Rendering PDF
running xelatex - 1
  This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2022/dev/Debian) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode
  
updating tlmgr

updating existing packages
ERROR: 
compilation failed- error
LaTeX Error: Cannot determine size of graphic in images/juliahearts.gif (no B
oundingBox).

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.536 ...ght=\textheight]{images/juliahearts.gif}}

A PDF of a few pages is actually produced, but most figures are half out of page... perhapas one needs to adjust some quarto configuration....

index.pdf

@juliohm
Copy link
Member

juliohm commented May 22, 2024

Thanks for trying it.

PRs are welcome to fix the PDF output. It seems like a Quarto + Julia limitation, plus issues with image formats.

@juliohm juliohm reopened this May 22, 2024
@juliohm juliohm added enhancement New feature or request help wanted Extra attention is needed and removed question Further information is requested labels May 22, 2024
@juliohm
Copy link
Member

juliohm commented Feb 6, 2025

I've updated the Quarto settings to use the newest Julia engine.

The PDF option now triggers an internal error that I reported in Quarto:

quarto-dev/quarto-cli#12038

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants