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 Template โ€” Part 1
    • ๐Ÿ”ท What is Quarto Markdown?
    • ๐Ÿ”ท Difference between Markdown and Quarto Markdown
    • ๐Ÿ”ท Introduction
      • - Example 1:
  • Headings and Text
    • - Example 2:
    • Level 2 Heading
      • - Example 3:
      • Level 3 Heading
      • - Example 4:
      • - Example 5:
    • ๐Ÿ”ท Lists
      • - Example 6:
    • Bulleted List:
      • - Example 7:
    • Numbered List:
    • ๐Ÿ”ท Links and Images
      • - Example 8:
    • Link:
      • - Example 9:
    • Image:
      • - Example 10:
  • Tables
    • ๐Ÿ”ท Equations with LaTeX
      • ๐Ÿ”ท Inline Equation:
      • - Example 11:
      • ๐Ÿ”ท Block Equation:
      • - Example 12:
    • ๐Ÿ”ท Code
      • ๐Ÿ”ท Block in R:
      • - Example 13:
      • ๐Ÿ”ท Block in Python:
      • - Example 14:
    • ๐Ÿ”ท Conclusion
  • ๐Ÿ”— Useful Links

๐Ÿ“˜ ๐Ÿ‘จโ€๐Ÿ’ป ๐Ÿ“„ Quarto Markdown Template โ€” Part 1

programming
Quarto
article
Quarto Markdown is a powerful extension of the Markdown language, developed to create high-quality scientific and technical documents.
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 Template โ€” Part 1

๐Ÿ”ท What is Quarto Markdown?

Quarto Markdown is a powerful extension of the Markdown language, developed to create high-quality scientific and technical documents.
It allows mixing formatted text, executable code (in languages such as R, Python, Julia), mathematical equations with LaTeX, plots, and tables, all in a single .qmd file.

With Quarto you can automatically generate documents in formats such as:

  • Interactive HTML
  • PDF with typographic quality
  • EPUB for eBooks
  • Slides (Reveal.js, Beamer)
  • Interactive presentations, and much more.

๐Ÿ”ท Difference between Markdown and Quarto Markdown

Feature Markdown (.md) Quarto Markdown (.qmd)
Basic text formatting โœ… โœ…
HTML support โœ… โœ…
Equations with LaTeX โŒ (except in some extensions) โœ…
Executable code โŒ โœ… (R, Python, Julia, Observable)
EPUB/PDF/Slides generation โŒ โœ…
YAML support Partial โœ… (extensively used for metadata)
Main focus Simplicity and readability Scientific and technical publishing with code

Summary: Traditional Markdown is great for simple text, while Quarto Markdown is ideal for technical and scientific content that combines text, code, and graphics in a single document.

๐Ÿ”ท Introduction

This is an example of a document written in Markdown with Quarto. It shows how to format text, insert images, write equations, and display code in an elegant and simple way.

- Example 1:

# Headings and Text
  • Visualization:

Headings and Text

- Example 2:

## Level 2 Heading
  • Visualization:

Level 2 Heading

- Example 3:

### Level 3 Heading
  • Visualization:

Level 3 Heading

- Example 4:

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

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

- Example 5:

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

- Example 6:

## Bulleted List:

- Item A
- Item B
  - Subitem B.1
  - Subitem B.2
  • Visualization:

Bulleted List:

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

- Example 7:

## Numbered List:

1. First
2. Second
3. Third
  • Visualization:

Numbered List:

  1. First
  2. Second
  3. Third

๐Ÿ”ท Links and Images

- Example 8:

## Link:


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

Link:

Official Quarto website

- Example 9:

## Image:


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

Image:

Example image

- Example 10:

# Tables

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

Tables

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

๐Ÿ”ท Equations with LaTeX

๐Ÿ”ท Inline Equation:

- Example 11:

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

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

๐Ÿ”ท Block Equation:

- Example 12:

$$
\int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2}
$$
  • Visualization:

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

๐Ÿ”ท Code

๐Ÿ”ท Block in R:

- Example 13:

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

๐Ÿ”ท Block in Python:

- Example 14:

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("Seno")
plt.show()

๐Ÿ”ท Conclusion

This template shows the power of Markdown combined with Quarto to produce clear, scientific, and elegant documents โ€” ready for HTML, PDF, EPUB, or slides.


โ† 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