Marcelliniโ€™s Blog
  • Home
  • ๐Ÿงญ Explore
    • ๐Ÿท๏ธ Tags
    • ๐Ÿ“‚ Categories
  • ๐Ÿง  Exact Sciences
    • ๐Ÿงฎ Mathematics
    • ๐Ÿ“Š Statistics
    • ๐Ÿ”ญ Physics
    • ๐Ÿ’ป Programming
  • ๐Ÿ“ Personal Blog
    • ๐Ÿ“ Personal Blog
    • ๐Ÿ‘ค About Me and the Blog
  • ๐Ÿ“˜ Courses
    • ๐Ÿงฎ Math Courses
    • ๐Ÿ“Š Statistics Courses
  • ๐Ÿ—บ๏ธ Site Map
  • PT ๐Ÿ‡ง๐Ÿ‡ท
  • Contact

On this page

  • ๐Ÿ“˜ ๐Ÿ‘จโ€๐Ÿ’ป ๐Ÿ“„ Quarto Markdown Templates โ€” Complete Guide
    • ๐Ÿ”ท What is Quarto Markdown?
    • ๐Ÿ”ท Difference Between Markdown and Quarto Markdown
    • ๐Ÿ”ท Essential Markdown Syntax (with Quarto)
      • Headings
  • Level 1 Heading
    • Level 2 Heading
      • Level 3 Heading
      • Emphasis
      • Quotations
    • ๐Ÿ”ท Lists
      • Bulleted List:
      • Numbered List:
    • ๐Ÿ”ท Links e Images
      • Link
      • Image
    • ๐Ÿ”ท Tables
    • ๐Ÿ”ท Equations with LaTeX
      • ๐Ÿ”ท Inline Equation:
      • ๐Ÿ”ท Block Equation:
    • ๐Ÿ”ท ๐Ÿง‘โ€๐Ÿ’ป Code Blocks (Executable)
      • Python
      • R
    • ๐Ÿ”ท ๐Ÿ’ป Display Code Without Execution in Quarto (Static)
    • ๐Ÿ”ท ๐Ÿ’ก Callouts (Highlight Boxes)
      • ๐Ÿ”” Note
      • ๐Ÿ’ก Tip
      • โš ๏ธ Warning
      • ๐Ÿšซ Caution
      • ๐Ÿ“ฃ Important
    • ๐Ÿ”ท ๐ŸŽฏ Useful Emojis (Quick Reference)
    • ๐Ÿ”ท โœ… Conclusion
  • ๐Ÿ”— Useful Links

๐Ÿ“˜ ๐Ÿ‘จโ€๐Ÿ’ป ๐Ÿ“„ Quarto Markdown Templates โ€” Complete Guide

programming
Quarto
article
Markdown
Quarto Markdown is a powerful extension of Markdown for creating high-quality scientific and technical documents, combining text, code, equations, graphics, and tables in a single reproducible workflow.
Author

Blog do Marcellini

Published

June 29, 2025


โ† Back to the Programming Reading Guide ๐Ÿ‘จโ€๐Ÿ’ป

โ† Back to the Quarto Section ๐Ÿ“„

โ† Back to the Programming Section ๐Ÿ‘จโ€๐Ÿ’ป


Quarto

๐Ÿ“˜ ๐Ÿ‘จโ€๐Ÿ’ป ๐Ÿ“„ Quarto Markdown Templates โ€” Complete Guide

This post consolidates, in a single place, the content from โ€œMarkdown Model with Quarto โ€” Part 1โ€ and โ€œPart 2โ€, removing repetitions and organizing examples in a smoother way.

๐Ÿ”ท What is Quarto Markdown?

Quarto Markdown extends traditional Markdown for scientific and technical communication.
It allows mixing formatted text, executable code (R, Python, Julia, Observable), LaTeX equations, graphics, and tables in a .qmd file, automatically generating:

  • Interactive HTML
  • PDF with typographic quality
  • EPUB (eBooks)
  • Slides (Reveal.js, Beamer)
  • Websites and blogs

๐Ÿ”ท Difference Between Markdown and Quarto Markdown

