-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprikaz_pandoc
46 lines (28 loc) · 4.13 KB
/
prikaz_pandoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
cp slidy.md slidy_kopie.md
sed -i 's/\\iffalse//' slidy_kopie.md
sed -i 's/\\fi//' slidy_kopie.md
# pandoc -t slidy -V slidy-url=../ --css ../my.css --template ../my.slidy -s slidy_kopie.md -o index_h.html --mathjax=http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML
pandoc -t slidy -V slidy-url=../ --css ../my.css?123 --template ../my.slidy -s slidy_kopie.md -o index_h.html --mathjax=https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/MathJax.js?config=TeX-AMS-MML_HTMLorMML
sed -i -e :a -e '/<blockquote>$/N; s/<blockquote>\n/<blockquote>/; ta' index_h.html
sed -i 's/<blockquote><p>Definice (\([^\.]*\))./<blockquote class="definice"><p class="definicename">Definice (\1).<\/p><p>/' index_h.html
sed -i 's/<blockquote><p>Věta\./<blockquote class="veta"><p class="vetaname">Věta.<\/p><p>/' index_h.html
sed -i 's/<blockquote><p>Věta (\([^\.]*\))./<blockquote class="veta"><p class="vetaname">Věta (\1).<\/p><p>/' index_h.html
sed -i 's/<blockquote><p>Důsledek (\([^\.]*\))./<blockquote class="veta"><p class="vetaname">Důsledek (\1).<\/p><p>/' index_h.html
sed -i 's/<blockquote><p>Důsledek\./<blockquote class="veta"><p class="vetaname">Důsledek.<\/p><p>/' index_h.html
sed -i 's/<blockquote><p>Poznámka (\([^\.]*\))\./<blockquote class="poznamka"><p class="poznamkaname">Poznámka (\1).<\/p><p>/' index_h.html
sed -i 's/<blockquote><p>Poznámka\./<blockquote class="poznamka"><p class="poznamkaname">Poznámka.<\/p><p>/' index_h.html
sed -i 's/<blockquote><p>Příklad:/<blockquote class="priklad"><p><span class="prikladname">Příklad: <\/span>/' index_h.html
pandoc -t html --toc --css ../my.css?123 --template ../default.html -s slidy.md -o index.html --mathjax=http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML
sed -i -e :a -e '/<blockquote>$/N; s/<blockquote>\n/<blockquote>/; ta' index.html
sed -i 's/<blockquote><p>Definice (\([^\.]*\))./<blockquote class="definice"><p class="definicename">Definice (\1).<\/p><p>/' index.html
sed -i 's/<blockquote><p>Věta\./<blockquote class="veta"><p class="vetaname">Věta.<\/p><p>/' index.html
sed -i 's/<blockquote><p>Věta (\([^\.]*\))./<blockquote class="veta"><p class="vetaname">Věta (\1).<\/p><p>/' index.html
sed -i 's/<blockquote><p>Důsledek\./<blockquote class="veta"><p class="vetaname">Důsledek.<\/p><p>/' index.html
sed -i 's/<blockquote><p>Důsledek (\([^\.]*\))./<blockquote class="veta"><p class="vetaname">Důsledek (\1).<\/p><p>/' index.html
sed -i 's/<blockquote><p>Poznámka\./<blockquote class="poznamka"><p class="poznamkaname">Poznámka.<\/p><p>/' index.html
sed -i 's/<blockquote><p>Poznámka (\([^\.]*\))./<blockquote class="poznamka"><p class="poznamkaname">Poznámka (\1).<\/p><p>/' index.html
#sed -i 's/<p><code>ww2:\(.*\)<\/code><\/p>/<a href="http:\/\/um.mendelu.cz\/webwork2\/html2xml?\&answersSubmitted=0\&sourceFilePath=\1\&problemSeed=123\&displayMode=MathJax\&courseID=daemon\&userID=demon\&course_password=demonek\&outputformat=simpleM\&language=cs_CZ" target="_blank" class="WWotazka">Testová otázka<\/a>/' index.html
sed -i 's/<p><code>ww2:\(.*\)<\/code><\/p>/<a onclick=otevrit("\1"); target="_blank" class="WWotazka">Testová otázka<\/a>/' index.html
sed -i 's/<p>https:\/\/youtu.be\/\(.*\)<\/p>/<div class="Ycontainer"> <iframe class="responsive-iframe" src="https:\/\/www.youtube.com\/embed\/\1"><\/iframe> <\/div>/' index.html
sed -i 's/<p>manimp:\(.*\)|\(.*\)<\/p>/<div class="obtekat"><figure><a href="https:\/\/user.mendelu.cz\/marik\/manim\/\1" target=_blank><img src="https:\/\/user.mendelu.cz\/marik\/manim\/thumbs\/\1.jpg"><\/a><figcaption>\2 <a href="\/marik\/manim\/\1" class=but-prez target=_blank>Otevřít prezentaci<\/a><\/figcaption><\/figure><\/div>/' index.html
sed -i 's/<p>manim:\(.*\)|\(.*\)|\(.*\)<\/p>/<div class="obtekat"><figure><a href="https:\/\/user.mendelu.cz\/marik\/manim\/\1" target=_blank><img src="https:\/\/user.mendelu.cz\/marik\/manim\/thumbs\/\1.jpg"><\/a><figcaption>\3 <a href="https:\/\/user.mendelu.cz\/marik\/manim\/\1" class=but-prez target=_blank>Otevřít prezentaci<\/a> <a href="https:\\\\youtu.be\/\2" class=but-video target=_blank>Spustit video<\/a><\/figcaption><\/figure><\/div>/' index.html