Questions tagged [quarto]

Quarto is an open-source scientific and technical publishing system built on Pandoc

Quarto is an open-source scientific and technical publishing system built on Pandoc

  • Create dynamic content with Python, R, Julia, and Observable.
  • Author documents as plain text markdown or Jupyter notebooks.
  • Publish high-quality articles, reports, presentations, websites, blogs, and books in HTML, PDF, MS Word, ePub, and more.
  • Author with scientific markdown, including equations, citations, crossrefs, figure panels, callouts, advanced layout, and more.

Website: https://quarto.org/

813 questions
5
votes
1 answer

Create a sticky table header in Quarto as in RMarkdown

I have been trying to render a sticky table header from the table1 R package in Quarto as I have been able to successfully do in RMarkdown. However, Quarto doesn't seem to be recognizing my .css file or (more likely) I am missing something. I am…
kyle-G
  • 51
  • 5
5
votes
2 answers

Quarto: Running different R code in dependency of the output format

I have a qmd Quarto file with different output formats, html and pdf. My goal is, to generate graphics in dependence of the output format. How can I detect in an R cell, if the processing output format is html or pdf? A simple if statement would be…
5
votes
1 answer

Changing page orientation in word using Quarto?

Is there a way of changing the page orientation for specific segments of a document when using Quarto and rendering to Word? The ideal approach would be something similar to BLOCK_LANDSCAPE_START/BLOCK_LANDSCAPE_STOP from officedown. But also…
edvinsyk
  • 160
  • 6
5
votes
0 answers

How to add flexdashboard style valueBox in Quarto?

I have a Quarto qmd file with the below code to display a valueBox. --- title: "My Dashboard" output: flexdashboard::flex_dashboard: orientation: rows --- ```{r setup, include=FALSE} library(dygraphs) library(flexdashboard) ``` ###…
apprunner2186
  • 217
  • 1
  • 6
5
votes
1 answer

Match ggplot2 font to Rmd/Qmd html theme

I'm looking for a general way to automatically match the font of a ggplot with the font used by the html's theme. In the code below, I'd like to detect that the 'yeti' theme uses the 'Open Sans' font for body text. Similarly, if the theme was…
teunbrand
  • 33,645
  • 4
  • 37
  • 63
5
votes
2 answers

Change Title/Headings Font in Quarto PDF Output

When RMarkdown .rmd documents are knitted as PDF, the text body as well as the title, subtitle and headings are rendered in the same LaTeX standard font. When rendering a Quarto .qmd document as PDF, the font for the text body remains the same, but…
fgeeri
  • 53
  • 1
  • 6
5
votes
1 answer

Display chunk options in output Quarto

Is there a way to include the chunk options in the output? For instance, in this case: --- title: "Untitled" format: html editor: visual --- ```{r} #| code-fold: true #| label: example 1 + 1 ``` How to get #| code-fold: true #| label: example in…
Maël
  • 45,206
  • 3
  • 29
  • 67
5
votes
0 answers

Setting working directory for interactive computations (ie., not render) in a Quarto document

Is there a way to reproduce the functionality of knitr::opts_knit$set(root.dir = '/path/to/dir') from Rmarkdown (which does work in Quarto as well, when ran from a chunk) but straight from the YAML block? Something like: --- knitr: options: …
Dijkie85
  • 1,036
  • 8
  • 21
5
votes
1 answer

HTML Preview Not Working With Quarto-Generated HTML File

I am trying to update my portfolio website with new Quarto-generated HTML files rather than my older RMarkdown-generated HTML files. I have rendered these updated files and they look great! However, when I have uploaded this HTML to my GitHub Pages…
5
votes
1 answer

How do I increase the width of the content column in Quarto

I have a quarto html page with a sidebar and a table-of-contents (i.e. a 3 column page). I would like to increase the default-width of the content column (the central column) which is now fixed at ~950px. How do I do that? quarto.yml project: …
5
votes
3 answers

Can I render a .html and a .pdf presentation in the same .qmd?

I have been working with Quarto in RStudio to do some presentations. I like to do the presentations with revealjs and than convert the .html output to .pdf to send to my students. Can I render both formats at the same time? --- title: "R and…
RxT
  • 486
  • 7
  • 17
5
votes
1 answer

"File not found error" when verifying Quarto installation

I installed Quarto 1.0.38, Python 3.10, Julia 1.7.3, Visual Studio Code and the Julia, Quarto & Python extensions on Windows 11 following the instructions in https://quarto.org/docs/computations/julia.html. When I execute quarto check jupyter to…
Kobus Herbst
  • 415
  • 2
  • 12
5
votes
1 answer

How can I specify global and local chunk options for a quarto pdf book?

I am trying to create a PDF book using Quarto. In particular, I want to know if there is a way to specify the global chunk options, which would be used for all the chunks in all the qmd pages. The global option is echo = TRUE (I think this syntax…
Eva
  • 663
  • 5
  • 13
5
votes
2 answers

Put 2 chunks of code side by side in RMarkdown or Quarto

How can I put 2 chunks of code side by side in the output file of RMarkdown or Quarto ? Code library(dplyr) mtcars %>% select(gear) library(dplyr) select(mtcars, gear) Desired layout in the PDF or HTML file
Julien
  • 1,613
  • 1
  • 10
  • 26
5
votes
1 answer

Does the copy code to clipboard option exist in R markdown

does the button to copy to cliboard exist with R markdown? It exists in Quarto (with the code-copy option) and with pkgdown websites but is it possible to add it to a R markdown or R notebook document?
olivroy
  • 548
  • 3
  • 13