#!/bin/bash
latexmk -silent -pdf ./main.tex ./slide.tex && latexmk -silent -pdf -c && mv main.pdf ../"$(basename $(dirname $(pwd)))".pdf && mv slide.pdf ../"slide_$(basename $(dirname $(pwd)))".pdf