Quarto Demo

Quarto Demo

Your Name 2026-01-04

Introduction

This is a basic Quarto document demonstrating key features. Quarto supports markdown, math, and executable code.

Math

Inline math: The quadratic formula is .

Display math:

Code

import numpy as np
import matplotlib.pyplot as plt

np.random.seed(42)
x = np.random.randn(100)
y = 2*x + np.random.randn(100)*0.5

plt.figure(figsize=(6, 4))
plt.scatter(x, y, alpha=0.6)
plt.xlabel("x")
plt.ylabel("y")
plt.title("Linear relationship with noise")
plt.show()

Figure 1: A simple scatter plot

Tables

Table 1: Comparison of methods

Method Accuracy Speed
Baseline 0.72 Fast
Model A 0.85 Medium
Model B 0.91 Slow

Cross-references

See Figure 1 for the visualization and Table 1 for results.

Callouts

[!NOTE]

Quarto supports various callout types: note, warning, tip, caution, important.

[!TIP]

Pro tip

Use quarto preview demo.qmd for live editing.

Inline code

The mean of x is -0.104.

References

Add a references.bib file and cite with [@citation_key].