quarto-dev / quarto-dev/quarto-cli

Debug/see individual steps in yaml-knitr-pandoc-lua-tex toolchain

Open
#1,892 1 comment 0 reactions 1 assignee View on GitHub

@jjallaire is already working on this.

Since Aug 15, 2022.

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

Description

Discussed in https://github.com/quarto-dev/quarto-cli/discussions/1756

Originally posted by baptiste August 9, 2022
Is there a way to get more information on the commands that are run by quarto? Specifically, with the previous Rmarkdown workflow I could see exactly what commands were passed to pandoc, which helped a bit debug individual steps in the toolchain (is it a Yaml option passed incorrectly? Is it a pandoc issue? Is it something that knitr produced? etc.)

As a specific example, I'm struggling to set the size of an image and keep the aspect ratio, for latex output. I suspect a combination of pandoc and quarto, but it's hard to tell what's happening.

![](penguins){width=100%}

gives me

\includegraphics[width=1\textwidth,height=\textheight]{penguins.pdf}

(and a stretched image)

while

![](penguins){width=100%,keepaspectratio}

produces

\includegraphics{penguins.pdf}

(this is mostly for the sake of concrete illustration, I'm also interested in the general toolchain debugging question)

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.