Compare commits

..

2 Commits

Author SHA1 Message Date
jsz4n
8b3142aa8f add a math example 2025-09-24 19:21:42 +02:00
jsz4n
349d0e0bbc update html conversion 2025-09-24 19:19:26 +02:00
2 changed files with 5 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ for filename in $*
do
echo compiling $filename
file_out=`echo $filename | sed -e 's/\.md/\.html/g'`
sed -e "s|SLIDEHEAD|$headEscapedForSed|g" $filename | pandoc -s --mathjax -t revealjs -o html/$file_out --slide-level=$SLIDE_LEVEL --highlight-style=$HIGHLIGHT_STYLE -V revealjs-url=https://unpkg.com/reveal.js@5.2.0 --template=./templates/template.revealjs --css custom.css
sed -e "s|SLIDEHEAD|$headEscapedForSed|g" $filename | pandoc -s --mathjax="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js?config=TeX-AMS_HTML" -t revealjs -o html/$file_out --slide-level=$SLIDE_LEVEL --highlight-style=$HIGHLIGHT_STYLE -V revealjs-url=https://unpkg.com/reveal.js@5.2.0 --template=./templates/template.revealjs --css=./custom.css --toc --toc-depth=1
if [ -f ./templates/custom.css ]; then
cp -n ./templates/custom.css ./html/custom.css
fi

View File

@@ -33,3 +33,7 @@ import this
for i in range(10):
print("Hello world")
```
# Some math
$$\bar{x}_w = \frac{\sum_{i=1}^n w_i x_i}{\sum_{i=1}^n w_i} $$