NO PRODUCT SETTINGS FOUND FOR:
documentation

Gentle remainder that the product name comes from the `origin` first subfolder (after `/pms` ).

📚 Complete Fragment Types Showcase

This document demonstrates all available fragment types in the Pedagogical Message (PM) system. Each fragment type is shown with its markdown syntax and rendered output.


📝 Text Fragments

Headings (h1_, h2_, h3_, h4_)

This is an H1 Heading

This is an H2 Heading

This is an H3 Heading

This is an H4 Heading

Paragraphs (p_)

This is a regular paragraph. It can contain bold text, italic text, and even inline code. Paragraphs are the most basic fragment type and are created automatically from regular text.

Here's another paragraph with a link to example.com and some mathematical notation like $x^2 + y^2 = z^2$.

Blockquotes (q_)

This is a blockquote fragment. It's perfect for highlighting important information or quotes.

Lead Paragraphs

This paragraph has a special lead class that makes it stand out as an introduction or summary.

Styled Paragraphs

This paragraph has a secondary background color.

This paragraph has a white background and no margin.


📋 List Fragments

Unordered Lists (ul_)

  • First item
  • Second item
  • Nested item 2.1
  • Nested item 2.2
  • Third item

Ordered Lists (ol_)

    1. First step
    2. Second step
    3. Sub-step 2.1
    4. Sub-step 2.2
    5. Third step

Line-by-line (lbl_) — progressive reveal

A special list that reveals items one-by-one with buttons. You can pre-reveal the first N items using an attribute.

Example A (default: start hidden):

  • Première ligne
  • Deuxième ligne
  • Troisième ligne

Example B (reveal first 1):

  • Ligne A
  • Ligne B
  • Ligne C

Example C (reveal first 2 using reveal-first):

  • Étape 1
  • Étape 2
  • Étape 3

🎯 Interactive Fragments

Radio Buttons (radio_)

Which programming language are we learning?

Multiple Correct Answers

Which of these are prime numbers?

Math Input (maths_)

Interactive Graph (graph_)


📊 Data & Visual Fragments

Tables (table_)

Column 1Column 2Column 3
Data 1Data 2Data 3
Value AValue BValue C
Item XItem YItem Z

Complex Table

StudentMathPhysicsChemistryAverage
Alice95889291.7
Bob87918587.7
Charlie92959092.3

🖼️ Media Fragments

Images (image_)

Computer desk with old monitor
Computer desk with old monitor

SVG Graphics (svg_)

Longitude (°) Latitude (°) 8.52 8.642 8.763 8.885 9.006 9.128 9.25 9.371 9.493 9.614 41.342 41.432 41.522 41.612 41.703 41.793 41.883 41.973 42.063 42.153 42.243 42.333 42.423 42.513 42.603 42.694 42.784 42.874 43.054
Corsica Grid Map

Inline SVG with Custom Classes

Corsica No Grid

💻 Code Fragments

Code Blocks (code_)

# Python code example
def calculate_area(width, height):
    """Calculate the area of a rectangle."""
    return width * height

# Using the function
area = calculate_area(10, 5)
print(f"The area is: {area}")
// JavaScript example
const greet = (name) => {
    return `Hello, ${name}!`;
};

console.log(greet("World"));

Interactive Code (codex_)


📈 Mathematical Fragments

Table of Variations (tabvar_)

class: table-variations
x_values: ["-∞", -2, 0, 2, "+∞"]
f_variations: ["↗", "max", "↘", "min", "↗"]
f_values: ["-∞", 4, 0, -4, "+∞"]
function: "f(x) = x³ - 3x"

🎨 Special Fragments

Horizontal Rule / Divider (hr_)

Content before the divider.


Content after the divider.

Layout directive (columns)

This paragraph will appear next to the SVG on small screens and up.

Corsica Grid Map

Table of Contents (toc_)

The [TOC] marker at the beginning of this document generates an automatic table of contents based on all headings.

🔧 Fragment Attributes

Custom CSS Classes

You can add custom CSS classes to most fragments using the attribute syntax:

This paragraph has multiple custom classes applied.

Nested Content

This blockquote contains bold text, italic text, and even math: $e^{i\pi} + 1 = 0$

📋 Combining Fragments

Fragments can work together to create rich educational content:

Example Problem

Calculate the area of a rectangle with width 8 and height 5.

width = 8
height = 5
area = width * height
print(f"Area = {area}")

What is the result?

Solution: The area of a rectangle is width × height = 8 × 5 = 40

📝 Notes

  • All fragments are automatically validated when the PM is built
  • Fragment types are defined in the FType enum
  • Each fragment can have associated data and CSS classes
  • Interactive fragments track user responses and can provide feedback
  • The system supports both HTML and markdown input formats

This showcase demonstrates the flexibility and power of the PM fragment system for creating rich, interactive educational content.

Maths.pm ne collecte aucune donnée.
Aucun cookie collecté, aucune ligne de log d'écrite, pas l'ombre d'une base de données distante - nihil omnino.
Toutes les exécutions de code se font localement. Nous expliquons notre démarche sur cette page.

Limites de confidentialité (impact de l'hébergeur)
Aspects technologiques
Chez Pointcarre.app, nous nous engageons en faveur des communs numériques.

Ressources pédagogiques
Logiciels Libres & Infrastructure 🇫🇷

Codes sources
Logo licence AGPLv3
Contenus
Logo licence Creative Commons

Maths.pm, par

pointcarre.app