Edit a Quarto or R Markdown file
You can use Archimedes to edit a .qmd or .rmd file, then use Quarto or RStudio to build the finished document.
- In Archimedes, choose File → Open… and pick your Quarto (
.qmd) or R Markdown (.rmd) file. - Edit the text and equations. Leave the settings between the
---lines at the top and any code blocks in place. - Choose File → Save to save your edits in the original file.
Put a LaTeX equation on its own line
Leave a blank line before the equation and put two dollar signs on either side. To try the whole example, save it as a plain text file named example.qmd, then open it in Archimedes.
---
title: "Sample mean"
format: html
---
The sample mean is the sum of the observations divided by the sample size.
$$ \bar{x} = \frac{1}{n}\sum_{i=1}^{n} x_i $$Render a Quarto or R Markdown document
With Quarto installed, open Terminal, go to the folder where you saved example.qmd, and run quarto render example.qmd to create an HTML page. For an R Markdown file, reopen it in RStudio and click Knit.