feat: copying pdf and newline handling added to script

This commit is contained in:
Yandrik 2022-04-29 15:25:14 +02:00
parent 64f86314bf
commit 0efddc3457

View File

@ -15,6 +15,9 @@ cd workdir
echo "Generating modified Markdown file..." echo "Generating modified Markdown file..."
#prefix every \ with a \
sed -i -e 's/\\\\ *$/\\\\\\\\/g' "$NEWNAME"
# prefix every _ with an \ # prefix every _ with an \
sed -i -e 's/_/\\_/g' "$NEWNAME" sed -i -e 's/_/\\_/g' "$NEWNAME"
@ -46,5 +49,6 @@ tlmgr install markdown
echo "Building PDF..." echo "Building PDF..."
pdflatex -synctex=1 -interaction=nonstopmode --shell-escape file.tex pdflatex -synctex=1 -interaction=nonstopmode --shell-escape file.tex
cp *.pdf ..
echo "Done." echo "Done."
okular file.pdf