Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.43 KB

template.md

File metadata and controls

45 lines (29 loc) · 1.43 KB

Document type

Ce format est un format utile pour publier du markdown vers du HTML et/ou du PDF

Maths

Voici un bloc mathématique (TeX display math) :

\[ \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) \]

Cette expression $\sum_{i=1}^n X_i$ est inlinée (TeX inline math).

Paragraphes custom avec classes CSS et id

::: {#special .bg-custom} Ceci est un fenced div, utilisable avec l'extension fenced_divs, activée par défaut. Doit commencer par au moins 3 semicolons :::

[This is some text]{.class key="val"}

Publier ce document en PDF

En rajoutant le numéro de ligne, on peut créer un lien vers une ligne du block de code avec l'ancre #mycode-{numero de ligne}

#Ceci est un commentaire
pandoc -f markdown+tex_math_double_backslash -t html5 -o template.pdf template.md --mathml --css=style.css

Publier ce document en HTML

#Ceci est un commentaire
pandoc -f markdown+tex_math_double_backslash -s -t html5 -o template.html template.md --mathml --css=style.css