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
1 changed files with 6 additions and 2 deletions

View File

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