From b812d5397d7226540877dcdad8ff1a165e55061a Mon Sep 17 00:00:00 2001 From: Vincent Lannurien Date: Sun, 23 Aug 2026 12:28:23 +0200 Subject: [PATCH] initial commit --- .devcontainer/devcontainer.json | 35 +++++++++++++++++++++++++++++ Exercices/main.typ | 40 +++++++++++++++++++++++++++++++++ Exercices/source.md | 1 + 3 files changed, 76 insertions(+) create mode 100644 .devcontainer/devcontainer.json create mode 100644 Exercices/main.typ create mode 100644 Exercices/source.md diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..ecf767a --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,35 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/markdown +{ + "name": "Markdown Editing", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/base:bullseye", + + // Features to add to the dev container. More info: https://containers.dev/features. + // "features": {}, + + // Configure tool-specific properties. + "customizations": { + // Configure properties specific to VS Code. + "vscode": { + // Add the IDs of extensions you want installed when the container is created. + "extensions": [ + "yzhang.markdown-all-in-one", + "streetsidesoftware.code-spell-checker", + "DavidAnson.vscode-markdownlint", + "shd101wyy.markdown-preview-enhanced", + "bierner.github-markdown-preview", + "myriad-dreamin.tinymist" + ] + } + } + + // Use 'forwardPorts' to make a list of ports inside the container available locally. + // "forwardPorts": [], + + // Use 'postCreateCommand' to run commands after the container is created. + // "postCreateCommand": "uname -a", + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + // "remoteUser": "root" +} diff --git a/Exercices/main.typ b/Exercices/main.typ new file mode 100644 index 0000000..1c60d8e --- /dev/null +++ b/Exercices/main.typ @@ -0,0 +1,40 @@ +#import "@preview/minicise:0.1.0": sheet +#import "@preview/mitex:0.2.7": mitex +#import "@preview/cmarker:0.1.10" + +#show: sheet.with( + title: [Exercices de cours], + course: [Objets connectés et robotique], + author: [Vincent Lannurien], + date: [2026], + semester: [L3 IFA, S5], +) + +#align(center)[ + #block( + width: 66%, + fill: luma(230), + inset: 8pt, + radius: 4pt + )[ + #underline[*Consignes*] + + #align(left)[ + - Aucun document autorisé. + - Tout dispositif électronique interdit. + ] + ] + + #v(15em) + + // input file + #let md = read("source.md") + + // hugo <-> typst math syntax + #let md = md.replace("\\[", "$$") + #let md = md.replace("\\]", "$$") + #let md = md.replace("\\(", "$") + #let md = md.replace("\\)", "$") + + #cmarker.render(md, math: mitex) +] diff --git a/Exercices/source.md b/Exercices/source.md new file mode 100644 index 0000000..4999b9b --- /dev/null +++ b/Exercices/source.md @@ -0,0 +1 @@ +**Mettre à jour le fichier Markdown** -- `source.md`