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
3
votes
2 answers

Call R object from Python with r. in a Quarto document

I try to call an R object from Python inside a Quarto document: --- title: "pandas" format: html jupyter: python3 --- ```{r} data("penguins", package = "palmerpenguins") ``` ```{python} penguins=r.penguins penguins ``` When I execute the chunks…
abichat
  • 2,317
  • 2
  • 21
  • 39
2
votes
0 answers

Conditional Content directives appearing in output when using quarto and gt

I am trying to create a document which rotates a gt() generated table into landscape when rendered as a pdf. Using conditional content works but I am getting 'garbage' in the output. For example when rendering as html I see a spurious back tick at…
Terry
  • 21
  • 2
2
votes
1 answer

Referring to an executable code block in Quarto

Is there a way to label and refer to an executable code chunk in Quarto? I have the following .qmd file which when ran through quarto render fails to label the executable code chunk. --- title: "My document" format: pdf: colorlinks:…
Spacedman
  • 92,590
  • 12
  • 140
  • 224
2
votes
0 answers

How to keep consistent colors (set by theme) in R markdown document across multiple ggplot2 plots for discreet variable with changing set of levels

I'm trying to understand theming in Quarto html documents. First I set up theme in YAML. Then setup thematic by running thematic::thematic_rmd(). But when i filter out one of the levels of factor, and use…
2
votes
2 answers

Quarto PDF: Adjust margins of captions in SUB-figures of figures

I'm using Quarto and rendering to PDF. I have figures with sub-figures. The captions of the sub-figures are lengthy (many words). The problem is that the sub-figure captions are not separated in the PDF. Here's an illustration of the problem; notice…
John K. Kruschke
  • 413
  • 3
  • 13
2
votes
1 answer

Foldable Text in Quarto

I'm trying to add a foldable abstract box to my Quarto website. It seems like this functionality exists for code and I'm hoping to add a button after my publications where if clicked will unfold the abstract. Is there something else this would be…
EconMatt
  • 339
  • 2
  • 7
2
votes
0 answers

How do I set up ggplot dimensions to automatically match the Quarto Tufte layout (plot area in body column, legend area in margin column)?

I use Quarto for my laboratory notebooks (my handwriting isn't very readable). I find the Tufte layout very suitable for this purpose. I am trying to automatically fit ggplots into it with a specific idea. My aim is to fit the plot area into the…
2
votes
1 answer

Expand Plotly output in Quarto HTML document to full screen

I would like to make plotly output from a chunk in a Quarto HTML document expandable to a full screen view. bslib seems to offer such a solution via card(full_screen = TRUE,...) which is documented at…
Matt Summersgill
  • 4,054
  • 18
  • 47
2
votes
2 answers

Validating successful execution of R scripts from top to bottom in a clean session without errors

I teach multiple R Courses where students have to submit an analysis they did on a specific dataset. As a first, (small) step towards reproducibility, I want to make sure the script they are submitting ran at least once on their local computer with…
Ratnanil
  • 1,641
  • 17
  • 43
2
votes
2 answers

How to render non-latin scripts like Arabic into pdf format with Quarto?

When I write YAML code in the Quarto config file to include latex commands that render Arabic nicely into pdf it works fine. The same YAML code does not work in Quarto. This is the code that works in plain markdown, but not in the Quarto config file…
jacobhoi
  • 35
  • 5
2
votes
2 answers

Is there a way to format the "horizontal rule" (i.e., ---) output Quarto to .docx?

I've been trying to work out if it's possible to format the "horizontal rule" (as Quarto visual editor calls it) or --- in markdown, when outputting from Quarto .qmd to .docx. The default is thick pale grey line, and I'd like a thin black line if…
ttalVlatt
  • 138
  • 6
2
votes
0 answers

Quarto does not understand \[x^2\] as $$x^2$$

Consider the following quarto document: --- title: "Untitled" format: pdf --- \[x^2\] Can we make quarto to understand that \[x^2\] is equivalent to $$x^2$$.
PaulS
  • 21,159
  • 2
  • 9
  • 26
2
votes
1 answer

Dynamically created plots do not alternate with section headers in Quarto

Currently, I am writing a Quarto Markdown document with an HTML output. In this document I want to show several plots. Each plot should be within an own section in order to facilitate navigation. As I want to reduce boilerplate I create the plots…
Irazall
  • 117
  • 9
2
votes
1 answer

Quarto / pandoc: Can't find source of pandoc error -- pandoc.exe: Cannot decode byte '\x93'

I'm working on a book project in RStudio (2022.07.2 Build 576) using quarto (v. 1.1.189) and pandoc (v. 2.19.2). I am compiling only to HTML. Yesterday, rendering the book failed with the message below, but without any indication where this might…
user101089
  • 3,756
  • 1
  • 26
  • 53
2
votes
1 answer

How do I render a pandas dataframe and a matplotlib chart side-by-side in Quarto using Python?

I'm trying to make a dashboard of plots and tables in Quarto using Python. As a test, I'm trying to get a pandas dataframe to render side-by-side with a matplotlib chart. The alignment is off, layout seems to work fine but layout-ncol doesn't seem…
BLyons
  • 21
  • 1