2022-07-26 17:38:38 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
mkdir -p pdf
|
2022-08-01 00:25:10 +00:00
|
|
|
mkdir -p html
|
2022-07-26 17:38:38 +00:00
|
|
|
|
2022-08-02 20:27:53 +00:00
|
|
|
pandoc -o pdf/NOTES_ON_OPTICAL_PRINTER_TECHNIQUE.pdf -f markdown+implicit_figures NOTES_ON_OPTICAL_PRINTER_TECHNIQUE.md
|
2022-08-01 00:25:10 +00:00
|
|
|
|
2022-08-04 18:40:53 +00:00
|
|
|
MARKDOWN="$(cat NOTES_ON_OPTICAL_PRINTER_TECHNIQUE.md)"
|
|
|
|
HTML_TMP=$(mktemp -d)
|
|
|
|
|
|
|
|
SVG="${MARKDOWN//.jpg/.svg}"
|
|
|
|
SVG="${SVG//img\//..\/img\/}"
|
|
|
|
|
|
|
|
echo "${SVG}" > "${HTML_TMP}/index.md"
|
|
|
|
|
2022-08-31 20:25:27 +00:00
|
|
|
pandoc --css=style.css -s -o html/index.html -t html -f markdown+implicit_figures "${HTML_TMP}/index.md"
|
2022-08-04 18:40:53 +00:00
|
|
|
|
|
|
|
rm -r "${HTML_TMP}"
|