Feature Markdown (.md) Quarto Markdown (.qmd)
Basic text formatting โœ… โœ…
HTML support โœ… โœ…
LaTeX equations โŒ (limited or via extensions) โœ… (native)
Executable code โŒ โœ… (R, Python, Julia, Observable)
EPUB/PDF/Slides generation โŒ โœ…
YAML support Partial โœ… (metadata and project configuration)
Target audience Simple text Scientific/technical publications with code

โœ… Summary: use traditional Markdown for simple text; use Quarto Markdown when you need code, math, and visualizations in reproducible documents.


๐Ÿ”ท Essential Markdown Syntax (with Quarto)

Headings

# Level 1 Heading
## Level 2 Heading
### Level 3 Heading

Visualization:

Level 1 Heading

Level 2 Heading

Level 3 Heading

Emphasis

You can use **bold**, *italic*, or both: ***bold and italic***.

Visualization:
You can use bold, italic, or both: bold and italic.

Quotations

You can also create quotations:

> Mathematics is the language with which God has written the universe. โ€” Galileo
  • Visualizaรงรฃo:

Mathematics is the language with which God has written the universe. โ€” Galileo


๐Ÿ”ท Lists

Bulleted List:

- Item A
- Item B
  - Subitem B.1
  - Subitem B.2

Visualization:

  • Item A
  • Item B
    • Subitem B.1
    • Subitem B.2

Numbered List:

1. First
2. Second
3. Third

Visualization:

  1. First
  2. Second
  3. Third

๐Ÿ”ท Links e Images

Link

