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
2
votes
1 answer

How can I customize page sizes in Quarto's docx output to have different dimensions for individual pages in R?

I am using Quarto in R to generate a docx output. However, I would like to have different page sizes (width and height) for individual pages, allowing me to customize the dimensions according to my needs. Currently, Quarto applies a consistent page…
2
votes
2 answers

How to achieve code reusability in Quarto Markdown (qmd) similar to R Markdown's chunk reusability?

I am attempting to render Quarto markdown (qmd), and in my qmd file, I aim to reuse a code chunk multiple times. Specifically, I wish to execute a code cell with the label label: package-import without displaying its code (i.e. echo: false) for the…
Carlos Luis Rivera
  • 3,108
  • 18
  • 45
2
votes
1 answer

Automating the creation of Rmarkdown/Xaringan Presentation slides

I have over 500 images i will like to display on a screen with some text ( image names etc). the slide format for each image will be the same. Is it possible to automate the creation of individual slide with each image from a list? this is what i…
Hammao
  • 801
  • 1
  • 9
  • 28
2
votes
1 answer

Highlight code lines inside two column layout

I would like to highlight the code line col_names = TRUE in the following revealjs using the extension codefocus, however the highlighted code disappears when using .fragments in combination with codefocus which is not what I want. Does anybody have…
Julian
  • 6,586
  • 2
  • 9
  • 33
2
votes
1 answer

Repeat title slide at end of reveal.js presentation

I'd like to repeat my title slide at the end of my quarto reveal.js presentation. I'm looking for a command like title-slide or something other. Thanks
JBF
  • 35
  • 5
2
votes
1 answer

Picture/Logo in Header Quarto qmd to pdf

I want to place a logo in the header of the first page of an article(documentclass: scrartcl), but I want the header to change from the second page onward. I have tried the following solution: --- title: "Logo in Header" format: pdf: …
chonasson
  • 23
  • 5
2
votes
2 answers

Convert dataframe to markdown table in Quarto

I would like to convert a dataframe to a markdown table to use in html Quarto. We could use the simplermarkdown package with md_table to convert a dataframe to a markdown table. But the problem is that the output of the markdown is not converted to…
Quinten
  • 35,235
  • 5
  • 20
  • 53
2
votes
0 answers

Compatibility of code annotation and "collapse: TRUE" in Quarto

If I have a R code block, ```{r} #| collapse: TRUE 1+1 mean(c(1,2,3)) summary(mtcars) ``` then the output and code are integrated in the same block. Moreover, the output is placed "in between" each new…
heoof123
  • 55
  • 4
2
votes
1 answer

How to justify abstract text in Quarto?

I am currently writing a paper for academic purposes and, naturally, I've added an abstract using the abstract option in the YAML header. I know that you can use the following code (see below) to align text in Quarto, but that does not seem to apply…
2
votes
0 answers

How do I change the Body Width of the content box of a slide in Quarto

This is driving me crazy. It's just a basic example. This is the Quarto code. ```{r} #| echo: true library(tidyverse) library(skimr) ``` ```{r} #| echo: true skim(diamonds) ``` The output I get is: The question is: How do I extend the width of…
user23438
  • 445
  • 3
  • 11
2
votes
0 answers

How to improve efficiency of conditional code block in Markdown (Quarto) with Python?

I have a Markdown document with code blocks in different formats depending on the output format. Here is an example: ::: {.content-visible when-format="html"} ```{python} # | label: fig-scores fig = plot_scores(grammar_dict) fig.show() # html…
2
votes
1 answer

How can I remove the horizontal line that is added when printing huxtable in callout-block in Quarto v1.3?

This is a follow-up question from this question, where I asked how to suppress bootstrap-layouting of tables in quarto v1.3. The solution was to add #| output: asis to the chunk-options and then add |> print_html() to the end of the code. This works…
DStuder
  • 45
  • 5
2
votes
1 answer

Is there a way to override bootstrap-styling for tables in Quarto v1.3?

I'm using Quarto to create a website which contains a lot of tables. Because I want the tables to have a specific look, I use huxtable to add borders. Take the following as an example: ```{r} t1 = matrix(c("", "menu", "", "", "",…
DStuder
  • 45
  • 5
2
votes
1 answer

How to force Quarto R files to be displayed using RMarkdown style?

R Markdown in VSCode has several nice features - it's syntax colouring is more efficient, it provides little additions like colour pickers for named or rob/hex colours. It would be cool if the same would be available in Quarto - for *.qmd files. In…
szymekD
  • 61
  • 4
2
votes
1 answer

How to zoom on graph in slide revealjs Quarto?

I would like to zoom on the graph when I click on this slide. I should be like an animation. Here is some reproducible code: --- title: "Zoom on graph in slide" format: revealjs --- ## Start - I would like to zoom to the graph clicking on this…
Quinten
  • 35,235
  • 5
  • 20
  • 53