feat: copying pdf and newline handling added to script
This commit is contained in:
parent
64f86314bf
commit
0efddc3457
@ -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."
|
Loading…
Reference in New Issue
Block a user