[Official Quarto website](https://quarto.org)

Visualization:
Official Quarto website

Image

![Example image](/posts/programming/images/exemplo.png){width=20% style="margin-bottom: 2rem;"}

Visualizaรงรฃo:

Example image

๐Ÿ”ท Tables


| Name     | Age | City        |
|-|-|-|
| Alice    | 25  | Sรฃo Paulo   |
| Bernardo | 30  | Salvador    |
| Carla    | 22  | Curitiba    |

Visualization:

Name Age City
Alice 25 Sรฃo Paulo
Bernardo 30 Salvador
Carla 22 Curitiba

๐Ÿ”ท Equations with LaTeX

๐Ÿ”ท Inline Equation:

The famous Euler identity: $e^{i\pi} + 1 = 0$

Visualization:
The famous Euler identity: \(e^{i\pi} + 1 = 0\)

๐Ÿ”ท Block Equation:

$$
\int_0^\infty e^{-x^2} \, dx = rac{\sqrt{\pi}}{2}
$$

Visualization:

\[ \int_0^\infty e^{-x^2} \, dx = rac{\sqrt{\pi}}{2} \]


๐Ÿ”ท ๐Ÿง‘โ€๐Ÿ’ป Code Blocks (Executable)

Python

import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(0, 2*np.pi, 100)
plt.plot(x, np.sin(x))
plt.title("Funรงรฃo Seno")
plt.show()

R

x <- seq(0, 2*pi, length.out = 100)
plot(x, sin(x), type = "l", col = "blue", lwd = 2)


๐Ÿ”ท ๐Ÿ’ป Display Code Without Execution in Quarto (Static)

To show code without executing it, use a regular fenced code block (three backticks) and specify a language for syntax highlighting (for example, python).
You can combine it with collapsible callouts for better organization.

::: {.callout-note collapse=true title="๐Ÿ’ก Static code with syntax highlighting (collapsed content)"}

```python
# Example of Circle Area Calculation
import math

raio = 5
area = math.pi * raio**2
print(f"The circle area is {area:.2f}")
```

:::

Visualization:

Note๐Ÿ’ก Static code with syntax highlighting (collapsed content)
# Example of Circle Area Calculation
import math

raio = 5
area = math.pi * raio**2
print(f"The circle area is {area:.2f}")

๐Ÿ”ท ๐Ÿ’ก Callouts (Highlight Boxes)

Use callouts to emphasize important information:

๐Ÿ”” Note

::: {.callout-note}
This is an informational note.
:::

Visualization:

Note

This is an informational note.

๐Ÿ’ก Tip

::: {.callout-tip}
Tip: use `{.callout-tip}` for best practices.
:::

Visualization:

Tip

Tip: use {.callout-tip} for best practices.

โš ๏ธ Warning

::: {.callout-warning}
Warning: make sure the code is properly indented.
:::

Visualization:

Warning

Warning: make sure the code is properly indented.

๐Ÿšซ Caution

::: {.callout-caution}
Caution: changes in `.qmd` files may overwrite generated `.md` files.
:::

Visualization:

Caution

Caution: changes in .qmd files may overwrite generated .md files.

๐Ÿ“ฃ Important

::: {.callout-important}
Important: Quarto replaces RMarkdown with more modern features!
:::

Visualizaรงรฃo:

Important

Important: Quarto replaces RMarkdown with more modern features!


๐Ÿ”ท ๐ŸŽฏ Useful Emojis (Quick Reference)

  • Tags & Categories: ๐Ÿท๏ธ ๐Ÿ“š ๐Ÿง  ๐Ÿงฎ ๐Ÿ“ˆ ๐Ÿ”ฌ ๐Ÿงช ๐Ÿ’ป ๐Ÿ“Š ๐Ÿงฐ ๐ŸŒ ๐Ÿ“ ๐Ÿ”ง ๐ŸŽ“ ๐Ÿš€ ๐Ÿ“ฐ
  • Education: ๐Ÿ“š ๐Ÿง  โœ๏ธ ๐Ÿ“– ๐Ÿซ ๐Ÿ“ ๐Ÿ“Š ๐ŸŽฏ
  • Computing: ๐Ÿ’ป ๐Ÿ–ฅ๏ธ ๐Ÿ“ฑ โŒจ๏ธ ๐Ÿ–ฑ๏ธ โš™๏ธ ๐Ÿ”ง ๐Ÿ”’ ๐Ÿงฎ
  • Statistics & Data: ๐Ÿ“Š ๐Ÿ“ˆ ๐Ÿ“‰ ๐Ÿ“‹ ๐Ÿ”ข ๐Ÿงฎ ๐Ÿ—ƒ๏ธ
  • Mathematics: โž• โž– โœ–๏ธ โž— โˆš โˆ‘ โˆซ โˆž ๐Ÿ“ ๐Ÿ“ ๐ŸŽฒ
  • Science: ๐Ÿงช ๐Ÿ”ฌ โš—๏ธ ๐Ÿงซ ๐ŸŒก๏ธ ๐Ÿงฌ ๐Ÿš€ ๐Ÿงฒ ๐ŸŒŒ
  • Time/Organization: ๐Ÿ•’ ๐Ÿ“… โณ ๐Ÿ“Œ ๐Ÿ—“๏ธ ๐Ÿ—‚๏ธ ๐Ÿ“ฆ
  • Navigation: ๐ŸŒ ๐Ÿงญ ๐Ÿ“ ๐Ÿ—บ๏ธ
  • Highlight/Engagement: ๐Ÿ’ก โ— โœ… โ“ โš ๏ธ ๐Ÿ› ๏ธ โฑ๏ธ ๐Ÿ“ข ๐Ÿ” ๐Ÿ”Ž ๐Ÿš€ ๐ŸŽ‰ ๐Ÿ‘ ๐Ÿค ๐Ÿค” ๐Ÿ™Œ ๐Ÿ” ๐Ÿ”„ ๐Ÿ’ฌ

๐Ÿ”ท โœ… Conclusion

Quarto Markdown is ideal for creating reproducible, beautiful, and interactive work.
With it, you can produce everything from simple notes to complete scientific reports, keeping everything version-controlled and automated.


โ† Back to the Programming Reading Guide ๐Ÿ‘จโ€๐Ÿ’ป

โ† Back to the Quarto Section ๐Ÿ“„

โ† Back to the Programming Section ๐Ÿ‘จโ€๐Ÿ’ป


๐Ÿ” Back to Top


Blog do Marcellini โ€” Exploring Mathematics, Statistics, and Physics with Rigor and Beauty.

Note

Created by Blog do Marcellini with โค๏ธ and code.

๐Ÿ”— Useful Links

  • ๐Ÿง‘โ€๐Ÿซ About the Blog
  • ๐Ÿ’ป Project GitHub
  • ๐Ÿ“ฌ Contact via Email

ยฉ 2025 - Marcelliniโ€™s Blog

 

๐Ÿ“ฌ Contact via Email
๐Ÿ’ป GitHub Repository