quarto-dev / quarto-dev/quarto-cli

Book: PDF output with SVG images

Open
#997 18 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

books enhancement
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

I've read #196 and the linked documentation but still do not know how to proceed.

We're currently aiming to switch from a large bookdown book to quarto.

For the PDF output we get errors like

compilation failed- error
LaTeX Error: Cannot determine size of graphic in ./images/learner.svg (no Bou
ndingBox).

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.1636 \includegraphics{./images/learner.svg}

The source references the file via

```{r 02-basics-001, echo = FALSE}
knitr::include_graphics("images/ml_abstraction.svg")
```

This works with bookdown but quarto does not seem to take it directly.

Can quarto already handle such cases dynamically?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the PDF render using the shown knitr::include_graphics call and the referenced SVG files, then inspect the resulting LaTeX error about a missing BoundingBox. Determine whether Quarto already supports this input; done means documenting the supported behavior or identifying the required rendering change.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex, r
Domain
build-system, documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.